PnL ProfitEncyclopedia
🌐 English

RSI (Relative Strength Index)

7 min read · Updated Nov 23, 2026
More in Technical Analysis

The Relative Strength Index (RSI) is a momentum oscillator that compares the size of recent gains with the size of recent losses and expresses the result on a scale from 0 to 100. Readings near 100 mean recent moves have been mostly up; readings near 0 mean mostly down. Developed by J. Welles Wilder Jr. and published in his 1978 book New Concepts in Technical Trading Systems, it is one of the most popular indicators on any charting platform. It measures the recent balance of up and down moves, and a high or low reading does not by itself mean price is about to reverse.

Key takeaways

  • RSI = 100 - 100 / (1 + RS), where RS is the average gain divided by the average loss over a lookback period, 14 by default.
  • Readings above 70 and below 30 are conventionally called overbought and oversold, but in strong trends RSI can stay at those extremes for a long time.
  • In uptrends RSI often oscillates in roughly the 40 to 80 area, and in downtrends roughly 20 to 60, which helps identify the regime.
  • Divergence between price and RSI shows fading momentum, but many divergences never lead to a reversal.
  • RSI is a transformation of closing prices, so it does not add independent information to a price chart.
On this page
  1. How RSI is calculated
  2. Worked example
  3. Overbought and oversold
  4. RSI in trends: the regime view
  5. Divergences
  6. Settings
  7. Common mistakes
  8. What the evidence says

How RSI is calculated

RSI looks at the changes from one close to the next over a lookback period, usually 14 bars:

  1. For each bar, record the gain (if the close rose) or the loss (if it fell, recorded as a positive number). A bar that rose has a loss of zero, and vice versa.
  2. Calculate the average gain and average loss over the period. Wilder used a smoothing method: each new average equals (previous average x 13 + current value) / 14. This behaves like an exponential average and means every past bar still has a small influence.
  3. Calculate RS = average gain / average loss.
  4. Calculate RSI = 100 - 100 / (1 + RS).

The intuition is simple. If average gains and losses are equal, RS is 1 and RSI is 50. If gains are twice the losses, RSI is about 67. If there were no losses at all, RSI would be 100.

Note that RSI is not the same as "relative strength" in the sense of comparing one stock with an index. That comparison, sometimes called comparative relative strength, is a different calculation.

Worked example

A stock's 14-day average gain is $1.20 and its average loss is $0.60.

  • RS = 1.20 / 0.60 = 2.00
  • RSI = 100 - 100 / (1 + 2) = 100 - 33.33 = 66.67

Day 1: the stock rises $2.00.

  • New average gain = (1.20 x 13 + 2.00) / 14 = (15.60 + 2.00) / 14 = 17.60 / 14 = 1.2571
  • New average loss = (0.60 x 13 + 0) / 14 = 7.80 / 14 = 0.5571
  • RS = 1.2571 / 0.5571 = 2.2564
  • RSI = 100 - 100 / 3.2564 = 69.29

Day 2: the stock rises $3.00.

  • Average gain = (1.2571 x 13 + 3.00) / 14 = 1.3816
  • Average loss = (0.5571 x 13 + 0) / 14 = 0.5173
  • RS = 2.6706, so RSI = 72.76. It is now above 70, in "overbought" territory.

Day 3: the stock falls $1.50.

  • Average gain = (1.3816 x 13 + 0) / 14 = 1.2829
  • Average loss = (0.5173 x 13 + 1.50) / 14 = 0.5875
  • RS = 2.1836, so RSI = 68.59.

Two strong up days moved RSI from about 67 to about 73, and one moderate down day pulled it back below 70. The reading tells you that recent gains have outweighed losses. It does not tell you that the $3 rally was "too much" or that a decline was due.

Overbought and oversold

The conventional thresholds are:

Reading Conventional label What it actually means
Above 70 Overbought Recent gains have been much larger than recent losses
30 to 70 Neutral No strong imbalance
Below 30 Oversold Recent losses have been much larger than recent gains

Some traders use 80 and 20 for stricter signals, especially on volatile assets.

The labels are misleading. "Overbought" sounds as if price must fall, but it only describes strong recent momentum. Strong momentum often persists. A stock in a powerful uptrend can stay above 70 for weeks while continuing to rise, and selling every time RSI crosses 70 would have meant exiting or shorting early, repeatedly.

