RSI Calculator

Calculate RSI step by step from your own prices.

Your numbers

Your prices

Paste one price per line or separate them with commas. You need at least the period plus one prices.

Settings

14 is the period J. Welles Wilder used. Shorter periods move more.

Results update as you type. Nothing you enter leaves your browser.

Your results

Latest 14-period RSI

37.79

That's between the two lines (30 and 70). The one before was 33.09.

Average gain
0.18
Average loss
0.30
Highest RSI here
70.46
Lowest RSI here
33.09

RSI compares the size of recent gains with recent losses on a 0 to 100 scale. Readings over 70 are called overbought and under 30 oversold by convention, but strong trends can stay there for a long time, so they aren't buy or sell signals on their own.

See the full breakdown

Estimates based on your inputs and the assumptions listed below. Not tax, financial or lending advice. Disclaimer

Your full breakdown

RSI over time

The first RSI appears at price 15, once there are 14 changes to average. Bottom axis: price number, oldest first.

RSI 14Overbought 70Oversold 30
0204060801611162126331: RSI 14 -, Overbought 70 70.0, Oversold 30 30.02: RSI 14 -, Overbought 70 70.0, Oversold 30 30.03: RSI 14 -, Overbought 70 70.0, Oversold 30 30.04: RSI 14 -, Overbought 70 70.0, Oversold 30 30.05: RSI 14 -, Overbought 70 70.0, Oversold 30 30.06: RSI 14 -, Overbought 70 70.0, Oversold 30 30.07: RSI 14 -, Overbought 70 70.0, Oversold 30 30.08: RSI 14 -, Overbought 70 70.0, Oversold 30 30.09: RSI 14 -, Overbought 70 70.0, Oversold 30 30.010: RSI 14 -, Overbought 70 70.0, Oversold 30 30.011: RSI 14 -, Overbought 70 70.0, Oversold 30 30.012: RSI 14 -, Overbought 70 70.0, Oversold 30 30.013: RSI 14 -, Overbought 70 70.0, Oversold 30 30.014: RSI 14 -, Overbought 70 70.0, Oversold 30 30.015: RSI 14 70.5, Overbought 70 70.0, Oversold 30 30.016: RSI 14 66.2, Overbought 70 70.0, Oversold 30 30.017: RSI 14 66.5, Overbought 70 70.0, Oversold 30 30.018: RSI 14 69.3, Overbought 70 70.0, Oversold 30 30.019: RSI 14 66.3, Overbought 70 70.0, Oversold 30 30.020: RSI 14 57.9, Overbought 70 70.0, Oversold 30 30.021: RSI 14 62.9, Overbought 70 70.0, Oversold 30 30.022: RSI 14 63.2, Overbought 70 70.0, Oversold 30 30.023: RSI 14 56.0, Overbought 70 70.0, Oversold 30 30.024: RSI 14 62.3, Overbought 70 70.0, Oversold 30 30.025: RSI 14 54.7, Overbought 70 70.0, Oversold 30 30.026: RSI 14 50.4, Overbought 70 70.0, Oversold 30 30.027: RSI 14 40.0, Overbought 70 70.0, Oversold 30 30.028: RSI 14 41.5, Overbought 70 70.0, Oversold 30 30.029: RSI 14 41.9, Overbought 70 70.0, Oversold 30 30.030: RSI 14 45.5, Overbought 70 70.0, Oversold 30 30.031: RSI 14 37.3, Overbought 70 70.0, Oversold 30 30.032: RSI 14 33.1, Overbought 70 70.0, Oversold 30 30.033: RSI 14 37.8, Overbought 70 70.0, Oversold 30 30.0

Gains, losses and RSI

A gain is a rise from the previous close, a loss is a drop (shown as a positive number).

