Skip to main content
Modules / Tools / Statistical process control chart

Statistical process control chart

Draw X-bar and R, X-bar and S, individuals and moving range, p, np, c and u charts from your data, with control limits and the run rules that flag a process out of control.

Quality statisticsFree to useHow it worksSourcesWhere it helps

Fills the inputs below with typical figures. Replace any of them with your own.

Chart and data

Shown on the chart axis.

One subgroup per line, readings separated by commas, spaces or tabs. Every subgroup the same size, 2 or more. Best for subgroups up to about 10.

Limits and rules

Use the first points as a baseline and judge the rest against those limits.

Leave out only points whose cause is known and removed.

Run rules apply to the main chart. The range, deviation and moving range charts use the limits only.

3 is the usual width.

X-bar chart: centre line
10
Upper 10.158, lower 9.8417
R chart: centre line
0.21725
Upper 0.49578, lower 0
Estimated sigma
0.1055
average range / d2 (d2 = 2.0588 for subgroups of 4)
Points beyond the limits
0
20 points, 20 used for the limits
Points breaking any rule
0
Western Electric rules 1 to 4, both charts

No point breaks the selected rules.

Sign in to save your inputs and come back to them later.

X-bar chart
Line chart of Subgroup mean against Point number, 4 lines: Data, Centre line, Upper limit, Lower limit. The same numbers are in the table under the chart.9.91010.15101520Point numberSubgroup mean
  • Data (solid line, circles)
  • Centre line (dashed line, squares)
  • Upper limit (dotted line, triangles)
  • Lower limit (dash-dot line, diamonds)
Show the data as a table
X-bar chart
Point numberDataCentre lineUpper limitLower limit
19.9591010.169.842
29.9851010.169.842
39.9341010.169.842
410.081010.169.842
59.9631010.169.842
69.951010.169.842
710.011010.169.842
89.9291010.169.842
99.9971010.169.842
1010.031010.169.842
119.9751010.169.842
1210.041010.169.842
1310.091010.169.842
1410.051010.169.842
1510.031010.169.842
169.9471010.169.842
179.9671010.169.842
189.9861010.169.842
1910.041010.169.842
2010.041010.169.842
X-bar chart: every point and the rules it breaks
PointValueLower limitCentreUpper limitRules broken
19.95859.84171010.158none
29.98489.84171010.158none
39.9349.84171010.158none
410.0769.84171010.158none
59.96279.84171010.158none
69.95039.84171010.158none
710.0119.84171010.158none
89.92929.84171010.158none
99.99739.84171010.158none
1010.0299.84171010.158none
119.9759.84171010.158none
1210.0449.84171010.158none
1310.0949.84171010.158none
1410.0479.84171010.158none
1510.0269.84171010.158none
169.94659.84171010.158none
179.96679.84171010.158none
189.98639.84171010.158none
1910.0439.84171010.158none
2010.0379.84171010.158none
R chart
Line chart of Subgroup range against Point number, 4 lines: Data, Centre line, Upper limit, Lower limit. The same numbers are in the table under the chart.00.10.20.30.45101520Point numberSubgroup range
  • Data (solid line, circles)
  • Centre line (dashed line, squares)
  • Upper limit (dotted line, triangles)
  • Lower limit (dash-dot line, diamonds)
Show the data as a table
R chart
Point numberDataCentre lineUpper limitLower limit
10.0950.21730.49580
20.0770.21730.49580
30.3050.21730.49580
40.1930.21730.49580
50.2350.21730.49580
60.2960.21730.49580
70.3660.21730.49580
80.2970.21730.49580
90.2080.21730.49580
100.1890.21730.49580
110.3090.21730.49580
120.2310.21730.49580
130.1810.21730.49580
140.2070.21730.49580
150.1140.21730.49580
160.2170.21730.49580
170.2430.21730.49580
180.30.21730.49580
190.1970.21730.49580
200.0850.21730.49580
R chart: every point and the rules it breaks
PointValueLower limitCentreUpper limitRules broken
10.09500.217250.49578none
20.07700.217250.49578none
30.30500.217250.49578none
40.19300.217250.49578none
50.23500.217250.49578none
60.29600.217250.49578none
70.36600.217250.49578none
80.29700.217250.49578none
90.20800.217250.49578none
100.18900.217250.49578none
110.30900.217250.49578none
120.23100.217250.49578none
130.18100.217250.49578none
140.20700.217250.49578none
150.11400.217250.49578none
160.21700.217250.49578none
170.24300.217250.49578none
180.300.217250.49578none
190.19700.217250.49578none
200.08500.217250.49578none
Centre lines and control limits
ItemValue
X-bar chart: centre line10
X-bar chart: upper control limit10.158
X-bar chart: lower control limit9.8417
R chart: centre line0.21725
R chart: upper control limit0.49578
R chart: lower control limit0

