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
- Enter data series, window size.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Review the breakdown shown under the main result.
- 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