ReliabilityPro
HomeTools › Quality & SPC

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.

Open the Control Chart Builder tool iOS app Android app

Formula

X-bar chart limitsUCL = X̿ + A₂·R̄ | LCL = X̿ − A₂·R̄
R chart limitsUCL_R = D₄·R̄ | LCL_R = D₃·R̄
Process sigma estimateσ̂ = R̄ / d₂

Control chart constants

SubgroupA₂D₃D₄d₂
n = 2A₂ = 1.880D₃ = 0D₄ = 3.267d₂ = 1.128
n = 3A₂ = 1.023D₃ = 0D₄ = 2.574d₂ = 1.693
n = 4A₂ = 0.729D₃ = 0D₄ = 2.282d₂ = 2.059
n = 5A₂ = 0.577D₃ = 0D₄ = 2.114d₂ = 2.326
n = 6A₂ = 0.483D₃ = 0D₄ = 2.004d₂ = 2.534
n = 7A₂ = 0.419D₃ = 0.076D₄ = 1.924d₂ = 2.704

Worked example

Twenty subgroups of n = 5. Grand mean X̿ = 24.60, average range R̄ = 1.40.

  1. A₂ for n = 5 is 0.577.
  2. UCL = 24.60 + 0.577 × 1.40 = 24.60 + 0.8078 = 25.41
  3. LCL = 24.60 − 0.8078 = 23.79
  4. UCL_R = 2.114 × 1.40 = 2.96; LCL_R = 0
  5. σ̂ = 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.

Run this with your own numbers

Common mistakes

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

Process CapabilityQuality & SPC Gage R&R PlannerQuality & SPC Gage R&R ValidatorQuality & SPC Lean Six SigmaQuality & SPC Quality StandardsQuality & SPC Pareto AnalyzerQuality & SPC

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.

Browse all 126 tools Open the web app