The relative strength index, or RSI, is a momentum indicator that moves between 0 and 100. Most charting platforms plot it in a panel below the price. People quote its 70 and 30 levels without knowing where the number comes from. Seeing the formula once makes its strengths and limits clearer.
The Formula
The RSI compares the average size of recent gains with the average size of recent losses, usually over 14 periods:
- RS = average gain ÷ average loss.
- RSI = 100 − 100 ÷ (1 + RS).
If gains and losses are equal, RS is 1 and RSI is 50. If there are only gains, RSI is 100, and if only losses, it is 0.
A Worked Example
Imagine 14 daily price changes: +1.0, −0.5, +0.8, +0.4, −0.3, +1.2, −0.6, +0.9, +0.5, −0.4, +0.7, −0.2, +1.0, +0.6.
- The sum of the gains is 7.1, so the average gain over 14 periods is 7.1 ÷ 14 = 0.507.
- The sum of the losses is 2.0, so the average loss is 2.0 ÷ 14 = 0.143.
- RS = 0.507 ÷ 0.143 = 3.55.
- RSI = 100 − 100 ÷ 4.55 = 78.
An RSI of 78 says that, in this window, gains were much larger than losses. After the first calculation, most platforms use a smoothed average (Wilder's method) that updates each bar, so the numbers on your chart may differ slightly from a simple average.
What 70 and 30 Mean
Traditionally, an RSI above 70 is called overbought and below 30 oversold. These labels are often misunderstood. They describe how strong recent momentum has been, not that price must reverse. In a strong uptrend, RSI can stay above 70 for weeks while price keeps rising. Selling just because RSI is high can mean fighting a trend.
Better Ways to Use It
- Range-bound markets: when price moves sideways, overbought and oversold readings can mark turning points near the top and bottom of the range.
- Trend filter: in uptrends, RSI tends to hold between about 40 and 80, and dips toward 40 can be buying zones. In downtrends, it tends to stay between about 20 and 60.
- Divergence: price makes a new high but RSI makes a lower high, which suggests momentum is fading. The reverse can happen at lows. Divergence is a warning, not a signal on its own.
- Centre line: moves above or below 50 show a shift in the balance between buyers and sellers.
Changing the Settings
A shorter period (such as 7) reacts quicker and reaches extremes more often, and a longer one (such as 21) is smoother. Some traders change the thresholds to 80 and 20 for strong trends. Whatever you choose, test it on past data before relying on it.
Limits
- The RSI is derived from price, so it lags and repeats what the chart shows.
- Different assets behave differently. A level that works on one currency pair may not work on a volatile stock.
- No indicator tells you how much to risk. Our guide to position sizing shows how to size a trade from a stop-loss.
Putting It Together
A sound plan might combine a trend tool, such as a moving average, with RSI for timing, a defined stop, and a reward at least twice the risk. If your rules cannot be written in a few lines, they are probably too complicated to follow under pressure.
Put It Into Practice
Add RSI to a chart, mark every time it crossed 70 or 30 in the past six months, and see what price did next. Then check your reward-to-risk with the Risk/Reward calculator. This article is educational, and trading involves a high risk of loss.