MECHOWL QUALITY ANALYSIS AI
Process Capability Calculator: Cp, Cpk, Pp and Ppk from Your Data, with a Histogram
Paste your measurements to get the histogram with the specification limits, Cp, Cpk, Pp, Ppk, the expected PPM, confidence intervals and a normality check. One-sided limits work too.
Last updated
Your data is not sent. Everything is computed in your browser
Data
Column names in the first row. Tabs or commas, full-width digits, thousands separators and blanks are read.
Read 125 rows and 3 columns.
More settings (Unit, Number of classes, Confidence level, Chart title and more)
e.g. mm. Written on the chart and the tables.
When empty: automatic (close to the square root of the number of values, 5 to 30).
Used for the confidence intervals of Pp and Ppk.
When empty: "Histogram and process capability".
e.g. 1–31 Oct 2026. Written on the chart and the report.
Empty: all rows. A value: only the rows with that value.
Judgement rules
The defaults are shown with their sources. You can change them to match your company's or your industry's rules; a change is written on the report.
May differ by company or industry. A change is written on the report.
The default is a common guideline (see D. C. Montgomery).
Below this value: insufficient.
The default is a common guideline (see —).
Result
Cpk 1.36 (Capability: sufficient)
Result of the sample data
Capability: sufficient
Cpk = 1.36 (common guideline: 1.33 or more is sufficient, 1.00 or more is marginal, below that is insufficient)
- Cpk (process capability index, accounting for centring)
- 1.36
- Ppk (process performance index, accounting for centring)
- 1.32
How to read it
What the chart shows
- Cpk is 1.36, in the "Capability: sufficient" class (common guideline: 1.33 or more is sufficient, 1.00 or more is marginal).
Common misreadings
- The indices of a process that is not stable do not predict its future capability. Check stability with a control chart first.
Next steps
- Check with an X̄-R chart that the process is stable over time.
Numbers
| Number of values n | 125 |
|---|---|
| Mean x̄ | 10.0032 mm |
| Standard deviation (overall) s | 0.01178 mm |
| Standard deviation (within) σ̂ | 0.01144 mm |
| Minimum | 9.973 mm |
| Maximum | 10.036 mm |
| Cp (process capability index) | 1.46 |
| Cpk (process capability index, accounting for centring) | 1.36 |
| Pp (process performance index) | 1.42 |
| Ppk (process performance index, accounting for centring) | 1.32 |
| Confidence interval of Pp (95 %) | 1.24 to 1.59 |
| Confidence interval of Ppk (95 %) | 1.15 to 1.50 |
| Distance from the mean to the nearer limit (in σ̂) | 4.09 σ̂ |
| Expected nonconforming (overall σ) | 38.5 ppm |
| Expected nonconforming (within σ) | 23.1 ppm |
| Values outside the limits (observed) | 0 |
| Normality (Anderson–Darling p-value) | 0.715 |
Calculation steps
- Overall standard deviation
s = √( Σ(xᵢ − x̄)² / (n − 1) )n = 125, x̄ = 10.0032 → s = 0.01178 - Within-subgroup standard deviation
R̄ / d₂ (subgroup size 5)R̄ = 0.02660, d₂ = 2.326 → σ̂ = 0.01144 - Cp
Cp = (USL − LSL) / (6σ̂)(10.0500 − 9.9500) / (6 × 0.01144) = 1.46 - Cpk
Cpk = min( (USL − x̄)/(3σ̂), (x̄ − LSL)/(3σ̂) )Cpu 1.36, Cpl 1.55 → 1.36 - Pp
Pp = (USL − LSL) / (6s)= 1.42 - Ppk
Ppk = min( (USL − x̄)/(3s), (x̄ − LSL)/(3s) ) (one-sided: that side only)= 1.32 - What the class values mean
Specification width = Cp × 6σ̂, mean to the nearer limit = Cpk × 3σ̂ (Cp, Cpk = 1.00: 6σ, 3σ on one side; 1.33: 8σ, 4σ on one side)Specification width = 8.74 σ̂, to the nearer limit 4.09 σ̂ (guideline: 1.33 → 3.99 σ̂ on one side, 1.00 → 3.00 σ̂ on one side) - Expected nonconforming rate
Φ((LSL − x̄)/σ) + 1 − Φ((USL − x̄)/σ) (normal distribution assumed)Overall σ: 38.5 ppm - Confidence interval of Ppk
Ppk ∓ z × √( 1/(9n) + Ppk²/(2(n − 1)) ) (Bissell's approximation, z = 1.960)1.15 to 1.50 - Confidence interval of Pp
Pp × √( χ²(α/2, n−1) / (n−1) ) to Pp × √( χ²(1−α/2, n−1) / (n−1) )1.24 to 1.59 - Number of classes
Number of classes ≈ √n (5–30); the width is rounded to 1, 2, 2.5 or 5 × 10ⁿ7 classes, width 0.0100
Frequency by class
| From (≥) | To (<) | Frequency |
|---|---|---|
| 9.9700 | 9.9800 | 2 |
| 9.9800 | 9.9900 | 10 |
| 9.9900 | 10.0000 | 38 |
| 10.0000 | 10.0100 | 38 |
| 10.0100 | 10.0200 | 28 |
| 10.0200 | 10.0300 | 7 |
| 10.0300 | 10.0400 | 2 |
The results are reference values based on the data you entered and the formulas and criteria shown. They are not a quality guarantee or a pass/fail decision. The final decision rests with you.
References
- ISO 22514-2:2026 Statistical methods in process management — Capability and performance — Part 2: Process capability and performance of time-dependent process models · ISO
- NIST/SEMATECH e-Handbook of Statistical Methods, 6.1.6 What is Process Capability? · NIST · Open
- D. C. Montgomery, Introduction to Statistical Quality Control, 8th ed., 2019 · Wiley
- A. F. Bissell, How Reliable is Your Capability Index? Applied Statistics 39(3), 331–340 (1990) · Royal Statistical Society
- Goodness-of-Fit Techniques (R. B. D'Agostino, M. A. Stephens eds.), 1986 · Marcel Dekker
Standards are shown by number and title only.
Process capability (Cp, Cpk) explained
Process capability indices are numbers that show how small the process variation is compared with the width of the specification. Cp is the specification width divided by 6σ, and Cpk also accounts for how far the mean is off centre. A common guideline treats 1.33 or more as sufficient. A histogram shows the shape of the distribution of the measurements as bars; with the specification limits drawn on it, you can see where parts are likely to fall outside.
Process capability (Cp, Cpk) by hand: step by step
- Collect values measured on the same process under the same conditions (about 50 or more; taking them in subgroups shows the within-subgroup variation).
- Calculate the mean x̄ and the standard deviations: the overall s and the within-subgroup σ̂ = R̄ / d₂.
- Calculate Cp = (USL − LSL) / 6σ̂ and Cpk = distance from the mean to the nearer limit / 3σ̂. The same calculation with the overall s gives Pp and Ppk.
- Draw the histogram and check the specification limits and the shape of the distribution (two peaks, skew, isolated islands).
- Compare the indices with your criteria (for example, 1.33 or more is sufficient). If they fall short, centre the process or reduce the variation.
Worked examples
Example 1: Two-sided limits, no subgroups (10 values, 10.00 ± 0.05)
Measurement 9.98 10.02 10.00 10.01 9.99 10.03 9.97 10.00 10.02 9.98
Settings: Upper specification limit (USL) = 10.05, Lower specification limit (LSL) = 9.95
x̄ = 100.00/10 = 10.00. Sum of squared deviations = 0.0036 → s = √(0.0036/9) = 0.0200. Moving ranges 0.04, 0.02, 0.01, 0.02, 0.04, 0.06, 0.03, 0.02, 0.04, average MR̄ = 0.28/9 = 0.031111, d₂(2) = 1.128 (table value) → σ̂ = 0.027581. Cp = 0.10/(6 × 0.027581) = 0.6043 = Cpk (the mean is centred). Pp = 0.10/(6 × 0.0200) = 0.8333 = Ppk. Expected nonconforming = 2 × Φ(−0.05/0.02) = 2 × Φ(−2.5) = 0.012419. 95 % interval of Pp = 0.8333 × √(2.7004/9) to 0.8333 × √(19.023/9) = 0.4565 to 1.2115 (χ² at 2.5 % and 97.5 % with 9 degrees of freedom).
Example 2: With subgroups (4 subgroups of 3, limits 4.6 to 5.6)
Subgroup Measurement 1 5.0 1 5.2 1 5.1 2 5.3 2 5.1 2 5.2 3 4.9 3 5.0 3 5.2 4 5.1 4 5.3 4 5.0
Settings: Upper specification limit (USL) = 5.6, Lower specification limit (LSL) = 4.6
Ranges 0.2, 0.2, 0.3, 0.3 → R̄ = 0.25, d₂(3) = 1.693 (table value) → σ̂ = 0.147667. x̄ = 61.4/12 = 5.116667. Cp = 1.0/(6 × 0.147667) = 1.1287. Upper side (5.6 − 5.116667)/(3 × 0.147667) = 1.0910, lower side 1.1663 → Cpk = 1.0910 (1.00 or more and below 1.33: marginal). Distance to the nearer limit (the upper) = 3 × 1.0910 = 3.273 σ̂ (the guideline 1.33 is 4 σ̂, 1.00 is 3 σ̂).
Example 3: Upper limit only (one-sided, USL 0.5)
Measurement 0.30 0.34 0.31 0.33 0.32 0.35 0.29 0.32
Settings: Upper specification limit (USL) = 0.5
x̄ = 2.56/8 = 0.32, s = √(0.0028/7) = 0.02. Ppk = (0.5 − 0.32)/(3 × 0.02) = 3.00. Cp and Pp are not shown because there is no two-sided specification. MR̄ = 0.22/7 = 0.031429, d₂(2) = 1.128 → σ̂ = 0.027862 → Cpk = 0.18/(3 × 0.027862) = 2.1535.
Example 4: Mean exactly at the upper limit (Cpk = 0)
Measurement 9 10 11 10 9 11 10 10
Settings: Upper specification limit (USL) = 10
x̄ = 80/8 = 10 = USL → (USL − x̄) = 0, so Cpk = Ppk = 0. Under a normal distribution half of the parts exceed the upper limit: expected nonconforming = 1 − Φ(0) = 0.5.
Example 5: Upper limit ≤ lower limit (input error)
Measurement 1 2 3
Settings: Upper specification limit (USL) = 9, Lower specification limit (LSL) = 10
The upper limit 9 is below the lower limit 10. This is not a valid specification, so no result is given and the input error is shown.
Example 6: All values equal (no variation)
Measurement 5.0 5.0 5.0 5.0
Settings: Upper specification limit (USL) = 5.5, Lower specification limit (LSL) = 4.5
With s = 0 there is nothing to divide by in 6σ. The page says that the indices cannot be calculated and why.
Common mistakes
- Calculating the indices without first checking stability with a control chart (the indices of an unstable process do not represent its future capability).
- Not telling Cp from Cpk, or Cpk from Ppk (Cpk uses the within-subgroup variation, Ppk the overall variation).
- Trusting the second decimal place with few data (with 30 values the 95 % confidence interval can be about ±0.3).
- Using the expected nonconforming rate (PPM) as it is when the distribution is far from normal.
FAQ
- What Cpk value is good enough?
- Your company or industry decides. A common guideline is 1.33 or more as sufficient and 1.00 or more as marginal, and these are the defaults on this page. By definition, Cp and Cpk of 1.00 mean a specification width of 6σ (3σ from the mean to the nearer limit), and 1.33 means 8σ (4σ). You can change the class values; a change is written on the report.
- What is the difference between Cpk and Ppk?
- Cpk is calculated with the within-subgroup variation (the short-term variation), Ppk with the variation of all the data. When Ppk is much smaller than Cpk, the mean moves between subgroups (between days or lots).
- Can I use it with a one-sided specification?
- Yes. Enter only the upper or only the lower limit and the index for that side is shown (Cpk = Cpu or Cpl). Cp is shown only when both limits are given.
- Is my data sent anywhere?
- No. The calculations and the chart are made in your browser only.
Scope
From the measurements of one characteristic, the indices and the expected nonconforming rate under the assumption of a normal distribution.
Not covered by this tool:
- Fitting non-normal distributions (Weibull and others) and transformations.
- Multivariate process capability.
Excel template: Process capability (Cp, Cpk)
A template with the column names and sample values only (no formulas). Enter your values, then copy the range and paste it into the box above.