← Blog

How to Calculate Relative Strength: Ratio & Rating

November 23, 2026

Key takeaways

  • Relative strength is an asset's price divided by a benchmark's price on the same dates; a rising ratio means outperformance even if the asset falls in absolute terms.
  • The raw RS ratio is unitless, so normalize it by dividing by its own moving average (Mansfield-style) before comparing or ranking across stocks.
  • An IBD-style RS rating is a 1–99 percentile rank of a weighted 12-month performance composite and requires a cross-sectional universe to compute.
  • Match the benchmark to the asset class: SPY for US stocks, the US Dollar Index for FX pairs, and BTC or total crypto market cap for coins.
  • Use split- and dividend-adjusted closes and align dates and intervals between asset and benchmark, or the ratio will produce false signals.

To calculate relative strength, divide an asset's price by a benchmark's price on the same dates, producing a ratio whose trend tells you whether the asset is outperforming or underperforming. The full method is three steps: build the price ratio, smooth or normalize it for comparability, then optionally convert it into a percentile-style rating. This guide walks through each step with a reproducible spreadsheet example and the calculation errors most write-ups skip.

What does relative strength actually measure (and what does it not)?

Relative strength (RS) measures the performance of one asset against another: a stock against the S&P 500, a sector against the broad market, one currency against a peer. It answers a single question: is this asset outperforming or underperforming its benchmark? That ratio, plotted over time, is the RS line.

RS ratio vs RSI: two different indicators

The relative strength index (RSI) is a momentum oscillator measuring the speed of price changes on a 0–100 scale. RS is a ratio of two prices. The names overlap; the calculations share nothing.

IBD's RS Rating builds on the ratio concept, ranking stocks on a 1–99 scale from a weighted composite of quarterly performance, per IBD's RS Rating explainer.

If you scan with Finviz today, an RS line adds the benchmark context a screener alone omits; our Finviz alternative comparison covers that gap.

How do you calculate a relative strength ratio step by step?

The base formula

Relative strength is the asset's price divided by the benchmark's price, on the same date. If a stock closes at 150 and the S&P 500 closes at 5,000, the ratio is 150 ÷ 5,000 = 0.030. Plot that ratio for every bar and you get the RS line. A rising line means the stock is outperforming the benchmark; a falling line means it is lagging, even if the stock is rising in absolute terms. That distinction is the whole point: a stock up 3% in a market up 8% is weak, and the ratio shows it.

The ratio itself is unitless and its absolute level is meaningless. Only the slope and its behavior relative to prior values matter, so do not compare raw ratio levels across stocks. Normalization fixes that, and it gets its own section later.

Choosing a calculation interval

Use closing prices on a fixed interval, and match the interval to your holding period. Weekly closes suit swing traders holding weeks to months because they smooth out daily noise; daily closes suit shorter swings and pre-market planning against the prior session. Whatever you pick, apply the same interval and the same session timestamps to both the asset and the benchmark, or the ratio will mix mismatched bars and produce false inflections. Once the series is built, most traders read it against a moving average of the ratio, the way Mansfield-style charts do, before deciding whether an entry/stop/target setup has genuine relative strength behind it.

Worked example: computing an RS line in a spreadsheet

Step 1: pull aligned price series

Download 60+ daily closes for a stock and its benchmark (here, a stock vs. the S&P 500) so the 50-period moving average has data. Align by date and delete any rows where either series is missing.

Step 2: compute the raw ratio

In column C, divide stock price by benchmark price for each row: =A2/B2. With the stock at $52.40 and the index at 5,180.00, the ratio is 0.010116. Repeat for every date to build the RS ratio series.

Step 3: apply the Mansfield normalization

The Mansfield method smooths the ratio with a long moving average, then rescales around zero using: (ratio / MA(ratio, 50) − 1) × 100 (Investopedia on relative strength). In the spreadsheet: =C2/AVERAGE(C2:C51)*100-100 entered at row 51, then filled down.

DateStockIndexRatio50-day MAMansfield RS
Mar 152.405,180.000.0101160.009980+1.36
Mar 1554.105,205.000.0103940.010050+3.42

Step 4: read the result

A positive, rising Mansfield line means the stock is outperforming its benchmark; a cross below zero flags weakening relative strength. Scan for stocks holding above zero during pullbacks, or rank your watchlist by the slope of the line. Tools like Daily Market Desk rank assets on this kind of normalized strength so you can compare across sectors without rebuilding the sheet.

How do you normalize a relative strength line so it is comparable across stocks?

A raw RS ratio has no fixed scale. A stock trading at $400 against a benchmark at 5,000 produces a ratio near 0.08, while a $12 stock produces 0.0024. The two lines can't share a chart axis, and a ratio of 1.02 tells you nothing about whether that's strong or weak for that pair.

Mansfield-style normalization formula

Normalize by dividing the ratio by its own moving average, then multiply by 100:

Normalized RS = (RS ratio ÷ SMA of RS ratio, n periods) × 100

Pick one lookback, typically 52 weeks, and apply it to every stock you scan. Now 100 is the neutral line: above 100 means the stock is outperforming its own average relationship to the benchmark, below 100 means lagging. A reading of 108 in one ticker is directly comparable to 108 in another, regardless of price scale. This is the same construction Stan Weinstein popularized, and it's what makes multi-asset scans practical. Our screeners at DAILY MARKET DESK apply consistent normalization across every asset in a scan for exactly this reason.

When normalization matters and when it does not

It matters whenever you rank or compare: cross-sector scans, sector rotation screens, any watchlist sorted by relative strength. Unnormalized ratios make that ranking meaningless.

