Skip to Main Content

Technical Analysis

Exponential Moving Average (EMA)

An exponential moving average (EMA) is a moving average that gives recent prices more weight, updating each period with a smoothing factor of 2 / (n + 1).
Also Called
  • EMA
  • Exponentially Weighted Moving Average
  • Exponential MA
By InsiderFinance TeamUpdated Sources & Methodology

EMA vs SMA on the Same 5-Period Setting

EMA vs SMA on the Same 5-Period SettingLine chart of 26 points with 2 overlays (ema, sma).$100$105$110$115510152025
EMA vs SMA on the Same 5-Period SettingLine chart of 26 points with 2 overlays (ema, sma).$100$105$110$115510152025
Close5 EMA5 SMA
Both averages start at $101.46 on bar 5. After the price high on bar 15, the EMA first declines on bar 17 and the SMA on bar 18. The EMA crosses back above the SMA on bar 23.
On This Page
  1. What is an exponential moving average (EMA)?
  2. How to calculate an EMA: five-period example
  3. EMA vs SMA: weights, lag and crossovers
  4. EMA seed value and why platforms differ
  5. How traders use the EMA
  6. Limitations of the exponential moving average
  7. Bottom line
  8. FAQ

Key Takeaways

  • Each update blends the latest price with the previous EMA, so every older price keeps a shrinking share of the line.
  • The standard smoothing factor is 2 divided by the selected period plus 1.
  • The EMA tilts toward the newest price: at n = 5 it gives the latest close 33⅓% of the weight against the SMA’s 20%, and both lines carry the same (n − 1) / 2-bar average lag.
  • EMA values depend on prior EMA values and can differ slightly across platforms because of initialization and data-history choices.
  • Use EMA slope, price position and crossovers to define the trend conditions for your trade.

What is an exponential moving average (EMA)?

An exponential moving average (EMA) is a moving average that combines the latest price with its own previous value, so recent prices carry more weight than older ones. The standard smoothing factor is alpha = 2 / (n + 1), where n is the period setting, and each older contribution shrinks geometrically with every update.

The update is EMA today = previous EMA + alpha × (price today − previous EMA). A price above the previous EMA lifts the line. A price below it lowers the line.

Formula

EMA today = EMA yesterday + [2 / (n + 1)] × (Price today − EMA yesterday)
  • n is the period setting. It sets the smoothing factor, and every earlier price stays in the EMA with a shrinking weight.
  • The smoothing factor 2 / (n + 1) controls how strongly the latest price changes the average.

How to calculate an EMA: five-period example

A five-period EMA has a prior value of $100 and the latest closing price is $106.

  • 2 / (5 + 1) = 1/3 smoothing factor
  • $106 − $100 = $6 difference from the prior EMA
  • $100 + (1/3 × $6) = $102 new EMA

The five-period EMA closes one third of the $6 gap, rising $2 from $100 to $102. The latest price receives a one-third weight and the prior EMA receives two thirds.

Equivalently, the new value contains one third of $106 and two thirds of $100. Keep the full smoothing factor during calculation and round the displayed result.

A 9-period EMA uses alpha = 0.20. A 49-period EMA uses alpha = 0.04. The period sets the newest observation’s weight and the rate at which older contributions decay.

EMA vs SMA: weights, lag and crossovers

An SMA of n observations gives each weight 1 / n, then drops the oldest observation entirely. An EMA carries its previous value into the next update, so at any period longer than one bar it gives the latest observation more weight while older history keeps a diminishing share.

The standard EMA and SMA weight profiles have the same mean observation age, (n − 1) / 2 bars. Their different weight shapes produce different responses to shocks, reversals and sustained trends. In the chart below, that difference puts the EMA’s turn one bar ahead of the SMA’s.

In the chart, both five-period averages start at $101.46 on bar 5. Price peaks on bar 15. The EMA first falls on bar 17 and the SMA on bar 18. On bar 23, the EMA moves back above the SMA.

EMA seed value and why platforms differ

A recursive calculation begins with a seed. This chart uses the SMA of the first five closes, then applies the EMA update to every subsequent close.

A different seed fades by a factor of 1 − alpha at each update, so two charts with the same inputs converge after enough bars. Match the input field, interval, sessions, adjustments and starting history when reproducing a chart.

How traders use the EMA

Use slope, price position and the relationship between two EMAs as explicit conditions. For example, require a rising 20-period EMA and a 9-period EMA above it, then define a pullback or breakout entry.

EMA smoothing also powers MACD. The standard MACD line subtracts the 26-period EMA from the 12-period EMA and applies a 9-period EMA to that difference for the signal line.

With a rising 20-period EMA and the 9 above it, look in Options Flow for large call orders on the pullback or breakout, then set your target, expiration and volatility in the Options Profit Calculator for each structure’s payoff.

Limitations of the exponential moving average

  • Read an EMA turn as confirmation of a price turn. The EMA is built from past prices and shares the SMA’s mean observation age of (n − 1) / 2 bars; in the chart it first turns down two bars after the price high.
  • Require a sloped EMA before trading a cross. Faster response brings more whipsaws: in a sideways market, price and short EMAs cross back and forth, producing signals that reverse quickly.
  • Match the seed and loaded history before comparing two platforms: a different start leaves the EMAs slightly apart until the series converge.
  • Fix the period to the bar interval and holding horizon. A 9-period and a 49-period EMA can show different trends on the same chart.
  • Give entries and stops their own rules. The line is a moving reference, not a fixed level, and price can cut through it during fast moves.

Bottom line

An exponential moving average is a trend baseline that tilts toward the newest price: at n = 5 the latest close carries 33⅓% of the weight against a simple average’s 20%. Match the period to the bar interval and holding horizon, use slope and price position as explicit conditions, and confirm signals with swing structure rather than a single cross.

Clear answers

Frequently Asked Questions

Sources and Further Reading

  1. Fidelity: Exponential Moving Average
  2. Fidelity: What Is Technical Analysis?

How entries are sourced, calculated and updated: editorial methodology.

Compare

Exponential Moving Average (EMA) vs related concepts

Continue learning