The four calculators assume normal data, a stable process and the standard formulas from the Six Sigma bodies of knowledge. The sigma level adds the 1.5 sigma shift by default, and you can switch it off. This page lists every formula the DPMO, Cp Cpk, sample size and control limits calculators use, then the assumptions behind them. Know the assumptions and the numbers mean something. Ignore them and the numbers are decoration.
The formulas in one place
| Calculator | Formula |
|---|---|
| DPMO | DPMO = defects / (units x opportunities per unit) x 1,000,000 |
| Sigma level | Sigma level = long-term Z + 1.5, where Z is the standard normal value whose upper tail equals DPO |
| Cp and Cpk | Cp = (USL minus LSL) / (6 x σ within). Cpk = min(USL minus mean, mean minus LSL) / (3 x σ within) |
| Pp and Ppk | The same two formulas with σ overall, the sample standard deviation of all the data |
| Sample size, mean | n = (z x σ / E)^2, rounded up |
| Sample size, proportion | n = z^2 x p x (1 minus p) / E^2, rounded up. With a population of N: n / (1 + (n minus 1) / N) |
| X-bar R limits | X-bar chart: X-double-bar plus or minus A2 x R-bar. R chart: D4 x R-bar and D3 x R-bar |
| I-MR limits | Individuals: X-bar plus or minus 2.660 x MR-bar. Moving range: 3.267 x MR-bar |
| Within σ | R-bar / d2, or MR-bar / 1.128 for individual values |
Two-sided z values: 1.645 for 90% confidence, 1.960 for 95%, 2.576 for 99%. A2, D3, D4 and d2 come from the control chart constants table.
1. The data is normal (where it matters)
The sigma level, the capability indices and the expected PPM all convert a distance in standard deviations into a tail probability using the normal distribution. If your data is skewed, bounded at zero, bimodal or counted rather than measured, that conversion is off, sometimes badly. A Cpk of 1.33 on cycle-time data with a long right tail does not mean 63 PPM; it means someone used the wrong distribution.
What to do: plot the data first (histogram, normal probability plot). If it is not normal, transform it, fit the right distribution, or report the observed fraction out of spec instead of a modelled one. The article How do you know if a process is normal? walks through the checks.
Control limits are the exception. Shewhart’s 3σ limits work well enough for most shapes because the limits are built from the process’s own variation, not from a tail probability. Sample size for a mean also survives non-normal data once n is past about 30, thanks to the central limit theorem.
2. The process is stable
A capability index describes a process that will behave tomorrow the way it did today. If the control chart shows special causes, the mean and σ you fed the calculator belong to a mix of processes, and the index predicts nothing. Run the control chart first, remove or explain the special causes, then compute capability. This is the reason the control limits calculator exists next to the Cpk calculator.
3. Short-term σ versus long-term σ
Two different standard deviations appear on these pages.
- Within (short-term) σ measures the spread inside a rational subgroup: five parts in a row off one machine, one operator, one batch. It captures common-cause noise only. The calculators estimate it as R-bar / d2 from subgroup ranges, or MR-bar / 1.128 from a moving range when the subgroup size is 1. It drives Cp and Cpk.
- Overall (long-term) σ is the sample standard deviation of every value in the study, shifts and drift included. It drives Pp and Ppk.
Overall σ is never smaller than within σ in a stable process, except by sampling noise. The gap between the two is the variation that enters between subgroups. Statistical software often uses a pooled standard deviation instead of R-bar / d2 for subgroups larger than one, so a software Cpk can differ from this calculator’s in the second decimal on the same data. Both are legitimate estimates of the same quantity; the R-bar / d2 version is the one the bodies of knowledge teach and the one you can do by hand in an exam.
4. The 1.5 sigma shift
The “sigma level” in Six Sigma is not the plain Z value of the defect rate. The convention adds 1.5 to it: sigma level = long-term Z + 1.5. That is why a six sigma process is quoted as 3.4 defects per million opportunities. The normal tail beyond 4.5 standard deviations is 3.4 per million; 4.5 plus the 1.5 shift gives the 6.
Where it comes from: Motorola’s engineers in the 1980s observed that process means drift over time, and they allowed for that drift by assuming the long-term mean could sit up to 1.5σ away from where the short-term study put it. The number is an engineering allowance, not a derived constant, and it has been argued over since. Some statisticians would drop it and report the plain Z. Every Six Sigma sigma-conversion table in print keeps it, which is why the DPMO calculator defaults to the shifted value and labels it. Untick the box to see the unshifted Z and judge for yourself.
Practical consequences:
- A table that says “3 sigma = 66,807 DPMO” includes the shift. The unshifted 3 sigma tail is 1,350 DPMO.
- When you compute a sigma level from your own DPMO and compare it to a published benchmark, make sure both use the same convention.
- Cp and Cpk do not include the shift. A Cpk of 2.0 means the nearer spec limit sits 6σ (within) from the mean. Calling that process “3.4 DPMO” assumes the 1.5 sigma drift on top; without drift the modelled defect rate is 0.001 DPMO.
5. Sample sizes use the normal z
The sample size formulas use the standard normal z for the confidence level. That is right when σ is known or well estimated from history. When σ comes from a small pilot, the stricter method iterates with the t distribution, which gives a slightly larger n. The calculator shows the z it used so you can see the gap. For proportions, the formula assumes n x p and n x (1 minus p) are both comfortably above 5; for very rare defects use an exact (binomial) method instead.
6. Rounding
The calculators round sample sizes up to the next whole number, as the formulas require. Capability indices show two decimals, in line with how they are reported; the arithmetic underneath runs at full precision. Control chart constants are the three-decimal published values (c4 four), so a limit computed here matches a limit computed from the printed table, and may differ in the fourth decimal from software that carries the constants at ten decimals.
What these calculators do not do
- They do not test normality or draw a histogram. Do that first.
- They do not plot the control chart or apply the run rules. They give the lines; you still read the chart.
- They do not handle attribute capability (p, np, c, u charts) or binomial and Poisson capability. That is a different calculation.
- They do not compute Cpm, the Taguchi index. See Cpm.
- They do not compute sample size for hypothesis tests with a power target. That needs the effect size and beta as well.
- They do not store, send or log anything. The arithmetic runs in your browser and the page makes no network request when you press Calculate.
Sources
- Normal tail values: computed, not looked up. The DPMO and PPM figures agree with the standard normal table to the shown digits.
- Control chart constants: the Control Chart Constants page, which computes d2, d3, c4 and the derived constants from first principles and checks them against the published tables (ASTM Manual 7, Montgomery).
- Sample size formulas: NIST/SEMATECH e-Handbook of Statistical Methods; Cochran, Sampling Techniques, for the finite population correction.
- Capability formulas: Montgomery, Introduction to Statistical Quality Control.
- The 1.5 sigma shift: the Motorola Six Sigma convention from the 1980s.
