Moving Average Explained: Simple vs. Exponential, and How Traders Use Them
A moving average smooths price data into a single line. Here's how the simple and exponential versions are calculated, the common periods, and the main limitation: they lag.
A moving average takes the price over the last N periods and averages it, producing a single smooth line that updates as each new period arrives. It strips out day-to-day noise so that the underlying direction is easier to see.
Simple Moving Average (SMA)
The simple moving average is the plain average of the last N closing prices.
SMA = (sum of the last N closes) ÷ N
Example (5-period). Closes of $10, $11, $12, $13, and $14 give an SMA of (10 + 11 + 12 + 13 + 14) ÷ 5 = $12. When the next close arrives at $15, the oldest price ($10) drops out and the new SMA is (11 + 12 + 13 + 14 + 15) ÷ 5 = $13.
Every price in the window carries the same weight.
Exponential Moving Average (EMA)
The exponential moving average gives more weight to recent prices, so it reacts faster to new information.
EMA(today) = Close × k + EMA(yesterday) × (1 − k), where k = 2 ÷ (N + 1)
Example (3-period). k = 2 ÷ (3 + 1) = 0.5. If yesterday's EMA was $10 and today's close is $14, today's EMA is 14 × 0.5 + 10 × 0.5 = $12.
Because it weights recent data more heavily, an EMA turns sooner than an SMA of the same length, which also means it can give more false signals.
Common Periods
There's no official standard, but these are widely used on daily charts:
- 10 or 20-day: short-term trend.
- 50-day: intermediate trend.
- 100-day: sometimes used as a middle reference.
- 200-day: long-term trend, one of the most widely watched lines.
The period you choose is a tradeoff: a shorter period follows price closely but jumps around; a longer period is smoother but slower. On weekly charts, a 40-week average is often compared to the 200-day.
How Moving Averages Are Used
1. Trend direction. If price is above a rising moving average, the trend is described as up; below a falling one, as down. A flat line suggests no clear trend.
2. Dynamic support and resistance. Price sometimes pauses or bounces near a widely watched moving average, such as the 50-day or 200-day, which then acts like a sloping support or resistance level.
3. Crossovers. When a shorter average crosses a longer one, it is read as a possible trend change. The best-known example is the golden cross and death cross.
4. A building block. Many indicators, including the MACD, are built from moving averages.
The Main Limitation: Lag
A moving average is calculated entirely from past prices, so it always trails the market:
- It confirms a trend after it has started, not before.
- Crossovers come late, sometimes after much of a move has occurred.
- In sideways markets, price crosses back and forth over the average, producing repeated false signals (whipsaws).
Shorter averages lag less but whipsaw more; longer ones whipsaw less but lag more.
What the Evidence Says
Moving-average trading rules are among the most studied in technical analysis. A well-known 1992 study by Brock, Lakonishok, and LeBaron found that simple moving-average rules had predictive power on the Dow Jones Industrial Average over a long historical sample. Later research has generally found weaker results out of sample and after transaction costs. For the broader discussion, see do chart patterns actually work.
Which Type Is Better?
Neither. The SMA is smoother and simpler; the EMA is more responsive. Many traders use both, and the choice often follows what's convention for a given period, for instance the 200-day SMA is more commonly watched than the 200-day EMA. The important part is to be consistent, since different settings produce different signals.
A Note on Time Frame
A 50-period average on a 5-minute chart and on a weekly chart describe very different spans of time. See timeframes.
This article is for educational purposes only and is not investment advice.
Find out what we're watching before the market opens
Every day we send a free breakdown of the signals, setups, and stocks getting institutional attention. No paid subscription. No upsell. Just the signal.
Get the Next Alert →