Process capability analysis: Cp, Cpk, Pp and Ppk step by step

Updated

A normal capability analysis tells you whether a stable process can keep its output inside the specification limits. It fits a normal distribution to your measurements, compares its spread with the tolerance, and reports capability indices (Cp, Cpk, Pp, Ppk, Cpm) and the expected parts per million (PPM) out of specification. It assumes the data come from a stable process and follow a normal distribution reasonably well.

When to use it

  • You need to show a customer or an approval process that a characteristic is capable, usually with Cpk or Ppk of at least 1.33 or 1.67.
  • You want a baseline before an improvement project, or proof afterward that the change worked.
  • The measurements are continuous, the process is in statistical control on a control chart, and a normality test or probability plot shows no strong departure from normal.
  • If the data are clearly skewed or bounded, use a nonnormal capability analysis or a transformation instead.

How it works

You give the analysis the measurements, the lower and upper specification limits (LSL, USL), and optionally a target T. It estimates two standard deviations:

  • Within σ measures short-term variation, inside subgroups. With subgroups, the usual default is the pooled standard deviation (the square root of the average subgroup variance, weighted by degrees of freedom) divided by the unbiasing constant c₄, which corrects its slight tendency to come out low. For individual data it is MR̄/1.128, the average moving range divided by d₂. The average range divided by d₂ (R̄/d₂) and the average standard deviation divided by c₄ (S̄/c₄) are common alternatives, and StatLab lets you choose.
  • Overall σ is the ordinary sample standard deviation of all values. It includes shifts between subgroups as well as variation within them.

The potential (within) indices use within σ:

Cp = (USL − LSL) / (6σ_within) Cpk = min(USL − x̄, x̄ − LSL) / (3σ_within)

Pp and Ppk are the same formulas with overall σ. Cpk and Ppk look only at the nearer limit, so they drop when the mean drifts off center. Cpm also penalizes distance from the target:

Cpm = min(T − LSL, USL − T) / (3 √(Σ(x − T)² / N))

The square root is the spread of the values around the target rather than around their mean, so it grows as the mean moves away from T. When the target sits in the middle of the tolerance, the numerator is half the tolerance and Cpm = (USL − LSL) / (6 √(Σ(x − T)² / N)). Definitions vary slightly between references (N or N − 1, within or overall variation); this one is the usual default. Expected PPM is the area of the fitted normal curve outside each limit, times one million: PPM above USL = (1 − Φ((USL − x̄)/σ)) × 10⁶, where Φ is the standard normal cumulative distribution.

Example

A lathe turns hydraulic valve pins with a diameter specification of 8.000 ± 0.030 mm, so LSL = 7.970, USL = 8.030 and the target is 8.000. Every hour an operator measures five consecutive pins. Here are six subgroups (30 pins, in mm). A real study should have more data (see the questions below), but the arithmetic is the same.

Subgroup12345
18.0118.0078.0127.9958.017
28.0108.0168.0108.0098.014
38.0168.0098.0108.0158.005
47.9968.0088.0017.9938.000
58.0037.9987.9968.0068.012
68.0048.0018.0088.0108.003

The mean of all 30 pins is x̄ = 8.0065 mm. The pooled within-subgroup standard deviation is 0.005560 mm; divided by c₄ = 0.9896 (for its 24 degrees of freedom) it gives within σ = 0.005618 mm. The overall standard deviation is 0.006720 mm.

Valve pin diameter against the specification02468FrequencyLSLUSLTarget7.988.008.02Diameter (mm)
Valve pin diameter against the specification

Working through the within indices:

  • Cp = 0.060 / (6 × 0.005618) = 1.78
  • CPU = (8.030 − 8.0065) / (3 × 0.005618) = 1.39 and CPL = (8.0065 − 7.970) / (3 × 0.005618) = 2.17, so Cpk = 1.39

With overall σ = 0.006720, Pp = 1.49 and Ppk = 1.17. For Cpm, the spread around the target is √(Σ(x − 8.000)² / 30) = 0.009268 mm, so Cpm = 0.030 / (3 × 0.009268) = 1.08.

IndexPPM above USLPPM total
WithinCp 1.78, Cpk 1.3914.414.4
OverallPp 1.49, Ppk 1.17235235

No pin of the 30 is out of specification, so the observed PPM is 0.

How to read the results

  • Cp against Cpk. Cp is 1.78 but Cpk only 1.39. The spread would fit the tolerance comfortably if the process were centered; the mean sits 0.0065 mm above the target, toward the USL. Re-centering the tool offset is the cheapest gain.
  • Cpk against Ppk. Cpk (1.39) is clearly above Ppk (1.17). The difference comes from the subgroup means moving around: subgroup 4 averages 7.9996 and subgroup 2 averages 8.0118. Within an hour the process is capable; over the shift it is not quite at 1.33. Look for the cause of the hour-to-hour shifts (tool wear, warm-up, offsets) on the Xbar-R chart, which the capability summary draws next to the indices.
  • Cpm. At 1.08 it is the lowest index because it counts both the spread and the distance from the target.
  • Expected PPM. About 14 PPM short term and about 235 PPM long term, all at the upper limit. See sigma level, PPM and DPMO to convert these into other scales.
  • Observed PPM. Zero out of 30 says little; you would need thousands of parts to observe rates of a few hundred PPM.

Common mistakes

  • Running capability on an unstable process. If the control chart shows special causes, the indices do not predict anything. Make the process stable first.
  • Ignoring the shape. The PPM numbers come from the tails of the normal curve. A skewed process can have a good Cpk and still produce many defects in its long tail. Check normality first.
  • Mixing up Cpk and Ppk. Customers often ask for one specifically. Cpk describes the short-term potential; Ppk describes what was actually shipped over the study period.
  • Trusting a small sample. With 30 values the 95% confidence interval for Ppk here runs from about 0.84 to 1.49 (Bissell's approximation). Report the interval, or collect more data.
  • Using drawing limits that are not the real limits. A one-sided characteristic (such as a maximum runout) has only a USL; enter just that limit, and the analysis reports CPU, PPU and the upper PPM only.

Frequently asked questions

What is a good Cpk?

A common minimum is 1.33, which puts the nearer limit four standard deviations from the mean. Many automotive and medical customers ask for 1.67 for new processes or critical characteristics. The right number is the one in your customer's requirements.

Why is Ppk lower than Cpk?

Because overall σ includes variation between subgroups, such as drift and shifts over time, and within σ does not. A large gap means the process changes from one subgroup to the next; a small gap means short-term and long-term spread are about the same.

How many measurements do I need?

At least 100, from at least 20 to 25 subgroups spread over normal production, is a common guideline. Fewer values give very wide confidence intervals: in this example, 100 values would narrow the Ppk interval to about 0.99 to 1.34.

Can Cpk be negative?

Yes. If the mean is outside the specification limits, the distance to the nearer limit is negative, and so is Cpk. That process makes mostly bad parts.

Why do two programs give slightly different Cpk on the same data?

They may estimate within σ differently: pooled standard deviation with or without the c₄ constant, average range divided by d₂, or average moving range. In this example, Cpk is 1.39 with the pooled standard deviation divided by c₄, 1.41 without c₄, and 1.37 with the average range divided by d₂ (R̄ = 0.01333, d₂ = 2.326). Use the same method when you compare studies.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab