OpenGXT homePlan a pilot line
Menu

Cp and Cpk calculator for process capability

How much of the tolerance your process uses, which side it is closer to, and how many parts per million to expect outside the limits.

For: Quality engineers, quality managers and process engineers

Two upright yellow posts stand on a baseboard with dozens of tiny steel bolts on end between them, clustered in the middle and thinning toward each post in a bell shape, while a tiny figure with a clipboard studies it.

Calculator

Fictional example values are filled in. Replace them with your own; results update as you type. Nothing you enter leaves your browser.

Results

Cp (potential, spread only)
1.39
Cpu (toward the upper limit)
1.06
Cpl (toward the lower limit)
1.72
Cpk (the worse side)
1.06
Expected above the upper limit
771 parts per million
Expected below the lower limit
0.1 parts per million
Shift needed to center the process
-0.0120

Valid only for a stable process (in statistical control) with roughly normal data. Use the within-subgroup standard deviation for Cp and Cpk; the overall standard deviation gives Pp and Ppk.

A dimension can be inside tolerance on every part you check today and still produce rejects next week. Process capability tells you how much room the process has. In ASQ’s words, Cp and Cpk “show how capable a process is of meeting its specification limits, used with continuous data.” Cp looks at the spread of the process against the width of the tolerance. Cpk also looks at where the process is centered. The calculator above returns both, along with the expected parts per million outside each limit.

The formulas

The calculator uses the definitions in the NIST/SEMATECH e-Handbook of Statistical Methods (section 6.1.6), with σ as the standard deviation:

Index Calculation What it tells you
Cp (Upper limit minus lower limit) ÷ (6 × σ) Whether the spread fits the tolerance at all
Cpu (Upper limit minus mean) ÷ (3 × σ) Room toward the upper limit
Cpl (Mean minus lower limit) ÷ (3 × σ) Room toward the lower limit
Cpk The smaller of Cpu and Cpl Room on the worse side

The expected parts per million come from the normal distribution: the share of a normal curve with your mean and standard deviation that falls beyond each limit. The last result is the shift that would put the mean exactly in the middle of the tolerance.

Example (fictional). A lathe at a fictional machine shop turns a shaft diameter specified at 10.00 mm ± 0.05 mm, so the limits are 9.95 mm and 10.05 mm. From a stable run the process mean is 10.012 mm and the within-subgroup standard deviation is 0.012 mm.

  • Cp: 0.10 ÷ (6 × 0.012 = 0.072) = 1.39
  • Cpu: (10.05 minus 10.012 = 0.038) ÷ 0.036 = 1.06
  • Cpl: (10.012 minus 9.95 = 0.062) ÷ 0.036 = 1.72
  • Cpk, the worse side: 1.06
  • Expected above the upper limit: 771 parts per million
  • Expected below the lower limit: 0.1 parts per million
  • Shift needed to center the process: -0.0120 mm, so lower the mean by 0.012 mm

The spread fits the tolerance (Cp 1.39), but the process sits 0.012 mm high, and almost all the risk is on the upper side. Centered, Cpk would equal Cp at 1.39.

Collecting good inputs

  • Check stability first. Capability only describes a process that is in statistical control. Plot the data on a control chart before you calculate. ASQ describes a control chart as having a central line for the average and upper and lower control limits “determined from historical data”. Points outside the limits or clear trends mean the process is not yet stable, and Cpk says nothing reliable about next week.
  • Use the within-subgroup standard deviation. Take small rational subgroups (for example, a few consecutive parts at regular intervals) and estimate σ from the variation inside them. The overall standard deviation of all the data gives Pp and Ppk instead, which include drift between subgroups.
  • Collect enough data. The NIST/SEMATECH e-Handbook notes that a large enough sample is “generally thought to be about 50 independent data values.”
  • Check the gauge. If the measurement resolution is coarse compared with the tolerance, or the gauge varies as much as the parts, the standard deviation describes the gauge as much as the process.

Reading the result

  • Cp and Cpk close together, both low. The spread is the problem. Look at sources of variation: fixturing, material, tool wear between offsets, temperature.
  • Cp acceptable, Cpk lower. Centering is the problem, as in the example. An offset or a target change often fixes it, which is cheaper than reducing variation.
  • Expected parts per million. Use them to compare options, not as a promise. They hold only while the data is roughly normal and the process stays stable.

Many customers set a minimum Cpk in their quality requirements. Use the value written in yours rather than a general rule.

Common mistakes

  • Calculating on an unstable process. The number is real arithmetic but says nothing about the future.
  • Calling Ppk “Cpk”. The two use different standard deviations and answer different questions.
  • Assuming normal data. Flatness, runout, roundness and other characteristics bounded at zero are often skewed, which makes the parts per million estimate wrong.
  • One-sided specifications. If only an upper limit exists, read Cpu only; Cp and the lower side do not apply.

From a one-off study to every part

Quality data software built by OpenGXT collects measurements from gauges, inspection stations or check sheets, keeps control charts per characteristic, and recalculates capability from the same data model the line’s output and downtime use. The measurement points belong in your signal inventory with their units and sample plans. The quality data hub of our publication covers SPC in more depth.

Start with one line.

Tell us which line you want to understand and the question you ask after every shift. We reply with questions or a time to walk it with you.