Compare
EMA vs SMA
Both are moving averages of past prices. An EMA gives recent prices more weight and reacts faster than an SMA of the same length, at the cost of more noise.
EMA vs SMA
0:56 · captioned1/4Two moving averages
- SMA: every price counts equally
- EMA: recent prices weigh more
2/4Speed against noise
- One trade-off, seen from two sides
3/4Length matters more than type
- Shorter length: faster and noisier
4/4Faster is not more accurate
- Both lag: built only from past prices
Both are moving averages of past prices. An EMA weights recent prices more and reacts faster than an SMA of the same length, with more noise.
Transcript
- Two moving averages
- EMA and SMA are both moving averages, built from past prices.
- An SMA, a simple moving average, counts each recent price equally.
- An EMA, an exponential moving average, gives recent prices more weight.
- Speed against noise
- Over the same number of periods, the EMA stays closer to price and turns earlier.
- It also turns more often when nothing lasting is happening.
- The SMA filters out more small movements, and is usually later when price really turns.
- Length matters more than type
- That number, the length, matters more than the type. A shorter length makes any average faster and noisier.
- Faster is not more accurate
- Faster is not more accurate. The EMA is quicker to follow price, not better at describing what comes next.
- Both lag. Neither average can turn before price does, and both describe the past.
Educational explainer with hypothetical data. Not financial advice.
EMA
Exponential Moving Average. Recent prices count for more and older prices fade gradually. It turns sooner and is less smooth.
Read the full pageSMA
Simple Moving Average. Every price in the window counts equally. It is smoother and turns later.
Read the full page| Aspect | EMA | SMA |
|---|---|---|
| Weighting | Recent prices weigh more; weights shrink exponentially | Every price in the window has equal weight |
| Reaction to a new price | Faster | Slower |
| Smoothness | Less smooth; more small turns | Smoother; fewer small turns |
| Old prices | Fade gradually and never drop out completely | Leave the window all at once |
| Calculation | Yesterday's EMA adjusted toward today's close | Sum of the last n closes divided by n |
| Where it commonly appears | MACD uses 12 and 26 period EMAs | Bollinger Bands use a 20 period SMA |
| What both share | Lag: built only from past prices | Lag: built only from past prices |
The idea in one picture
A moving average replaces a jagged series of prices with a smoother line. The SMA and the EMA are the two most common versions. With the same length setting, they are built from similar data and differ in how they weight it. The EMA stays closer to price and the SMA trails further behind.
In plain words
Two teachers grade a student over ten tests. The first averages all ten equally. The second counts the latest tests more, because they show where the student is now.
After one surprising result, the second teacher’s grade moves further. It responds sooner to real improvement, and it also overreacts more to a single unusual day.
How each is calculated
SMA = (sum of the last n closes) / nEach close in the window has a weight of 1/n.EMA today = close x k + EMA yesterday x (1 - k), where k = 2 / (n + 1)For n = 10, k is about 0.18, so the newest close carries about 18% of the weight.In a 10-period SMA, the newest close has a weight of 10%. In a 10-period EMA it has about 18%, and each older close counts for progressively less.
One jump, then calmHypothetical illustration
A hypothetical asset closes at 100 for many periods, so a 5-period SMA and a 5-period EMA both read 100. For the EMA, k = 2 / (5 + 1) = 1/3.
The next close is 106.
- SMA: (100 + 100 + 100 + 100 + 106) / 5 = 506 / 5 = 101.20.
- EMA: 106 x 1/3 + 100 x 2/3 = 35.33 + 66.67 = 102.00.
The EMA moved by 2.00 and the SMA by 1.20.
The closes then return to 100 and stay there.
- The SMA remains at 101.20 for the four periods in which 106 is still inside its window. On the fifth it drops straight back to 100.00, although nothing happened in the market that day.
- The EMA steps down gradually: 101.33, then 100.89, 100.59, 100.40, and so on, approaching 100 without a sudden move.
The EMA reacted more to the jump. The SMA reacted twice: once when the price entered the window and again when it left.
When the distinction matters
Speed against noise
Because the EMA follows price more closely, it turns earlier when a move begins. For the same reason it turns more often when nothing lasting is happening. The SMA filters out more of the small movements and is later at every real turn. This is one trade-off seen from two sides, and no setting escapes it.
The length matters more than the type
A 20-period EMA and a 20-period SMA are much more alike than a 20-period and a 200-period average of either type. A shorter length makes any average faster and noisier. Choosing between EMA and SMA is a fine adjustment by comparison.
Crossovers
When two averages are compared, as in moving average crossovers, the EMA versions cross earlier and cross more often. In a sideways market that means more crossings that lead nowhere.
Levels that many people watch
Some averages are followed widely enough to act as reference points, such as the 50 and 200 period averages on daily charts. Which type is meant depends on the community and the tool, so two charts can show the “200-day average” at slightly different prices.
Common confusion
- Faster is not more accurate. The EMA is quicker to follow price. It is not better at describing what comes next.
- Both lag. Neither average can turn before price does. See lagging vs leading indicators.
- The EMA does have a memory. Its starting value affects early readings, so the first stretch of an EMA on a chart can differ between tools.
- There are other types. Weighted, smoothed and volume-weighted averages exist. EMA and SMA are simply the most common.
What it does NOT mean
- Price above an average does not mean it will keep rising. It means the current price is higher than the average of recent prices.
- Neither average is a level price must respect. Prices pass through moving averages constantly.
- A common setting is not a tested one. Lengths such as 20, 50 and 200 are conventions, not optimised values.
- Choosing EMA or SMA does not create an advantage. Both restate the same past prices with different weights.
Key takeaway
An EMA weights recent prices more and follows price closely, and an SMA weights all prices in its window equally and is smoother. The EMA buys speed with noise, the SMA buys smoothness with delay, and both describe the past.
Sources and further reading
- Technical Analysis of the Financial Markets, John J. Murphy (1999). Chapter on moving averages: simple, weighted and exponentially smoothed
- Moving Averages (opens in a new tab), TradingView. TradingView help article: an SMA weights every day equally, while an EMA puts greater importance on recent prices
- Simple Moving Average (opens in a new tab), TradingView. TradingView help article: the SMA is the sum of the last X values divided by X, and is slow to react to newer changes
- Exponential Moving Average (opens in a new tab), TradingView. TradingView help article: the EMA weights the most recent prices more than the less recent ones