Jump to a calculator 618 tools

SPC & Capability

Process Capability Cp, Cpk, Pp, Ppk & Specification Fit

Put this calculator on your own site

Paste this where you want the calculator to appear. It works on any site — WordPress, Squarespace, Webflow, Ghost or plain HTML — and needs no JavaScript of yours. It carries a link back here, which is the only thing we ask for it.

See what it looks like

Cp is what the machine can hold. Ppk is what the customer received. The difference is the audit.

Specification & Centre The tolerance and where the process actually sits
units

Any measured characteristic in any consistent unit

units
units

Xbar-bar, not the nominal target

Within-Subgroup Spread Short term: what the process holds while nothing changes
units

Average of the ranges of the individual subgroups

Readings taken close together, under one set of conditions

AIAG asks for at least 25 for a capability study

Overall Spread & Confidence Long term: every reading, drift included
units

Sample SD of all individual readings pooled together

For the lower bound on the Cpk estimate

Cpk, Within-Subgroup

— Cpk

The short-term index the customer report asks for

Short Term, Long Term & the Gap Between Them

Ppk, Overall Performance
— Ppk
Capability Gap (Cpk - Ppk)
— index
Cp, Potential Capability
— Cp
Pp, Overall Potential
— Pp
Within-Subgroup Sigma (Rbar / d2)
— units
Stability Ratio (overall / within)
— x
Lower Confidence Bound on Cpk
— Cpk
Expected Nonconforming, Long Term
— ppm

The within-subgroup sigma is estimated by the range method, Rbar / d2, which is the AIAG default and is accurate for subgroup sizes up to about ten; beyond that the pooled standard deviation or sbar / c4 is the better estimator and this tool will read slightly low. The overall sigma is taken as the sample standard deviation of the individual readings without a c4 bias correction, matching AIAG practice; the correction is under half a percent for a hundred readings and can be ignored at these sample sizes. Everything here assumes the characteristic is measured on a continuous scale and is at least roughly normal - capability indices computed on a skewed characteristic such as neps per gram or a bounded one such as shade difference are not comparable with those computed on a symmetric one, and ISO 22514-2 describes the non-normal distribution families to use instead. The indices say nothing about measurement error: if the gauge repeatability and reproducibility consumes a meaningful share of the tolerance, part of the spread being penalised here belongs to the test method rather than the process, and a measurement systems analysis should be run before any capability improvement project is launched. Finally, capability is only interpretable on a process in statistical control; a large capability gap is direct evidence that this precondition has failed, and the correct response is to find and remove the special cause rather than to report the index.

Using this calculator

About the Process Capability Cp, Cpk, Pp, Ppk & Specification Fit

The formula

This is the expression the tool evaluates. Every term is named underneath, with the unit it must be supplied in.

Two standard deviations, not one
sigmaWithin = Rbar / d2(n) sigmaOverall = s of all individual readings

The whole method rests on this split. Rbar / d2 estimates only the variation present inside a subgroup, so it excludes anything that moves between subgroups. The overall sample standard deviation includes that movement. d2 is the expected range of a normal sample of size n expressed in standard deviations, tabulated in AIAG SPC Appendix E and ASTM E2587.

Capability: spread first, then centring
Cp = ( USL - LSL ) / ( 6 x sigmaWithin ) Cpk = min( USL - mean, mean - LSL ) / ( 3 x sigmaWithin )

Cp asks whether the tolerance is wide enough for the spread and ignores where the process sits. Cpk measures only to the nearer specification limit, so it falls as the mean walks off target even when the spread has not changed. Cp minus Cpk is therefore a pure centring loss and is worth reading on its own.

Performance, and the gap
Pp = ( USL - LSL ) / ( 6 x sigmaOverall ) Ppk = min( USL - mean, mean - LSL ) / ( 3 x sigmaOverall ) gap = Cpk - Ppk

Identical arithmetic on the other sigma. Pp and Ppk describe what actually left the mill over the study period. A large gap means the process is not in statistical control: something changed between subgroups that the within-subgroup estimate never saw, and no amount of machine capability recovers it.

A capability index is an estimate
SE( Cpk ) = sqrt( 1 / ( 9 x N ) + Cpk^2 / ( 2 x ( N - 1 ) ) ) Cpk_lower = Cpk - z x SE( Cpk )

