Technical analysis

RSI Indicator Explained: How to Use the Relative Strength Index

How the RSI is calculated, what overbought and oversold really mean, divergences, the best settings, and how to scan or set alerts on RSI.

Key takeaways

  • The RSI compares the size of recent up days with recent down days on a 0–100 scale; the standard setting is 14 periods with Wilder's smoothing.
  • Readings above 70 are called overbought and below 30 oversold, but in a strong trend the RSI can stay above 70 for weeks while prices keep rising.
  • From 1990 to 2025, the S&P 500's daily RSI(14) closed below 30 on only 150 of 9,067 sessions, in 77 separate episodes.
  • After those oversold episodes, the index's median change 60 trading days later was about +6.7%, against +3.0% for all days, but a third of the episodes were still lower 20 days later.
  • Divergences and failure swings are the RSI's more useful signals; a single cross of 30 or 70 is not a trading system.

The RSI indicator (Relative Strength Index) measures how strongly a price has been rising or falling over the last few sessions, on a scale from 0 to 100. Welles Wilder introduced it in 1978, and it is now one of the most widely used momentum oscillators: high readings mean recent gains have dominated, low readings mean recent losses have.

The RSI does not predict prices. It tells you how one-sided recent trading has been, which helps you spot stretched moves, fading momentum and divergences between price and momentum. Used alone as a buy-below-30, sell-above-70 rule, it disappoints more often than most beginners expect. The data below shows why.

How is the RSI calculated?

The calculation has four steps. VantageLedger's charts follow Wilder's original method exactly.

  1. Daily changes. For each session, take the close minus the previous close. A positive change is a gain (the loss is zero that day); a negative change is a loss, recorded as a positive number (the gain is zero).
  2. First averages. Over the first 14 changes, the average gain is the sum of gains divided by 14, and the average loss is the sum of losses divided by 14.
  3. Wilder smoothing. From then on, each new average keeps 13/14 of the previous one and adds 1/14 of today's value. This is a slow exponential average, so the RSI carries a memory of older moves.
  4. RS and RSI. Divide the average gain by the average loss to get RS, then convert it to the 0–100 scale.

