Home Live Ticker Fear & Greed
Sign in

Technical Indicators

SMA vs. EMA: Moving Averages Explained

Spot the edge. Swoop in.

Simple and exponential moving averages both smooth price into a single line — the difference is how much weight each gives to recent prices, and how quickly each one reacts to a change.

What Is the Difference Between SMA and EMA?

A simple moving average (SMA) averages a fixed number of past prices with equal weight. An exponential moving average (EMA) averages the same prices but weights recent ones more heavily, so it reacts to new price changes faster and lags price less than an SMA of the same length — at the cost of reacting to short-term noise more often.

The Formulas

SMA = (Sum of closing prices over N periods) ÷ N. Each of the N prices counts equally, whether it happened yesterday or N days ago.

EMA today = (Close today × multiplier) + (EMA yesterday × (1 − multiplier)), where multiplier = 2 ÷ (N + 1). The first EMA value in a series is typically seeded with an SMA of the first N prices, then the formula above is applied going forward.

The multiplier is what makes EMA "exponential": for a 10-period EMA, the multiplier is 2 ÷ 11 ≈ 0.182, so today's close gets about 18.2% of the weight and yesterday's EMA (which itself carries the weighted history of every prior price) gets the rest. A shorter period produces a larger multiplier and a faster-reacting line; a longer period produces a smaller multiplier and a smoother line.

Worked Example

Hypothetical example — for education only.

Five days of closing prices: $100, $102, $101, $104, $106. A 5-period SMA on day 5:

SMA = (100 + 102 + 101 + 104 + 106) ÷ 5 = 513 ÷ 5 = $102.60

For a 5-period EMA, the multiplier is 2 ÷ (5 + 1) = 0.333. Seed day 3's EMA with the 3-day SMA of the first three closes: (100 + 102 + 101) ÷ 3 = $101.00. Then roll forward:

DayCloseEMA calculationEMA
3$101Seed (3-day SMA)$101.00
4$104(104 × 0.333) + (101.00 × 0.667)$102.00
5$106(106 × 0.333) + (102.00 × 0.667)$103.33

On day 5, the SMA reads $102.60 and the EMA reads $103.33 — the EMA sits closer to the most recent close ($106) because it weighted the last two up days more heavily, while the SMA still gives full weight to day 1's $100.

Common Moving-Average Signals

Price crossing the moving average

Price closing above a rising moving average is commonly read as a bullish trend signal; closing below a falling one, bearish. In a sideways market, price can cross a moving average repeatedly, producing frequent, low-value signals.

Golden cross and death cross

A golden cross is a shorter-period average (commonly the 50-day) crossing above a longer-period average (commonly the 200-day) — often read as a bullish longer-term signal. A death cross is the same crossover in reverse, often read as bearish. Both are lagging by construction: the crossover can only happen well after the underlying trend shift that caused it.

Moving average as dynamic support or resistance

In a trending market, price sometimes pulls back to a moving average and bounces, treating the line as approximate support (in an uptrend) or resistance (in a downtrend). This tendency is more reliable in a clear trend and less reliable in a range, where the average sits inside the noise.

Choosing a Period Setting

PeriodResponsivenessCommon useTrade-off
9–10FastShort-term/intraday trendMore whipsaws in a range
20ModerateSwing trading trend referenceStill reacts to short pullbacks
50SlowerIntermediate trend, golden/death cross (short leg)Lags sharp reversals
100SlowLonger intermediate trendConfirms trend changes late
200Very slowLong-term trend, golden/death cross (long leg)Large lag after a reversal

SMA and EMA can each use any of these periods — the period controls how much history is smoothed, while SMA vs. EMA controls how that history is weighted. A 20-period EMA reacts faster than a 20-period SMA; a 50-period SMA reacts slower than a 20-period EMA. The two choices are independent.

Common Mistakes

Limitations

Both SMA and EMA are lagging by construction — they're calculated from prices that have already happened, so neither can flag a reversal before it starts. Moving averages also don't distinguish a low-volume drift from a high-conviction move; two identical average readings can sit behind very different volume and liquidity conditions.

Moving Average FAQs

What is the difference between SMA and EMA?

SMA weights every price in the lookback period equally. EMA weights recent prices more heavily, so it reacts faster to new price changes and lags price less than an SMA of the same length.

Is EMA better than SMA?

Neither is universally better. EMA's faster reaction can catch trend changes sooner but also produces more whipsaws in a choppy market. SMA's smoother line filters more noise but confirms trend changes later.

What is a golden cross and a death cross?

A golden cross is a shorter-period moving average crossing above a longer-period moving average, commonly the 50-day crossing above the 200-day, often read as a bullish long-term signal. A death cross is the reverse, often read as bearish. Both are lagging signals.

What moving average period should I use?

There's no single correct period. Shorter periods like 9 or 20 react faster and suit shorter-term trading; longer periods like 50, 100, or 200 smooth more noise and are commonly used to judge the longer-term trend.

Do moving averages work the same way for crypto?

The calculation is identical. Crypto's continuous, 24-hour trading means a daily moving average always closes at midnight UTC rather than a market close, and higher volatility can produce more frequent crossovers than the same setting on a stock.

Related Reading