Statistics & probability

Moving average calculator

Smooth an ordered numeric series with a complete trailing window.

Moving average calculator
Esc to restore

Your inputs

Up to 50,000 values. No thousands separators. Absolute values up to 1 trillion; non-zero values must be at least 1e-100 in magnitude.

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

For each complete trailing window, takes an unweighted arithmetic mean. Earlier positions without a full window are blank; the window cannot exceed the series length. Input order is preserved, with no date inference, missing-value imputation or prediction beyond the supplied series.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Values in chronological / intended order
10, 12, 9, 15, 16, 14, 18
Trailing window length
3

Example result

First 5 rows of the example result
Input positionOriginal valueComplete trailing average
110
212
3910.3333333333
41512
51613.3333333333