Control Chart Calculator (X-bar & R)
A control chart separates common-cause variation, which is inherent to the process, from special-cause variation, which has a findable and fixable source. Control limits are calculated from the process itself — they are not specification limits, and confusing the two is the most consequential error in SPC.
Formula
Control chart constants
| Subgroup | A₂ | D₃ | D₄ | d₂ |
|---|---|---|---|---|
| n = 2 | A₂ = 1.880 | D₃ = 0 | D₄ = 3.267 | d₂ = 1.128 |
| n = 3 | A₂ = 1.023 | D₃ = 0 | D₄ = 2.574 | d₂ = 1.693 |
| n = 4 | A₂ = 0.729 | D₃ = 0 | D₄ = 2.282 | d₂ = 2.059 |
| n = 5 | A₂ = 0.577 | D₃ = 0 | D₄ = 2.114 | d₂ = 2.326 |
| n = 6 | A₂ = 0.483 | D₃ = 0 | D₄ = 2.004 | d₂ = 2.534 |
| n = 7 | A₂ = 0.419 | D₃ = 0.076 | D₄ = 1.924 | d₂ = 2.704 |
Worked example
Twenty subgroups of n = 5. Grand mean X̿ = 24.60, average range R̄ = 1.40.
- A₂ for n = 5 is 0.577.
- UCL = 24.60 + 0.577 × 1.40 = 24.60 + 0.8078 = 25.41
- LCL = 24.60 − 0.8078 = 23.79
- UCL_R = 2.114 × 1.40 = 2.96; LCL_R = 0
- σ̂ = R̄ / d₂ = 1.40 / 2.326 = 0.602
Control limits are 23.79 to 25.41 on the X-bar chart. Always read the R chart first — if the range is out of control, the X-bar limits are computed from an unstable estimate and cannot be trusted.
Common mistakes
- Drawing specification limits on a control chart. Control limits describe what the process does; specifications describe what the customer wants. They answer different questions.
- Recalculating limits every time new data arrives. Freeze limits from a stable baseline period, then compare new data against them.
- Reacting to every point as though it were a special cause — tampering with a stable process demonstrably increases its variation.
- Interpreting the X-bar chart before confirming the R chart is in control.
Frequently asked questions
- What are the Western Electric rules?
- A set of pattern tests for special causes: one point beyond 3σ; two of three consecutive points beyond 2σ on the same side; four of five beyond 1σ on the same side; and eight consecutive points on one side of the centre line. Each has a low false-alarm rate individually, but applying many rules at once raises the combined false-alarm rate considerably.
Related tools
About Reliability Pro
Control Chart Builder is part of a suite of 126 reliability, maintenance and quality engineering tools covering life data analysis, accelerated testing, system reliability, FMEA and root cause, SPC, and design for reliability. It runs in the browser and as native iOS and Android apps, so the same calculation is available at a desk or in front of the asset.