Compliance and audits
Cp and Cpk Explained: Formulas and Worked Examples
Cp and Cpk are process capability indices that compare how much a process varies with how much room the tolerance gives it. Cp = (USL − LSL) / (6σ) measures the spread alone, and Cpk = min((USL − mean) / (3σ), (mean − LSL) / (3σ)) also accounts for where the process is centered, so Cpk is never larger than Cp.
On this page
What Cp and Cpk measure
A capability index compares two widths. The first is the tolerance, the distance between the lower specification limit (LSL) and the upper specification limit (USL). The second is the natural spread of the process, taken as six standard deviations (6σ). For a normal distribution, 99.73 percent of the output falls within three standard deviations either side of the mean.
Cp looks only at the spread. It tells you whether the process could fit inside the tolerance if it ran exactly in the middle. Cpk also looks at where the process sits. It measures the distance from the mean to the nearer specification limit in units of three standard deviations. A process with a good Cp can still have a poor Cpk if it runs off center.
Both indices describe one characteristic, such as a bore diameter or a tightening torque, made by a process that is running steadily. They summarize how that output sits against the drawing. They are not a verdict on any single part.
The Cp and Cpk formulas
Cp divides the tolerance width by six standard deviations: Cp = (USL − LSL) / (6σ).
Cpk is worked out for each limit separately, and the smaller value is reported. The upper index is CpU = (USL − mean) / (3σ) and the lower index is CpL = (mean − LSL) / (3σ). So Cpk = min(CpU, CpL), or written out in full, Cpk = min((USL − mean) / (3σ), (mean − LSL) / (3σ)).
Because Cpk uses the nearer limit, it can never be larger than Cp. The two are equal only when the mean sits exactly in the middle of the tolerance. If the mean falls outside a specification limit, Cpk is negative.
Some characteristics have only one limit, such as a maximum runout or a minimum pull-off force. Cp cannot be calculated for them. Report the index for the limit that exists as the Cpk: CpU for an upper limit, CpL for a lower one.
Worked example: an off-center shaft
A shaft diameter is toleranced at 10.00 ± 0.05 mm, so LSL = 9.95 mm and USL = 10.05 mm. Parts are measured in subgroups of five from normal production. The control chart shows a stable process with a mean of 10.01 mm and an average subgroup range (R-bar) of 0.0233 mm.
- Within-subgroup standard deviation: σ = R-bar / d2 = 0.0233 / 2.326 = 0.010 mm. Here d2 = 2.326 is the control chart constant for subgroups of five.
- Cp = (10.05 − 9.95) / (6 × 0.010) = 0.10 / 0.06 = 1.67
- CpU = (10.05 − 10.01) / (3 × 0.010) = 0.04 / 0.03 = 1.33
- CpL = (10.01 − 9.95) / (3 × 0.010) = 0.06 / 0.03 = 2.00
- Cpk is the smaller of CpU and CpL, so Cpk = 1.33.
Within and overall variation: Pp and Ppk
The formulas do not say which standard deviation to use. That choice is the whole difference between the capability indices (Cp, Cpk) and the performance indices (Pp, Ppk).
Cp and Cpk use the within-subgroup standard deviation, estimated from a control chart as R-bar / d2 or S-bar / c4. It reflects the common-cause variation inside each subgroup, over a short stretch of time.
Pp and Ppk use the overall standard deviation. That is the ordinary sample standard deviation s of all the individual readings. It also picks up anything that moves the process between subgroups, such as a new lot of material, a tool change or drift over a shift.
A second example shows the difference. Take a longer run of the same shaft with the same within-subgroup spread, but where the mean moved between material lots. The overall standard deviation of all its readings is 0.0125 mm. Then Pp = 0.10 / (6 × 0.0125) = 1.33 and Ppk = (10.05 − 10.01) / (3 × 0.0125) = 0.04 / 0.0375 = 1.07. Cpk still says 1.33, because the spread inside each subgroup has not changed. Ppk says 1.07, and that is closer to what the customer receives. A gap this size usually shows on the control chart as subgroup averages outside the limits, which means the process is not stable in the sense Cpk assumes.
When a process is stable, the two standard deviations are close and so are the indices. A single column of readings with no subgroups gives the overall standard deviation directly. That is what Pp and Ppk use. For Cp and Cpk, the within standard deviation comes from the moving range between consecutive readings. It is the average moving range divided by 1.128, as on an individuals chart. Some software labels Cp and Cpk short-term and Pp and Ppk long-term. What actually differs is the standard deviation: within or overall.
What Cpk says about out-of-spec parts
If the process is stable and its output follows a normal distribution, Cpk converts to an expected fraction out of specification. The nearer limit sits 3 × Cpk standard deviations from the mean. The area of the normal curve beyond it is the expected share of parts past that limit.
The third column below is the share past the nearer limit. The fourth is the total for a centered process, where both limits are the same distance away. An off-center process with the same Cpk falls between the two. In the shaft example the upper limit is 4σ from the mean and the lower limit is 6σ, so the estimate is about 32 ppm, nearly all of it oversize.
| Cpk | Nearer limit from the mean | Beyond the nearer limit | Total if centered (Cp = Cpk) |
|---|---|---|---|
| 1.00 | 3σ | 1,350 ppm | 2,700 ppm (0.27%) |
| 1.33 | 4σ | 32 ppm | 63 ppm |
| 1.67 | 5σ | 0.29 ppm | 0.57 ppm |
| 2.00 | 6σ | 0.001 ppm | 0.002 ppm |
What Cpk value is good enough
No standard sets one pass mark for every product. The numbers people quote come mostly from automotive practice and from customer requirements.
- 1.00 puts the nearer limit 3σ from the mean. A centered process just fits the tolerance, with no room for a shift.
- 1.33 puts it 4σ away. Many customers set this as the minimum for ongoing production.
- 1.67 puts it 5σ away. In AIAG's Production Part Approval Process (PPAP) manual, an initial process study of a stable process meets the acceptance criteria when its index is above 1.67. From 1.33 to 1.67 the result may be acceptable after review with the customer. Below 1.33 it does not meet them.
- 2.00 puts it 6σ away. That is the six sigma target of six standard deviations between the mean and the nearer limit.
The assumptions behind every Cpk
The arithmetic always produces a number. Whether that number means anything depends on four conditions.
- The process is stable. Capability describes a process in statistical control. If the control chart shows special causes, the mean and standard deviation are moving and no single index describes the process. Find and remove the special causes first.
- The data are close to normal. The ratios themselves need no particular distribution, but the link to ppm out of spec and to the usual thresholds assumes a normal one. Check a histogram or a normal probability plot. For data that are clearly not normal, the NIST/SEMATECH Engineering Statistics Handbook describes transforming the data or using percentile-based indices.
- There is enough data. The NIST handbook says a valid estimate needs about 50 independent values, and AIAG's PPAP manual asks for at least 100 readings from 25 or more subgroups for an initial study. Even 50 values leave real uncertainty. From 50 readings, an estimated Cpk of 1.33 has an approximate 95 percent confidence interval of about 1.05 to 1.61 by the formula NIST gives.
- The readings measure the parts well. Every reading includes measurement error, and the indices count that error as process variation.
Check the measurement system before the process
The standard deviation in a capability study is the spread of the measured values. It contains the real part-to-part variation plus the variation the measurement system adds through the gage, the person using it and the method. For independent sources the variances add, so observed σ² = process σ² + measurement σ².
Take a process whose true standard deviation is 0.008 mm, measured with a system whose own standard deviation is 0.006 mm. The observed standard deviation is √(0.008² + 0.006²) = 0.010 mm. Against a 0.10 mm tolerance the true Cp is 2.08, but the study reports 1.67. The gage accounts for the difference, not the process.
So run a Gage R&R or another measurement systems analysis (MSA) on the gage that will collect the data, and confirm the gage is calibrated, before you judge the process. If the measurement system uses a large share of the tolerance, improve it first.
How to calculate Cpk, step by step
- Confirm the gage. Check that it is calibrated and that a Gage R&R shows it can resolve the tolerance.
- Collect readings from normal production in small subgroups, such as five consecutive parts at regular intervals. Take about 50 readings at the very least, and 100 or more for a PPAP initial study.
- Plot a control chart. If it shows special causes, find and remove them before you go on.
- Check that the readings are roughly normal with a histogram or a normal probability plot.
- Estimate the within-subgroup standard deviation as R-bar / d2 or S-bar / c4. Estimate the overall standard deviation as the sample standard deviation of all the readings.
- Calculate Cp and Cpk with the within-subgroup standard deviation, and Pp and Ppk with the overall one.
- Compare the results with your customer's requirement. Keep the data, the gage used and the date with the study.
Where Axiospec fits
Axiospec is calibration management software, not SPC software. The process capability calculator on this site is a standalone tool and needs no account.
Axiospec keeps the measurement side of a capability study. It records each gage's calibrations with as-found and as-left readings, its certificates, its due dates and its Gage R&R studies. That lets you show that the gage behind a capability study was in calibration when the data was taken.
Common questions
- What is the difference between Cp and Cpk?
- Cp compares the tolerance width with the process spread and ignores where the process is centered. Cpk uses the distance from the mean to the nearer specification limit, so it falls when the process runs off center. Cp = (USL − LSL) / (6σ) and Cpk = min((USL − mean) / (3σ), (mean − LSL) / (3σ)). The two are equal only for a perfectly centered process.
- What is a good Cpk value?
- Many customers ask for at least 1.33, which puts the nearer specification limit 4σ from the mean. AIAG's PPAP manual uses an index above 1.67 as the acceptance level for an initial process study. Below 1.00 the nearer limit is less than 3σ from the mean, so out-of-spec parts are expected in normal running. The value that applies to you is the one your customer or control plan sets.
- What is the difference between Cpk and Ppk?
- The formula is the same. Cpk uses the within-subgroup standard deviation, estimated from a control chart as R-bar / d2 or S-bar / c4. Ppk uses the overall standard deviation of all the readings, which also includes shifts and drift between subgroups. For a stable process the two are close. A Ppk well below Cpk means the process moves over time.
- Can Cpk be negative or higher than Cp?
- Cpk is negative when the process mean lies outside a specification limit. It can never be higher than Cp, because it measures to the nearer limit. Cpk equals Cp only when the mean sits exactly in the middle of the tolerance.
- How many measurements do you need to calculate Cpk?
- The NIST/SEMATECH Engineering Statistics Handbook says capability estimates need about 50 independent values. AIAG's PPAP manual asks for at least 100 readings from 25 or more subgroups for an initial study. With fewer readings the estimate is very uncertain. Even from 50 readings, an estimated Cpk of 1.33 has an approximate 95 percent confidence interval of about 1.05 to 1.61.
- Does measurement error affect Cpk?
- Yes. The standard deviation in the study includes the variation from the gage and the operator, so a noisy measurement system pulls Cp and Cpk down. A process with a true Cp of 2.08 shows 1.67 when the gage adds a standard deviation of 0.006 mm to a process standard deviation of 0.008 mm. Run a Gage R&R before you trust the capability numbers.
Put it into practice
Got a gage list? Send it over and we load it for you, usually in a couple of business days. Free on every plan. Then log every calibration to a tamper-evident audit trail and produce records on demand.
Axiospec is a documentation and workflow tool. It helps you keep clean, traceable, audit-ready records. Certification depends on your own processes, scope and assessor.
Take the audit-prep checklist with you
First the checklist, with each item phrased the way an auditor asks it. Then four short emails with practical tips. You can unsubscribe in one click.
First we email you a link to confirm your address. Nothing else comes until you confirm, and you can unsubscribe from any email after that. See our Privacy Policy.