SPCStatistical Process Control
Statistical Process Control (SPC) is the discipline of separating the natural common-cause variation a process always has from the special-cause variation that signals something has actually changed — using control charts (X-bar/R, X-bar/S, individuals + moving range, CUSUM, EWMA, p, np, c, u), calculated control limits (typically ±3σ from the centreline based on stable process data), and a chosen rule set (Western Electric, Nelson, custom) that trips an alert when the chart shows a pattern that would be statistically improbable if only common-cause variation were present. SPC is the detection mechanism that sits underneath out-of-trend (OOT) classification, out-of-specification (OOS) prevention, and the continued-process-verification (CPV) stage of process validation. The FDA Process Validation guidance (January 2011) effectively makes ongoing SPC the binding expectation for Stage 3 CPV; EU GMP Chapter 1 §1.10(b) and ICH Q10 §3.2.5 are the equivalent expectations in EU and ICH frameworks. This page covers what SPC actually is (and isn't), the chart types that fit batch manufacturing (where I-MR dominates) vs the chart types that fit continuous or per-shift sampling (X-bar/R, X-bar/S), the two main rule sets and when each is appropriate, the relationship between SPC alerts and the quality classifications (OOT, OOE, OOS) that determine investigation depth, the regulatory overlay across FDA / EU / ICH / ISO 7870 / AIAG, the KPI suite for a healthy SPC programme, the seven quiet failures that turn SPC into wallpaper (spec limits used as control limits being the most common), and how V5 Ultimate builds live SPC off kiosk weighing / dispense / yield / lab CoA data without needing a separate Minitab installation.
01What SPC is — in one sentence
Statistical Process Control is the practice of plotting a process output over time against calculated control limits derived from the process itself, so that you can distinguish the normal random noise the process always has from a real change that warrants investigation — before the change becomes a customer-visible failure.
Walter Shewhart developed the technique at Bell Labs in 1924. The insight is simple and durable: every process varies. The question is not whether variation exists but whether the variation you are seeing is the variation the process always has (common cause, do nothing) or the variation that indicates something has changed (special cause, investigate). SPC is the mathematical answer to that question.
Three things follow from that framing — and the most common SPC failures come from missing one of them:
- Control limits are calculated from the process, not set by the customer. They describe what the process actually does, not what the customer requires. (See the spec-limits-as-control-limits failure later — this is the single most common SPC mistake in pharma.)
- A chart with no alerts is not 'good news' — it is the chart doing its job in a stable process. A chart that never alerts is either tracking a perfectly stable process (rare) or has limits too wide to detect anything (common; usually because the limits were calculated from too few points, or the process has changed since the limits were set).
- SPC is a detection mechanism, not an investigation mechanism. The chart trips → an analyst investigates → the investigation classifies the event (OOT / OOE / OOS) → the classification determines whether a CAPA is opened. SPC by itself fixes nothing.
02The chart types you actually use
There are dozens of control chart variants in the literature; in regulated batch manufacturing, you use a small subset. The table below is the practical operating set.
| Chart | Use case | Sample size | Typical pharma example |
|---|---|---|---|
| X-bar / R | Continuous data, subgrouped (multiple measurements per time point). | n = 2–10 per subgroup | Tablet weight — 10 tablets sampled per hour from a compression line. |
| X-bar / S | Continuous data, larger subgroups (S replaces R as the within-subgroup variability estimator). | n > 10 | Fill-volume verification — 20 vials sampled per fill batch. |
| Individuals + Moving Range (I-MR / X-MR) | Continuous data, one measurement per time point. | n = 1 | Batch yield — one yield value per batch. Final assay — one result per finished batch. This is the workhorse for batch manufacturing. |
| CUSUM (Cumulative Sum) | Detect small persistent shifts in the mean that Shewhart charts are slow to catch. | Sequential | API potency drift over many batches — catches a 0.5σ shift faster than I-MR. |
| EWMA (Exponentially Weighted Moving Average) | Detect small shifts with recent-weighted history; smoother than CUSUM, similar sensitivity. | Sequential | Dissolution drift across PQ batches during continued process verification. |
| p chart | Attribute data — proportion defective; sample sizes can vary. | Variable | Visual-inspection reject rate per batch when batches differ in size. |
| np chart | Attribute data — count defective; fixed sample size. | Fixed n | Number of defective tablets in a 50-tablet QC sample. |
| c chart | Attribute data — defects per unit; fixed area / inspection unit. | Fixed area | Cosmetic defects per stoppered vial; particulate count per 5 mL aliquot. |
| u chart | Attribute data — defects per unit; variable area / inspection unit. | Variable area | Particle count per L when batch volume varies. |
For pharmaceutical batch manufacturing the I-MR chart dominates because you typically only get one value per batch (one yield, one final assay, one bulk density). For per-shift weighings, fill-volume verification, or in-process sampling you typically have a subgroup of n=5–20 and X-bar/R or X-bar/S applies. CUSUM and EWMA are essential for continued-process-verification work because they catch the small persistent shifts (≤1σ) that Shewhart-style limits often miss for many subgroups.
03The rule sets that trigger an alert
Once you have a chart with control limits, you need to decide what counts as a pattern worth investigating. Two rule sets dominate: the original Western Electric rules (WECO, simpler, fewer false positives) and the expanded Nelson rules (more sensitive to small shifts and trends, more false positives).
The eight Nelson rules — which extend the four classical WECO rules — are:
- WECO 1 / Nelson 1: One point beyond ±3σ of the centreline (the alarm rule everyone implements).
- WECO 2 / Nelson 5: Two of three consecutive points beyond ±2σ on the same side.
- WECO 3 / Nelson 6: Four of five consecutive points beyond ±1σ on the same side.
- WECO 4 / Nelson 2: Eight consecutive points on the same side of the centreline (run rule).
- Nelson 3: Six consecutive points trending upward or downward (trend rule).
- Nelson 4: Fourteen consecutive points alternating up and down (oscillation rule).
- Nelson 7: Fifteen consecutive points within ±1σ (stratification rule — limits may be too wide, or two processes mixed).
- Nelson 8: Eight consecutive points outside ±1σ on either side (mixture rule — two distinct populations being charted as one).
Each rule has an associated false-positive rate. Rule 1 alone runs at about 0.27% (the classical ±3σ alarm rate). Adding Rules 2–4 raises the combined false-positive rate to roughly 1% per chart. Loading every Nelson rule on every chart pushes the false-positive rate past 2% — at a hundred points per chart you will get false alarms on a healthy process, the team will start dismissing alerts, and the chart becomes wallpaper.
04SPC, OOT, OOE, OOS and CAPA — how they relate
SPC alerts are not quality events on their own — they are the detection layer that feeds into the quality-event classification stack. The mainline flow is:
- SPC chart rule trips → 'potential OOT event' raised in the quality module.
- Analyst confirms the result is real and not a measurement artefact → OOT investigation opened per the customer's OOT procedure (typically a 30-day investigation window).
- If the trend continues or recurs → escalates to OOE (out-of-expectation) and the investigation deepens; root cause assigned to a category (raw material, equipment, method, environment, operator, measurement).
- If a result eventually crosses a spec limit → OOS event opened per 21 CFR 211.192 (FDA OOS guidance applies) with the full OOS investigation, retest, and potential batch reject.
- Confirmed systemic OOT, recurring OOS, or any OOS where root cause is process-related → CAPA opened per 211.100 / 820.100. The CAPA effectiveness check uses the SPC chart itself — if the corrective action worked, the chart should stop alerting.
Two things to notice. First, OOT is within spec by definition — the chart catches the drift before the product fails. The point of SPC is to live almost entirely in the OOT zone and never reach OOS. Second, the CAPA effectiveness check uses SPC. This makes SPC a feedback loop on the QMS itself, not just a manufacturing tool — which is why FDA expects to see SPC and CAPA as one programme, not two.
05SPC in process validation — Stage 3 CPV
FDA's January-2011 Process Validation guidance restructured validation into a three-stage lifecycle, and SPC is named throughout:
- Stage 1 (Process Design): statistical techniques used to characterise variability and define the design space. SPC concepts inform CQA / CPP selection.
- Stage 2 (Process Qualification): PPQ batches confirm the validated state. SPC is used to demonstrate the process is in a state of control across the PPQ campaign.
- Stage 3 (Continued Process Verification — CPV): the explicit SPC stage. The guidance requires an 'ongoing program to collect and analyze product and process data that relate to product quality… in such a way to detect undesired process variability'. The 2011 guidance, Section IV.C: 'data collected during continued process verification should be subject to scrutiny, including evaluation of process trends'.
EU GMP Chapter 1 §1.10(b) and ICH Q10 §3.2.5 give the equivalent expectation in their respective frameworks. The practical effect is the same: without an SPC-based CPV programme, your process validation lifecycle has no defensible Stage 3, and the regulator sees a one-time PPQ campaign followed by no evidence the process stayed in control.
The CPV programme is reviewed in the APR / PQR (21 CFR 211.180(e) / EU GMP §1.10) — the annual product review must summarise process performance and any out-of-trend signals, recommend changes, and demonstrate the CAPA effectiveness loop. SPC outputs feed the APR/PQR directly.
06The regulated overlay — clauses that ask for SPC
| Authority | Clause | What it asks for |
|---|---|---|
| FDA — Process Validation Guidance | January 2011, Stage 3 CPV | Ongoing programme to collect and analyse product/process data and detect undesired process variability — explicit reference to statistical evaluation of trends. |
| FDA — 21 CFR 211.180(e) | Annual Product Review | Review of representative number of batches, including investigations and OOS results, with statistical interpretation. |
| FDA — 21 CFR 211.192 | Production record review | Investigation of any unexplained discrepancy or failure of a batch — trending evidence supports the investigation. |
| FDA — Investigating OOS Test Results guidance | October 2006, §IV.C | Trend analysis as part of OOS investigation — SPC is the operational mechanism. |
| EU GMP — Chapter 1 §1.10(b) | Pharmaceutical Quality System | Ongoing monitoring of process performance and product quality. |
| EU GMP — Annex 15 | Qualification and validation | Continuous process verification as an alternative or supplement to traditional validation. |
| ICH Q10 — §3.2.5 | Process performance and product quality monitoring | Establish and maintain a system for continual process verification. |
| ICH Q9(R1) | Quality risk management | Risk-based selection of which CQAs and CPPs to chart — you cannot chart everything; Q9 disciplines the selection. |
| ICH Q12 — §3 | Lifecycle management | PQS controls that allow post-approval changes to be managed within the validated state — SPC is the evidence layer. |
| ISO 13485:2016 §8.4 | Analysis of data | Determine, collect and analyse appropriate data — for medical devices, the SPC equivalent. |
| ISO 7870 series | Control charts (international standard) | Statistical mechanics of Shewhart / CUSUM / EWMA charts — what V5 implements under the hood. |
07SPC programme KPIs — what a healthy programme looks like
| KPI | Target | Why it matters |
|---|---|---|
| Chart coverage of CQAs | 100% of identified CQAs charted | Q9-based CQA selection produces a finite list; every one should have a live chart. |
| Alert acknowledgement time | ≤ 1 business day median | An alert with no acknowledgement is a chart no one reads. |
| Alert false-positive rate | ≤ 2% per chart-month | Above this, the team learns to dismiss alerts and the chart becomes wallpaper. Tune rule selection. |
| Confirmed-special-cause rate per alert | Target 60–80% | Below 60% means too-sensitive rules; above 80% means too-blunt limits (missing alerts). |
| Control-limit recalculation cadence | Every 6–12 months for stable processes; immediately after a validated change | Stale limits are the second most common SPC failure after spec-as-control-limits. |
| Cpk / Ppk per CQA | Cpk ≥ 1.33; Ppk ≥ 1.33 for stable processes | Capability indices on top of control state — Cpk reflects within-process capability; Ppk reflects overall performance. |
| SPC-to-CAPA cycle time | ≤ 30 days median for confirmed OOT requiring CAPA | How quickly a chart signal converts to corrective action. |
| APR/PQR completion rate with SPC evidence | 100% | Every annual report should reference live chart data, not retrospective ad-hoc analysis. |
08How V5 Ultimate ships SPC
- Inputs from where the data is generated — kiosk weighing events, dispense yields, in-process samples (operator-entered with e-signature), and lab results from the LIMS module (CoA values, particulate counts, dissolution profiles). No separate data-entry layer.
- Per-chart configuration: chart type (I-MR / X-bar/R / X-bar/S / CUSUM / EWMA / p / np / c / u), subgroup definition, sampling rule, control-limit calculation method (Shewhart constants per ISO 7870-2, custom σ estimator), and the chosen rule set per chart.
- Auto-calculated control limits from the first 20–25 stable subgroups (or 50 individuals for I-MR), with explicit lock + audit trail when the limits become live; subsequent points use the locked limits until a controlled recalculation event.
- Real-time alerts as new points are added — Rule tripped + contributing subgroups + chart snapshot pushed to the chart owner via in-app notification, email, and (optionally) SMS via the tenant's configured Twilio channel. Owner acknowledgement requires a reason code and an e-signature per Part 11 §11.50.
- OOT / OOE / OOS classification workflow — the alert acknowledgement screen offers one-click escalation into the Quality module's OOT/OOE/OOS investigation, with the chart context pre-attached as evidence.
- Cpk / Ppk calculation per CQA with the chosen subgroup definition — visible on the same screen as the chart, recalculated as new data arrives.
- Control-limit recalculation as a governed event — requires QA e-signature, captures the rationale (process change, equipment requalification, period review), preserves the previous limits + the date of the change for audit, and re-evaluates historical points against both old and new limits so the change-effect is visible.
- APR / PQR / CPV pack generation — one-click PDF that includes every chart for the product, a written interpretation of any alerts and CAPAs in the period, the Cpk / Ppk trend, and the regulator-facing summary required by 211.180(e) / EU GMP §1.10. Powered by @react-pdf/renderer (Worker-safe), version-stamped, exported to the regulated-reports bucket with the tenant.id as the first folder of the object name.
- Mobile-safe at the kiosk and on the QA dashboard — every chart and alert workflow renders correctly at ≤390px CSS width on iPhone with no horizontal scroll, per the project standard.
09Seven quiet SPC failures
- Spec limits used as control limits — guarantees the chart only trips on OOS, defeating the entire point. Spec limits are what the customer requires (set externally); control limits are what the process delivers (calculated from data). Conflating them turns a detection mechanism into a redundant OOS detector. This is the single most common SPC mistake we see in pharma; usually it's because the team confused control limits with action limits.
- Control limits never recalculated as the process changes — limits from 2022 still in force in 2026 after two validated changes; the chart now describes a process that no longer exists. Worse, the team thinks the chart is healthy because no alerts are firing.
- Too many rules enabled — every Nelson rule on every chart pushes false-positive rate past 2% per chart-month; alerts get dismissed; the chart stops being useful. Pick the rules that fit the risk profile of the CQA.
- Chart owners not assigned — alerts fire into the void, no one acknowledges, no investigation is opened. An SPC programme with no named owners per chart is a paper programme.
- Manual chart maintenance in Excel — slow, error-prone, drifts from the source data, no audit trail, no Part 11 e-signature, no automatic alert dispatch. Acceptable for ad-hoc exploration; not acceptable for the validated CPV programme.
- Charts only built for finished-product attributes — drift in the process isn't caught until release, at which point the batch is already made. Stage 3 CPV expects charts on the CPPs and on the in-process attributes, not just final release.
- No link to CAPA — alerts get investigated, root causes get noted in a paragraph, but the CAPA system has no record of what the SPC programme detected and the CAPA effectiveness check is never wired back to the chart. The two programmes drift, regulators notice.
Frequently asked questions
Q.Is SPC mandatory?+
The word 'SPC' is not in the binding text of FDA 21 CFR Part 211, but FDA Process Validation guidance (January 2011) makes ongoing statistical monitoring of CQAs and CPPs the binding expectation for Stage 3 CPV; EU GMP §1.10(b) and ICH Q10 §3.2.5 are equivalent. In practice, no inspector accepts a Stage 3 CPV programme without statistical control charts. So while 'SPC' by name is not mandated, the underlying expectation is universal across the major regulated frameworks.
Q.Can I use spec limits as control limits?+
No. Spec limits and control limits are different things. Spec limits are set by the customer or regulator ('the product must be between X and Y'). Control limits are calculated from the process ('this process normally produces between A and B'). Conflating them guarantees the chart only trips on OOS — at which point the batch has already failed. SPC's purpose is to catch the drift while still inside spec, in the OOT zone.
Q.How many points do I need to establish control limits?+
Industry guidance (Wheeler, Montgomery, AIAG) converges on 20–25 subgroups of stable process data for X-bar/R or X-bar/S charts, and roughly 50 individuals for I-MR charts. Less than that and the limits are unreliable — usually too tight, causing false alarms; sometimes too wide, missing real alerts. If you have less than 25 subgroups of stable history, use a tentative limits indicator and warn users that the chart is in establishment mode.
Q.What's the difference between Western Electric and Nelson rules?+
Western Electric rules (WECO, 1956) are the original four: ±3σ alarm, 2-of-3 beyond ±2σ, 4-of-5 beyond ±1σ, and 8-on-a-side run rule. Nelson rules (1984) extend WECO with trend (6 consecutive points trending), oscillation (14 alternating points), stratification (15 within ±1σ), and mixture (8 outside ±1σ on either side). WECO is less sensitive but lower false-positive; Nelson catches small shifts but produces more false alarms. Pick per chart based on the cost of a missed detection vs the cost of a false alarm.
Q.What's the difference between Cp/Cpk and Pp/Ppk?+
Cp/Cpk are process-capability indices calculated using within-subgroup variability (the inherent process noise). Pp/Ppk are process-performance indices calculated using overall variability (within + between subgroup). For a process in a state of statistical control, Cpk ≈ Ppk; the bigger the gap between them, the more between-subgroup variability the process has — usually special-cause drift the SPC programme should be detecting. Both targets are typically ≥ 1.33 for routine production; ≥ 1.67 for safety-critical CQAs.
Q.How often should control limits be recalculated?+
Stable processes: every 6–12 months as a discipline, with a documented review even if the limits don't change. After a validated change (equipment requalification, raw-material supplier change, method change, scale-up): recalculate immediately as part of the post-change qualification. Never recalculate limits just because the chart is alerting too much — that hides real signal. V5 enforces recalculation as a governed event with QA e-signature and full audit trail.
Q.Does V5 Ultimate replace Minitab or JMP?+
For routine production SPC inside the regulated workflow — yes. V5 implements the chart types, rule sets, capability indices and alert workflows that 95% of routine SPC needs, with the audit trail, e-signature, mobile-safe kiosk integration and CPV pack generation that statistical packages don't ship. For Stage 1 design-space exploration, DoE, mixed-effects modelling, advanced multivariate work — keep your statistical package. The two coexist.
Primary sources
- FDA — Process Validation: General Principles and Practices (January 2011, current good manufacturing practice guidance)
- EU GMP Part I, Chapter 1 §1.10(b) — Pharmaceutical Quality System: ongoing monitoring of process performance and product quality
- ICH Q10 — Pharmaceutical Quality System (§3.2.5 Process Performance and Product Quality Monitoring System)
- ICH Q9(R1) — Quality Risk Management (risk-based selection of CQAs and CPPs to chart)
- ISO 7870-1:2019 — Control charts — Part 1: General guidelines (the international standard series for SPC)
- ISO 7870-2:2023 — Control charts — Part 2: Shewhart control charts (X-bar/R, X-bar/S, I-MR mechanics and limits)
- AIAG SPC Reference Manual (Automotive Industry Action Group, 2nd ed.)
- Western Electric Statistical Quality Control Handbook (1956, original source of the WECO rules)
Further reading
- OOTOut-of-trend — the quality classification SPC alerts most commonly map to (within spec but statistically unusual).
- OOSOut-of-specification — what SPC helps prevent by catching drift before the result crosses a spec limit.
- CAPAWhere confirmed systemic drift or recurring OOS lands — SPC is what triggers the investigation that triggers the CAPA.
- Process validationFDA's 3-stage lifecycle; SPC is the operational mechanism for Stage 3 (continued process verification).
- LIMSWhere the lab result inputs come from — V5 charts feed off CoA values written by the LIMS module.
- APR / PQRAnnual Product Review / Product Quality Review — the regulated report that summarises a year of SPC data per product.
Explore this topic
SPC sits inside 2 overlapping topic clusters in our glossary. Every neighbour is one click away.
Root-cause toolkit, SPC, capability and the rest of the QA practitioner's bench.
V5 Ultimate ships with the SPC controls already wired in — audit trail, e-signatures, validation evidence. Free trial, no credit card, onboard in days, not months.
