Toolstia / Moving average calculator
Moving average calculator
A moving average smooths a series by averaging the latest values. Paste your numbers, choose a window and a type and get the averages with a line chart, a table and a copyable list.
A simple average weighs the last N values equally. A weighted average gives newer values more weight, and an exponential average starts from the simple average of the first N values and then applies a smoothing factor of 2 divided by N plus 1. The first N minus 1 positions have no average yet.
How it works
- Paste your values.
- Set the window and choose simple, weighted or exponential.
- Read the chart and table, then copy the averages.
Simple
The plain mean of the last N values. The first N minus 1 positions have no value yet.
Weighted
Newer values count more, with weights from 1 up to N, so the average reacts faster.
Exponential
The first average is the simple mean of N values. After that, each step blends the new value with the last average using a factor of 2 over N plus 1.
Uses
Smoothing prices, sales, temperatures or website visits to see the trend.
Questions
Is my data sent anywhere?
Everything happens in your browser, and nothing you enter is sent anywhere.
How big should the window be?
A small window follows the data closely and a large one smooths more but lags behind. Common choices are 5, 20 and 50.
Which separators work?
Spaces, commas, semicolons and new lines all work.