Process Capability & Cpk Calculator
Compare two processes against shared specifications using the NIST sample-estimator formulas. Enter ordered observations or a sample mean and sample standard deviation for each process. Review the limiting tolerance margin, centers and spreads, observed outside counts and the mean or spread that would meet your chosen index goal. Lower or upper specifications can be evaluated separately.
Compare process capability against your specifications
Compare two samples or summaries, inspect which specification is limiting, and see what centering or spread would reach your chosen goal.
Only Process B meets the entered index goal.
The NIST sample index interpretation assumes stable, approximately normal processes. This worksheet compares estimates and keeps observed counts separate from future expectations.
- Lower spec 45 mm
- Upper spec 55 mm
- Target 50 mm
Each dot is a mean, and each bar spans mean ± 3s. The brown dashed lines mark specification limits. The slate dotted line marks the target when entered.
Center or narrow the process
Keep one estimate fixed and see what value of the other would reach Cpk 1.25.
Process A
- Maximum spread at current mean
- 0.8 mm
- Mean at current spread
- 48.380204 to 51.619796 mm.
Process B
- Maximum spread at current mean
- 1.333333 mm
- Mean at current spread
- 49.6875 to 50.3125 mm.
- Lower spec 45 mm
- Upper spec 55 mm
- Target 50 mm
Squares mark observations outside an active specification. These specification lines are not control limits.
- Process A
- 0 below · 51 inside · 0 above
Open capability ledger
| Measurement | Process A | Process B |
|---|---|---|
| Sample basis | Observed sample · 51 readings | Entered summary · 60 readings |
| Mean | 52 mm | 50 mm |
| Sample standard deviation | 0.901388 mm | 1.25 mm |
| Lower specification margin | 7 mm | 5 mm |
| Upper specification margin | 3 mm | 5 mm |
| Cpk | 1.1094 | 1.3333 |
| Cp | 1.849 | 1.3333 |
| Cpl | 2.5886 | 1.3333 |
| Cpu | 1.1094 | 1.3333 |
| Cpm | 0.7597 | 1.3333 |
| Observed inside | 51 | Unavailable |
| Observed outside | 0 | Unavailable |
Open observations ledger
| Process | Order | Reading | Status |
|---|---|---|---|
| Process A | 1 | 50.5 mm | inside |
| Process A | 2 | 51.375 mm | inside |
| Process A | 3 | 52.25 mm | inside |
| Process A | 4 | 53.125 mm | inside |
| Process A | 5 | 50.875 mm | inside |
| Process A | 6 | 51.75 mm | inside |
| Process A | 7 | 52.625 mm | inside |
| Process A | 8 | 53.5 mm | inside |
| Process A | 9 | 51.25 mm | inside |
| Process A | 10 | 52.125 mm | inside |
| Process A | 11 | 53 mm | inside |
| Process A | 12 | 50.75 mm | inside |
| Process A | 13 | 51.625 mm | inside |
| Process A | 14 | 52.5 mm | inside |
| Process A | 15 | 53.375 mm | inside |
| Process A | 16 | 51.125 mm | inside |
| Process A | 17 | 52 mm | inside |
| Process A | 18 | 52.875 mm | inside |
| Process A | 19 | 50.625 mm | inside |
| Process A | 20 | 51.5 mm | inside |
| Process A | 21 | 52.375 mm | inside |
| Process A | 22 | 53.25 mm | inside |
| Process A | 23 | 51 mm | inside |
| Process A | 24 | 51.875 mm | inside |
| Process A | 25 | 52.75 mm | inside |
| Process A | 26 | 50.5 mm | inside |
| Process A | 27 | 51.375 mm | inside |
| Process A | 28 | 52.25 mm | inside |
| Process A | 29 | 53.125 mm | inside |
| Process A | 30 | 50.875 mm | inside |
| Process A | 31 | 51.75 mm | inside |
| Process A | 32 | 52.625 mm | inside |
| Process A | 33 | 53.5 mm | inside |
| Process A | 34 | 51.25 mm | inside |
| Process A | 35 | 52.125 mm | inside |
| Process A | 36 | 53 mm | inside |
| Process A | 37 | 50.75 mm | inside |
| Process A | 38 | 51.625 mm | inside |
| Process A | 39 | 52.5 mm | inside |
| Process A | 40 | 53.375 mm | inside |
| Process A | 41 | 51.125 mm | inside |
| Process A | 42 | 52 mm | inside |
| Process A | 43 | 52.875 mm | inside |
| Process A | 44 | 50.625 mm | inside |
| Process A | 45 | 51.5 mm | inside |
| Process A | 46 | 52.375 mm | inside |
| Process A | 47 | 53.25 mm | inside |
| Process A | 48 | 51 mm | inside |
| Process A | 49 | 51.875 mm | inside |
| Process A | 50 | 52.75 mm | inside |
| Process A | 51 | 52 mm | inside |
Show selectable CSV
How to use this calculator
- Choose two-sided, lower-only or upper-only specifications. Enter the active limits, an engineering target for two-sided checks and a relevant index goal.
- Use one measurement unit. Enter each process as ordered readings or as a sample mean and standard deviation.
- Compare the limiting index and signed specification margins. Inspect the sampled mean and spread on the common scale.
- Read the goal panel to see the theoretical spread at the current mean or allowable centers at the current spread.
- Inspect the entered-order plot and observation ledger where raw data are provided. Download calculations and source observations as CSV.
The Formula
The mathematical logic powering this calculation is:
Use the NIST sample estimates. For observed values, the mean x̄ is their arithmetic average and s is the sample standard deviation with denominator n−1. Summary inputs use the entered x̄ and s directly. Two-sided indices are Cp = (USL − LSL)/(6s), Cpl = (x̄ − LSL)/(3s), Cpu = (USL − x̄)/(3s), Cpk = min(Cpl, Cpu), and Cpm = (USL − LSL)/(6√(s² + (x̄ − target)²)). A lower-only specification uses Cpl. An upper-only specification uses Cpu. A mean outside its limiting specification can give a negative index. At zero spread the worksheet withholds index and goal estimates.
For goal G, keeping the mean fixed allows a maximum positive s of the nearest specification margin divided by 3G. If the margin is zero or negative no positive s can meet a positive goal at that mean. Keeping s fixed requires x̄ ≥ LSL + 3Gs, x̄ ≤ USL − 3Gs, or both, depending on the active limits. If those conditions give an empty interval, centering alone cannot meet the goal with this spread. The user supplies G.
Observed values equal to an active limit count within specification. The entered sample is the only basis for observed counts. The mean ±3s chart summarizes sample spread. Neither those bands nor specification lines are statistical control limits. Index interpretations assume stable processes and approximately normal data with enough independent measurements, often at least 50. This worksheet does not test stability, fit a distribution, estimate defect rates, or compute a pooled within-subgroup standard deviation. Some systems call all-reading estimates Pp and Ppk. This worksheet labels the NIST sample formulas and states the input basis.
Use one unit for all measurements. The unit selector labels values without conversion. Measurements and bounds accept −1,000,000 to 1,000,000 with up to six decimals. s is nonnegative. Enter 2–250 observed values per process. An optional summary count is a whole number from 2 to 1,000,000. The positive index goal ranges from 0.01 to 10 with up to three decimals.Worked Example
If you input:
- Lower, upper and target: 45 mm, 55 mm, and 50 mm
- Cpk goal: 1.25
- Process A: 51 illustrative readings with mean 52 mm and sample s about 0.901388 mm
- Process B: Summary mean 50 mm, sample s 1.25 mm from 60 values
Result:
Process A has Cpk 1.1094, constrained by the upper spec despite its smaller spread. At its current mean the most spread allowed for the goal is 0.8 mm. At its current spread the mean must be 48.380204–51.619796 mm. Process B has Cpk 1.3333 and meets the entered 1.25 goal.
Frequently Asked Questions
How can Cp be higher than Cpk?
Cp measures the full specification width relative to the spread. Cpk uses the smaller margin from the mean. The two are equal for a centered mean.
What does a negative capability index indicate?
A negative applicable index means the mean is already outside its limiting specification. Reducing spread around that same mean does not reach a positive index goal.
What happens when all measurements are equal?
The sample s is zero. The worksheet shows the observed counts, mean and zero spread and leaves indices and goals undefined.
Why are no defect rates predicted?
Observed counts are available for pasted readings. Extrapolating them requires more information about process stability, measurement quality and the distribution of future results.
What is the difference between an engineering target and midpoint?
A midpoint is halfway between specification limits. The target is the intended nominal value you enter. Cpm uses distance from this target, even when it differs from the midpoint.
Which standard deviation belongs in the summary?
For comparison with the readings mode use the sample standard deviation over the observations. A pooled within-subgroup estimate answers a different variation question. Choose a consistent basis across the two entries.
Similar Calculators
Coefficient of Variation & Repeatability Calculator
Calculate sample coefficient of variation from readings or summary statistics. Compare relative spread, normalize measurements and check a CV limit.
Standard Deviation Calculator
Calculate sample or population standard deviation, variance, mean and extrema from complete decimal data. Preserve small differences and identify invalid entries.
Two-Sample F Test for Variances Calculator
Compare two population variances with a classical F test. Use sample counts and standard deviations or raw observations, see tail probabilities and confidence bounds.
Uncertainty Propagation Calculator
Propagate independent measurement uncertainties through sums, products and ratios. Compare contributions, expanded uncertainty and input improvement scenarios.
