Skip to content
OverCalculator
  1. Home
  2. Financial
  3. RSI Calculator (Relative Strength Index)
Financial

RSI Calculator (Relative Strength Index)

Calculate Relative Strength Index from average gain and average loss, see the RS ratio, and interpret 30/70 momentum zones without treating them as trading advice.

Published

Relative strength index
RSI
60.00
Relative strength
1.5
Lookback
14 periods
Signal zone
Neutral

RSI uses average gains and losses over 14 periods; overbought and oversold thresholds are often 70 and 30.

Average positive price change over the lookback period.
Average absolute value of negative price changes over the lookback period.
The common RSI lookback is 14 periods.

Results update as you type.

RSI Calculator (Relative Strength Index)

The RSI calculator converts average gain and average loss into the Relative Strength Index, a 0 to 100 momentum reading used in technical analysis. It is for informational use only and is not trading advice. The result can help you document a chart setup, compare momentum across securities, or check whether a spreadsheet is applying the same formula as this page. It cannot tell you what to buy, sell, short, or hold, and past price patterns do not predict future prices.

This page is intentionally about the calculator’s inputs, not a broker platform or live market feed. You supply the average positive change and the average absolute negative change from your own lookback period. The calculation finds relative strength, transforms it into RSI, labels the zone as oversold, neutral, or overbought, and shows the lookback periods you entered.

What the inputs mean

Average gain is the average size of upward periods in your lookback. If you are using daily data, it is based on daily changes; if you are using hourly data, it is based on hourly changes. Average loss is the average absolute size of downward periods. Enter a loss as a positive number. A day that fell by 0.80 points contributes 0.80 to the loss side, not minus 0.80. Periods records the lookback length, with 14 as the common default. In the current component, the periods value appears in the result and note but does not change the math after you have already entered average gain and average loss.

For sibling tools in this technical-indicator batch, compare RSI with the moving average calculator, the pivot point calculator, and the fibonacci retracement calculator. If you are shifting from chart analysis to position math, the stock average calculator and stock split calculator use different, portfolio-level inputs.

Formula

The calculator first computes relative strength, abbreviated RS:

RS=average gainaverage loss\text{RS} = \frac{\text{average gain}}{\text{average loss}}

It then applies the Relative Strength Index formula:

RSI=1001001+RS\text{RSI} = 100 - \frac{100}{1 + \text{RS}}

There are two edge cases. If average loss is zero and average gain is positive, RS is infinite and the result is an RSI of 100. If average gain and average loss are both zero, it sets RS to 1 and returns RSI of 50, a neutral reading. Inputs must be valid numbers, average gain and average loss must be zero or positive, and periods must be greater than zero.

Example calculation

Use the default entries: average gain 1.20, average loss 0.80, and 14 periods. Relative strength is 1.20 divided by 0.80, which equals 1.50. The RSI formula then becomes 100 minus 100 divided by 2.50. That is 100 minus 40, so the primary result is 60.00. The details panel shows relative strength 1.5, lookback 14 periods, and signal zone Neutral because 60 is neither at least 70 nor at most 30.

If average gain were 2.80 and average loss were 0.70, RS would be 4.00 and RSI would be 80.00, which the calculator labels Overbought. If average gain were 0.40 and average loss were 1.60, RS would be 0.25 and RSI would be 20.00, which it labels Oversold. These labels are descriptive, not instructions. A high reading can persist in a strong uptrend; a low reading can persist in a downtrend.

How traders use RSI

Traders often use RSI to organize a watchlist. A market with RSI near 70 may be extended relative to its recent losses, while a market near 30 may have fallen hard relative to its recent gains. Some users look for divergence, where price makes a new high but RSI does not, or price makes a new low while RSI improves. Others combine RSI with trend filters, such as a moving average, so they avoid fighting the dominant direction.

Those practices still rely on judgment. RSI is calculated from historical price changes, so it does not know about pending earnings, regulatory news, overnight gaps, option expiration, liquidity changes, or macroeconomic surprises. It also does not include bid-ask spreads, slippage, commissions, taxes, or your personal risk tolerance. A disciplined trader may use RSI to frame a question, but the indicator alone does not answer whether a trade is suitable.

Common mistakes

  • Entering average loss as a negative number. The calculator expects the absolute size of losses.
  • Assuming the periods field recalculates average gain and average loss from raw prices. It does not; you must provide the averages.
  • Treating 70 and 30 as automatic orders instead of momentum reference zones.
  • Comparing RSI readings built from different lookbacks without noting that shorter periods react faster.
  • Forgetting that RSI can stay overbought or oversold during persistent trends.

Formula sources and scope

  • Principles of Finance — OpenStax, Rice University (peer-reviewed open textbook); 2022 first edition, ISBN 978-1-951693-54-1; Jurisdiction-neutral finance definitions. Supports: RS=averageGain/averageLoss; RSI=100-100/(1+RS); averageLoss=0 branch is 100 unless both averages are zero. Accessed 2026-07-09.

These sources support the stated formula or definition. Results remain estimates based on the entered values and do not replace financial, legal, tax, lending, or investment advice. Compare periods, units, accounting definitions, and jurisdiction-specific rules before acting.

Sources

Frequently asked questions

How does this RSI calculator get its answer?
It divides average gain by average loss to get relative strength, then applies the Relative Strength Index formula. If average loss is zero and average gain is positive, the result is 100. If both inputs are zero, the result is a neutral 50.
Why does the form ask for average gain and average loss?
RSI is built from smoothed average upward price changes and smoothed average downward price changes over a lookback. The form does not fetch chart data, so you enter those averages directly. Average loss should be the absolute size of losing periods, not a negative number.
Is a 14-period RSI required?
No. Fourteen periods is the classic default and the calculator shows that lookback in its result, but the periods field is informational for your setup. Shorter lookbacks react faster and can be noisier; longer lookbacks smooth more and respond later.
Does RSI above 70 mean I should sell?
No. A 70 reading is commonly described as overbought, but it is not a guaranteed sell signal. Strong trends can keep RSI elevated, and prices can continue rising. Use RSI as context with risk controls, not as trading advice.
Does RSI below 30 mean I should buy?
No. A 30 reading is commonly described as oversold, but oversold markets can keep falling. The level may help identify a chart worth reviewing, yet it does not predict a reversal or remove the need for independent analysis.
Can RSI predict future prices?
No indicator can reliably predict future prices. RSI summarizes past gains and losses in a standardized way, so it can describe momentum conditions that already happened. News, liquidity, earnings, interest rates, and market structure can overwhelm any historical pattern.

Related calculators

RSI Calculator (Relative Strength Index) updated at