Free calculator

SPC and Cpk Calculator — Process Capability with Histogram and Control Chart

Paste measured values from a part series (one per line or separated by spaces), enter the nominal size and the tolerance, and see at once whether the process is capable, centred and stable.

Enter the deviations with their sign, as on the drawing: a bore Ø25 H7 is +0.021 / 0, a shaft Ø25 g6 is −0.007 / −0.020. Leave one deviation empty for a one-sided limit.

Cpk–
Ppk–
Cp–
Pp–
Mean–mm
Std. dev. (overall)–mm
Sigma (within)–mm
Expected out of tolerance–ppm
Values–

Histogram

Individuals control chart

How it works

Mean x̄ = Σx ÷ n. Overall standard deviation s = √(Σ(x − x̄)² ÷ (n − 1)). Within (short-term) sigma σ = MR̄ ÷ 1.128 from the moving ranges. Cp = (USL − LSL) ÷ 6σ, Cpk = min(USL − x̄, x̄ − LSL) ÷ 3σ. Pp, Ppk use s instead of σ. Control limits (individuals chart) = x̄ ± 2.66 × MR̄.

What the values mean

  • Cp compares the tolerance width with the spread. It ignores where the process sits.
  • Cpk also counts the centering. Cpk lower than Cp means the mean is off the nominal: an offset correction would help.
  • Pp and Ppk use the overall spread including drift between parts. When Ppk is much lower than Cpk, the process drifts (tool wear, temperature).

Typical requirements

Many customers ask for Cpk ≥ 1.33 for running production and ≥ 1.67 for new processes or safety features. Cpk 1.0 means about 0.27 % (2,700 ppm) out of tolerance if the data are normal.

Good data

  • At least 25–30 parts in the order they were made, better 50–125.
  • Measure with a capable gauge: check it with the gauge R&R calculator first.
  • Points outside the control limits or long runs on one side show special causes: find them before you trust the Cpk.

Embed this calculator on your site

Free for workshops, schools and forums — copy this snippet:

HTML
<iframe src="https://cnccode.com/embed/spc-cpk-calculator/" width="100%" height="720" style="border:0" loading="lazy" title="SPC and Cpk Calculator"></iframe>

More free CNC tools

Frequently asked questions

How many measurements do I need?
At least 25, better 50 or more. With few values the Cpk can be far off: with 30 parts the true Cpk can be about 20 % lower or higher than the calculated one.
Can I use it for a one-sided tolerance?
Yes. Leave the lower or upper tolerance empty and only the matching Cpk side (CPU or CPL) is used.
What is the difference between Cpk and Ppk?
Cpk uses the short-term spread from part to part (moving range), Ppk the total spread of all values. Together they show whether the process drifts.
Was this page helpful?