How it works

A control chart separates the ordinary, ever-present variation in a process from the signals that something has changed. This tool draws the Shewhart charts used in semiconductor lines: X-bar with R or S for subgroups, individuals with a moving range for single readings, and the p, np, c and u charts for counts. It computes the limits from your data (phase I) or from a standard you already have (phase II), and checks the run rules.

  1. Choose the chart by the data. Subgroup readings (several parts measured together) go on an X-bar chart with R for small subgroups or S for larger ones. Single readings go on an individuals chart with a moving range. A count of defective units out of a sample uses p (fraction) or np (number); a count of defects found in an inspection unit uses c when the unit is always the same size and u when it varies.
  2. Variables chart limits. Sigma is estimated from the average range, average standard deviation or average moving range with the constants d2, d3 and c4, which this tool computes exactly rather than reading from a table. Limits are three sigma (or the width you set) either side of the centre line; a negative lower limit on a range or standard deviation chart is set to zero.sigma = R-bar / d2, or s-bar / c4, or MR-bar / d2(2); X-bar limits = mean ± 3 sigma / sqrt(n); R limits = R-bar ± 3 d3 sigma; S limits = s-bar ± 3 sqrt(1 − c4^2) x s-bar / c4
  3. Individuals chart limits. The moving range is the absolute difference between successive readings. Its average over d2 for ranges of 2 (1.128) estimates sigma. The individuals limits are the mean plus or minus three of those sigmas, which is 2.66 average moving ranges.limits = mean ± 3 MR-bar / 1.128; MR chart upper limit = MR-bar + 3 d3(2) MR-bar / d2(2) = 3.267 MR-bar
  4. Attribute chart limits. Counts follow the binomial (defectives) or Poisson (defects) distribution, so the standard deviation comes from the centre line itself. With sample sizes that vary, p and u charts give each point its own limits. A lower limit below zero is shown as zero.p chart: p-bar ± 3 sqrt(p-bar (1 − p-bar) / n); np chart: n p-bar ± 3 sqrt(n p-bar (1 − p-bar)); c chart: c-bar ± 3 sqrt(c-bar); u chart: u-bar ± 3 sqrt(u-bar / n)
  5. Phase I and phase II. In phase I the limits are estimated from data you believe represents the process; you can use only the first points as a baseline, and leave out points that are beyond the limits for a known cause. In phase II the limits come from a standard you already have (a known mean and sigma, or a known fraction or rate) and the new data are judged against them.
  6. Run rules. The Western Electric rules flag one point beyond 3 sigma, two of three beyond 2 sigma on one side, four of five beyond 1 sigma on one side and eight in a row on one side of the centre line. The Nelson rules replace the last by nine in a row and add six steadily rising or falling, fourteen alternating, fifteen within 1 sigma and eight beyond 1 sigma on either side. The zones are drawn from the plotted point's own sigma, so they follow the limits when sample sizes vary. The range, standard deviation and moving range charts use only the limits rule.

Assumptions

  • Readings or counts are in time order and the points are independent. Autocorrelated data, such as a drifting bath, give many false alarms.
  • Subgroups for X-bar charts are rational: taken so that variation within a subgroup is common-cause only, and all subgroups are the same size.
  • Variables charts treat the subgroup means as normal (the individuals chart treats the readings as normal); attribute charts use the normal approximation to the binomial or Poisson, which needs about 5 expected events per sample.
  • Three sigma limits are the default. A different width changes the false alarm rate; the run rules still use 1 and 2 sigma zones.
  • At least 20 to 25 baseline points are used to estimate limits; fewer give limits that move as data arrive.

Limits and warnings

  • A point beyond the limits is evidence of a special cause, not proof; with 3 sigma limits about one in 370 points in a stable process is a false alarm, and more with the extra run rules.
  • Charts of rare events (very low p or c) with small samples need exact limits, which are not drawn here.
  • The tool does not detect small sustained shifts quickly; use a CUSUM or EWMA chart for that.
  • Subgroups of different sizes on X-bar charts are not supported; lines with an unusual size are left out and the tool says so.
  • The leave-out option does one pass only. Repeated clean-up until no point is beyond the limits hides real instability.

Sources

The methods and default figures rest on these public sources. The wording here is our own; read the source for its full text.

Where it helps

The lifecycle stages this tool serves: 10 stages in 7 lifecycles.

Method notev1Formula, ranges, sources and limits

Computes Shewhart control limits for X-bar and R or S, individuals and moving range, p, np, c and u charts from pasted data or a known standard, and flags points that break the Western Electric or Nelson rules.

Formula

