Quick answer
The difference in sma vs ema is how each average weights past prices: a simple moving average (SMA) treats every candle in its period equally, while an exponential moving average (EMA) gives more weight to the most recent candles. As a result, the EMA follows price more closely and turns earlier, while the SMA is smoother and slower.
Neither is better in general. A faster average catches trend changes sooner but reacts to more noise; a slower one filters noise but confirms moves late. Traders choose between them, and often use both, depending on the timeframe, the asset and what job the average needs to do on the chart.
How the simple moving average works
The simple moving average is the plain arithmetic mean of the last N closing prices. A 20-period SMA adds up the last 20 closes and divides by 20. When a new candle closes, the oldest one drops out of the window and the newest one is added, so the line "moves" along the chart.
Because every candle counts equally, a single unusual close affects the SMA twice: once when it enters the window and again when it leaves N candles later. That second effect, sometimes called the drop-off effect, can make the SMA bend even though nothing is happening in the current price. It is worth remembering when an SMA suddenly shifts on a quiet day.
How the exponential moving average works
The exponential moving average uses a smoothing factor, usually k = 2 / (N + 1). Each new value is calculated as:
EMA today = close today x k + EMA yesterday x (1 minus k)
For a 20-period EMA, k is about 0.095, so the latest close contributes roughly 9.5% of the new value, and older prices fade gradually instead of dropping out all at once. Technically every past price still has some influence, but it becomes very small over time. This weighting is why the EMA hugs recent price action more tightly and does not have a drop-off effect.
Worked example: same prices, different reactions
Hypothetical numbers, for illustration only. Take a 5-period average where an asset has closed at 100 for a while, and then one candle closes at 110.
SMA: the last five closes are 100, 100, 100, 100 and 110. The average is 102.
EMA: with k = 2 / 6, or about 0.33, the new EMA is 100 + 0.33 x (110 minus 100), about 103.3.
Next candle closes back at 100: the SMA stays at 102 because the 110 is still in the window. The EMA eases to about 102.2.
Five candles later: the 110 leaves the SMA window and the SMA drops abruptly back to 100, while the EMA has already drifted almost all the way down.
The EMA reacted more to the spike and then let it fade smoothly. The SMA reacted less at first but carried the spike for exactly five candles and then dropped it in one step.

Moving average settings traders commonly use
There are no magic numbers, but some moving average settings are popular because so many traders watch them:
Short averages (9, 10, 20, 21): track short-term momentum and pullbacks, mostly as EMAs.
Medium averages (50): a common gauge of the intermediate trend, used as both SMA and EMA.
Long averages (100, 200): define the broad trend, most often as SMAs on daily charts.
Indicator inputs: the MACD indicator is built from the 12 and 26-period EMAs, and Bollinger Bands use a 20-period SMA as their midline.
The period matters more than the type. A 50 EMA and a 50 SMA look similar, while a 20 SMA and a 200 SMA look completely different. A common rule of thumb is to use EMAs for short-term timing and SMAs for long-term structure, but testing on your own assets and timeframe is the only reliable guide.
Using moving averages as a trend filter and dynamic support
Trend filter
The simplest use is a trend filter: only consider long setups when price is above a chosen average and the average is sloping up, and only short setups when the opposite is true. Many traders use the 200-day SMA for this purpose. The filter will not time entries, but it can keep you from fighting the dominant direction.
Dynamic support and resistance
In healthy trends, price often pulls back to a moving average and bounces, so the line acts as dynamic support in uptrends and dynamic resistance in downtrends. Faster EMAs tend to be respected in strong trends, slower averages in calmer ones. Treat the average as a zone rather than an exact price, and look for confirmation such as a bullish candle or a higher low. This approach pairs well with pullback-based swing trading.
Crossovers
When a fast average crosses above a slow one, traders call it a bullish crossover; a cross of the 50 above the 200 is often called a golden cross, and the reverse a death cross. EMA crossovers fire earlier, SMA crossovers fire later but with fewer whipsaws. Our article on the MA100 and EMA ribbon shows how several averages can be combined.
When moving averages fail
Every moving average lags, because it is built from past prices. That creates predictable failure cases:
Sideways markets: price crosses the average back and forth, producing a series of false signals. EMAs suffer more here.
Sharp reversals: by the time a slow SMA turns, much of the new move may already be over.
Spikes and wicks: sudden liquidation candles in crypto can briefly pierce an average without changing the trend.
Over-optimization: a period that fits past data perfectly often performs worse on new data.
No indicator is reliable on its own. Combine averages with market structure, volume and momentum tools such as the RSI, use a stop loss on every trade and remember that crypto is volatile. Do your own research before applying any rule with real money.
SMA vs EMA: which should you use?
Choose the EMA when you need responsiveness, such as short-term entries, active trend following or fast-moving altcoins. Choose the SMA when you care more about stability, such as long-term trend definition or levels that many market participants watch. Many charts simply show both: a fast EMA for timing and a slow SMA for context. The sma vs ema choice is less important than applying one setup consistently and knowing its weaknesses.
FAQ
Is the EMA better than the SMA for crypto?
Neither is universally better. EMAs react faster to crypto's quick moves but give more false signals in ranges, while SMAs are steadier but slower.
Why does my SMA move when price is flat?
An old price is leaving the calculation window. If that dropped candle was very high or low, the SMA shifts even though current price is unchanged.
What is the most popular moving average?
The 200-day SMA is widely watched for the long-term trend, and the 20 and 50-period EMAs are common for shorter-term analysis.
Can I use moving averages on any timeframe?
Yes. The math is the same on any timeframe, but averages on higher timeframes usually carry more weight and produce fewer false signals.
What is a golden cross?
It is when the 50-period average crosses above the 200-period average. It is often read as a sign of strengthening trend, but it lags and can fail.