Fading extremes tends to work better in ranging markets, where price oscillates between support and resistance. In trending markets it can be costly.

A widely used observation is that RSI's typical range shifts with the trend:

  • In uptrends, RSI tends to oscillate roughly between 40 and 80. Pullbacks often stop around 40 to 50 rather than reaching 30.
  • In downtrends, RSI tends to oscillate roughly between 20 and 60. Rallies often stall around 50 to 60 rather than reaching 70.

Traders use this in two ways:

  • Regime identification. If RSI keeps holding above 40 on pullbacks, that is consistent with an uptrend. If it starts failing to reach 60 on rallies, the trend may be weakening.
  • Pullback entries. In an established uptrend, a dip in RSI to the 40 to 50 area, rather than to 30, may be used as a buy zone, with a stop below the pullback's swing low.

These ranges are rules of thumb, not fixed boundaries. Different assets and timeframes behave differently.

Divergences

A divergence occurs when price and RSI disagree:

  • Bearish divergence: price makes a higher high, but RSI makes a lower high. The latest rally had less momentum than the previous one.
  • Bullish divergence: price makes a lower low, but RSI makes a higher low. The latest decline had less momentum.

Some traders also watch hidden divergence, which is read as a continuation signal: in an uptrend, price makes a higher low while RSI makes a lower low.

Divergences describe fading momentum, which often happens before reversals. But momentum can fade while the trend continues, and in a strong trend divergences can appear several times in a row before any reversal. Traders usually wait for confirmation from price itself, such as a break of structure or a close below a support level, before acting on a divergence.

Settings

Setting Effect Typical use
14 (default) Balanced General purpose, any timeframe
2 to 7 Very sensitive; hits extremes often Short-term mean reversion systems, especially on stock indices
20 to 25 Smoother; extremes are rare Longer-term trend context

Shorter periods make RSI reach 70 and 30 far more often. A 2-period RSI can swing from below 10 to above 90 in a couple of days. Short settings have been popularized for mean-reversion strategies that buy brief dips in uptrending stock indices. Like any system, these should be tested with realistic costs, because their small average gains per trade are sensitive to spreads and commissions.

Common mistakes

  • Treating 70 as a sell signal. In uptrends, overbought readings are normal. Shorting them fights the trend.
  • Treating 30 as a buy signal in a crash. RSI can stay below 30 throughout a steep decline. "Oversold" is not a floor.
  • Trading every divergence. Divergences are frequent and many fail. Without price confirmation they are early, and early often means wrong.
  • Combining RSI with similar oscillators. RSI, stochastics and MACD are all derived from closing prices. When they agree, it is mostly the same information counted several times.
  • Optimizing thresholds on past data. Choosing RSI 11 with levels of 73 and 27 because they backtested best is a classic route to overfitting.
  • Ignoring the timeframe. A 5-minute RSI of 80 says little about a daily trend.

What the evidence says

RSI-based rules have been tested many times, with mixed results. Simple "buy below 30, sell above 70" rules on single assets have generally not shown reliable profits after costs, and outcomes vary widely across markets and periods. Short-term reversal effects, which short-period RSI systems try to capture, have been documented in some equity markets, but they are small per trade and highly sensitive to transaction costs. Meanwhile, the broader momentum research suggests that strong past performance tends to persist over medium horizons, which is a reason to be cautious about automatically fading high RSI readings.

FAQ

What is a good RSI setting?

The default of 14 periods is the most common and a reasonable starting point. Shorter settings make RSI more sensitive and reach extremes more often, while longer settings make it smoother; any change should be tested on your market and timeframe.

Does RSI above 70 mean sell?

Not necessarily. RSI above 70 means recent gains have been much larger than recent losses, and in strong uptrends RSI can stay above 70 for long periods while price keeps rising.

What is RSI divergence?

Divergence is when price and RSI move in different directions, such as price making a higher high while RSI makes a lower high. It suggests momentum is fading, but many divergences do not lead to a reversal, so traders usually wait for price confirmation.

Is RSI better than MACD?

Neither is better; they are built from the same closing prices and measure momentum in different ways. RSI is bounded between 0 and 100, which makes extremes easy to see, while MACD is unbounded and focuses on the relationship between two moving averages.

Educational content only. Nothing here is financial, investment, legal or tax advice. Trading carries a high risk of loss, and leveraged products can lose more than you deposit. Rules, fees and platform details change: check current terms with your broker, exchange or regulator before you trade.