How to use Moving Average Calculator
- Paste observations in their original sequence order. Commas, spaces, semicolons and line breaks separate values; dates or headers are not read.
- Choose a window from 1 to 1,000 that does not exceed the number of observations, then select SMA or EMA.
- For EMA, review alpha = 2/(window + 1) and the first complete-window mean used as its seed. Leading rows before that window have no average.
- Compare values with averages and download moving-average.csv or moving-average.svg. Keep blank leading averages blank rather than replacing them with zero.
Example: Moving Average Calculator
Smooth 10, 20, 30, 80, 50 with a three-value EMA seeded by the first complete-window mean.
Options
- Sequence order
- Paste observations in time or task order. Sorting the values changes the trailing windows and the resulting series.
- EMA convention
- The first complete window supplies the seed mean. Later points use alpha = 2/(window + 1), rather than seeding from the first single observation.
Supported inputs and limits
- From 1 to 5,000 plain-decimal values in at most 100,000 characters, with magnitude at most 10¹² and up to 20 fractional places.
- Window is 1 to 1,000 and cannot exceed the list length.
- Exponent notation is not accepted.
- SMA uses each complete trailing window.
- EMA uses alpha = 2/(window + 1), seeded by the first full-window mean.
More details
There is no date parsing, irregular-time weighting or forecasting.
Display rounds to 10 decimal places when needed, retaining tiny nonzero values.
The graph connects observation positions, not measured times.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
Blank leading rows are not zero averages
Rows before the first complete window have no result under this convention. Leave those CSV cells blank rather than replacing them with zero for a chart. Moving averages smooth entered observations; they do not establish a trend will continue or predict the next value.
Questions about Moving Average Calculator
Why are early output rows blank?
The selected method waits for a complete first window. Those rows have no average under this page's convention.
How is the first EMA value chosen?
It is the arithmetic mean of the first full window. Later values use the displayed smoothing factor and the preceding EMA.
Does changing the order matter?
Yes. A moving average is based on sequence order. Sort or reorder the source only when that matches your intended series.