The Relative Strength Index, or RSI, is one of the most widely used momentum indicators and one of the most often misread. Most explanations stop at "above 70 is overbought, below 30 is oversold". This guide shows how the number is built, with worked examples, so you can see why those levels exist, where they fail, and how to set RSI alerts that make sense.
What RSI measures
RSI compares the size of recent gains with the size of recent losses and puts the result on a scale from 0 to 100. A high reading means gains have dominated recently. A low reading means losses have. It was introduced by J. Welles Wilder and is normally calculated over 14 periods, which on a daily chart is 14 days.
The formula, step by step
- Over the last 14 days, add up the gains on up days and divide by 14. This is the average gain.
- Do the same for the losses on down days, ignoring the minus sign. This is the average loss.
- Divide: RS = average gain ÷ average loss.
- Convert: RSI = 100 − 100 ÷ (1 + RS).
After the first reading, Wilder's method smooths the averages: each new average is the previous one times 13, plus the latest day's value, divided by 14. That is why RSI changes gradually rather than jumping.
Three worked examples
The numbers below are made up to show the arithmetic. They are not real prices.
| Average gain | Average loss | RS | RSI | Reading |
|---|---|---|---|---|
| 1.0 | 0.5 | 2.00 | 66.7 | Strong, not yet overbought |
| 0.8 | 0.8 | 1.00 | 50.0 | Balanced |
| 0.4 | 1.2 | 0.33 | 25.0 | Oversold zone |
In the first row, gains are twice the losses, so RS is 2 and RSI is 100 − 100 ÷ 3, about 66.7. In the last row, losses are three times the gains, RS is one third and RSI is 100 − 100 ÷ 1.33, which is 25. When gains and losses are equal, RSI is exactly 50.
Reading the levels
- Above 70: conventionally called overbought. Recent gains have been large relative to losses.
- Below 30: conventionally called oversold. Recent losses have been large relative to gains.
- Around 50: no strong momentum either way.
The labels describe momentum, not value. "Overbought" does not mean a stock is too expensive, and "oversold" does not mean it is cheap.
Where RSI misleads
- Strong trends. In a long rally RSI can stay above 70 for weeks while the price keeps rising. In a long decline it can stay under 30.
- Falling knives. A stock that is oversold can become more oversold. Buying the moment RSI drops below 30 is the version that fails most often in published tests.
- The period. A 7-day RSI swings further and faster than a 14-day one, so the same price move reads differently.
A more cautious approach, described by sources such as Schwab and StockCharts, waits for RSI to fall below 30 and then rise back above it before treating it as a sign of a turn. Test results are mixed and depend on the stock and the period, so treat this as a description of a practice and not a rule that works.
Use RSI as a prompt to look. It is more useful when combined with another signal, such as the trend, a fall from the high, or market sentiment, than as a standalone buy or sell trigger.
Setting an RSI alert
In FearAlert you pick a ticker, the RSI period and a level, and the alert fires when RSI crosses it. A few starting points:
- RSI (14) below 30 on a broad fund: a prompt to review a buying plan. Compare with buy the dip alerts.
- RSI (14) above 70 on a holding: a prompt to review the position. See RSI overbought alerts.
- RSI below 30 and Fear & Greed below 40: both the stock and the market are weak. This needs a compound alert, which is a paid feature.
Add a cooldown so an RSI that hovers near a level does not repeat the alert. For a strategy built on these levels, see the RSI alert strategy guide. To see how RSI differs from MACD, read RSI vs MACD and MACD explained with examples.
Frequently asked questions
How is RSI calculated?
Divide the average gain by the average loss over 14 periods to get RS, then compute 100 minus 100 divided by (1 plus RS). After the first reading, Wilder smoothing updates the averages each day.
What does an RSI of 30 or 70 mean?
By convention, below 30 is oversold and above 70 is overbought. They describe how one-sided recent price moves have been. They do not say a stock is cheap or expensive.
Is RSI below 30 a buy signal?
Not by itself. A stock can stay oversold while it keeps falling. A more cautious practice waits for RSI to rise back above 30, and results from published tests are mixed.
What RSI period should I use?
Fourteen is the standard. Shorter periods such as 7 react faster and produce more extreme readings. Longer periods are smoother.
Can I get an alert when RSI crosses a level?
Yes. Create an RSI alert for any stock or ETF, choose the period and the level, and add a cooldown so it does not repeat.
This article is educational and is not financial advice. RSI describes past price changes and does not predict future ones. The worked numbers are illustrative.