Free RSI Calculator

Standard RSI uses 14 days. Shorter periods (e.g. 7 or 9) are more sensitive; longer periods (e.g. 20 or 25) are smoother.

Enter price data and click Calculate to see RSI

What Is the RSI Indicator and How Does the RSI Calculator Work?

The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and magnitude of recent price changes. The RSI calculator quickly identifies overbought or oversold conditions, making it a practical stock momentum calculator for timing trades. By condensing price data into a single 0–100 value, this technical analysis tool helps traders assess whether a security is likely to reverse or continue its current trend. Over a default 14‑day period, the Relative Strength Index calculator computes the ratio of average gains to average losses and normalises it to a bounded scale.

Momentum and the Equilibrium Level

The RSI oscillates around a central reference line of 50. Readings above 50 indicate positive momentum (bullish pressure), while values below 50 signal negative momentum (bearish pressure). The further the index moves away from 50, the stronger the prevailing move, but also the higher the chance of a trend exhaustion. This balance between buying and selling pressure is the core principle behind the RSI indicator calculator.

Interpreting Overbought and Oversold Regions

For a standard 14‑day RSI, two conventional threshold levels are used:

  • Overbought zone (RSI ≥ 70): Suggests that the price has risen too far, too fast, and a downward correction or reversal may be near. Traders often consider selling or tightening stops.
  • Oversold zone (RSI ≤ 30): Implies the price may be undervalued and due for a bounce or uptrend. This can serve as a potential buying opportunity.

It is crucial to note that these thresholds are not absolute rules. In strong trends, the RSI can remain above 70 or below 30 for extended periods. Confirmation from other technical tools—such as moving averages, support/resistance levels, or volume—is recommended before acting on a signal.

The RSI Formula and Step‑by‑Step Calculation

The RSI is derived from the relative strength (RS) ratio:

RSI=100−1001+RSRSI = 100 - \frac{100}{1 + RS}

where

RS=Average of gains over the periodAverage of losses over the periodRS = \frac{\text{Average of gains over the period}}{\text{Average of losses over the period}}

To calculate the first RSI point for a 14‑day period:

  1. Collect 15 consecutive closing prices to obtain 14 price changes.
  2. For each day, compute Pt+1−PtP_{t+1} - P_{t}. If the difference is positive, record the gain; if negative, record the loss as a positive number (absolute value).
  3. Sum all gains and all losses separately.
  4. Divide each sum by 14 to obtain the average gain and average loss.
  5. Calculate RS and then RSI.

Example using hypothetical data:

DayPriceChangeGainLoss
150.00–––
251.00+1.001.000
350.50–0.5000.50
……………

Suppose after 14 changes the total gains = 18.71 and total losses = 11.56.

Average Gain=18.7114=1.336\text{Average Gain} = \frac{18.71}{14} = 1.336 Average Loss=11.5614=0.826\text{Average Loss} = \frac{11.56}{14} = 0.826 RS=1.3360.826=1.617RS = \frac{1.336}{0.826} = 1.617 RSI=100−1001+1.617=61.81RSI = 100 - \frac{100}{1 + 1.617} = 61.81

A value of 61.81 places the security in positive momentum territory (above 50) but still below the overbought line.

Updating the RSI with New Data

After the initial RSI is computed, subsequent values are calculated using a smoothing technique that incorporates the previous average:

New Avg Gain=(Prev Avg Gain×13)+Current Gain14\text{New Avg Gain} = \frac{(\text{Prev Avg Gain} \times 13) + \text{Current Gain}}{14} New Avg Loss=(Prev Avg Loss×13)+Current Loss14\text{New Avg Loss} = \frac{(\text{Prev Avg Loss} \times 13) + \text{Current Loss}}{14}

New RS and RSI are then recomputed. This method gives the RSI a moving average quality, allowing it to follow price changes without resetting each period.

Practical Example: Spotting Trend Reversals with RSI and Moving Averages

A real‑world illustration shows how the RSI can be combined with simple moving averages (SMAs) to improve signal reliability. Consider the SPY ETF during the March 2020 sell‑off. Using a 7‑day RSI with overbought/oversold bands set to 80/20 (to capture the volatility), together with 7‑, 20‑, and 50‑day SMAs:

  • A bearish divergence appeared while the price was still rising: the RSI made lower highs while the price made higher highs. This warned that upward momentum was weakening.
  • When the price crossed below the 20‑day SMA and the RSI dropped below 50, a sell signal was confirmed—allowing early exit before the steep decline.
  • After the crash, the RSI entered the oversold zone and then formed a bullish divergence (higher lows on RSI while the price made lower lows). The subsequent cross of the 7‑day SMA above the 20‑day SMA, combined with RSI moving above 50, generated a buy signal near 278 USD.

By heeding these RSI signals, a trader could have avoided the worst of the crash while still participating in the recovery. This demonstrates why the overbought oversold calculator is most effective when used alongside other technical analysis tools.

Key Takeaways and Best Practices

  • The RSI is versatile: it can be applied to stocks, ETFs, currencies, and commodities.
  • Adjust the period (e.g., 9 or 25 days) and threshold levels (e.g., 80/20 for short‑term trading) to fit your timeframe.
  • Always use the RSI in conjunction with price action, trendlines, and volume for higher probability setups.
  • The free online RSI calculator makes it simple to compute the indicator instantly, so you can focus on interpreting the signals rather than the arithmetic.

Whether you are a day trader monitoring intra‑hour moves or a swing investor analysing weekly charts, the Relative Strength Index Calculator provides a straightforward way to gauge momentum and identify potential turning points.

FAQ

1. How do I calculate the RSI manually for a 14-day period?

First, collect 15 consecutive closing prices to get 14 price changes. Separate gains and losses, average each over 14, then compute RS = average gain ÷ average loss. Finally, RSI = 100 – 100÷(1 + RS).

2. Does an RSI above 70 always mean I should sell?

No. RSI ≥ 70 suggests overbought conditions, but in strong uptrends it can stay above 70 for extended periods. It is best used with other indicators, such as moving averages or volume, before making a sell decision.

3. What is the difference between RSI divergence and a normal overbought/oversold reading?

Divergence occurs when the price and the RSI move in opposite directions (e.g., price makes a higher high but RSI makes a lower high). This signals weakening momentum and a possible trend reversal, while a simple overbought reading only indicates the price has moved far from the average.

4. Can I use the RSI calculator for cryptocurrencies or commodities?

Yes, the RSI is a universal momentum indicator. You can apply it to any market with price data—stocks, ETFs, crypto, forex, or commodities—as long as you have a series of closing prices.

5. I see RSI values change each day. How is the indicator updated?

After the first RSI is computed, the average gain and loss are updated using a smoothing formula: new average = (previous average × 13 + current gain or loss) ÷ 14. This allows the RSI to move smoothly with new price data.

How to Use

  1. Enter the RSI lookback period (typically 14 days for standard RSI analysis).
  2. Enter at least period + 1 price data points separated by commas, spaces, or new lines.
  3. Click 'Calculate RSI' to see your Relative Strength Index value, trading signal, and supporting metrics.