Skip it when you're reading a single stock's RS line against price. The slope, trend breaks, and divergence with price are visible on the raw ratio, and normalization can smooth away the exact turns you're watching for an entry.

How is the IBD-style RS rating calculated differently from a simple RS ratio?

An IBD-style RS rating is not a line on your chart. It is a single percentile score, 1 to 99, that ranks a stock's trailing 12-month performance against every other stock in the universe.

The weighted performance composite

Instead of treating all 12 months equally, the composite weights recent quarters more heavily, roughly 40/20/20/20 across the most recent to oldest three-month periods. The raw inputs are each quarter's percentage price change, computed on a split- and dividend-adjusted series so corporate actions do not distort the score. Use the adjusted close your data provider supplies; most, like Yahoo Finance's historical price data, publish adjusted columns for exactly this reason.

Percentile ranking: why you cannot compute it alone

The composite means nothing in isolation. You rank every stock's score, then assign each a percentile scaled 1 to 99. That requires a cross-sectional universe, which is why a spreadsheet works for one ticker but a screener or a platform like Daily Market Desk's features is what turns the calculation into a usable daily ranking.

Which benchmark should you use when calculating relative strength?

The ratio is only as honest as the benchmark behind it. Match the benchmark to the asset class you are trading, because an RS line against the wrong index measures the wrong question.

Matching benchmark to asset class

For US stocks, SPY or the S&P 500 is the default: you are asking whether this name is beating the broad market. For FX pairs, measure against the US Dollar Index or a currency basket, since a pair's "strength" is really the dollar on the other side. For crypto, use BTC for altcoins or total crypto market cap for BTC itself.

Sector vs index benchmarks for rotation trades

If you trade sector rotation, run the ratio against the relevant sector ETF. A bank stock can show weak RS against SPY while leading financials, which is exactly the reading rotation traders need. Calculate both: the index ratio tells you whether to be in the sector at all, the sector ratio tells you which name to own.

What are the most common mistakes when calculating relative strength?

Wrong benchmark

An RS ratio against the wrong index answers the wrong question. Comparing an FX pair to the S&P 500 produces a line that mostly measures asset-class rotation, not strength. Match the benchmark to the universe you actually trade: SPX or QQQ for US equities, a crypto basket for coins.

Unnormalized ratios

A raw price ratio is only comparable on its own chart. If you paste two stocks' RS ratios side by side, the one with the higher starting price dominates the scale. Normalize each series (Mansfield-style, rebased to zero) before ranking across names.

Lookback mismatches

If your benchmark series is daily and your asset series is weekly, or one starts in 2015 and the other in 2018, the ratio is garbage. Align dates and frequencies first, then divide.

Unadjusted price data

A split makes the raw price gap 50% overnight, and the RS line collapses for no fundamental reason. Use split- and dividend-adjusted closes; Finviz's screener documentation notes adjusted data underlies its technical filters, and most charting platforms flag the adjustment setting on the symbol.

How do you plot and interpret the RS line once calculated?

Chart setup and interpretation

Paste the RS ratio (or normalized line) into a pane below price, or overlay it directly on the price chart scaled to fit. Three reads matter most: RS making new highs while price has not, RS breaking its own downtrend, and the slope of a 20- or 50-period MA on the RS line, which works as a market regime filter for your watchlist. Divergence cuts both ways: price new highs on a flat RS line warn you the move is narrow.

Tooling: from manual spreadsheets to ranked scans

TradingView lets you plot a ratio of two symbols as a chart, so the raw RS line is one ticker away. Finviz covers fast screener-level filtering, and Koyfin adds graphing on top of fundamentals. DAILY MARKET DESK runs the next step for you: asset ratings and opportunity rankings built on relative strength across stocks, indices, FX, commodities and crypto, so the scan is done before your pre-market coffee.

FAQ

Is relative strength the same as RSI?

No. RSI is a momentum oscillator scoring the speed of price changes on a 0–100 scale. Relative strength is a ratio of one asset's price to a benchmark's price. The names overlap but the calculations share nothing: RSI reads a single asset in isolation, while RS always compares two series.

What is a good relative strength rating for a stock?

On the IBD-style 1–99 scale, ratings of 80 or higher mark stocks outperforming most of the universe, while ratings below 70 generally flag laggers. Because the rating is a percentile rank, its meaning depends on the universe scanned, so a good score only exists relative to the other stocks in the ranking.

Can I calculate relative strength in Excel or Google Sheets?

Yes. Pull aligned daily closes for the asset and benchmark, divide one by the other for each date to build the ratio, then normalize with a formula like =C2/AVERAGE(C2:C51)*100-100 for a Mansfield-style line. The limitation is cross-sectional ranking: percentile scoring against a full universe needs a screener, not a spreadsheet.

What benchmark should I use for forex pairs?

Use the US Dollar Index or a currency basket. A pair's apparent strength is often just the dollar on the other side of the trade, so measuring against an equity index mostly captures asset-class rotation instead. For crypto, benchmark altcoins against BTC and BTC against total crypto market cap.

How long should the lookback period be for an RS line?

Match the lookback to your holding period and apply it consistently across every stock you scan. Weekly closes suit swing trades lasting weeks to months; daily closes suit shorter swings. For normalization, a 50-period moving average is the worked standard, and IBD's rating uses a trailing 12-month window weighted toward recent quarters.

Stop calculating risk by hand.

DAILY MARKET DESK structures the market for you every day.

Start your 7-day trial