FREE TOOL
Process Capability Calculator: Cp, Cpk, Pp and Ppk
Paste measurements in production order, set the subgroup size and the specification limits. Get Cp and Cpk from the within-subgroup sigma and Pp and Ppk from the overall sigma side by side, with expected PPM out of spec and a histogram against the limits.
Cp, Cpk, Pp and Ppk calculator
Cp and Cpk use the within-subgroup sigma; Pp and Ppk use the overall sigma. A Ppk well below Cpk points to shifts or drift between subgroups.
| Step | Formula | Value |
|---|---|---|
| Mean | x̄ = Σx / 25 | 25.0132 |
| Average range | R̄ over 5 subgroups of 5 | 0.02 |
| Within-subgroup sigma | σ within = R̄ / d₂ = 0.02 / 2.326 | 0.0085985 |
| Overall sigma | σ overall = √(Σ(x − x̄)² / (n − 1)) | 0.019305 |
| Cp | Cp = (25.1 − 24.9) / (6 × 0.0085985) | 3.877 |
| Cpu | Cpu = (25.1 − 25.0132) / (3 × σ within) | 3.365 |
| Cpl | Cpl = (25.0132 − 24.9) / (3 × σ within) | 4.388 |
| Cpk | Cpk = min(3.365, 4.388) | 3.365 |
| Expected PPM (within) | 10⁶ × [Φ(−3 × Cpl) + Φ(−3 × Cpu)] | 2.911e-18 |
| Pp | Pp = (25.1 − 24.9) / (6 × 0.019305) | 1.727 |
| Ppu | Ppu = (25.1 − 25.0132) / (3 × σ overall) | 1.499 |
| Ppl | Ppl = (25.0132 − 24.9) / (3 × σ overall) | 1.955 |
| Ppk | Ppk = min(1.499, 1.955) | 1.499 |
| Expected PPM (overall) | 10⁶ × [Φ(−3 × Ppl) + Φ(−3 × Ppu)] | 3.459 |
Formulas used
- Within-subgroup sigma
- σwithin = R̄ / d₂ (subgroups of 2–10); MR̄ / 1.128 (individuals)
- Overall sigma
- σoverall = √(Σ(x − x̄)² / (n − 1))
- Potential capability
- Cp = (USL − LSL) / 6σwithin; Pp = (USL − LSL) / 6σoverall
- Capability to each limit
- Cpu = (USL − x̄) / 3σwithin; Cpl = (x̄ − LSL) / 3σwithin
- Capability index
- Cpk = min(Cpu, Cpl); Ppk = min(Ppu, Ppl)
- Expected out of spec
- PPM = 10⁶ × [Φ(−3·Cpl) + Φ(−3·Cpu)] (same with Ppl, Ppu)
Assumptions and limits
- Data is entered in production order. Subgroups are consecutive groups of the chosen size; with size 1, consecutive values form moving ranges.
- d₂ constants for subgroup sizes 2 to 10 from the AIAG SPC manual.
- Cp and Cpk describe the process if it were in statistical control. Check a control chart first; capability of an unstable process isn't meaningful.
- Expected PPM assumes a normal distribution. Check the data with the histogram and normality test.
- With one specification limit, Cp and Pp are not defined and Cpk equals the one-sided index.
Worked example
Illustrative example: 25 diameters in 5 subgroups of 5, specification 25.00 ± 0.10 mm. Each subgroup is tight, but the subgroup average moves between 24.99 and 25.04 mm.
| Step | Formula | Value |
|---|---|---|
| Mean | x̄ = Σx / 25 | 25.0132 |
| Average range | R̄ over 5 subgroups of 5 | 0.02 |
| Within-subgroup sigma | σ within = R̄ / d₂ = 0.02 / 2.326 | 0.0085985 |
| Overall sigma | σ overall = √(Σ(x − x̄)² / (n − 1)) | 0.019305 |
| Cp | Cp = (25.1 − 24.9) / (6 × 0.0085985) | 3.877 |
| Cpu | Cpu = (25.1 − 25.0132) / (3 × σ within) | 3.365 |
| Cpl | Cpl = (25.0132 − 24.9) / (3 × σ within) | 4.388 |
| Cpk | Cpk = min(3.365, 4.388) | 3.365 |
| Expected PPM (within) | 10⁶ × [Φ(−3 × Cpl) + Φ(−3 × Cpu)] | 2.911e-18 |
| Pp | Pp = (25.1 − 24.9) / (6 × 0.019305) | 1.727 |
| Ppu | Ppu = (25.1 − 25.0132) / (3 × σ overall) | 1.499 |
| Ppl | Ppl = (25.0132 − 24.9) / (3 × σ overall) | 1.955 |
| Ppk | Ppk = min(1.499, 1.955) | 1.499 |
| Expected PPM (overall) | 10⁶ × [Φ(−3 × Ppl) + Φ(−3 × Ppu)] | 3.459 |
Result: Cp = 3.88 and Cpk = 3.36, but Pp = 1.73 and Ppk = 1.50. The gap is the subgroup-to-subgroup shift: the process can hold a tight spread in the short term but wanders over the run.
Cp and Cpk vs Pp and Ppk: which one to use
The only difference is the sigma
Cp/Cpk and Pp/Ppk use the same formulas. Cp and Cpk use the within-subgroup standard deviation, the short-term variation inside each subgroup. Pp and Ppk use the overall standard deviation of all the data, which also includes any drift, shift or mixing between subgroups. That's why AIAG calls Cp and Cpk process capability and Pp and Ppk process performance.
Reading the gap
If the process is stable, both sigmas estimate the same thing and the indices come out close. When Ppk is well below Cpk, something changes between subgroups: tool wear, temperature, material lots, operators or setups. Fix that and Ppk moves up toward Cpk. When Cpk is low too, the short-term spread itself is too wide or the process is off centre.
Cp vs Cpk, Pp vs Ppk
Cp and Pp only compare the spread with the tolerance. Cpk and Ppk also account for where the mean sits. A process with Cp = 2.0 and Cpk = 0.8 has the spread to fit easily but is running close to one limit. Re-centring it is usually cheaper than reducing variation.
What value is good enough
Many customers use 1.33 as the minimum for an ongoing process. The AIAG PPAP manual treats a preliminary Ppk above 1.67 as acceptable, 1.33 to 1.67 as possibly acceptable and below 1.33 as not acceptable. Use your customer's requirement where one exists. Make sure the measurement system is capable too: a gauge with poor Gage R&R inflates sigma and pulls every index down.
Common mistakes
- Calculating capability on an unstable process. Plot a control chart first. Out-of-control points make Cpk a guess.
- Shuffling the data. Sorting or mixing the values destroys the subgroups and the moving ranges, so the within-subgroup sigma comes out wrong.
- Using Cpk where the customer asked for Ppk. PPAP submissions typically ask for Ppk. Report the index that was requested.
- Ignoring non-normal data. Skewed characteristics such as flatness or runout give misleading PPM. Check normality first.
- Too little data. Indices from 20 or 30 parts have wide confidence intervals. AIAG suggests at least 25 subgroups for a capability study.
Frequently asked questions
What is the difference between Cpk and Ppk?
Both compare the distance from the mean to the nearest limit with three standard deviations. Cpk uses the within-subgroup standard deviation (short-term), Ppk uses the overall standard deviation of all the data (long-term). Ppk is always the more conservative when the process drifts.
How do you calculate Cpk?
Take the smaller of (USL − mean) / 3σ and (mean − LSL) / 3σ, where σ is the within-subgroup standard deviation. With subgroups, σ = R̄/d₂; with individual values, σ = average moving range / 1.128.
Why is my Pp higher than my Cp?
With a stable process both sigmas estimate the same thing and sampling noise can put either one higher. A clearly higher Pp can also mean the subgroups mix several sources, which inflates the within-subgroup ranges.
What subgroup size should I use?
Use the subgroups you collected: for example 5 consecutive parts every hour gives a subgroup size of 5. If you measured single parts at intervals, use 1.
What is a good Cpk value?
1.33 is the common minimum for an ongoing process, and 1.67 for new or critical characteristics. Check your customer's requirement.
Can I calculate Cpk with one specification limit?
Yes. Leave the other limit blank. Cpk is then the one-sided index (Cpu or Cpl), and Cp and Pp are not defined.
Sources
- AIAG, Statistical Process Control (SPC) Reference Manual, 2nd ed.: Cp, Cpk, Pp, Ppk definitions and d₂ constants.
- AIAG, Production Part Approval Process (PPAP) Manual, 4th ed.: acceptance criteria for preliminary process studies.
- Montgomery, D. C., Introduction to Statistical Quality Control, Wiley: process capability ratios and estimating sigma.
- ISO 22514-2, Statistical methods in process management: capability and performance.
Results are computed in your browser from the published formulas named above. They are an engineering aid, not a substitute for the governing standard, your drawing, or your customer's requirements.