SPC Charts
Guides

How to Build SPC Control Charts

Short answerTo build SPC control charts, collect repeating measurements under a stated sampling plan, choose X-bar and R for subgroups or I-MR for individuals, compute 3-sigma Shewhart limits with standard constants, and list points that fall outside those limits. If a specification exists, compute Cp, Cpk and Ppk and label the sigma you used.

Last reviewed December 1, 2026By SPC Charts rules team, Oxmaint Inc.3 min read
How to build SPC control charts preview showing control charts, Cpk/Ppk and out-of-control alerts

What should you do before the first point is plotted?

Name the characteristic, the unit, the measurement method, and why this subgroup size was chosen. Decide what you will do if a point is out of control. If you need a capability index, write LSL and USL down in the same unit. If you cannot explain those choices, a polished chart will not help you later.

How do you compute an X-bar and R chart?

  1. For each subgroup, compute the mean and the range (max − min).
  2. Average the means to get X-double-bar; average the ranges to get R-bar.
  3. X-bar UCL and LCL = X-double-bar ± A2 × R-bar.
  4. R UCL = D4 × R-bar; R LCL = D3 × R-bar (often zero for small n).
  5. Mark any subgroup mean or range outside its limits.

For n = 5, A2 = 0.577, d2 = 2.326, D4 = 2.114, D3 = 0. The demo uses those constants and flags subgroup 6. See the NIST/SEMATECH e-Handbook: Shewhart Control Charts.

How do you add Cpk and Ppk?

Estimate within-subgroup σ as R-bar/d2. Cpk is the minimum of (USL − X-double-bar)/(3σ) and (X-double-bar − LSL)/(3σ). Ppk uses overall sample s in the same form. On the demo, Cpk is 3.019 and Ppk is 1.793. If the chart is out of control, report that fact with the index; do not present the index alone.

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

How do you close the job?

  1. Write the constants and the data vintage on the pack

    A later reader must be able to rerun it.

  2. Hand the alerts to whoever owns the reaction plan

    A chart that nobody acts on is decoration.

  3. Export the file into the quality record

    Or paste the table into the free preview and keep a copy of the result.

  4. Do not freeze pretty limits after a shift “so next month looks better”

    Recalculate only when your procedure says you may.

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

Can I build this automatically in software?

You can compute it automatically from a table. You cannot skip defining the sampling plan.

What if I have individuals, not subgroups?

Use an I-MR chart and MR-bar/d2, with the usual 2.66 and 3.267 factors, as the preview does when n = 1.

Do I have to test normality first?

This site does not silently switch formulas after a normality test. If your procedure requires a test, do it and say so.

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