cma calculator

Cumulative Moving Average (CMA) Calculator

Paste or type your values below. You can separate numbers with commas, spaces, or new lines.

Supports negative numbers and decimals (for example: -4.5, 3.2).
Step Value Running Sum CMA

What is a CMA calculator?

A CMA calculator computes the cumulative moving average of a sequence of values. Unlike a fixed-window moving average (for example, a 7-day average), the cumulative moving average uses every value seen so far. As each new number arrives, the average updates smoothly.

This makes CMA useful when you want a stable long-term signal from noisy data, such as tracking daily expenses, website traffic, production output, grades, or measurement data.

CMA formula

For a sequence of values x₁, x₂, x₃, ... , xₙ, the cumulative moving average at step n is:

CMAₙ = (x₁ + x₂ + ... + xₙ) / n

You can also update CMA incrementally without re-summing everything:

CMAₙ = CMAₙ₋₁ + (xₙ - CMAₙ₋₁) / n

How to use this calculator

  • Enter your values in the input box.
  • Click Calculate CMA.
  • Review the summary (count, sum, and final CMA).
  • Use the step table to see how the average changes after each data point.

Why cumulative moving average is useful

1) Budget and spending trends

If your daily spending is erratic, a CMA gives a clearer view of your average spending pattern over time. This helps you avoid overreacting to one unusually high or low day.

2) Performance tracking

Whether you're measuring workout volume, sales calls, or study hours, CMA reveals long-term consistency. You can compare today's value against your cumulative average to see if you're above or below your trend.

3) Noise reduction

Raw data can be volatile. CMA smooths fluctuations and makes broad direction easier to interpret, which is especially useful in dashboards and weekly reports.

CMA vs simple average vs rolling average

  • Simple average: One average for a complete fixed dataset.
  • Cumulative moving average: Updates continuously as data grows; each new point changes the overall average.
  • Rolling (window) average: Uses only the most recent fixed number of points (like last 7 or 30 days).

Use CMA when you care about the full historical trend. Use rolling averages when you care more about recent behavior.

Common mistakes to avoid

  • Mixing units (for example, dollars and percentages in one list).
  • Including missing values as zero when they should be excluded.
  • Expecting CMA to react quickly to recent changes (it becomes more stable over time).
  • Using too few data points and assuming the trend is reliable.

Quick example

Suppose your first five values are: 8, 10, 12, 6, 14.

  • Step 1 CMA = 8.00
  • Step 2 CMA = (8 + 10) / 2 = 9.00
  • Step 3 CMA = 10.00
  • Step 4 CMA = 9.00
  • Step 5 CMA = 10.00

The table generated by this tool shows this same progression automatically for your own numbers.

🔗 Related Calculators