Average gaintoday = (previous average gain × 13 + today's gain) ÷ 14
RS = average gain ÷ average loss
RSI = 100 − 100 ÷ (1 + RS)

When average gains equal average losses, RS is 1 and the RSI is exactly 50. If there were no losses at all, the RSI would be 100; with no gains, 0.

A worked RSI example with real S&P 500 closes

Here are 15 daily closes of the S&P 500 from March 10 to March 28, 2025, which give the 14 changes needed to seed the averages.

Date (2025)CloseChangeGainLoss
Mar 105,614.56———
Mar 115,572.07−42.49042.49
Mar 125,599.30+27.2327.230
Mar 135,521.52−77.78077.78
Mar 145,638.94+117.42117.420
Mar 175,675.12+36.1836.180
Mar 185,614.66−60.46060.46
Mar 195,675.29+60.6360.630
Mar 205,662.89−12.40012.40
Mar 215,667.56+4.674.670
Mar 245,767.57+100.01100.010
Mar 255,776.65+9.089.080
Mar 265,712.20−64.45064.45
Mar 275,693.31−18.89018.89
Mar 285,580.94−112.370112.37

The gains add up to 355.22 points and the losses to 388.84. Dividing each by 14 gives an average gain of 25.37 and an average loss of 27.77. RS is 25.37 ÷ 27.77 = 0.914, so the RSI on March 28 is 100 − 100 ÷ 1.914 = 47.7.

On March 31 the index rose 30.91 points. The new average gain is (25.37 × 13 + 30.91) ÷ 14 = 25.77, and the new average loss is (27.77 × 13 + 0) ÷ 14 = 25.79. RS is almost exactly 1, so the RSI is 50.0.

Why your chart shows a different number. The RSI on VantageLedger's S&P 500 chart for March 31, 2025 is about 40, not 50. The chart seeds the averages months earlier, and Wilder smoothing never fully forgets older moves, so a value seeded from just 14 days differs from one built on a long history. Any two platforms can disagree slightly for the same reason.

What do RSI 70 and 30 mean?

Wilder suggested 70 and 30 as the thresholds: above 70 a market is overbought, below 30 it is oversold. Those words describe the past, not the future. Overbought means recent gains have far outweighed recent losses. It does not mean the price is too high or about to fall.

Some traders use 80 and 20 instead, which flags only the most extreme moves and cuts the number of signals sharply. That suits volatile assets whose RSI crosses 70 and 30 all the time. A third convention treats 50 as the dividing line: in an uptrend, pullbacks tend to hold around 40–50, and in a downtrend, rallies tend to stall around 50–60.

Why "overbought" can last for weeks

A strong trend is exactly what pushes the RSI above 70, so a high reading is often a sign of strength rather than exhaustion. From 1990 to 2025, the S&P 500's RSI(14) closed above 70 on 676 sessions, and the longest unbroken runs lasted 18 sessions, a length reached three times: in the spring of 1995, early in one of the strongest bull markets on record, in late 1996 and in January 2018. Selling every time the RSI touched 70 would have meant selling repeatedly through those runs.

Oversold readings can persist in the same way. On October 7, 2008, the S&P 500's RSI fell below 30 with the index near 996. The index went on to close at 676.53 on March 9, 2009, about 32% lower.

What happened after the S&P 500's RSI hit 30 or 70?

We tested the textbook thresholds on VantageLedger's daily price history of the S&P 500 price index (dividends excluded).

Method. RSI(14) computed with the same calculator our charts use, warmed up from 1970. Sample window: every session from January 2, 1990 to December 31, 2025 (9,067 sessions). For each signal day we measured the index's price change over the next 20 and 60 trading days (roughly one and three months) and compared it with the same measure for all days. An "episode" is the first close below 30 (or above 70) after a close on the other side of the line.

S&P 500, 1990–2025CasesMedian, 20 daysMedian, 60 daysAverage, 60 daysHigher after 60 days
All sessions9,067+1.2%+3.0%+2.3%70%
RSI below 30, first day77+2.4%+6.7%+5.5%74%
RSI below 30, every day150+2.9%+6.1%+5.5%74%
RSI above 70, first day199+1.5%+2.9%+1.9%73%
RSI above 70, every day676+1.1%+3.0%+1.9%72%

Two things stand out. Oversold readings on the index were rare, about 1.7% of sessions, and on average they were followed by better-than-usual returns: the classic "buy the dip" pattern of a market that rose over time. Overbought readings were followed by roughly normal returns, so they were not a reliable sell signal on the index at all.

The spread around those medians was wide. Of the 77 oversold episodes, 25 saw the index lower 20 days later. The worst 60-day outcomes came in 2002 and 2008 (declines of about 21% and 19%), and the best in March 2009 and March 2020 (gains of about 38% and 30%).

Read this as history, not a forecast. 77 episodes over 36 years is a small sample, many of them cluster in the same crises, and the 20- and 60-day windows overlap. The results describe one index in one long bull market; they imply no forecasting power for the next signal, and an individual stock can behave very differently.

RSI divergences and failure swings

Wilder himself considered divergences the most important RSI signal, and they tend to be more informative than raw 70 and 30 crosses.

  • Bearish divergence: price makes a higher high, but the RSI makes a lower high. The new high was reached with less buying pressure than the last one, a warning that the uptrend is tiring.
  • Bullish divergence: price makes a lower low, but the RSI makes a higher low. Selling pressure is fading even though the price is still falling.

A divergence can last a long time before the price turns, and in a powerful trend several can appear in a row with no reversal. Treat it as a reason to look harder, not a trigger.

Failure swings

A failure swing uses only the RSI line. A bottom failure swing has four steps: the RSI falls below 30, bounces, pulls back without going below 30 again, then rises above its previous bounce high. That last break is the signal. A top failure swing is the mirror image above 70. Wilder valued them because they confirm a change in momentum rather than simply flagging an extreme.

RSI settings: 14 days or something else?

Fourteen periods is the standard, and it is the default on VantageLedger's charts, which also offer 9, 21 and 25. The trade-off is simple:

  • Shorter (9 or fewer): faster, hits 70 and 30 far more often, and gives more false signals. Short-term traders often pair it with 80/20.
  • 14: Wilder's choice and the one most traders watch, which matters for any level everyone else is also looking at.
  • Longer (21 or 25): smoother, rarely reaches the extremes, and suits weekly-minded investors who want only the biggest stretches.

Change the setting to fit the asset and holding period, not to make past signals look better. Tuning a period until it fits the last two years is the quickest way to build a rule that fails on the next two.

RSI on stocks, indexes and crypto

The same 70 and 30 lines mean different things on different assets. We counted the share of daily closes beyond each line from 2016 to 2025, using RSI(14). Stock figures use closes adjusted for splits and dividends; the index is price-only:

Asset, 2016–2025Days with RSI above 70Days with RSI below 30
S&P 5008.7%1.7%
Apple14.0%2.2%
Nvidia15.6%1.6%
Tesla11.1%4.1%
Bitcoin13.2%3.5%

A broad index is diversified, so it rarely gets stretched. Single stocks and bitcoin run hotter: they spend more time above 70, and the most volatile of them, Tesla and bitcoin, also dipped below 30 more than twice as often as the index. For crypto, many traders widen the thresholds to 80 and 20. Bitcoin trades every day of the week, so 14 periods also covers two calendar weeks instead of nearly three for stocks. For a close cousin that reacts faster, see the Stochastic Oscillator: How to Use %K and %D.

Common RSI mistakes

  1. Shorting every overbought reading. As the data shows, 70 on a rising index has mostly meant strength.
  2. Catching a falling knife at 30. In a bear market the RSI can sit in the 20s while the price keeps sliding, as it did in the autumn of 2008.
  3. Ignoring the trend. Oversold signals work best when the longer trend is up; a 200-day moving average is a common filter.
  4. Using RSI alone. Pair it with a trend tool such as the MACD Indicator Explained: Signals and Settings, and with volume or price structure, rather than acting on one number.

How to use the RSI on VantageLedger

Every instrument page has a free chart with full daily price history. Add the RSI from the indicator picker and it appears in its own pane with the 70 and 30 lines drawn; switch the period if you want 9, 21 or 25. Try it on the S&P 500 around April 2025 and you will see the index's RSI drop into the low 20s during the tariff sell-off, then jump back above 45 in a single session.

To find oversold assets across the whole database instead of checking one chart at a time, use the screener: set the condition to "RSI 14 is below 30" and it returns every asset that matches on the latest close. It needs a free account. The How to Use a Stock Screener to Find Stocks walks through more examples.

Scan for RSI below 30

If you follow one asset, an indicator alert emails you when its RSI crosses a level you choose, for example when bitcoin's RSI crosses below 30. Alerts are checked once a day on end-of-day data. See Stock Alerts on Technical Indicators for setup ideas, or create one from the indicator alerts page. In the fake-money Alpha Arena, one of the rule-based house agents, Mean Reverter, buys RSI-oversold names, so you can watch the idea traded in public.

FAQ

What is a good RSI to buy?

There is no universal number. Below 30 is the classic oversold level, and on the S&P 500 it has historically been followed by above-average returns, but a third of cases were still lower a month later and oversold readings can deepen in a bear market.

Is RSI 70 a sell signal?

Not by itself. An RSI above 70 shows strong recent buying; on the S&P 500 from 1990 to 2025, the index's returns after such readings were close to normal. Many traders wait for the RSI to fall back below 70 or for a bearish divergence.

What is the best RSI setting for day trading or crypto?

Shorter periods such as 9 react faster but give more false signals, so they are often paired with 80/20 thresholds. For crypto, 14 with 80/20 is a common compromise because bitcoin's RSI reaches the 70 and 30 lines more often than an index.

What is the difference between RSI and relative strength?

The RSI compares an asset with its own recent gains and losses. "Relative strength" in the comparative sense compares one asset with another, such as a stock against the S&P 500; on VantageLedger you can do that with the chart's compare feature.

This article is for education only and is not investment advice. Past performance does not guarantee future results. Live figures are computed from daily closing prices and can lag the market by a day or more.

Instruments in this article

Keep reading