sigma = R-bar / d2, or s-bar / c4, or MR-bar / d2(2); X-bar limits = mean ± 3 sigma / sqrt(n); R limits = R-bar ± 3 d3 sigma; S limits = s-bar ± 3 sqrt(1 − c4^2) x s-bar / c4; limits = mean ± 3 MR-bar / 1.128; MR chart upper limit = MR-bar + 3 d3(2) MR-bar / d2(2) = 3.267 MR-bar; p chart: p-bar ± 3 sqrt(p-bar (1 − p-bar) / n); np chart: n p-bar ± 3 sqrt(n p-bar (1 − p-bar)); c chart: c-bar ± 3 sqrt(c-bar); u chart: u-bar ± 3 sqrt(u-bar / n)

Inputs
InputUnitRange it holds forComes from
Chart typechoicexbar-r, xbar-s, imr, p, np, c, uYour figure
Limits fromchoiceestimate, knownYour figure
Run ruleschoicelimits, we, nelsonYour figure
Sample size, when counts are pasted without oneunitsfrom 1Your figure
Known centre line, for phase IIsame unit as the chartanyYour figure
Known sigma, for phase II variables chartssame unit as the readingsfrom 0Your figure
Points used to estimate the limits, 0 for allpointsfrom 0Your figure
Width of the limitssigma1 to 6Your figure

Outputs: Centre line (chart units); Upper control limit (chart units); Lower control limit (chart units); Estimated sigma of the plotted statistic or process (chart units); Points beyond the control limits (points); Points that break any selected rule (points).

Assumptions

  • Readings or counts are in time order and the points are independent. Autocorrelated data, such as a drifting bath, give many false alarms.
  • Subgroups for X-bar charts are rational: taken so that variation within a subgroup is common-cause only, and all subgroups are the same size.
  • Variables charts treat the subgroup means as normal (the individuals chart treats the readings as normal); attribute charts use the normal approximation to the binomial or Poisson, which needs about 5 expected events per sample.
  • Three sigma limits are the default. A different width changes the false alarm rate; the run rules still use 1 and 2 sigma zones.
  • At least 20 to 25 baseline points are used to estimate limits; fewer give limits that move as data arrive.

Uncertainty: The limits are exact for the sigma estimated. With 20 to 25 baseline points the estimated limits themselves carry a sampling error of several percent, and the false alarm rate of the run rules depends on independent, normal data.

Known limits

  • A point beyond the limits is evidence of a special cause, not proof; with 3 sigma limits about one in 370 points in a stable process is a false alarm, and more with the extra run rules.
  • Charts of rare events (very low p or c) with small samples need exact limits, which are not drawn here.
  • The tool does not detect small sustained shifts quickly; use a CUSUM or EWMA chart for that.
  • Subgroups of different sizes on X-bar charts are not supported; lines with an unusual size are left out and the tool says so.
  • The leave-out option does one pass only. Repeated clean-up until no point is beyond the limits hides real instability.

Where the method comes from

Follows NIST/SEMATECH e-Handbook of Statistical Methods, section 6.3, Univariate and multivariate control charts (opens in a new tab). The platform's version departs from it as follows.

  • The range and standard deviation constants are computed from their definitions rather than looked up Why: A computed constant works for any subgroup size, where a printed table stops at a small size.
  • Phase II charts, a baseline, a one-pass clean-up, and the Western Electric and Nelson run rules are added Why: These are how the charts are used on a line, and the handbook describes the rules in prose without a checker.

Worked example from the source: 25 wafers with 400 defects: the handbook finds c-bar = 16, upper limit 28 and lower limit 4. Source result: upper limit 28. This model, same inputs: 28.

Reference example, checked by test: NIST/SEMATECH e-Handbook, section 6.3.3.1, c chart example: 25 wafers with 400 defects in all give c-bar = 16, upper limit 28 and lower limit 4; wafer 24 (31 defects) is above the upper limit, and wafer 3 (28 defects) is on it. Centre line 16; Upper control limit 28; Lower control limit 4; Estimated sigma of the plotted statistic or process 4; Points beyond the control limits 1; Points that break any selected rule 1.

Versions

  • v1 (2026-10-25): First version, built from the tool idea.

All models in the register

Terms on this page

Control chart
A plot of a process measurement over time against its centre line and statistical control limits, used to spot when a process shifts or becomes unstable so it can be corrected before it produces ba...
Semiconductor
A material whose electrical conductivity sits between that of a conductor and an insulator, and can be controlled by doping, temperature, light or an applied electric field.
Warp
A group of 32 GPU threads that execute the same instruction in lockstep on an NVIDIA architecture.

The full glossary

Need help acting on this?

Tell us what you're after and leave your email: we'll connect you with the right person on the Hub.