Get Answers
TRADING

Relative Strength Index (RSI): Definition, Formula, Trading Strategies & Divergence

The Relative Strength Index (RSI) is a bounded momentum oscillator used in technical analysis that quantifies the velocity and magnitude of recent directional price changes on a scale from 0 to 100 to evaluate overbought and oversold market conditions.

By Zachary 'Zach' Cole, CMT • Reviewed by Lauren Cross, CMT, Series 7/63 • Updated November 4, 2026
Relative Strength Index (RSI): Definition, Formula, Trading Strategies & Divergence

Key Takeaways

  • Developed by J. Welles Wilder Jr. in 1978, RSI measures price momentum over a default 14-period lookback window.
  • Values above 70 indicate overbought conditions susceptible to pullbacks; values below 30 signal oversold conditions ripe for mean reversion.
  • Bullish and bearish divergences between price action and RSI oscillator peaks provide high-probability trend reversal signals.
  • In strong persistent secular trends, RSI can remain pinned in overbought or oversold territory for extended periods without reversing.

In technical analysis, algorithmic trading, and quantitative momentum research, the Relative Strength Index (RSI) is among the most widely utilized technical indicators in the world. Introduced by mechanical engineer and technical analyst J. Welles Wilder Jr. in his 1978 landmark work, New Concepts in Technical Trading Systems, the RSI provides traders with an objective mathematical gauge of directional buying and selling pressure.

Unlike simple moving averages that track price direction, RSI tracks momentum velocity, identifying exhaustion points where institutional buying or selling has reached statistical extremes.

Mechanics Breakdown: The Anatomy of a Momentum Oscillator

The RSI functions as a bounded oscillator, oscillating continuously between a minimum value of 0 and a maximum value of 100.

  1. 14-Period Default Lookback: Wilder selected 14 periods as the optimal intermediate cycle, representing approximately half of a lunar month. On a daily chart, each calculation evaluates the prior 14 completed trading days.
  2. Gain/Loss Separation: The indicator isolates upward price changes from downward price changes. Days with positive closes are recorded as Gains; days with negative closes are recorded as Losses (expressed as positive absolute values).
  3. Wilder’s Exponential Smoothing: Rather than utilizing a simple arithmetic moving average, Wilder developed a specialized modified exponential moving average that gives 1/14th weight to the current period and 13/14ths weight to the previous smoothed average.
  4. Boundary Normalization: The ratio of smoothed average gains to smoothed average losses is indexed to a 0–100 scale. This ensures that no matter how violently an asset rallies or plunges, the indicator remains strictly bounded.
  5. Threshold Zones:
    • Overbought ($\ge 70$): Signals that price has advanced rapidly; buying momentum may be overextended and vulnerable to consolidation or profit-taking.
    • Oversold ($\le 30$): Signals that price has dropped precipitously; selling pressure may be exhausted and prone to a technical short-covering rebound.
    • Bullish Regime (40–80): In bull trends, RSI typically oscillates between support at 40 and resistance near 80.
    • Bearish Regime (20–60): In sustained downtrends, RSI typically tops out near 60 and bottoms near 20.

Formulas and Calculations: Wilder’s Mathematical Model

The computation of the Relative Strength Index involves two steps: calculating Relative Strength (RS) and indexing the result.

1. The Core RSI Equation

RSI = 100 - [100 / (1 + RS)]

Where:

  • RS = Relative Strength = Smoothed Average Gain / Smoothed Average Loss

2. Initial 14-Period Averages (First Calculation)

For the very first 14 periods on a chart:

Initial Average Gain = Sum of Gains over past 14 periods / 14
Initial Average Loss = Sum of Losses over past 14 periods / 14

3. Subsequent Smoothed Averages (Wilder’s Smoothing Formula)

For period 15 and all future periods:

Smoothed Average Gain = [(Previous Average Gain × 13) + Current Gain] / 14
Smoothed Average Loss = [(Previous Average Loss × 13) + Current Loss] / 14

If Current Gain = 0 on a down day, the current gain added is 0. If Current Loss = 0 on an up day, the current loss added is 0.

