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

Your result will appear here.

More actions

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.

How this is checked

2 reference checks passed These 2 cases were run when this page was built, on 3 December 2026, and all reproduce within the stated tolerance. The same cases are part of the automated tests that run on every change to Toolmoz. Engine version 1.

See the checks and where each expected answer comes from
  1. Case 1

    Inputs
    Values in chronological / intended order 3, 6, 9, 12, 15Trailing window length 3
    Expected, and what Toolmoz gave
    text expected Input position Original value Complete trailing average 1 3 2 6 3 9 6 4 12 9 5 15 12, Toolmoz Input position Original value Complete trailing average 1 3 2 6 3 9 6 4 12 9 5 15 12
    Where the expected answer comes from
    Each full window of 3 is averaged: (3 + 6 + 9) ÷ 3 = 6, (6 + 9 + 12) ÷ 3 = 9, (9 + 12 + 15) ÷ 3 = 12; the first two positions have no full window
    Allowed difference
    exact
  2. Case 2

    Inputs
    Values in chronological / intended order 1, 2, 3, 4, 5Trailing window length 2
    Expected, and what Toolmoz gave
    text expected Input position Original value Complete trailing average 1 1 2 2 1.5 3 3 2.5 4 4 3.5 5 5 4.5, Toolmoz Input position Original value Complete trailing average 1 1 2 2 1.5 3 3 2.5 4 4 3.5 5 5 4.5
    Where the expected answer comes from
    Windows of 2: (1 + 2) ÷ 2 = 1.5, (2 + 3) ÷ 2 = 2.5, (3 + 4) ÷ 2 = 3.5, (4 + 5) ÷ 2 = 4.5
    Allowed difference
    exact

What this shows: the engine reproduces independently worked values for these cases. It does not prove every possible input is right. To test an answer you were given, see how to check a number; to see what is and is not checked across Toolmoz, see the accuracy ledger.

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