Skip to content
Calculator Tools
Analytics Calculators

Moving Average Calculator

Simple and exponential moving averages (SMA/EMA) of a data series for any window length.

Enter values

Separate values with commas, spaces or new lines.

Results update as you type.

Result

Latest SMA(3)

32.667

Latest EMA(3)
32.789

Moving averages

#ValueSMAEMA
12222
22423
3232323
42624.33324.5
52825.66726.25
6272726.625
73028.33328.313
83229.66730.156
9313130.578
103532.66732.789

About the Moving Average Calculator

Simple and exponential moving averages (SMA/EMA) of a data series for any window length.

Also known as: sma calculator, ema calculator, rolling average, running average.

How to use this calculator

  1. Enter data series, window size.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Review the breakdown shown under the main result.
  4. Use Copy result or Share to save the answer or send a link with your inputs.

Formula

SMA = mean of last n values · EMA = x·k + EMAₚᵣₑᵥ(1 − k), k = 2/(n+1)

Worked example

Using the values pre-filled in the calculator above:

  • Data series: 22, 24, 23, 26, 28, 27, 30, 32, 31, 35
  • Window size = 3

the calculator returns:

  • Latest SMA(3): 32.667
  • Latest EMA(3): 32.789