molecalculator

Moles & Molar Mass

Cp and Cpk Calculator: Process Capability Explained

Calculator No. 01-4626 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

A Cp and Cpk calculator estimates how well a stable process fits within specification limits: enter the upper and lower specification limits, the process mean, and the process standard deviation. It returns Cp, which measures potential capability, and Cpk, which also accounts for how far the process mean is from the nearest limit.

Formula

Cp = (USL − LSL) / (6σ). The numerator is the specification width; the denominator is the width of a process distribution spanning six standard deviations. Cpk = min[(USL − μ) / (3σ), (μ − LSL) / (3σ)]. The two terms represent the process mean’s standardized distance from the upper and lower limits, and Cpk takes the smaller one.

  • USL is the upper specification limit, in the characteristic’s measurement units.
  • LSL is the lower specification limit, in the same units.
  • μ is the process mean, in those units.
  • σ is the within-process standard deviation, in those units. It must be greater than zero for these indices to be defined.
  • min means select the smaller of the two distances used in the Cpk calculation.

Use the same measurement units for all four inputs. For example, if the limits are in millimetres, enter the mean and standard deviation in millimetres too. The factors 6 and 3 are part of the conventional capability-index definitions; they are not unit conversions.

Worked Example

Using the calculator’s default values, USL = 10 units, LSL = 0 units, μ = 5 units, and σ = 0.5 units:

  1. Specification width = 10 − 0 = 10 units.
  2. Six standard deviations = 6 × 0.5 = 3 units.
  3. Cp = 10 / 3 = 3.333, rounded to three decimal places.
  4. Upper-side index = (10 − 5) / (3 × 0.5) = 5 / 1.5 = 3.333.
  5. Lower-side index = (5 − 0) / (3 × 0.5) = 5 / 1.5 = 3.333.
  6. Cpk = min(3.333, 3.333) = 3.333.

This symmetric example has equal Cp and Cpk because its mean is exactly midway between the specification limits. The displayed result is an index, not a measurement in millimetres or another physical unit.

Assumptions

  • The process is stable over the period represented by the data; its mean and variation are not changing substantially.
  • The entered standard deviation is an estimate of within-process variation, appropriate to a short-term capability analysis.
  • The limits are valid engineering or customer specifications, expressed in the same units as the data.
  • The indices are conventionally interpreted most directly when the process distribution is approximately normal. The formulas themselves do not test normality.
  • The observations used to estimate the mean and variation are representative and collected using a consistent measurement method.

How to Interpret Cp and Cpk

Cp compares the specification width with the process’s estimated six-sigma spread, while ignoring where the process is centered. A larger Cp indicates more room between the limits relative to the estimated variation. It does not mean that the process is actually producing acceptable output: a process can have a high Cp and still be shifted toward, or beyond, one limit.

Cpk addresses that centering issue by using the distance to the nearer specification limit. When the process mean is centered between two limits, Cp and Cpk are equal. When the mean shifts toward either limit, Cpk becomes smaller than Cp. If the mean is at a limit or outside the specification range, Cpk is zero or negative, respectively. A negative Cpk signals that the estimated mean is beyond a specification limit; it is not a percentage or a probability.

There is no universal acceptance threshold that applies to every process. Organizations and customers set criteria based on product risk, requirements, and their quality systems. A capability index also does not directly state the observed defect rate. Translating it into a tail probability requires distributional assumptions and a defensible estimate of the process parameters.

When to Use This Calculator

Use Cp and Cpk to summarize process spread and centering against fixed, meaningful specification limits. Examples include evaluating the diameter of a machined part against drawing tolerances or checking a measured fill quantity against an established product range. The measurements should describe a process that is reasonably stable, rather than a mixture of different machines, shifts, materials, or operating conditions.

Before interpreting the result, check that:

  • The process has been examined for stability, commonly with an appropriate control chart.
  • The specification limits are not confused with control limits. Specification limits define requirements; control limits are calculated from process data to assess stability.
  • The data cover relevant operating conditions and were measured with a suitable, consistent measurement system.
  • The standard deviation is calculated using a method suited to the sampling plan. A pooled within-subgroup estimate is often used for conventional short-term Cp and Cpk analysis.

If the process is unstable, one mean and one standard deviation may conceal meaningful changes. Investigate and address those changes before treating a capability value as a prediction of future performance.

Cp and Cpk Compared with Pp and Ppk

Cp and Cpk are usually called short-term or within-process capability indices because they use within-subgroup variation. Pp and Ppk have the same basic forms, but use the overall standard deviation across the full data set. Overall variation includes shifts between subgroups or over time, so Ppk is often lower than Cpk when the process changes between those groups.

The exact terminology and estimation methods can vary among organizations and standards. Always report how the standard deviation was estimated, the sampling period, and the data set. A bare value such as “Cpk = 1.2” is difficult to evaluate without that context.

Common Errors and Limits

  • Using the wrong variation estimate: Substituting an overall standard deviation when reporting Cpk can make the result inconsistent with the intended within-process definition. Use Ppk if the analysis is based on overall variation, and label it clearly.
  • Ignoring stability: Capability indices assume a process whose behavior is sufficiently consistent. A high number from a short or unusually quiet sample may not describe future production.
  • Mixing units or limits: Entering a mean in one unit and limits in another makes the arithmetic meaningless. Convert all measurements first.
  • Confusing targets with limits: A target is a desired value, but it does not replace the upper and lower specification limits in these formulas.
  • Overinterpreting normality: The calculator does not inspect a histogram, identify outliers, or assess whether a normal model is appropriate. Skewed, bounded, or multi-modal data may need a different analysis.

The result is an estimate, not a guarantee. It depends on the quality and representativeness of the data, the standard-deviation method, and the assumptions used to interpret the index.

Frequently Asked Questions

What is a good Cpk value?
There is no single value that is good for every application. A required threshold depends on the specification owner, industry, risk, and quality agreement. Compare the result with the applicable requirement and confirm that the process is stable.

Can Cpk be higher than Cp?
For the standard formulas using the same mean, limits, and positive standard deviation, Cpk cannot exceed Cp. Cp uses the full specification width, while Cpk is constrained by the nearer limit. If a calculation shows Cpk greater than Cp, check the inputs or formulas.

Can Cp be calculated without a process mean?
Yes. Cp needs the two specification limits and a standard deviation because it measures spread relative to the total tolerance width. Cpk also needs the process mean to evaluate centering.

What if Cpk is negative?
A negative value means the estimated process mean lies outside at least one specification limit. Check the data, units, and limits, then investigate the process; the negative sign is meaningful and should not be replaced with zero.

Should I use standard deviation or standard error?
Use a process standard deviation, not the standard error of the sample mean. Standard error measures uncertainty in estimating the mean and typically decreases as sample size grows; it does not represent the spread of individual process measurements used in Cp and Cpk.

Related

Formula used
in usl | Upper specification limit (USL) | units | 10 | -
in lsl | Lower specification limit (LSL) | units | 0 | -
in mean | Process mean | units | 5 | -
in sd | Within-process standard deviation | units | 0.5 | 0
out cp | Cp | - | (usl - lsl) / (6 * sd) | 3
out cpk | Cpk | - | min((usl - mean) / (3 * sd), (mean - lsl) / (3 * sd)) | 3

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →