An RSI calculator measures the speed and size of recent price moves on a scale from 0 to 100. The relative strength index compares the average of the period's gains with the average of its losses. Paste a list of closing prices from oldest to newest, choose a period, and the calculator gives the RSI for the latest close, the smoothed average gain and loss behind it, and whether the reading is in the overbought, oversold or neutral zone.
The RSI formula
U = close − previous close if positive, otherwise 0
D = previous close − close if positive, otherwise 0
RS = smoothed average of U ÷ smoothed average of D
RSI = 100 − 100 ÷ (1 + RS)
The calculation works like this. Each period's change is split into an upward part U and a downward part D, both non-negative. The averages are smoothed moving averages with a smoothing factor of one divided by the period n, which Wilder's update gives as new value = (previous value × (n − 1) + new data) ÷ n. The first average is a simple average of the first n values. RS is the ratio of the two averages, and the RSI converts it to a 0 to 100 scale.
How to use the RSI calculator
- Paste the closing prices from oldest to newest.
- Set the period, or leave it blank for 14.
- Press Calculate.
Worked example
Take 15 closing prices, 44 up to 46.28, as in the placeholder. That gives 14 price changes. The average gain is 0.2629 and the average loss is 0.1, so RS is 2.63 and the RSI is 100 − 100 ÷ 3.63 = 72.44. With exactly one period of changes, Wilder's smoothing and a simple average are the same, so Cutler's RSI is also 72.44. Add five more closes and the two methods drift apart: Wilder's RSI becomes 67.89, in the neutral zone, while Cutler's is 73.33. The sample prices are an illustration, not market data.
The 14-period default
Wilder used a smoothing period of 14. A shorter period makes the RSI react faster and swing more widely, suiting shorter outlooks, and a longer period makes it smoother. The period is a setting rather than a fixed rule. The calculator needs at least one more price than the period, because the first change needs a previous close.
Overbought and oversold
A conventional upper line is at 70 and a lower line at 30, with 50 as the midline. A reading above 70 is called overbought and below 30 oversold, and between the two is neutral. Some traders use 80 and 20, or 90 and 10, which are reached less often and signal stronger momentum. A reading beyond a line is not a sell or buy signal by itself: in a strong trend the index can stay above 70 or below 30 for a long time.
Divergence and trend ranges
Bearish divergence is when the price makes a new high but the RSI makes a lower high, and bullish divergence is when the price makes a new low but the RSI makes a higher low. Ranges suggested by Cardwell hold that an uptrend tends to keep the RSI roughly between 40 and 80 and a downtrend between 60 and 20. To look for these patterns, calculate the RSI for several dates and compare it with the price over the same dates.
Cutler's version
Cutler's RSI uses a simple moving average of the gains and losses over the last n changes instead of Wilder's smoothing. The two give different numbers once there are more prices than the period, because Wilder's average remembers every earlier change and fades them gradually. The calculator shows both so that you can match whichever your charting platform uses. Check the platform's setting before comparing numbers.
Edge cases
If the average gain is zero the RSI is 0, and if the average loss is zero it is 100. When the two averages are equal, RS is 1 and the RSI is 50. If every price is the same, both averages are zero and the RSI is undefined, so the calculator reports it rather than inventing a value. For a smoothed price line to go with it, the moving average calculator works on the same list, and the pivot point calculator gives support and resistance levels.
Choosing how many prices to paste
Wilder's smoothing remembers every earlier change, so the RSI depends a little on how far back the list begins. The first average is a simple average of the first period's changes, and each later change adjusts it gradually. If you want a figure that matches a charting platform, paste as many closing prices as that platform uses, ideally the same start date. A list with just one more price than the period uses no smoothing at all, which is why the two methods agree in that case.
Using the RSI with other tools
The RSI looks only at the direction and size of closing prices, so it is usually read alongside other information such as the trend and the volume. It says nothing about why prices moved, and it can give misleading readings around news that changes a company's prospects. Treat it as one way of describing recent momentum, and combine it with your own analysis rather than acting on a single reading.
Common mistakes
- Listing prices newest first. Put the oldest first.
- Too few prices. You need at least the period plus one.
- Comparing with a platform that uses another method. Check Wilder or simple averaging.
- Treating 70 or 30 as a signal. Strong trends can stay beyond the lines.
What next
Use this often? Add RSI to your Home screen.
Frequently asked questions
How does an RSI calculator work?
It averages the period's gains and losses, divides one by the other, and converts the ratio to a 0–100 scale.
What is the RSI formula?
RSI = 100 − 100 ÷ (1 + RS), where RS is the average gain divided by the average loss.
What period does Wilder recommend?
14, as Wilder used it.
What do 70 and 30 mean on the RSI?
Readings above 70 are called overbought and below 30 oversold.
What is the difference between Wilder's and Cutler's RSI?
Wilder uses a smoothed average, Cutler a simple average of the last n changes.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.