Step-by-Step Mathematical Demonstration

Consider a hypothetical security over 15 trading days with the following calculated 14-day performance:

  • Sum of Gains over Days 1–14: $28.00
  • Sum of Losses over Days 1–14: $14.00
Step 1: Calculate Initial Averages (Day 14):
Initial Average Gain = $28.00 / 14 = $2.00
Initial Average Loss = $14.00 / 14 = $1.00

Step 2: Calculate Day 14 RS and RSI:
RS = $2.00 / $1.00 = 2.00
RSI = 100 - [100 / (1 + 2.00)]
RSI = 100 - [100 / 3.00] = 100 - 33.33 = 66.67

Step 3: Calculate Day 15 with Current Gain = $3.50 (Loss = $0.00):
Smoothed Average Gain = [($2.00 × 13) + $3.50] / 14 = [$26.00 + $3.50] / 14 = $29.50 / 14 = $2.107
Smoothed Average Loss = [($1.00 × 13) + $0.00] / 14 = $13.00 / 14 = $0.929

Step 4: Calculate Day 15 New RS and RSI:
RS = $2.107 / $0.929 = 2.268
RSI = 100 - [100 / (1 + 2.268)]
RSI = 100 - [100 / 3.268] = 100 - 30.60 = 69.40

The surge of $3.50 lifted the 14-day RSI from 66.67 to 69.40, placing the security directly on the threshold of the overbought 70 barrier.

Hypothetical Real-World Scenario: Bullish Divergence on Tech Stock

Security: NovaMicro Semiconductor Inc. (Ticker: NVMC)
Timeframe: Daily Swing Trading Chart (2026 Trading Environment)

Date         Close Price   14-Day RSI   Price Pattern            RSI Pattern
May 12       $124.50       28.4         Swing Low 1 (Oversold)   Trough 1 (28.4)
May 19       $131.00       44.2         Counter-trend Rally      Centerline Test
May 28       $118.00       34.8         Lower Low (New Low)      Higher Low (34.8)

Technical Trade Analysis:

  1. Divergence Identification: On May 28, NVMC broke below its previous $124.50 low, printing a fresh low at $118.00. However, the 14-day RSI printed a higher low at 34.8 compared to its previous 28.4 reading. This formed a textbook Regular Bullish Divergence, proving that institutional selling momentum was decelerating despite lower nominal prices.
  2. Trade Trigger: On May 30, NVMC broke above the 5-day EMA with a concurrent RSI cross above 40. A swing trader enters long at $121.50 with a stop-loss anchored below the swing low at $116.50 (Risk: $5.00/share).
  3. Execution & Exit: Over the subsequent three weeks, NVMC advanced in an impulsive five-wave rally, reaching $136.50 where RSI touched 72.5.
  4. Outcome: The trader captures +$15.00 per share (+12.3% gain) on a 3:1 reward-to-risk ratio. The trader combines this with a Moving Average Crossover for secondary confirmation.

Advantages and Disadvantages of RSI

AdvantagesDisadvantages
Quantifies overbought and oversold momentum on a normalized 0–100 scaleGenerates premature exit signals during powerful trending breakout runs
Regular divergences offer reliable leading signals of potential price reversalsCan stay pegged above 70 or below 30 for weeks during strong institutional moves
Simple math easily programmed into automated quantitative backtesting scriptsSensitive to choppy sideways ranges where false whipsaws proliferate
Effective across multiple timeframes (1-minute scalping to weekly macro charts)Requires secondary confluence (volume, support/resistance, moving averages)

Frequently Asked Questions

What is the standard period setting for the RSI indicator?

The standard default setting developed by J. Welles Wilder Jr. is 14 periods (14 daily candles on daily charts, or 14 hours on hourly charts). Day traders often shorten the setting to 9 or 7 periods for heightened sensitivity, while position traders may extend it to 21 or 25 periods to reduce market noise.

What constitutes an RSI divergence?