Bissell 1990, the approximation carried into ISO 22514. N is the total number of readings, subgroup size times number of subgroups. The standard error grows with Cpk itself, so a high index measured on a small sample is the least trustworthy figure of all - which is why studies quoting Cpk from twenty readings should be disregarded.

Symbols used above
SymbolStands forUnit
RbarMean of the subgroup rangesunits
d2Expected range of a normal sample of size n, in standard deviations—
Cp, CpkCapability indices, built on the within-subgroup sigma—
Pp, PpkPerformance indices, built on the overall sigma—
NTotal readings in the study, subgroup size x number of subgroups—

How the result is derived

Step by step, from the values you type to the figure on screen.

  1. The 8 inputs are read from the form on every keystroke: Upper Specification Limit, Lower Specification Limit, Grand Mean of All Subgroups, Mean Subgroup Range (Rbar), Subgroup Size, Number of Subgroups, Overall Standard Deviation and Confidence Level.
  2. Each value is checked against the accepted range in the input table below. A value outside its range stops the calculation rather than producing a misleading figure — the results blank out and a message appears.
  3. The validated values are substituted into the expression above, which resolves Cpk, Within-Subgroup together with every supporting figure in one pass — no value is carried over from a previous entry.
  4. The supporting outputs — Ppk, Overall Performance, Capability Gap (Cpk - Ppk), Cp, Potential Capability, Pp, Overall Potential, Within-Subgroup Sigma (Rbar / d2), Stability Ratio (overall / within), Lower Confidence Bound on Cpk and Expected Nonconforming, Long Term — come from the same pass, so they always describe the same case as the headline figure.
  5. Results are rounded for display only. The full-precision value is used throughout the chain, so reading a rounded intermediate figure back into the tool by hand can shift the last digit.

What each input means

Where to read each value on the floor, the unit it must be in, and the range the tool accepts.

InputUnitAccepted rangeDefaultWhat it means
Upper Specification Limitunits-1000000 to 1000000 units31.5Any measured characteristic in any consistent unit
Lower Specification Limitunits-1000000 to 1000000 units28.5
Grand Mean of All Subgroupsunits-1000000 to 1000000 units30.35Xbar-bar, not the nominal target
Mean Subgroup Range (Rbar)units0.0001 to 500000 units1.05Average of the ranges of the individual subgroups
Subgroup Size—n = 2 (d2 = 1.128) · n = 3 (d2 = 1.693) · n = 4 (d2 = 2.059) · n = 5 (d2 = 2.326) · n = 6 (d2 = 2.534) · n = 7 (d2 = 2.704) · n = 8 (d2 = 2.847) · n = 9 (d2 = 2.970) · n = 10 (d2 = 3.078)5Readings taken close together, under one set of conditions
Number of Subgroups—2 to 50025AIAG asks for at least 25 for a capability study
Overall Standard Deviationunits0.0001 to 500000 units0.62Sample SD of all individual readings pooled together
Confidence Level—90 percent, one-sided (z = 1.2816) · 95 percent, one-sided (z = 1.6449) · 99 percent, one-sided (z = 2.3263)1.6449For the lower bound on the Cpk estimate

What the tool returns

The headline figure and every supporting value it is built from.

OutputUnitWhat it tells you
Cpk, Within-Subgroup (headline result)CpkThe short-term index the customer report asks for
Ppk, Overall PerformancePpk
Capability Gap (Cpk - Ppk)index
Cp, Potential CapabilityCp
Pp, Overall PotentialPp
Within-Subgroup Sigma (Rbar / d2)units
Stability Ratio (overall / within)x
Lower Confidence Bound on CpkCpk
Expected Nonconforming, Long Termppm

Worked example

Given

0
Specification 28.5 to 31.5 units, a nominal 30 tex ring yarn at +/- 5 percent
1
Grand mean 30.35, so the process runs 1.2 percent coarse
2
Mean subgroup range 1.05 over 25 subgroups of 5 packages
3
Overall standard deviation of all 125 readings 0.62
4
95 percent one-sided confidence

Substituting

