# Moving Averages Explained: SMA vs EMA and How Traders Use Them

Web page: https://uptickflow.com/en/learn/moving-averages  
Updated: 2026-10-11

Moving averages explained: how the SMA and EMA are calculated, what the 9, 20, 50 and 200 are used for, slope, dynamic support, lag, crossovers and VWAP.

A moving average is the average closing price of the last N bars, recalculated on every new bar, so it draws a smooth line through the price. The simple moving average (SMA) weights every bar equally; the exponential moving average (EMA) gives the newest bars more weight, so it turns sooner. Traders use moving averages to read the trend, as moving support and resistance, and as the building block of other indicators.

Below: the math with a five-day example, the common lengths, slope, dynamic support, lag, and where crossovers and VWAP fit. Prices are hypothetical, and trading carries real risk.

## How are the SMA and EMA calculated?

The SMA adds the last N closes and divides by N. Hypothetical, as in the drawing below: five daily closes of $20, $21, $22, $23 and $24 give a 5-day SMA of $22.00. On day 6 the stock closes at $28. The $20 close drops out of the window and the $28 enters: ($21 + $22 + $23 + $24 + $28) ÷ 5 = $23.60.

The EMA blends today’s close with yesterday’s EMA using a weight k = 2 ÷ (N + 1), which is 1/3 for 5 days: EMA = close × k + yesterday’s EMA × (1 − k). EMAs are usually started from an SMA, so say yesterday’s EMA was $22.00. Today: $28 × 1/3 + $22 × 2/3 = $24.00. The same jump moved the EMA $2.00 and the SMA $1.60.

One quirk of the SMA: it also moves when an old close leaves the window, so a big day from four weeks ago can shift a 20-day SMA today even if today is quiet. The EMA never drops a close; old ones just fade.

## SMA vs EMA: which one reacts faster?

The EMA, because the newest close carries the most weight. In the drawing below, both lines use 20 periods on the same prices. Price drifts lower, then jumps: the EMA turns up at once, while the SMA stays almost flat for several bars, because the closes leaving its window are still the higher ones from earlier in the decline.

Speed cuts both ways. The EMA shows a turn earlier and also reacts to more noise, so it flips more often in a sideways market; the SMA is steadier and later. Many short-term traders use EMAs such as the 9 and 20 intraday, and many investors watch the 50- and 200-day SMAs. Neither is better in general. The [EMA trading strategy](https://uptickflow.com/en/learn/ema-trading-strategy) guide covers EMA tactics.

## What are the 9, 20, 50 and 200 moving averages used for?

No length is magic. The popular ones are conventions, and part of the reason price reacts near them is that many traders watch the same lines. The length counts bars, not days: a 20-period average covers 100 minutes on a 5-minute chart and about a month on a daily chart.

- 9: a fast line for short-term momentum, mostly on intraday charts.
- 20 (some use 21): the short-term trend and a common pullback line for day and swing traders.
- 50-day: the medium-term trend on daily charts, widely followed by swing traders and growth investors.
- 200-day: the long-term trend. Price above a rising 200-day is the classic sign of a long-term uptrend.

## How to read the trend with a moving average: slope and price

Two things tell you most of what a moving average can: its slope and which side of it price is on. The drawing below shows the three cases. A rising average with price above it says uptrend; a falling one with price below it says downtrend. A flat average that price keeps crossing says range, and there the average has little to tell you.

With several averages, look at their order too. In a strong uptrend the shorter averages sit above the longer ones, for example the 20 above the 50 and the 50 above the 200, all rising. When they flatten and tangle, the trend has paused or ended.

## Moving averages as dynamic support and resistance

In a trend, a rising average often acts as support that climbs with price, and a falling one as resistance that falls with it. The drawing at the top of this page shows pullbacks pausing twice at a rising 50-day SMA. Treat the line as a zone, as you would [support and resistance](https://uptickflow.com/en/learn/support-and-resistance-strategy): price often pokes through a little before turning, so wait for a close back in the trend’s direction.

Hypothetical: a stock in an uptrend pulls back to its 50-day SMA at $95, trades down to $94.60, then closes the next day at $97 with the average still rising. A trader buying at $97 might place the stop under the pullback low at $93.90, risking $3.10 a share, and size from that. If price instead closes well below the average and the average starts to flatten, the support has failed, and the 200-day is often the next line traders watch. The [pullback trading strategy](https://uptickflow.com/en/learn/pullback-trading-strategy) covers this setup in detail.

## Lag, crossovers and VWAP: what moving averages cannot do

Every moving average lags, because it is built from past closes. The longer the length, the smoother the line and the later it turns. That lag is the price of filtering noise: an average confirms a trend after it has started, and it does not predict one.

A crossover, a faster average crossing a slower one, is the best-known signal built on them; the 50-day crossing above or below the 200-day is called a golden cross or a death cross. Crossovers lag even more and whipsaw in ranges; the [moving average crossover](https://uptickflow.com/en/learn/moving-average-crossover) guide covers them properly. Averages also sit inside other indicators: the middle line of the [Bollinger Bands](https://uptickflow.com/en/learn/bollinger-bands) is a 20-period SMA, and the [MACD](https://uptickflow.com/en/learn/macd-indicator) is built from EMAs.

VWAP looks like a moving average but is not one. It weights each price by the volume traded there and restarts every session, instead of averaging the last N closes. Day traders use it as the day’s fair price; see the [VWAP trading strategy](https://uptickflow.com/en/learn/vwap-trading-strategy).

## Key takeaways

- An SMA averages the last N closes equally; an EMA weights recent closes more, with k = 2 ÷ (N + 1), so it turns sooner and whipsaws more.
- Read the slope and the side: price above a rising average is an uptrend, below a falling one a downtrend, crisscrossing a flat one a range.
- Rising averages often act as dynamic support in trends, but as a zone: wait for a close and set the stop beyond the pullback.
- Every moving average lags. Crossovers lag more, and VWAP is a different, volume-weighted line that resets each session.

## FAQ

**What is the difference between SMA and EMA?**

An SMA gives every close in its window the same weight. An EMA gives the newest close the most weight, 2 ÷ (N + 1), and lets older closes fade. The EMA turns sooner after a change in price and also reacts more to noise.

**Which moving average is best for day trading?**

There is no best one. Many day traders use fast EMAs such as the 9 and 20 on 5-minute charts and check a slower average on a higher timeframe for direction. Pick one set, learn how it behaves and keep it.

**What does it mean when a stock is above its 200-day moving average?**

The price is above its average close of the last 200 sessions, a common definition of a long-term uptrend, especially when the average is rising. It says nothing about the next day or week.

**Are moving averages lagging indicators?**

Yes. They are calculated from past closes, so they always turn after price does. Shorter and exponential averages lag less but give more false signals.

---

Educational content, not financial advice. Trading involves risk of loss. https://uptickflow.com/llms.txt
