Exponential moving average (EMA)

How the exponential moving average weights recent prices more heavily than a simple average, how to calculate it, and when traders prefer it.

What it is

An exponential moving average is a moving average that gives more weight to recent prices. It reacts faster than a Simple moving average (SMA) of the same length.

The formula

  1. Smoothing factor k = 2 / (N + 1). For a 12-day EMA, k = 2 / 13 = about 0.154.
  2. EMA today = price today x k + EMA yesterday x (1 - k)
  3. Start the series with the SMA of the first N days.

With k = 0.154, today's price makes up about 15% of the new value, and every older price fades a little more each day.

EMA versus SMA

SMA EMA
Weighting Equal Recent prices count more
Reacts to change Slower Faster
False signals Fewer More

Where you see it

The 12-day and 26-day EMAs build the MACD indicator indicator. Short-term traders often prefer EMAs; long-term investors usually use the 200-day SMA.

See also

Last updated September 30, 2026. Education only, not investment advice.