sigmaWithin = Rbar / d2(5) = 1.05 / 2.326 = 0.4514stabilityRatio = 0.62 / 0.4514 = 1.3734, so the overall spread is 37 percent wider than the within-subgroup spreadCp = ( 31.5 - 28.5 ) / ( 6 x 0.4514 ) = 1.1076, but Cpk = ( 31.5 - 30.35 ) / ( 3 x 0.4514 ) = 0.8492 because the upper limit is the nearer onePpk = ( 31.5 - 30.35 ) / ( 3 x 0.62 ) = 0.6183, so the gap is 0.8492 - 0.6183 = 0.2309With N = 125 the 95 percent lower bound on Cpk is 0.7478, and the long-term nonconforming rate is 33232.7719 ppm - roughly one package in thirty

Answer

0
Cpk 0.8492 within-subgroup, against Ppk 0.6183 overall
1
Capability gap Cpk - Ppk = 0.2309
2
Cp 1.1076 and Pp 0.8065
3
Within-subgroup sigma 0.4514, stability ratio 1.3734
4
95 percent lower confidence bound on Cpk 0.7478
5
Expected nonconforming 33232.7719 ppm

Every one of the four indices tells a different story about the same 125 packages. Cp says the tolerance is very nearly wide enough. Cpk says the process is off centre. Ppk says one package in thirty is out of specification. The mill that reports Cpk 0.85 has not lied, but it has described its best hour rather than its month, and the customer measures the month.

How to use it

  1. Work through the input groups in order — Specification & Centre, Within-Subgroup Spread and Overall Spread & Confidence. The defaults are a realistic case, so you can change one value at a time and watch what moves.
  2. There is no calculate button. Every figure recalculates as you type or drag, which is what makes this usable for a what-if sweep rather than a single answer.
  3. Read Cpk, Within-Subgroup in the dark results panel — that is the headline figure, expressed in Cpk.
  4. Check the supporting rows underneath (Ppk, Overall Performance, Capability Gap (Cpk - Ppk), Cp, Potential Capability, Pp, Overall Potential, Within-Subgroup Sigma (Rbar / d2), Stability Ratio (overall / within), Lower Confidence Bound on Cpk and Expected Nonconforming, Long Term) before acting on the headline — they are where an implausible input usually shows itself first.
  5. Reset to defaults returns every field to the reference case, which is the quickest way to check whether a surprising result came from the tool or from an input you had changed earlier.

Where this is used

  • Process planning — establishing Cpk, Within-Subgroup before a trial is booked, so machine time and material in Quality Systems, Traceability, Utilities & Factory Decisions are committed against a calculated figure rather than an estimate.
  • Costing and quotation — Cpk, Within-Subgroup is an input to the cost sheet, and quoting from a worked number rather than a remembered one is what keeps a margin intact.
  • Troubleshooting — when the floor result drifts from plan, entering the measured values (starting with Upper Specification Limit) shows how much of the gap in Cpk, Within-Subgroup each variable explains.
  • Teaching and study — the accepted ranges bracket normal Quality Systems, Traceability, Utilities & Factory Decisions practice, so moving one variable at a time shows the shape of the relationship rather than a single answer.

Reading the result

Typical bands and what each one is telling you.

ValueWhat it indicates
Cpk 1.33 and aboveThe usual automotive and technical-textile floor, four sigma to the nearer limit, about 32 ppm on that side short term.
Cpk 1.00 to 1.33Marginal. Holds while nothing moves, and produces rejects the moment anything does.
Cpk below 1.00The process is wider than the tolerance or off centre enough that rejects are structural, not accidental.
Stability ratio 1.0 to 1.2In statistical control. Cpk and Ppk agree and either may be quoted.
Stability ratio above 1.3Substantial between-subgroup drift. Fix the drift before touching the machine, because Cp is already better than the result.

