TradingCalculated
Calculations run privately in your browser
80 values
Paste a column from a spreadsheet or export.
EMA(20)106.81price is above the average
EMA(50)104.34short above long — bullish alignment
Latest close109.88
Price vs average+2.88%
Multiplier0.09522 ÷ (n + 1)
The EMA weights recent closes more heavily (multiplier 0.095), so it reacts faster than an SMA of the same length — earlier signals, but more whipsaws.
Price with EMA
Last 10 bars
BarCloseEMA(20)EMA(50)
#80109.88106.81104.34
#79109.74106.48104.12
#78108.82106.14103.89
#77107.55105.86103.68
#76108.58105.68103.53
#75106.89105.38103.32
#74107.98105.22103.18
#73108.58104.93102.98
#72107.57104.54102.75
#71108.12104.22102.55

Not financial advice. Results are estimates based on the values you enter and simplified assumptions; real trades are affected by fees, slippage, gaps and other factors. Trading involves substantial risk of loss. Read the full disclaimer.

How to calculate an exponential moving average

Multiplier k = 2 ÷ (n + 1) EMA_t = (P_t − EMA_t−1) × k + EMA_t−1 First EMA = SMA of the first n closes

Paste prices oldest-first, one value or row per bar — straight from a spreadsheet or CSV export. Use “Sample data” to try it instantly.

Worked example

  1. EMA(3): k = 2 ÷ 4 = 0.5. The first three closes 1, 2, 3 give a seed of 2.
  2. Next close 4: EMA = (4 − 2) × 0.5 + 2 = 3.
  3. Next close 5: EMA = (5 − 3) × 0.5 + 3 = 4.

How to interpret an exponential moving average

An EMA gives the most recent close a weight of k and lets older prices fade geometrically, so it turns faster than an SMA of the same length. EMAs are the building blocks of MACD; the 9, 20 and 50-period EMAs are common trend filters.

Limitations and common mistakes

  • Because of the seed, early values differ slightly between platforms; they converge after a few multiples of n bars.
  • Faster reaction also means more false signals in choppy markets.
Technical Indicators

Simple Moving Average Calculator

Calculate a simple moving average bar by bar, with an optional second average for crossovers.

80 closes · SMA 20 & 50 → crossover check
Technical Indicators

MACD Calculator

Calculate the MACD line, signal line and histogram from closing prices.

MACD(12, 26, 9) → line, signal, histogram
Technical Indicators

VWMA Calculator

Calculate a volume-weighted moving average and compare it with the simple moving average.

VWMA(20) vs SMA(20)

EMA calculator FAQ

Why does my platform show a slightly different EMA?

Platforms seed the EMA differently (first close vs SMA) or use more history. With enough bars the values converge.

What is the EMA multiplier for 20 periods?

2 ÷ 21 = 0.0952 — the latest close gets about 9.5% weight.