Moving Average Calculator

Compare a number series with its moving average in a table and a sampled graph.

On-device No sign-up Free to use

Calculate moving averages controls

Showing an example. Edit to see your own.

?

Separate 1 to 5,000 values with commas, spaces or line breaks.

Processed in your browser. Your inputs stay on this device.

Result

Showing an example.

Smooth 10, 20, 30, 80, 50 with a three-value EMA seeded by the first complete-window mean.

Positions 1 and 2 have no average. Position 3 has EMA 20, position 4 has EMA 50 and position 5 has EMA 50. The first three-value mean seeds the series; alpha is 0.5.

https://usefreetools.net/moving-average-calculator · 20 November 2026

Was this helpful?

How to use Moving Average Calculator

  1. Paste observations in their original sequence order. Commas, spaces, semicolons and line breaks separate values; dates or headers are not read.
  2. Choose a window from 1 to 1,000 that does not exceed the number of observations, then select SMA or EMA.
  3. 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.
  4. 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.

You add
Values in order: 10,20,30,80,50 Window: 3 Average: Exponential moving average (EMA)
You get
Positions 1 and 2 have no average. Position 3 has EMA 20, position 4 has EMA 50 and position 5 has EMA 50. The first three-value mean seeds the series; alpha is 0.5.

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.

Page updated · Project managed by Tony Hines · Report a problem with Moving Average Calculator