Assumptions and limits

  • The within-subgroup sigma is estimated by the range method, Rbar / d2, which is the AIAG default and is accurate for subgroup sizes up to about ten; beyond that the pooled standard deviation or sbar / c4 is the better estimator and this tool will read slightly low. The overall sigma is taken as the sample standard deviation of the individual readings without a c4 bias correction, matching AIAG practice; the correction is under half a percent for a hundred readings and can be ignored at these sample sizes. Everything here assumes the characteristic is measured on a continuous scale and is at least roughly normal - capability indices computed on a skewed characteristic such as neps per gram or a bounded one such as shade difference are not comparable with those computed on a symmetric one, and ISO 22514-2 describes the non-normal distribution families to use instead. The indices say nothing about measurement error: if the gauge repeatability and reproducibility consumes a meaningful share of the tolerance, part of the spread being penalised here belongs to the test method rather than the process, and a measurement systems analysis should be run before any capability improvement project is launched. Finally, capability is only interpretable on a process in statistical control; a large capability gap is direct evidence that this precondition has failed, and the correct response is to find and remove the special cause rather than to report the index.
  • Every input is bounded to the range normal practice occupies (Upper Specification Limit -1000000 to 1000000 units, Lower Specification Limit -1000000 to 1000000 units and Grand Mean of All Subgroups -1000000 to 1000000 units, and so on for the rest). Those bounds are guard rails against typing errors, not a claim that the formula fails one unit outside them.
  • The calculation is deterministic: the same inputs always give the same result. It carries no allowance for machine condition, operator skill, ambient conditions or lot-to-lot material variation unless an input above explicitly represents one.
  • Nothing is sent anywhere. The maths runs in your browser, so the numbers you type never leave the page.

Standards and further reading

  • ISO 22514-1:2014 - Statistical methods in process management, Capability and performance, Part 1: General principles and concepts.
  • ISO 22514-2:2017 - Part 2: Process capability and performance of time-dependent process models, which formalises the within-subgroup versus overall distinction used here.
  • AIAG Statistical Process Control (SPC) Reference Manual, 2nd edition, for Cp and Cpk from Rbar / d2, Pp and Ppk from the total standard deviation, and the d2 table in Appendix E.
  • ASTM E2587 - Standard Practice for Use of Control Charts in Statistical Process Control, for subgroup construction and the range-to-sigma factors.

Questions people ask

Cpk is 0.85 and Ppk is 0.62. Which number goes on the customer report?

Both, and in that order, because they answer different questions and a report carrying only one of them is incomplete. Cpk states the capability the equipment and the setting can deliver when nothing is moving, and it is the right number for a machine acceptance trial or for deciding whether a tolerance is achievable at all. Ppk states what the customer actually received across the study period, drift and lot changes included, and it is the right number for a delivery quality claim. Quoting Cpk alone against a delivered lot is the most common misuse of the method in textile quality reporting, because the sampling that produced Rbar deliberately excluded the between-subgroup variation the customer then experiences. If the two agree the point is moot; if they diverge, the divergence is the finding.

My Cpk and Ppk come out almost identical. Is that good or is my data wrong?

It is usually good and occasionally a warning. When a process is genuinely in statistical control, the only variation present is common cause, the between-subgroup component is near zero, and the two sigma estimates converge, so a stability ratio between about 1.0 and 1.2 is exactly what a controlled process looks like. The warning case is a subgroup that was not formed rationally. If the readings inside each subgroup were drawn across a whole shift, or across several machines, they already contain the drift, the within-subgroup range inflates to match the overall spread, and the two indices agree for the wrong reason. A rational subgroup must be a set of readings taken so close together in time and condition that only common cause can act between them: consecutive packages from one spindle position, not one package from each of five frames.

Why does the lower confidence bound matter when I already have 125 readings?

Because a capability index is a statistic with a standard error, not a measurement, and the error is far larger than most people expect. At 125 readings a point estimate of 0.85 carries a 95 percent lower bound near 0.75, which means the true capability could plausibly be twelve percent worse than what is written on the certificate. The effect is much more brutal on small studies: thirty readings give a bound roughly a quarter below the estimate, and the twenty-reading trials that circulate as evidence of a 1.33 process frequently have lower bounds under 1.0. The standard error also grows with the index itself, so the impressive numbers are the least reliable. If a contract specifies a minimum Cpk, the defensible reading of it is that the lower confidence bound must clear the threshold, not the point estimate.

How much should I trust the ppm figure of 33233?

Treat it as an order of magnitude, not a forecast. It assumes the individual readings are normally distributed with the stated mean and overall standard deviation, and it evaluates both tails of that normal curve outside the limits. Two things commonly break the assumption in a textile mill. First, real characteristics are often skewed rather than symmetric, so one tail carries more than the normal model predicts and the other less. Second, a process with a large capability gap is by definition not stable, so there is no single distribution to integrate: the readings are a mixture of several states, and a mixture has heavier tails than any of its components. Both errors usually run the same way, meaning the true reject rate tends to exceed the computed one. Use the figure to decide whether the problem is at the parts-per-million or the parts-per-hundred scale, and use actual sorted or graded output to settle anything finer.

Scroll to Top