Sub topic 6
Cp: tolerance width versus process spread
This chapter assumes you can compute a mean and a standard deviation, know the shape and meaning of the normal distribution, and have seen the terms LSL and USL (lower and upper specification limits). It also assumes you have read the earlier chapters on the 6-sigma natural spread and on estimating sigma from subgroups. Here we build Cp, the first capability index, and look at what it can and cannot tell you.
The question Cp answers
A specification says how much variation the customer will accept. A process has its own natural variation. Cp compares the two as one ratio:
- The numerator is the width of the allowed range, the tolerance: USL minus LSL.
- The denominator is the width of the range the process actually uses: 6 sigma.
The formula is:
Cp = (USL - LSL) / (6 * sigma)
The 6 sigma span covers about 99.73% of output from a normal process, from 3 sigma below the mean to 3 sigma above it. Cp therefore asks how many times the natural spread fits inside the tolerance.
- Cp = 1.0: the natural spread is exactly as wide as the tolerance.
- Cp above 1.0: the spread is narrower than the tolerance, so there is room to spare.
- Cp below 1.0: the spread is wider than the tolerance, so defects are unavoidable even with perfect aim.
The reciprocal, 1/Cp, is the fraction of the tolerance the process consumes. A Cp of 1.33 means the process uses 75% of the tolerance. Some teams report this as the capability ratio (CR).
What Cp ignores: location
Cp uses only the width of the tolerance and the width of the process. The process mean does not appear in the formula. Shift the whole distribution toward a limit and Cp does not change, even though defects rise sharply. This is why Cp is called potential capability. It describes what the process could achieve if it were centered on the middle of the tolerance, and it says nothing about whether it is centered.
The next two chapters cover centering and Cpk. For now, treat Cp as an upper bound on Cpk. Cpk equals Cp only when the mean sits exactly at the midpoint.
A worked example
A shaft has a specification of 10.00 mm plus or minus 0.15 mm, so LSL = 9.85 and USL = 10.15. The tolerance width is 0.30 mm. The process has a standard deviation of 0.05 mm.
- Natural spread: 6 x 0.05 = 0.30 mm.
- Cp = 0.30 / 0.30 = 1.00.
The spread fills the tolerance completely. If the process were perfectly centered, about 0.27% of parts, roughly 2,700 per million, would fall outside the limits.
Now suppose a process improvement cuts sigma to 0.025 mm. The spread becomes 0.15 mm and Cp becomes 2.00. The process then uses only half the tolerance. Because sigma is in the denominator, Cp is very sensitive to it. Halving sigma doubles Cp.
Which sigma goes into Cp
The standard deviation in the denominator must be the within-subgroup (short-term) estimate. This is the variation you see when the process runs under a single set of conditions. Do not use the plain standard deviation of all your data lumped together. That overall value also includes drift between subgroups. If you use it, you are computing Pp, which is covered in a later chapter.
The usual estimate from subgroup ranges is sigma = R-bar / d2. R-bar is the average subgroup range, and d2 is a constant that depends on the subgroup size. For subgroups of five, d2 is 2.326.
The following program estimates sigma from three subgroups of five parts each and then computes Cp.
from statistics import mean
D2 = {2: 1.128, 3: 1.693, 4: 2.059, 5: 2.326}
def sigma_within(subgroups):
sizes = {len(g) for g in subgroups}
if len(sizes) != 1:
raise ValueError("all subgroups must have the same size")
n = sizes.pop()
r_bar = mean(max(g) - min(g) for g in subgroups)
return r_bar / D2[n]
def cp(lsl, usl, sigma):
if usl <= lsl:
raise ValueError("USL must be greater than LSL")
if sigma <= 0:
raise ValueError("sigma must be positive")
return (usl - lsl) / (6 * sigma)
subgroups = [
[10.01, 10.03, 9.99, 10.02, 10.00],
[10.04, 10.00, 10.02, 10.01, 10.03],
[9.98, 10.01, 10.00, 10.02, 9.99],
]
s = sigma_within(subgroups)
print(round(s, 4))
print(round(cp(9.85, 10.15, s), 2))The three ranges are all 0.04, so R-bar is 0.04 and sigma is 0.04 / 2.326, about 0.0172. The tolerance of 0.30 divided by 6 x 0.0172 gives a Cp of about 2.91.
This is a very high value from only 15 measurements, and the sample is far too small to trust. The chapter on sample size and uncertainty explains why. A Cp this good would also need a stability check before anyone acted on it.
Reading Cp values
A Cp value maps to a defect rate through the normal model, but only if the process is centered. A centered process has its limits at 3 x Cp sigma on each side, so the two-sided defect rate is 2 x P(Z < -3 Cp).
| Cp | Tolerance used | Centered defect rate (approx.) | Common label |
|---|---|---|---|
| 0.67 | 150% | 45,500 ppm | Not capable |
| 1.00 | 100% | 2,700 ppm | Marginal |
| 1.33 | 75% | 66 ppm | Minimum for many customers |
| 1.67 | 60% | 0.5 ppm | Good |
| 2.00 | 50% | 0.002 ppm | Six Sigma level |
A Cp of 1.33 corresponds to limits at 4 sigma from the center. A Cp of 2.0 corresponds to limits at 6 sigma. Customers often set the target in the specification, such as "Cp of at least 1.33" or "at least 1.67 for safety-critical features." These are conventions, not laws of nature. The right target depends on the cost of a defect and on how much the process mean can drift in production.
You can check the table with the standard library:
from statistics import NormalDist
def centered_ppm(cp_value):
z = 3 * cp_value
return 2 * NormalDist().cdf(-z) * 1_000_000
for c in (0.67, 1.0, 1.33, 1.67, 2.0):
print(c, round(centered_ppm(c), 3))Common errors with Cp
- Reporting Cp as if it were the whole capability story. A process can show Cp of 1.5 and still produce a large share of defects if the mean has drifted. Always report Cp together with Cpk.
- Using the overall standard deviation. Variation between subgroups inflates sigma, which lowers the index. That figure is a performance index, not Cp.
- Computing Cp on an unstable process. If the process is out of control, sigma is not describing one stable distribution. The number exists but has no predictive meaning.
- Ignoring non-normal data. The 6-sigma span and the ppm conversion both assume normality. For skewed data such as flatness or runout, the index can mislead.
- Treating a point estimate as exact. A Cp computed from 30 parts has a wide confidence interval.
- Applying Cp to a one-sided specification. With only one limit, there is no tolerance width, so Cp is undefined. Use Cpu or Cpl instead.
Summary of the key ideas
- Cp is the tolerance width divided by 6 sigma.
- It measures potential capability and ignores the process mean.
- The sigma used must be the within-subgroup estimate, for example R-bar / d2.
- A Cp of 1.0 means the spread equals the tolerance. 1.33 and 1.67 are common targets.
- Cp is only an upper bound on Cpk. Cpk adds the effect of centering.
Exercise
A part has LSL = 4.90 and USL = 5.30. A stable process, measured in subgroups of four, has an average range R-bar of 0.0412. Using d2 = 2.059 for subgroups of four, estimate sigma and compute Cp. Is the process capable against a target of 1.33?
Show answer
Sigma = 0.0412 / 2.059 = 0.0200. The tolerance is 5.30 - 4.90 = 0.40, and the spread is 6 x 0.0200 = 0.120. Cp = 0.40 / 0.120 = 3.33. This is well above 1.33, so the potential capability is more than adequate. Cp says nothing about centering, so you still need Cpk before concluding that the process is capable in practice.
Exercise
Two processes make the same part with the same limits. Process A has Cp = 1.8 and a mean at the middle of the tolerance. Process B has Cp = 1.8 and a mean 4 sigma above the middle. Which has the higher defect rate, and what does this show about Cp?
Show answer
Process B has the higher defect rate. Its mean is 4 sigma from center. With Cp = 1.8 the limits are 3 x 1.8 = 5.4 sigma from center, so the upper limit is only 1.4 sigma above B's mean. That puts about 8% of output above the USL. Process A's limits are 5.4 sigma from its mean, so its defect rate is negligible. Both have the same Cp because Cp ignores the mean, which is why Cpk is needed.