Part of the Maths & Statistics suite · 235 calculators

Moving Average Calculator

Smooth a series to see the trend — simple, weighted and exponential moving averages side by side, with the lag each one introduces.

A simple moving average replaces each point with the mean of the last k values.

Results update as you type
Results
Latest simple moving average
20.333333
Latest weighted moving average
Latest exponential moving average
EMA smoothing factor α
Lag of the simple average
Simple moving averages
Direction
Points
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the Australian Curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About moving average

How the moving average calculator works

A simple moving average replaces each point with the mean of the last k values. It smooths, and it lags: the centre of a k-period window sits (k−1)/2 periods in the past, which is why a moving average always turns after the data does.

The weighted version tapers the weights linearly and the exponential version decays them geometrically; both react faster at the cost of being noisier.

Formula: SMA = (x₁ + … + x_k)/k; EMA_t = αx_t + (1−α)EMA_(t−1)

Worked examples

InputsLatest simple moving averageNote
A 3-period average20.333333the last three average to 20.33
A longer window18.8smoother, and lags twice as much
A flat series5the average is also flat

Frequently asked questions

What does a moving average do?

Replaces each point with the average of a recent window, suppressing short-term noise so the trend is visible.

How long should the window be?

Long enough to cover one cycle of the noise you want gone. Weekly data with a 7-day cycle wants 7; monthly seasonality wants 12.

Why does it lag?

Because it looks backwards. A k-period average is centred (k−1)/2 periods in the past, so it always turns after the series does.

What is the difference between SMA and EMA?

The simple average weights every point in the window equally and then drops them entirely; the exponential average never fully forgets, weighting recent points more.

Can I use it to forecast?

Only weakly. It describes where the series has been. Forecasting needs a model of where it is going.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.