🔬
🔬 Science & engineering

CUSUM & EWMA Control Chart Calculator

Results update as you type.

Your numbers

Understanding the CUSUM and EWMA control chart calculator — concept and principle

The exponentially weighted moving average (EWMA) chart and the cumulative sum (CUSUM) chart are statistical process control tools that catch small, sustained shifts in a process mean that an ordinary Shewhart chart is slow to notice. This calculator runs both through your data and checks for a signal.

EWMA update and control limitEach EWMA value is 20% of the new point plus 80% of the previous EWMA; the sixth value 10.229 crosses the 10.2 limit.EWMA: a running blend that spots driftraw x → EWMA z (λ = 0.2)x 10.110.020z1x 1010.016z2x 10.210.053z3x 10.310.102z4x 10.410.162z5x 10.510.229z6limits 10 ± 3 × 0.2 × √(0.2/1.8) = 9.8 – 10.210.5new x × 0.2+10.162old z × 0.8=10.229new z10.229 > 10.2 → out of controla steady upward drift adds up
Blending each point with the past smooths out noise, so a slow drift stands out.

How it is calculated

λ (between 0 and 1) sets how much weight the newest observation gets, σ is the known process standard deviation for individual observations, and L sets the width of the limits in standard-deviation units.

The principle

Expanding the recursion shows that zᵢ is a weighted average of all past data, with weights λ, λ(1 − λ), λ(1 − λ)², … that shrink geometrically. Old observations fade but never vanish, so a small persistent shift accumulates in z while random noise averages out. The variance of zᵢ is σ² (λ/(2 − λ)) [1 − (1 − λ)²ⁱ], which settles at σ² λ/(2 − λ) after a few samples; that is where the limit width comes from.

Worked example

  1. Inputs: x = 10.1, 10.0, 10.2, 10.3, 10.4, 10.5; μ₀ = 10; σ = 0.2; λ = 0.2; L = 3.
  2. z₁ = 0.2 × 10.1 + 0.8 × 10 = 10.02; z₂ = 10.016; z₃ = 10.0528; z₄ = 10.10224; z₅ = 10.161792.
  3. z₆ = 0.2 × 10.5 + 0.8 × 10.161792 = 10.2294336.
  4. Limit half-width: 3 × 0.2 × √(0.2 / 1.8) = 0.2, so limits are 9.8 – 10.2.
  5. 10.2294 is above 10.2, so the chart says out of control.
  6. CUSUM with k = 0.1 and h = 1.0: C⁺ = 0, 0, 0.1, 0.3, 0.6, 1 and C⁻ stays 0; C⁺ reaches h at the sixth point, so the result is signal at obs. 6.

No single observation is more than 2.5σ from target, yet both charts detect the steady upward drift at the sixth point.

How Last EWMA changes with Target meanHow Last EWMA changes with Target mean89101112132.557.51012.51520Example: 10.2294336Target mean
Each point is the calculator re-run with only “Target mean” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Target meanLast EWMA
2.58.2633536
58.9187136
7.59.5740736
1010.2294336
12.510.8847936
1511.5401536
2012.8508736

How to read the result

"In control" means the latest EWMA lies within the limits, not that the process is on target. After a signal, look for a cause that began a few samples earlier, since the EWMA lags. Common choices are λ = 0.05 to 0.25 with L near 3.

Common mistakes

Keep in mind: The calculator uses the asymptotic limits. For the first few points the exact limits are narrower, so early signals may be missed. EWMA assumes independent, roughly normal observations with a known target and σ.

Frequently asked questions

How do I choose λ?

Use a smaller λ to detect smaller shifts. Published ARL tables, such as those of Lucas and Saccucci, help match λ and L to the shift size and false-alarm rate you want.

Sources: S. W. Roberts (1959), Control chart tests based on geometric moving averages, Technometrics 1(3) · J. M. Lucas and M. S. Saccucci (1990), Exponentially weighted moving average control schemes: properties and enhancements, Technometrics 32(1) · D. C. Montgomery, Introduction to Statistical Quality Control, Wiley

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →