X-bar and R Control Chart Limits Calculator
Where should the control limits sit on an X-bar and R chart? Paste your subgroup measurements, one subgroup per line, or enter the grand mean and average range. The tool returns the limits for both charts and the process standard deviation estimated from the ranges.
Statistical limits, not specification limits. Control limits describe what the process does; they say nothing about whether the parts meet the drawing.
How this works
An X-bar and R chart watches a process through small subgroups taken at intervals: the averages chart catches shifts in the centre, the ranges chart catches changes in spread. The limits are set three standard errors from the centre line, and for small subgroups the standard deviation is estimated from the average range using the constant d2, which depends only on the subgroup size.
| n | A2 | D3 | D4 | d2 |
|---|---|---|---|---|
| 2 | 1.880 | 0 | 3.267 | 1.128 |
| 3 | 1.023 | 0 | 2.574 | 1.693 |
| 4 | 0.729 | 0 | 2.282 | 2.059 |
| 5 | 0.577 | 0 | 2.114 | 2.326 |
| 6 | 0.483 | 0 | 2.004 | 2.534 |
| 7 | 0.419 | 0.076 | 1.924 | 2.704 |
| 8 | 0.373 | 0.136 | 1.864 | 2.847 |
| 9 | 0.337 | 0.184 | 1.816 | 2.970 |
| 10 | 0.308 | 0.223 | 1.777 | 3.078 |
Worked examples
Using the limits well
- Collect enough data. Limits from a handful of subgroups are unstable; 20–25 subgroups from a period when the process ran normally is the usual starting point.
- Check the R chart first. If the ranges are out of control, the X-bar limits (which use R̄) are not trustworthy.
- Never use spec limits as control limits. Capability against the drawing is a separate question; see the Cp / Cpk calculator.
- Rational subgroups. Take each subgroup over a short time from one cavity or stream, so the variation inside a subgroup is the short-term noise. In multi-cavity molds, chart cavities separately or by cavity group.
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods, 6.3.2.1 Shewhart X-bar and R and S control charts
- NIST/SEMATECH e-Handbook, 6.3.2 What are variables control charts?
- Control chart constants A2, D3, D4, d2 (ASTM STP 15D / standard SPC tables, as reproduced in SPC texts such as Montgomery, Introduction to Statistical Quality Control)
Reviewed by the JCH tooling team · updated November 2026
Questions and answers
How do you calculate X-bar chart control limits?
UCL = grand mean + A2 × average range and LCL = grand mean − A2 × average range, where A2 depends on the subgroup size (0.577 for n = 5).
How do you calculate R chart control limits?
UCL = D4 × average range and LCL = D3 × average range. For subgroups of 6 or fewer, D3 is 0, so the lower limit is zero.
How do I estimate sigma from the average range?
Divide the average range by d2 for your subgroup size: for n = 5, sigma ≈ R-bar ÷ 2.326.
How many subgroups do I need?
20 to 25 subgroups taken while the process ran normally is the usual minimum for setting trial control limits. Recalculate after removing points with known, fixed special causes.
Are control limits the same as specification limits?
No. Control limits come from the process data and show what it naturally does. Specification limits come from the drawing. Comparing the two is a capability study (Cp, Cpk).
Setting up SPC for a molded part?
This calculator sets the limits. Send the drawing and the JCH tooling team can help pick the critical dimensions and the sampling plan.
Send a drawing or question Book a call