An RSI divergence occurs when price action diverges from the oscillator’s trajectory. A Regular Bullish Divergence forms when price prints a lower low while the RSI forms a higher low, indicating waning selling momentum. A Regular Bearish Divergence forms when price prints a higher high while the RSI forms a lower high.

What is an RSI Failure Swing?

A Failure Swing is a potent reversal pattern identified by Wilder that does not rely on price divergence. A bullish failure swing occurs when RSI drops below 30, bounces above 30, pulls back without breaching 30, and then breaks its previous swing high.

How does the RSI centerline (50 level) function?

The 50 level represents the midpoint momentum threshold. An RSI crossing above 50 confirms that average gains exceed average losses, validating bullish market momentum. A cross below 50 confirms prevailing bearish momentum.

How does RSI differ from MACD?

RSI is a bounded oscillator (0 to 100) measuring the speed of price movement over a single time window. MACD is an unbounded indicator measuring the relationship and convergence/divergence between two exponential moving averages (typically 12-period and 26-period EMAs).

Multi-Indicator Technical Confirmation

Professional momentum traders rarely execute trades on RSI divergences alone. Desks routinely require directional confirmation from Moving Average Convergence Divergence (MACD) signal line crosses, institutional Moving Average Crossover benchmarks, and compliance with the FINRA Pattern Day Trader Rule for active accounts.

The Bottom Line

The Relative Strength Index remains an essential component of modern technical trading and quantitative momentum analysis. By translating complex price velocity into a standardized, intuitive scale, RSI allows disciplined traders to identify extreme overbought and oversold conditions, spot high-conviction divergence reversals, and manage risk with mathematical precision.


Editorial & Financial Disclaimer: TXTIA is an independent financial education publisher. The technical indicator calculations, chart patterns, and trading scenarios presented above are for informational and educational purposes only and do not constitute financial or investment advice. Technical analysis involves substantial risk of loss and should always be paired with strict risk management controls.

Frequently Asked Questions

What is the standard period setting for the RSI indicator?
The standard default setting developed by J. Welles Wilder Jr. is 14 periods (14 daily candles on daily charts, or 14 hours on hourly charts). Day traders often shorten the setting to 9 or 7 periods for heightened sensitivity, while position traders may extend it to 21 or 25 periods to reduce market noise.
What constitutes an RSI divergence?
An RSI divergence occurs when price action diverges from the oscillator's trajectory. A Regular Bullish Divergence forms when price prints a lower low while the RSI forms a higher low, indicating waning selling momentum. A Regular Bearish Divergence forms when price prints a higher high while the RSI forms a lower high.
What is an RSI Failure Swing?
A Failure Swing is a potent reversal pattern identified by Wilder that does not rely on price divergence. A bullish failure swing occurs when RSI drops below 30, bounces above 30, pulls back without breaching 30, and then breaks its previous swing high.
How does the RSI centerline (50 level) function?
The 50 level represents the midpoint momentum threshold. An RSI crossing above 50 confirms that average gains exceed average losses, validating bullish market momentum. A cross below 50 confirms prevailing bearish momentum.
How does RSI differ from MACD?
RSI is a bounded oscillator (0 to 100) measuring the speed of price movement over a single time window. MACD is an unbounded indicator measuring the relationship and convergence/divergence between two exponential moving averages (typically 12-period and 26-period EMAs).

The Bottom Line

Understanding Relative Strength Index (RSI) is essential for making sound financial decisions in today's complex markets. The core mechanics, formulas, and real-world scenarios outlined in this guide are regularly reviewed and updated by our credentialed editorial team to reflect the current 2026 rate environment and regulatory landscape. Whether you are a retail investor building long-term wealth or a finance professional sharpening technical knowledge, applying these principles with consistent discipline separates informed decision-making from costly financial mistakes.

Editorial & Financial Disclaimer: TXTIA is an independent financial education and research publisher. The educational content, calculations, and scenarios presented on this page are for informational purposes only and do not constitute individual investment, legal, or tax advice. Consult a licensed fiduciary financial advisor (CFP®) or certified public accountant (CPA) regarding your specific financial situation.