#CloseChangeGainLossAvg gainAvg lossRSI
22$46.250.040.040.000.200.1263.21
23$45.71-0.540.000.540.190.1556.01
24$46.450.740.740.000.230.1462.34
25$45.78-0.670.000.670.210.1854.67
26$45.35-0.430.000.430.200.1950.39
27$44.03-1.320.001.320.180.2740.02
28$44.180.150.150.000.180.2641.49
29$44.220.040.040.000.170.2441.90
30$44.570.350.350.000.180.2245.50
31$43.42-1.150.001.150.170.2937.32
32$42.66-0.760.000.760.160.3233.09
33$43.130.470.470.000.180.3037.79
Show all 33 rows
#CloseChangeGainLossAvg gainAvg lossRSI
1$44.34------
2$44.09-0.250.000.25---
3$44.150.060.060.00---
4$43.61-0.540.000.54---
5$44.330.720.720.00---
6$44.830.500.500.00---
7$45.100.270.270.00---
8$45.420.320.320.00---
9$45.840.420.420.00---
10$46.080.240.240.00---
11$45.89-0.190.000.19---
12$46.030.140.140.00---
13$45.61-0.420.000.42---
14$46.280.670.670.00---
15$46.280.000.000.000.240.1070.46
16$46.00-0.280.000.280.220.1166.25
17$46.030.030.030.000.210.1066.48
18$46.410.380.380.000.220.1069.35
19$46.22-0.190.000.190.200.1066.29
20$45.64-0.580.000.580.190.1457.92
21$46.210.570.570.000.220.1362.88
22$46.250.040.040.000.200.1263.21
23$45.71-0.540.000.540.190.1556.01
24$46.450.740.740.000.230.1462.34
25$45.78-0.670.000.670.210.1854.67
26$45.35-0.430.000.430.200.1950.39
27$44.03-1.320.001.320.180.2740.02
28$44.180.150.150.000.180.2641.49
29$44.220.040.040.000.170.2441.90
30$44.570.350.350.000.180.2245.50
31$43.42-1.150.001.150.170.2937.32
32$42.66-0.760.000.760.160.3233.09
33$43.130.470.470.000.180.3037.79

How it's calculated

First average gain = sum of the first 14 gains / 14 = 0.24. First average loss = 0.10.

After that, Wilder's smoothing: new average = (previous average x 13 + today's gain or loss) / 14.

RS = average gain / average loss. RSI = 100 - 100 / (1 + RS). Latest: RS = 0.61, RSI = 37.79.

Things to know

  • In these prices RSI was at or over 70 1 time and at or under 30 0 times, out of 19 readings.
  • Overbought and oversold are labels, not forecasts. In a strong uptrend RSI can stay over 70 for weeks, and in a downtrend under 30.
  • Some traders use 80 and 20 instead of 70 and 30, or watch for RSI and price moving in opposite directions (divergence). All of these are conventions that often fail.
  • Charting sites may start the average differently, so the first few values can differ slightly from theirs. They converge after enough prices.
  • This is an educational calculator. It doesn't tell you to buy or sell anything.

Short answer

RSI compares average gains with average losses over a period, usually 14. RS is the average gain divided by the average loss, and RSI = 100 - 100 / (1 + RS). Readings over 70 are called overbought and under 30 oversold by convention, but they aren't buy or sell signals.

Example

For these 33 example closing prices, the 14-period RSI is 37.79, with an average gain of 0.18 and an average loss of 0.30.

How it's calculated

Change = today's close - yesterday's close. Gains are the positive changes, losses the negative ones as positive numbers. First average gain and loss = simple averages of the first N changes. After that, Wilder's smoothing: average = (previous average x (N - 1) + today's value) / N. RS = average gain / average loss. RSI = 100 - 100 / (1 + RS).

Assumptions

  • Prices are pasted oldest first.
  • If there are no losses in the period, RSI is 100. If there are no gains or losses, it's shown as 50.
  • Charting sites that round the first averages show slightly different early values; they converge as more prices are added.

Frequently asked questions

How is RSI calculated?

Average the gains and the losses over the period (14 is standard), divide the average gain by the average loss to get RS, then RSI = 100 - 100 / (1 + RS). Later averages use Wilder's smoothing so each new day counts for 1/14.

What does an RSI over 70 mean?

By convention it's called overbought: recent gains have been much larger than recent losses. It doesn't mean prices will fall. In a strong uptrend RSI can stay over 70 for a long time.

Why is my RSI different from a charting site?

Sites start the first average in different ways and some round it, so early values can differ. With enough prices, the numbers converge.

How many prices do I need for RSI?

At least the period plus one, so 15 closes for a 14-period RSI. More prices give values that match charting sites more closely.

Formulas and figures last checked Nov 5, 2026.

Go deeper

Related guides and calculators