The RSI indicator explained: formula, 70 and 30, and where it falls short
The RSI (Relative Strength Index) is an indicator that turns the speed of recent price moves into a number between 0 and 100. J. Welles Wilder Jr. created it and published it in 1978 in his book New Concepts in Technical Trading Systems. Traders use it to see whether a price has risen or fallen sharply lately, not to predict the price.
In short
- The RSI works with the average gain and the average loss over usually 14 periods: RSI = 100 minus 100 / (1 + RS).
- Wilder called an RSI above 70 overbought and below 30 oversold. Some traders use 80 and 20.
- In a strong trend the RSI can stay above 70 or below 30 for a long time. Such a level is therefore not a sign that the price is turning.
- A different setting gives different signals on the same prices. No indicator predicts the price.
- Anyone who trades with an indicator must also manage their risk, for example with a stop loss.
Technical analysis in brief
Technical analysis looks at financial markets through market data: price moves, volume and momentum. The CMT Association, the professional body for technical analysts, describes it as a method that analyses statistical patterns in that data to assess possible market behaviour. The counterpart is fundamental analysis, which looks at a company's figures and economic situation. An indicator such as the RSI is a formula applied to the price series that turns it into one line under a chart.
What technical analysis is not: a guarantee. An indicator only sees the past and summarises it. Nobody knows what a price does next. That is why many traders read indicators as a way to organise a chart, not as an answer to what will happen. Whether you prefer short or long holding periods is covered in trading vs investing.
What is the RSI?
The RSI is a momentum oscillator: an indicator that moves up and down between two limits, here 0 and 100. Wilder presented it in 1978 in New Concepts in Technical Trading Systems, together with, among others, the Parabolic SAR, the Average True Range and the Directional Movement Concept (ADX). According to StockCharts ChartSchool, an education site for technical analysis, analysts still apply Wilder's indicators today, even though they were created before the computer age.
The idea is simple. The RSI compares how much the price rose on average over the last periods with how much it fell on average. If the price rises almost every day, the RSI is high. If it falls almost every day, it is low. There is no judgement about the value of the company in it, only a measurement of recent movement.
How to calculate the RSI: the formula
The default is a lookback of 14 periods, the value Wilder proposed. A period can be a day, but also an hour or a week. The calculation goes like this:
- For each period, calculate the change in the closing price. A rise is a gain, a fall is a loss. Write the loss as a positive number.
- For the first RSI, take the simple average of the gains and of the losses over 14 periods.
- Divide the average gain by the average loss. That is RS (relative strength).
- Convert with RSI = 100 minus 100 / (1 + RS).
For every following period Wilder uses a smoothing that resembles an exponential moving average:
- New average gain = (previous average gain x 13 + current gain) / 14
- New average loss = (previous average loss x 13 + current loss) / 14
If the average loss is zero, the RSI is 100 by definition. If the average gain is zero, it is 0. Because of the smoothing, RSI values can differ slightly depending on how much price history a program includes.
Worked example on a short series
We use made-up closing prices. They are not real figures of a share. Day 0 starts at 50, day 14 closes at 58.
| Day | Close | Change | Gain | Loss |
|---|---|---|---|---|
| 0 | 50 | |||
| 1 | 51 | +1 | 1 | 0 |
| 2 | 52 | +1 | 1 | 0 |
| 3 | 51 | -1 | 0 | 1 |
| 4 | 53 | +2 | 2 | 0 |
| 5 | 54 | +1 | 1 | 0 |
| 6 | 53 | -1 | 0 | 1 |
| 7 | 55 | +2 | 2 | 0 |
| 8 | 56 | +1 | 1 | 0 |
| 9 | 55 | -1 | 0 | 1 |
| 10 | 54 | -1 | 0 | 1 |
| 11 | 56 | +2 | 2 | 0 |
| 12 | 57 | +1 | 1 | 0 |
| 13 | 56 | -1 | 0 | 1 |
| 14 | 58 | +2 | 2 | 0 |
| Total | 13 | 5 |
Day 14, first RSI. Average gain: 13 / 14 = 0.9286. Average loss: 5 / 14 = 0.3571. RS = 0.9286 / 0.3571 = 2.6. RSI = 100 minus 100 / (1 + 2.6) = 100 minus 27.78 = 72.2.
Day 15, smoothed. The price closes at 59, a gain of 1 and no loss. New average gain: (0.9286 x 13 + 1) / 14 = 0.9337. New average loss: (0.3571 x 13 + 0) / 14 = 0.3316. RS = 2.816. RSI = 100 minus 100 / 3.816 = 73.8.
You can see the effect of the smoothing. One new day changes the average only a little, because the old averages keep counting heavily (13 of the 14 parts). That is why the RSI moves smoothly and not in jumps.
How traders read the RSI
Below are the usual reading rules. They are conventions from technical analysis. They describe how the RSI is often read, they do not say what happens next.
- Closing price
- RSI, 14 days
Overbought and oversold: 70 and 30
Wilder called an RSI above 70 overbought and below 30 oversold. The thinking behind it: after a strong rise the price may run out of steam, after a strong fall the selling pressure may fade. Some traders move the limits to 80 and 20, so the RSI shows an extreme value less often. According to StockCharts, short-term traders sometimes use a 2-period RSI with those limits.
Mind the words. Overbought only means the price rose hard recently. It does not say it is too expensive or that it will fall. In our example the RSI stayed above 70 for seven days, from day 14 through day 20, while the price in that time rose from 58 to 63.
The midline at 50
At 50, average gain and average loss are equal. If the RSI is above 50, gains weighed more recently, below 50 the losses. Some traders watch for a cross of 50 to judge the direction of the trend. That is a way of reading, not a rule that is always right.
Divergence
Divergence arises when the RSI does not move with the price. If the price makes a new high and the RSI forms a lower high, that is called a bearish divergence: momentum faded while the price kept rising. If the price makes a lower low while the RSI forms a higher low, that is called a bullish divergence. According to StockCharts, such a divergence can mislead in a strong trend: a strong rise can show several bearish divergences before a top comes.
Failure swing
Wilder also saw failure swings, which look only at the RSI. A bearish failure swing begins with an RSI above 70 that falls back, rises again but no longer reaches 70, and then drops below its previous low. A bullish failure swing is the mirror image around 30. It is a pattern in the RSI itself, separate from the price.
Not ready for the premium group yet? Start in our free community on Discord.
Free DiscordSettings change the signals
The 14 periods are a default, not a law of nature. StockCharts writes that you can shorten the period to make the RSI more sensitive or lengthen it to make it calmer. A 10-day RSI reaches the extreme zones faster than a 20-day one. The volatility of the share also plays a part: with a price that swings a lot, the RSI hits the ends sooner. You can read more about that concept in what is volatility.
The next example shows this on the same made-up prices. We calculate the RSI with 7, 14 and 21 periods.
- RSI 7 days
- RSI 14 days
- RSI 21 days
On exactly the same prices, one setting shows an oversold signal and the other does not. Anyone who works with the RSI therefore also chooses a setting, and that choice determines what you see. That makes it hard to say which signal is "right".
The limits of the RSI
- Strong trends. According to StockCharts, a momentum oscillator can stay overbought or oversold in a strong rise or fall. By the same source they work best when the price moves sideways within a range. In our own example the RSI stayed above 70 for days without the price turning.
- On its own it says little. StockCharts recommends using the RSI together with other tools to limit false signals. One line under a chart is not a full picture.
- The setting matters. Period, limits and time frame (day, hour, week) change the signals, as the second figure shows.
- It looks backwards. The RSI is calculated from past closing prices. It does not know about news, earnings or interest rate hikes.
- No indicator predicts the price. The RSI describes, it does not predict. That goes for every indicator.
NoteWhat an indicator showed in the past says nothing about what it will show in the future. All examples on this page are made up to show the calculation and do not prove that the RSI works.
Risk: an indicator does not control loss
An indicator says nothing about how much you may lose. Anyone who trades in the short term takes risk, whichever indicator they use. Wikifin, the FSMA's education platform, calls day trading very risky by definition, among other reasons because it revolves around strongly fluctuating prices, and writes that it takes a lot of knowledge, time and infrastructure. Wikifin also warns about courses that promise to teach all the tricks of day trading in a few days or hours.
That is why every approach needs a plan for loss: how much you are willing to lose at most and when you get out. Which orders you can use for that is covered in stop loss, limit order and trailing stop. A stop loss is not a guarantee, because in a price gap the execution can be far from your level. It does limit the risk on paper, and that is something the RSI does not do. This article is general education, not personal investment advice.
If you are a beginner, start with the difference between trading and investing. Indicators are an extra layer on top of the basics, not a replacement for them.
Frequently asked questions
What is the RSI indicator?
The RSI (Relative Strength Index) is a momentum indicator by J. Welles Wilder Jr. It turns recent price gains and losses into a number between 0 and 100. Wilder presented it in 1978 in his book New Concepts in Technical Trading Systems.
What does an RSI above 70 or below 30 mean?
According to Wilder, an RSI above 70 is overbought and below 30 is oversold. These are reading rules, not predictions: in a strong trend the RSI can stay above 70 for a long time while the price keeps rising.
What is the default RSI setting?
The default is 14 periods, the value Wilder proposed in his book. A shorter period makes the RSI more sensitive, a longer one makes it calmer. Every setting gives different signals on the same prices.
What is RSI divergence?
With divergence the RSI does not move with the price. If the price makes a new high while the RSI forms a lower high, that is called a bearish divergence. In a strong trend this signal can often mislead.
Can the RSI predict the price?
No. The RSI only works with past prices, and no indicator predicts the price. It describes how fast the price moved recently, nothing more.
Keep learning
Hemelaer Invest community
Share analyses, forex outlooks, portfolio updates and educational livestreams, in an active community of investors and traders.
View the communityNew articles in your inbox? . A question? Email klaas@hemelaer-invest.com.
Sources
- StockCharts ChartSchool: Relative Strength Index (RSI) (checked on 30 November 2026)
- CMT Association: What is Technical Analysis? (checked on 30 November 2026)
- Wikifin (FSMA): Day trading (in Dutch) (checked on 30 November 2026)
This article is general information and not personal investment advice. Investing involves risk: you can lose part or all of your money. Past returns say nothing about the future. Tax rules can change and depend on your personal situation. If in doubt, check the official source or ask an accountant for advice.