CalcDepo

Moving Average Calculator

Compute the simple moving average of the latest values.

Inputs

Results

Latest moving average11
Overall mean7.75

Chart

Not what you need? Search by intent

Describe what you want to find β€” β€œsmooth data” β€” and jump to the right calculator.

How to use the moving average calculator

Compute the simple moving average of the latest values. Enter data values, window size in the fields above; the latest moving average, overall mean are computed instantly and plotted on the chart so you can see how the answer changes.

Formula

Latest moving average = mean(d.slice(-k))
Overall mean = mean(d)

Variables

  • d β€” Data values
  • k β€” Window size

Worked example

With data values = 3,5,7,6,8,10,12,11, window size = 3, the calculator gives latest moving average β‰ˆ 11; overall mean β‰ˆ 7.75.

Frequently asked questions

What is the formula for the moving average calculation?

Latest moving average = mean(d.slice(-k)). Overall mean = mean(d). Here d is data values, k is window size.

What inputs do I need for the moving average calculator?

You need data values, window size. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.

How do I use this calculator?

Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.

Is the result exact?

Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.

Related calculators

More in Statistics & Probability: Mean, Median and Mode Β· Standard Deviation Β· Quartiles and IQR Β· Percentile Β· Z-Score Β· Normal Distribution Probability Β· Inverse Normal Β· Binomial Probability