Skip to content

Moving Average Calculator

Result

Calculated result Ready Change any value to calculate instantly.
↗ Math

Moving Average Calculator — free online calculator.

Formula

SMA(t) = (x(t) + x(t−1) + … + x(t−p+1)) / p
  • Moving Average Calculator computes a simple moving average over a chosen window for an ordered series of values.
  • The main inputs are Values (comma or space separated), Period. Enter them in the units and format shown in the calculator.
  • Keep comparable quantities in compatible units whenever the formula combines or compares them.
  • Changing any input above recalculates the result with the same calculation engine used by this page.

Example: Moving Average

Inputs
  • Values (comma or space separated): 10, 12, 14, 16, 18, 20
  • Period: 3

For 10, 12, 14, 16, 18, 20 with a period of 3, the moving averages are 12, 14, 16 and 18.

Sample result: Calculating…

Frequently asked questions

What does the Moving Average calculate?

Results are estimates based on the entered assumptions.

Which values should I enter?

Enter Values (comma or space separated), Period using the units and format shown beside each field.

What formula does this calculator use?

The calculator uses the following relationship: SMA(t) = (x(t) + x(t−1) + … + x(t−p+1)) / p.

Why might my result differ from another source?

Results can differ when another source uses different units, rounding rules, conventions or assumptions. Compare the inputs and definitions before comparing results.

Does the result update automatically?

Yes. Changing an input updates the result using the same calculation engine shown on this page.

Page information

Updated: October 7, 2026