Skip to Main Content

Compare

Simple Moving Average (SMA) vs Exponential Moving Average (EMA)

An SMA gives every price in a fixed window equal weight, while an EMA weights the newest price most and lets older prices decay. With 2 / (n + 1) of each new gap added to the prior EMA, the EMA tracks recent moves closely and pays for it in whipsaw on noise.
By InsiderFinance TeamUpdated Sources & Methodology

Use an SMA for a fixed-window reference, such as a 200-day trend baseline, a volume average, or a rule that must reproduce exactly from the same input window.

Use an EMA when the cost of reacting late is higher than the cost of reacting to noise, such as short intraday holds, pullback entries in a fast trend, or as the smoothing engine inside MACD and similar studies.

Simple Moving Average (SMA) vs Exponential Moving Average (EMA)

Simple Moving Average (SMA) vs Exponential Moving Average (EMA)
Simple Moving AverageSimple Moving AverageExponential Moving AverageExponential Moving Average
WeightingEvery price in the window is equalNewest price heaviest, older prices decay
FormulaSMA(n) = (P1 + P2 + ... + Pn) / nEMA today = EMA yesterday + [2 / (n + 1)] × (Price today − EMA yesterday)
Weight on the Newest Bar1 / n, so 5 percent on a 20-period line2 / (n + 1), so 9.5 percent on a 20-period line
How Old Data LeavesDrops out at a hard boundary after n barsNever fully leaves, influence decays exponentially
Responsiveness at the Same PeriodChange equals (new price − outgoing price) / nChange equals 2 / (n + 1) × (new price − previous EMA)
Memory of Prior ValuesNone, recomputed from the current windowRecursive, each value depends on the prior EMA
Reproducibility Across PlatformsIdentical given the same window and inputDiffers slightly with seeding and history depth
Main Failure ModeLate signals after a turnExtra whipsaw on noise and gaps
Common UsesLong-horizon context, 50 and 200 day baselines, volume averagesFast trend filters, 9 and 20 period pullbacks, MACD inputs
On This Page

What is the difference between an SMA and an EMA?

A simple moving average (SMA) gives every price inside its window equal weight and drops the oldest price when a new one arrives. An exponential moving average (EMA) updates its prior value toward each new price, so recent prices carry more weight and older prices keep a shrinking influence. The difference is weighting: a fixed window against a decaying history.

SMA(n) adds the latest n selected prices and divides by n. With smoothing factor alpha = 2 / (n + 1), the new EMA equals the previous EMA plus alpha times the gap between the new price and the previous EMA.

How the SMA and EMA are calculated

For an SMA, the change is (new price - outgoing price) / n. A five-period SMA on $48, $50, $49, $52, and $51 is $50.00. Replace $48 with $54 and the new SMA is $51.20.

For an EMA, the change is alpha × (new price - previous EMA). A five-period EMA at $100 with a new price of $106 uses alpha = 1/3 and updates to $102.

On a 20-period setting, the newest price has a 5% SMA weight and a 9.52% EMA weight. How far each line moves depends on what it compares the new price with: the SMA compares it with the outgoing price, the EMA with its prior average, so the full price path sets the difference.

How SMA and EMA turns and crossovers differ

EMA weighting emphasizes recent observations, and the price path decides which line turns or crosses first on any given move. Compare the actual outputs on the same data and under the same initialization rules.

An SMA is fully determined by the prices in its current window. An EMA also depends on its seed and earlier history. Match the input field, session, bar interval, and history before comparing platforms.

When to use an SMA vs an EMA

Use a long SMA as a broad trend reference and a shorter EMA to track recent price action. A 50/200 SMA pair follows the widely used golden-cross and death-cross convention. Standard MACD uses 12-period and 26-period EMAs with a 9-period EMA signal line.

Give each line on the chart one job, and drop any line that has none. The average supplies context; the trading rule supplies the entry, target, and position size, checked against price structure, options flow and the position’s payoff.

Bottom line

An SMA weights every price in a fixed window equally, while an EMA leans on the newest prices and carries a decaying history. Use a long SMA for fixed-window references such as the 50/200 crossover and a shorter EMA for faster trend tracking, then judge either by its actual turns on the same data.

Common questions

Simple Moving Average (SMA) vs Exponential Moving Average (EMA): FAQ

Is the EMA better than the SMA?
Each wins a different role in the trading rule. An SMA gives every price in a fixed window equal weight, which suits a fixed-window reference such as a 200-day trend baseline. An EMA puts greater weight on recent observations, which suits faster trend tracking. A fair test compares their signals on the same instrument, timeframe, entry rule and execution costs, because the price path determines the actual turn and crossover dates.
How much faster does an EMA react than an SMA?
On a 20-period setting, the newest price has a 5% SMA weight and a 9.52% EMA weight, nearly double. How far each line moves depends on what it compares the new price with: the SMA changes by (new price - outgoing price) / 20, while the EMA changes by 2 / 21 × (new price - previous EMA), so measure their turns on the same data.
Why do two platforms show the same SMA but different EMAs?
An SMA only needs the prices inside its window, so any platform with the same input field, session, and lookback returns the same number. An EMA is recursive and needs a seed plus prior history. One platform may initialize with an SMA of the first n bars while another starts at the first available price or loads more hidden history. Those differences shrink as identical observations accumulate and show most near the start of a series.
Does an EMA remove lag?
It keeps a lag, because it still averages past prices: at the standard 2 / (n + 1) weighting, its average lag on a steady trend matches the same-period SMA. What changes is the weighting. The newest price counts more, so the EMA reacts harder to each new bar: an edge in a fast move, extra whipsaw in a choppy one. Test the period and input field against the trading rule it supports.
Should I use SMA or EMA for a 50 and 200 crossover?
The golden cross and death cross conventions are quoted on simple moving averages, so an SMA pair matches how those events are reported and discussed. An EMA pair on the same periods crosses at different times. If you want your signal to line up with the widely cited version, use the SMA. If you are testing your own long-horizon system, test both against the same costs and slippage.
Can I use an SMA and an EMA together?
Yes, and many systems do. A common structure uses a long SMA for regime context and a shorter EMA for timing inside that regime. The risk is adding lines until any chart supports any decision after the fact. A small fixed set that was specified before testing is easier to evaluate than a chart with six averages chosen once the move is already visible.

Sources and Further Reading

  1. Fidelity: Simple Moving Average
  2. Fidelity: Exponential Moving Average
  3. Fidelity: What Is Technical Analysis?

Confirm your next setup

Put automated technical signals on your chart.

Buy and sell signals, momentum, squeeze, stops, and three targets. Put the complete InsiderFinance indicator system behind your next trade.

Get the Signals