SPC Charts
Featured articles

Control Limits Formulas for X-bar, R and I-MR Charts

Short answerThe control limits formula for an X-bar chart on this site is X-double-bar ± A2 × R-bar, and for the R chart it is D3 × R-bar and D4 × R-bar, with A2, D3 and D4 taken from the usual tables for subgroup size n = 2 to 5.

Last reviewed December 1, 2026By SPC Charts rules team, Oxmaint Inc.2 min read
Control limits formula preview showing control charts, Cpk/Ppk and out-of-control alerts

What are the formulas, written out?

3-sigma Shewhart limits as commonly applied. See the NIST/SEMATECH e-Handbook chapter we cite.
ChartCenter lineLimits
X-barX-double-barX-double-bar ± A2 × R-bar
RR-barLCL = D3 × R-bar, UCL = D4 × R-bar
Individuals (I)X-bar of the individualsX-bar ± 2.66 × MR-bar
Moving range (MR)MR-barUCL = 3.267 × MR-bar; LCL is typically 0
Standard constants included in the public preview. If you need n outside 2–5, use a cited method; this preview will not invent a constant.
nd2A2D3D4
21.1281.88003.267
31.6931.02302.574
42.0590.72902.282
52.3260.57702.114

Worked X-bar limits from the demo

R-bar is 0.036, A2 is 0.577, so A2 × R-bar is 0.0208. X-double-bar is 20.010, so the X-bar limits are 19.989 and 20.031 mm. Subgroup 6 sits above the UCL.

Formulas as commonly stated in the NIST/SEMATECH e-Handbook capability and control-chart chapters. Demo specs: LSL 19.85, USL 20.15 mm.
StatisticFormula used hereDemo value
X-double-barMean of subgroup means20.010 mm
R-barMean of subgroup ranges0.036 mm
X-bar UCL / LCLX-double-bar ± A2 × R-bar (n=5, A2=0.577)20.031 / 19.989 mm
R UCL / LCLD4 × R-bar / D3 × R-bar (D4=2.114, D3=0)0.076 / 0.000 mm
Within σ estimateR-bar / d2 (d2=2.326 for n=5)0.0155 mm
Cp(USL − LSL) / (6σ)3.230
Cpkmin( (USL − X-bar)/(3σ), (X-bar − LSL)/(3σ) )3.019
PpkSame form with overall sample standard deviation1.793

What these formulas are not?

  • Specification limits.
  • A full Western Electric or Nelson test.
  • A promise that n = 5 is always right.

How can you apply them quickly?

Paste a table into the free preview or, if you already have X-bar and R-bar, use the Cpk calculator for the index half of the work. Write the constants on the pack so a later reader does not have to guess.

SPC Charts is a calculation and charting tool, not a substitute for a quality system, a process-validation study, or professional statistical advice. It is not affiliated with NIST, ISO, AIAG or any standards body.

Frequently asked questions

Why 2.66 on an I-chart?

It is 3/d2 with d2 = 1.128 for moving ranges of n = 2, a common textbook factor. We show it with the result.

Do you include n = 6 or more?

Not in the public preview’s constant table.

Where can I read a public source?

The NIST/SEMATECH e-Handbook chapter on Shewhart control charts, linked from the methodology page.

How much does the software cost?

$29 per run, $22 a month or $209 a year.

Official source. Chart and capability methods on this page follow NIST/SEMATECH e-Handbook: Shewhart Control Charts. Always confirm current rules and rates with your base jurisdiction before filing.

Rebuild this month’s chart pack from the sheet you already have

Control charts, Cpk and Ppk, and out-of-control alerts. Full report $29 per run or $209 a year.

Start a free preview