What is SPC? Statistical process control explained
Statistical process control (SPC) is a way of running a process by watching its data over time. You plot a key measurement on a control chart, and the chart's limits tell you whether the latest result is part of the process's normal, routine variation or a sign that something has changed. You act on real changes and leave the process alone the rest of the time. The goal is to catch problems while parts are still good, instead of sorting bad parts at final inspection.
Where SPC comes from
Walter Shewhart drew the first control chart in 1924, as an engineer working on the quality of telephone equipment in the Bell System, to keep products consistent from one batch to the next. W. Edwards Deming took the ideas further, taught them to Japanese manufacturers from 1950 on, and gave them the names most people use today: common causes and special causes. A century later the method is the same: plot the data in time order, compute limits from the process itself, and react only to signals.
The core idea: two kinds of variation
No process makes two parts exactly alike. Shaft diameters, fill weights, torque readings and cycle times all vary a little from one unit to the next. SPC sorts that variation into two kinds.
- Common-cause variation is the background noise built into the process: small differences in material, temperature, tool wear, operator technique and measurement. Each cause is small, there are many of them, and together they produce a stable, predictable spread. Reducing it means changing the process itself (a better fixture, a tighter material spec, a new machine), which is a management decision.
- Special-cause variation comes from something specific that is not normally there: a broken tool, a new lot of resin, a wrong offset after a changeover, a gage that was dropped. It shows up as a result that does not fit the usual pattern. It can usually be found and fixed by the people who run the process.
A process with only common-cause variation is in statistical control, or stable: you can predict what it will make tomorrow, within limits. A process with special causes is unpredictable. The article on common and special cause variation goes deeper, with examples of each.
The two mistakes SPC protects you from are the mirror image of each other: reacting to common-cause noise as if it were a signal (adjusting a machine that was fine, which makes the variation larger), and ignoring a real signal because it looks like noise.
Control charts: the main tool
A control chart is a time-ordered plot of a statistic, such as a measurement, a subgroup average or a proportion defective, with three lines:
- the center line, usually the average of the data;
- the upper control limit (UCL) and lower control limit (LCL), normally three standard deviations above and below the center line.
The standard deviation here is estimated from short-term variation, such as the ranges within small subgroups or the differences between consecutive points, not from all the data at once. That matters: if the process drifted during the data collection, the overall standard deviation is inflated by the drift, and limits computed from it would hide the very changes the chart is meant to show.
Why three standard deviations? For a stable process with roughly normal data, only about 0.27% of points fall beyond ±3σ by chance, about one point in 370. That keeps false alarms rare while still catching real changes of a useful size. Shewhart chose three sigma as an economic balance, not as a law of nature.
A point beyond a limit is the clearest signal, but not the only one. Patterns such as nine points in a row on one side of the center line also signal a change; the tests for special causes list the eight standard patterns.
Which chart you use depends on the data: Xbar-R charts for small subgroups of measurements, I-MR charts for one measurement at a time, P charts for the fraction defective, C and U charts for counts of defects, and more. The decision guide walks through the choice.
Try it: move the sliders to shift the process mean, widen its spread or add a slow drift, and watch which points the chart flags.
- CL
- 500.00 g
- UCL
- 503.58 g
- LCL
- 496.41 g
- σ estimate (MR̄/1.128)
- 1.20 g
New points: mean shift 0.0σ, spread ×1.0, drift 0.00σ per point. No test fires, so the chart gives no signal of a special cause.
Control limits are not specification limits
This is the most common confusion in SPC, so it is worth spelling out.
| Control limits | Specification limits | |
|---|---|---|
| Who sets them | The process, through its own data | The customer or the design engineer |
| What they describe | What the process actually does | What the product must do |
| Based on | The process mean and its short-term standard deviation | Function, fit, safety, contract |
| Question they answer | Has the process changed? | Is this part acceptable? |
| When they change | When the process is deliberately changed and limits are recomputed | When the drawing changes |
A process can be in control and still make parts out of specification, because its common-cause variation is simply too wide for the tolerance. A process can also be out of control while every part is still within specification. Comparing the two kinds of limits is the job of process capability analysis, not of the control chart. Never draw specification limits on a chart of averages: averages vary less than single parts, so the comparison is meaningless.
Example: shaft diameter on a CNC lathe
A lathe turns steel shafts with a diameter specification of 20.00 ± 0.03 mm (19.97 to 20.03 mm). Every 30 minutes the operator measures one shaft. Here are 20 consecutive results in millimeters, read across the rows:
| Shafts | ||||
|---|---|---|---|---|
| 19.999 | 19.997 | 20.001 | 20.004 | 20.007 |
| 20.002 | 20.000 | 19.999 | 20.005 | 20.009 |
| 20.003 | 19.997 | 19.998 | 20.008 | 20.003 |
| 20.018 | 20.002 | 19.997 | 19.999 | 20.000 |
With one value at a time, the right chart is an individuals chart, usually shown with its moving range chart as an I-MR chart. The calculation:
- The mean of the 20 values is 20.0024 mm. That is the center line.
- The moving ranges are the absolute differences between consecutive values: |19.997 − 19.999| = 0.002, |20.001 − 19.997| = 0.004, and so on. The 19 moving ranges add up to 0.097 mm, so the average moving range is MR̄ = 0.097 / 19 = 0.00511 mm.
- The short-term standard deviation is MR̄ divided by the constant d₂ = 1.128 for ranges of two values: σ̂ = 0.00511 / 1.128 = 0.00453 mm.
- The limits are the mean plus and minus three of those standard deviations.
UCL = x̄ + 3 × MR̄ / 1.128 = 20.0024 + 3 × 0.00453 = 20.0160
LCL = x̄ − 3 × MR̄ / 1.128 = 20.0024 − 3 × 0.00453 = 19.9888Shaft 16, at 20.018 mm, is above the upper control limit. It is still well inside the specification (20.03 mm), so final inspection would have passed it without comment. The chart says something different: this shaft did not come from the same process as the others. The operator checked the machine and found a chip stuck in the collet, which held the bar slightly off center. After cleaning it, the next shafts were back around 20.000 mm.
That is SPC in one picture. The signal arrived while every part was still good, it pointed to a specific cause that could be removed, and the other 19 points, which wander between 19.997 and 20.009 mm, were correctly left alone. In practice you would now recompute the limits without shaft 16 (its own value and moving ranges inflate MR̄ a little) and use them for the shafts that follow.
What else belongs to SPC
Control charts are the center of SPC, but a working SPC system uses a few other tools around them:
- A trustworthy measurement. If the gage varies as much as the parts, the chart shows gage noise. Check it first with a measurement system analysis.
- Rational subgrouping. Decide what to measure, how many parts at a time and how often, so that each subgroup holds only common-cause variation. This choice decides what the chart can see.
- Capability analysis. Once the process is stable, capability indices such as Cp and Cpk compare its spread with the tolerance.
- Problem-solving tools. A Pareto chart ranks defect types, a cause-and-effect diagram organizes possible causes, and a run chart is a quick first look before limits are available.
- A reaction plan. Every chart needs a written answer to "what do I do when it signals?" Usually this lives in the control plan.
How to get started
Start small: one important characteristic on one line, measured with a gage you trust. Collect 20 to 25 subgroups (or 20 to 30 individual values), compute trial limits, investigate any signals, and agree on the reaction plan with the people who run the process. The step-by-step implementation guide covers each step, and how SPC improves manufacturing describes what changes on the shop floor once it is running.
Frequently asked questions
Is SPC the same as inspection?
No. Inspection sorts finished parts into good and bad after they are made. SPC watches the process while it runs and signals a change before it produces bad parts. Inspection is still needed where risk demands it, but SPC reduces how much you depend on it.
Why are control limits set at three standard deviations?
It is a practical balance. With limits at ±3σ, a stable process gives a false alarm about once every 370 points, rare enough that people trust the chart, while real shifts of one or two standard deviations are still detected within a reasonable number of points, especially when the run tests are used as well.
How much data do I need to compute control limits?
A common guideline is 20 to 25 subgroups, or 20 to 30 individual values, collected over a period that includes normal changes such as shifts and material lots. Limits from fewer points can be used as trial limits and should be recomputed once more data are available.
Does SPC require normally distributed data?
Not strictly. Three-sigma limits work reasonably well for most process data, and charts of subgroup averages are fairly insensitive to the shape of the distribution. Individuals charts are more affected: strongly skewed data, such as flatness or impurity levels near zero, can produce extra false alarms on one side, and may call for a transformation or a different chart.
What is the difference between SPC and Six Sigma?
SPC is a set of tools for monitoring and controlling a process day to day. Six Sigma is an improvement program built around projects that follow the DMAIC steps; it uses SPC, especially in its Measure and Control phases, along with many other tools.