🔬
🔬 Science & engineering

Control Chart Limits Calculator (X̄-R)

Results update as you type.

Your numbers

Understanding the X̄-R control chart limits calculator — concept and principle

An X̄-R chart is the classic Shewhart control chart for measured data collected in small subgroups, such as five parts taken from a line every hour. The X̄ chart tracks the subgroup averages, showing shifts in the process centre, and the R chart tracks the subgroup ranges, showing changes in short-term variation. This calculator turns the grand mean, the average range and the subgroup size into the upper and lower control limits for both charts and an estimate of the process standard deviation.

X-bar and R chart control limitsWith grand mean 50, average range 4 and n = 5, the X-bar limits are 52.308 and 47.692; the R chart runs 0 to 8.456.Fences 3σ around the centre linesubgroup of n = 5→ mean X̄ of the 5→ range R = max − minA₂ = 0.577 for n = 5UCLCLLCL52.315047.6950 ± 0.577 × 4 = 50 ± 2.308R chart 0 – 8.456D₄ 2.114 × 4 · D₃ = 0σ ≈ 1.72R̄ ÷ d₂ = 4 ÷ 2.326
Subgroup means should wander inside 47.69–52.31; a point outside signals a special cause.

How it is calculated

The constants A₂, D₃, D₄ and d₂ depend only on the subgroup size n (2 to 10 here) and come from standard SPC tables; for n = 5 they are 0.577, 0, 2.114 and 2.326.

The principle

Control limits are set at about three standard deviations of the plotted statistic from its centre line. For normally distributed data, the expected range of a subgroup of n values is d₂ × σ, so R̄/d₂ estimates σ from within-subgroup variation alone. A subgroup mean has standard deviation σ/√n, so its 3-sigma limits are X̿ ± 3R̄/(d₂√n); A₂ is just 3/(d₂√n) worked out in advance. D₃ and D₄ do the same for the spread of the range itself; for n ≤ 6 the lower limit would be negative, so D₃ is set to 0.

Worked example

  1. Inputs: X̿ = 50, R̄ = 4, n = 5 (A₂ = 0.577, D₃ = 0, D₄ = 2.114, d₂ = 2.326).
  2. A₂R̄ = 0.577 × 4 = 2.308.
  3. X̄ chart: UCL = 52.308, LCL = 47.692.
  4. R chart: UCL = 2.114 × 4 = 8.456, LCL = 0 × 4 = 0.
  5. σ ≈ 4 / 2.326 = 1.7197.

How to read the result

A point outside the limits signals a likely special cause worth investigating. Common supplementary rules also flag patterns inside the limits, such as a long run of points on one side of the centre line or a steady trend. Read the R chart first: if variation is out of control, the X̄ limits, which are built from R̄, are not reliable. Control limits describe what the process does; they are not specification limits.

Common mistakes

Keep in mind: The constants assume roughly normal, independent measurements within each subgroup. Autocorrelated or strongly skewed data can produce false alarms or missed signals.

Frequently asked questions

Why are control limits at three sigma?

Shewhart chose them as an economic balance: for a stable normal process only about 0.27% of points fall outside by chance, while real shifts are caught reasonably quickly.

How many subgroups do I need to set limits?

A common guideline is at least 20 to 25 subgroups before treating the limits as established.

Can I use the estimated σ for capability?

Yes; R̄/d₂ is the within-subgroup σ normally used for Cp and Cpk, provided the process is in control.

Sources: W. A. Shewhart, Economic Control of Quality of Manufactured Product, 1931 · ISO 7870-2, Control charts — Part 2: Shewhart control charts · 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 →