Cpk Calculator
This calculator gives the process capability indices Cpu, Cpl, Cpk and Cp from the process mean, the process standard deviation and the upper and lower specification limits, and says which specification limit limits Cpk. A capability index compares the width of the specification with the spread of the process, 6 standard deviations.
The indices describe the capability of the output of a process that is in control and stable, with normal data; NIST states them for about 50 independent values or more. Outside those conditions the page gives a computation, not a capability. The page gives no pass or fail and uses no threshold.
Calculator
Cpu is the smaller index: the upper specification limit limits Cpk
Theory: the process capability indices
A capability index compares the width of the specification with the spread of the process, taken as 6 standard deviations. NIST defines the indices as follows.
- USL
- upper specification limit, in the unit of the measurement
- LSL
- lower specification limit, in the unit of the measurement
- x̄
- process mean, in the unit of the measurement
- s
- sample standard deviation of the data, in the unit of the measurement (σ in the calculator)
- Cp, Cpu, Cpl, Cpk
- capability indices, no unit
Where the formulas come from
Cp divides the width of the specification, USL − LSL, by the spread of the process, 6s. Cpu and Cpl divide the distance from the mean to each limit by half of that spread, 3s. Cpk is the smaller of the two, so Cpk is at most Cp, and equal to it when the mean is exactly at the middle of the limits. The calculator says equal when the two indices agree to 12 significant digits. A negative index means the mean is outside that limit; it follows from the formula and is shown as it is.
For a centred process NIST prints this table of rejects:
| Cp | Rejects |
|---|---|
| 1.00 | 0.27 percent |
| 1.33 | 64 ppm |
| 1.66 | 0.6 ppm |
| 2.00 | 2 ppb |
NIST says it would like Cpk of at least 1.0; this page uses no threshold.
When the indices do not hold
NIST states the indices for the output of a process that is in control and stable, with normal data and about 50 independent values or more. Outside those conditions the page gives a computation, not a capability. The page takes σ as typed: the sources do not treat the short-term σ within subgroups.
Worked example
The NIST example, which is also the default case of the calculator: USL = 20, LSL = 8, x̄ = 16, s = 2.
USL − LSL = 12.0000 and 6s = 12.0000, so Cp = 12.0000 / 12.0000 = 1.000.
USL − x̄ = 4.00000 and 3s = 6.00000, so Cpu = 4.00000 / 6.00000 = 0.666667.
x̄ − LSL = 8.00000, so Cpl = 8.00000 / 6.00000 = 1.33333.
NIST prints 1.0, 0.6667, 1.3333 and 0.6667 for Cp, Cpu, Cpl and Cpk.
Cpu is the smaller index, so Cpk = min(0.666667, 1.33333) = 0.6667
Source: NIST/SEMATECH e-Handbook of Statistical Methods, section 6.1.6 What is Process Capability.
How to use the calculator
- Enter the process mean, in the unit of the measurement. Any number is accepted.
- Enter the process standard deviation σ, in the same unit. It must be greater than 0.
- Enter the upper specification limit USL and the lower specification limit LSL, in the same unit. The USL must be greater than the LSL.
- Read Cpu, Cpl, Cpk and Cp. The results update as you type; the Calculate button recomputes them.
- Read the note under the results: it says which specification limit limits Cpk, or that the mean is at the middle of the limits.
- Check the formula lines, which show your values substituted into each formula.
Frequently asked questions
How is Cpk calculated?
Cpk is the smaller of Cpu and Cpl, where Cpu = (USL − mean) / (3σ) and Cpl = (mean − LSL) / (3σ). With mean 16, σ 2, USL 20 and LSL 8, Cpu = 0.6667 and Cpl = 1.333, so Cpk = 0.6667.
Can the standard deviation be zero?
No. A standard deviation of 0 is not accepted, because the indices divide by σ. Enter a value greater than 0.
Why do Cpu and Cpl differ?
Because the mean is not at the middle of the specification limits. Cpu uses the distance from the mean to the USL and Cpl the distance from the LSL to the mean; when the mean is at the middle, the two are equal and Cpk equals Cp.
What units should the values be in?
The mean, the standard deviation, the USL and the LSL must all be in the same unit, the unit of the measurement. The indices have no unit.
Disclaimer: for preliminary estimation only. The results are not a substitute for a capability study or review by a qualified engineer.