Process statistics

Cpk vs Ppk: Formulas, Differences, and Practical Examples

Kitstead Labs · Engineering reference · Synthetic worked example

A capability report can show a reassuring Cpk while the underlying sequence changes level. This guide follows one small synthetic dataset from raw measurements to all four capability and performance indices. It explains which variability estimate each index uses and why neither an index nor an in-spec sample replaces a stability review.

Quick answer

Cpk uses a within-process variability estimate; Ppk uses overall sample variability for the chosen dataset. Both compare the mean with the nearer specification limit. State the estimators and sampling window before comparing the numbers, and examine stability before interpreting them as capability.

Capability and performance answer related questions

A specification describes an engineering requirement. Variation describes what the process actually did. Cp and Pp compare the full specification width with six estimated standard deviations; Cpk and Ppk also account for an off-center mean by using the nearer specification limit. All four indices are dimensionless.

The distinction here is the variability estimator. “Within” uses local differences between successive individual measurements. Overall sample standard deviation uses deviations from the mean of the entire selected dataset, so shifts across the sequence contribute. Neither label defines a calendar duration: Ppk is not automatically a long-term study.

Formulas and assumptions

Let LSL and USL be lower and upper specification limits, x̄ the sample mean, and n the number of observations. For this individual-observation method, MRi = |xi − xi−1| and MR̄ averages the n−1 moving ranges. Use measurement order, not sorted magnitude.

Within estimate · Cp and Cpk

σwithin = MR1.128

In plain terms: the average jump between consecutive measurements, divided by 1.128 to turn it into a standard deviation.

Cp = USL − LSL6σwithin

In plain terms: how many within-process spreads fit across the specification width, ignoring centering.

Cpk = min(USL − x, x − LSL)3σwithin

In plain terms: the distance from the mean to the nearer specification limit, in units of three within-process sigmas.

Overall estimate · Pp and Ppk

s = Σ(xi − x)2n − 1

In plain terms: the ordinary sample standard deviation of every selected value, so a level shift adds to it.

Pp = USL − LSL6s

In plain terms: the same width comparison, using the overall spread of the whole dataset.

Ppk = min(USL − x, x − LSL)3s

In plain terms: the nearer-limit comparison, using the overall spread.

The moving-range estimator is appropriate to individual observations with a coherent sampling sequence and sufficiently independent local errors. Rational subgroup methods use other within estimators; do not substitute this formula without checking the sampling plan. These equations can be calculated on unstable or nonnormal data, but their capability and tail-probability interpretation then needs particular caution. Zero estimated variation does not justify an infinite capability claim.

Worked example: a shift hidden by a high Cpk

All values below are synthetic thickness measurements, not customer data. Set LSL = 9.50 µm and USL = 10.50 µm. The short sequence deliberately changes level halfway through, making it useful for demonstrating why a capability number needs a chart. Ten values are not a production qualification study.

Synthetic thickness measurements in collection order
ObservationThickness (µm)Moving range (µm)
110.00—
210.040.04
310.020.02
410.060.04
510.040.02
610.200.16
710.240.04
810.220.02
910.260.04
1010.240.02

Paste these ten values into the Process Capability Calculator to reproduce the indices below.

9.50 9.75 10.00 10.25 10.50 1 2 3 4 5 6 7 8 9 10 Observation (collection order) Thickness (µm) Level shift +0.20 µm USL 10.50 LSL 9.50 x̄ 10.132
  • Specification limits
  • ±3σ̂ within (MR̄ / 1.128)
  • ±3s overall
  • Mean x̄ of all ten values
  • Mean of observations 1–5 and 6–10
  • Outside the highlighted band
Synthetic thickness measurements from the table above. Both bands are centred on x̄ = 10.132 µm: the within band uses σ̂within = 0.039401 µm and the overall band uses s = 0.107579 µm.
0.00 0.05 0.10 0.15 0.042 0.023 0.044 0.025 0.166 0.047 0.028 0.049 0.0210 MR̄ 0.0444 Moving range ending at observation (µm) Level shift
Eight of the nine moving ranges are 0.04 µm or smaller. The one large step is the level shift, and it is only one of nine values in MR̄, so σ̂within stays small.

The values sum to 101.32 µm, giving x̄ = 10.132 µm. The nine moving ranges sum to 0.40 µm: MR̄ = 0.40/9 = 0.044444 µm. The sum of squared deviations from the mean is 0.10416 µm².

Within estimate

σwithin = 0.40 / 91.128 = 0.039401 µm

Overall estimate

s = 0.104169 = 0.107579 µm
Nearest limit distance = 10.50 − 10.132 = 0.368 µm
Calculated indices (rounded to three decimals)
IndexCalculationResult
Cp1.00 / (6 × 0.039401)4.230
Cpk0.368 / (3 × 0.039401)3.113
Pp1.00 / (6 × 0.107579)1.549
Ppk0.368 / (3 × 0.107579)1.140

The calculations use unrounded estimates internally. Cpk exceeds Ppk because most adjacent differences are small relative to the overall spread across the two levels. Every observation is within specification, yet the process sequence contains a deliberate shift. A Cpk of 3.113 therefore cannot be read as evidence that this process is stable or qualified.

Interpret the indices together with the sequence

A large Cpk–Ppk gap is a reason to inspect time order, equipment, material and sampling differences. It does not identify a cause. Similar values also do not prove stability: both estimators can be influenced by outliers, measurement resolution or mixed populations. Use the I-MR chart worked example to see control limits for these same measurements.

A process mean outside either specification can yield a negative Cpk or Ppk. That is meaningful evidence of poor centering relative to the stated requirement, not a software error to clamp to zero. A target can be useful for centering decisions, but it is not a substitute for LSL and USL in these formulas.

Common errors in a capability review

When the question is whether experimental conditions differ, use an experimental comparison instead of a capability index. The split-lot analysis guide explains that distinction.

Apply the method in desktop Excel

The SPC & Capability Analyzer v0.1 computes Cp/Cpk with MR̄/1.128 and Pp/Ppk with sample standard deviation. It supports ordered measurements, I-MR charts and descriptive Tool, Chamber and Lot summaries. Its single-point Individuals control-limit checks do not include advanced run rules or subgroup capability.

Sources and further reading