RSI Explained: Formula, Settings and What Overbought Really Means

RSI (Relative Strength Index) is a momentum oscillator from J. Welles Wilder's 1978 book that turns the ratio of average gains to average losses over 14 bars into a number from 0 to 100. On the 15-bar hypothetical series below it works out to 72.44; here is every step, the usual settings, and why a reading above 70 is not a sell signal.

What RSI measures and how it is calculated

The Relative Strength Index compares how much price rose on up bars with how much it fell on down bars over a lookback window, and expresses the result on a 0 to 100 scale. J. Welles Wilder Jr. introduced it in his 1978 book New Concepts in Technical Trading Systems, the same book that introduced ATR (see our ATR page). The default lookback is 14 bars.

The formula has three parts. First, each bar's change is the close minus the previous close. Gains are the positive changes and losses are the absolute value of the negative changes. Second, RS is the average gain divided by the average loss over the lookback. Third, RSI = 100 − 100 ÷ (1 + RS). If there were no losses at all in the window, the average loss is zero and RSI is 100; if there were no gains, RSI is 0.

After the first value, Wilder smooths the averages instead of re-averaging: new average = (previous average × 13 + current value) ÷ 14. This is why the same RSI(14) can differ by a point or two between platforms that seed the first value differently or start from different amounts of history.

Worked example: RSI(14) on a 15-bar hypothetical series

The closes below are hypothetical, made up for this page, and are not any real security. Fifteen closes give fourteen changes, which is exactly what the first RSI(14) needs.

Add the gains: 0.34 + 0.06 + 0.72 + 0.50 + 0.27 + 0.32 + 0.42 + 0.24 + 0.14 + 0.67 = 3.68. Add the losses: 0.25 + 0.54 + 0.19 + 0.42 = 1.40. Divide each by 14. Average gain = 3.68 ÷ 14 = 0.2629. Average loss = 1.40 ÷ 14 = 0.1000.

RS = 0.2629 ÷ 0.1000 = 2.6286. RSI = 100 − 100 ÷ (1 + 2.6286) = 100 − 27.56 = 72.44.

The series rose 5.2% over 15 bars (44.00 to 46.28), with four down bars, and RSI is already above 70. That is the first thing to understand about the indicator: a steady, ordinary climb is enough to push it into the so-called overbought zone.

BarClose (hypothetical)ChangeGainLoss
144.00
244.34+0.340.340.00
344.09−0.250.000.25
444.15+0.060.060.00
543.61−0.540.000.54
644.33+0.720.720.00
744.83+0.500.500.00
845.10+0.270.270.00
945.42+0.320.320.00
1045.84+0.420.420.00
1146.08+0.240.240.00
1245.89−0.190.000.19
1346.03+0.140.140.00
1445.61−0.420.000.42
1546.28+0.670.670.00
Total3.681.40

How RSI updates on the next bar (Wilder smoothing)

Suppose bar 16 closes at 46.00, down 0.28 from 46.28 (hypothetical). The gain for the bar is 0 and the loss is 0.28.

New average gain = (0.2629 × 13 + 0) ÷ 14 = 0.2441. New average loss = (0.1000 × 13 + 0.28) ÷ 14 = 1.58 ÷ 14 = 0.1129. RS = 0.2441 ÷ 0.1129 = 2.1627. RSI = 100 − 100 ÷ 3.1627 = 68.38.

One down bar of 0.28 took RSI from 72.44 to 68.38, below the 70 line. Had bar 16 instead closed at 46.50 (up 0.22), the average gain would be (0.2629 × 13 + 0.22) ÷ 14 = 0.2598, the average loss 0.0929, and RSI 73.67. Each new bar moves the value by only a few points because older bars keep most of the weight.

What settings do people use, and what do the readings mean?

Wilder used 14 bars and the 70 and 30 lines, and most platforms default to the same. A shorter length such as 9 reacts faster and swings more; a longer length such as 21 is smoother and reaches the extremes less often. Changing the length changes how often 70 and 30 are touched, so the thresholds do not mean the same thing on every setting.

The usual reading is that RSI above 70 means price has risen strongly and is stretched, and below 30 means it has fallen strongly. That describes recent momentum. It does not say price must reverse. In a sustained trend RSI can stay above 70 or below 30 for long stretches, which is why many traders treat 70 as a sign of strength in an uptrend rather than a reason to sell.

RSI(14) readingCommon labelWhat it actually says
Above 70OverboughtRecent gains have been large compared with recent losses
50Neutral lineAverage gains equal average losses over the window
Below 30OversoldRecent losses have been large compared with recent gains
Stays above 70 for many barsStrong trendMomentum is persistent; the label has not led to a reversal

Does the 70 and 30 rule work?

We do not publish a backtest on this page. The series above is hypothetical, and a result computed on invented prices would prove nothing. Results on real data depend on the market, the period, the timeframe, costs, and how you define the entry and exit, and a rule that worked in one period often does not in another. Treat any claim of a fixed success rate for a plain 70/30 rule as unproven until you have tested it yourself on data you trust, including commissions and slippage.

What the arithmetic does show is a structural limit. RSI is built from price changes alone, so in a one-way market it reads extreme and stays extreme. Buying every reading below 30 in a falling market means buying repeatedly while it keeps falling.

Limits of RSI and who should not rely on it

RSI uses closing prices only, ignores volume, and lags because it averages past bars. It is sensitive to the lookback and to the smoothing method, so two charts can disagree. It says nothing about where to place a stop or how much to risk; for that see ATR and position sizing.

You should not use RSI as a stand-alone entry system if you cannot tolerate being early in trends, and you should not use it to justify averaging down on a losing position. It works better as one input that describes momentum alongside price structure, a defined stop, and a position size set before the trade. Nothing here is a trading recommendation, and trading carries a risk of loss, including loss of more than you intended when leverage is involved.

Frequently asked questions

What is the RSI formula?

RSI = 100 − 100 ÷ (1 + RS), where RS is the average gain divided by the average loss over the lookback, usually 14 bars. After the first value, the averages are smoothed: new average = (previous average × 13 + current value) ÷ 14.

What is the best RSI setting?

There is no best setting. Wilder's default is 14. Shorter lengths such as 9 give more signals and more noise; longer lengths such as 21 give fewer. Pick one, keep it fixed, and test it on your own market and timeframe.

Does RSI above 70 mean I should sell?

No. It means recent gains were large relative to recent losses. In a strong trend RSI can stay above 70 for many bars. In our hypothetical 15-bar series a 5.2% rise already produced 72.44.

Who invented RSI?

J. Welles Wilder Jr., in his 1978 book New Concepts in Technical Trading Systems.

Why does my platform show a slightly different RSI?

Platforms can seed the first average differently or begin with a different amount of history, and the Wilder smoothing carries that difference forward. The gap usually fades after a few dozen bars.

Sources

Provider documents behind this page, checked November 23, 2026.