Find the arithmetic mean of a list of numbers exactly, with no floating-point drift in the sum.
Moving Average Calculator
Compute simple, weighted and cumulative moving averages exactly, without padding the start with data that is not there.
- Free
- No sign-up
- Runs in your browser
Input
13 characters
Separate with commas, spaces or new lines. A column pasted from a spreadsheet works. Processed in your browser.
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter your series and the window size.
- 2
The output is shorter than the input by one less than the window, because the first full window does not close until then.
Questions about Moving Average Calculator
Why is the output shorter than my input?
Because a window of 3 has no complete window until the third value. Padding the start with partial averages would make the series look longer than the data supports and would distort the beginning of any chart drawn from it.
What is the weighted version?
It gives the most recent value in each window the largest weight, linearly: in a window of 3 the weights are 1, 2 and 3. It reacts faster to a change than the simple average, at the cost of being noisier.
What does a moving average cost me?
Lag. It smooths noise by averaging over the past, which delays every turning point by roughly half the window. A 20-day average of a series that turns today will not turn for about ten days. That matters if you are using it to decide something.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Moving Average Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Moving Average Calculator keeps working with the network switched off and nothing is ever sent to a server.
Related tools
Other tools you might reach for next.
Fit a least-squares line with an exact slope and intercept, with the residuals and the assumptions the fit rests on.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Add two fractions exactly, showing the common denominator step and reducing the result.
Subtract one fraction from another exactly, showing the common denominator step.
Multiply two fractions exactly, multiplying across and reducing the result.
Divide one fraction by another exactly, by multiplying by the reciprocal.