Moving average calculator
Smooth an ordered numeric series with a complete trailing window.
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
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
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
| Input position | Original value | Complete trailing average |
|---|---|---|
| 1 | 10 | |
| 2 | 12 | |
| 3 | 9 | 10.3333333333 |
| 4 | 15 | 12 |
| 5 | 16 | 13.3333333333 |