Calculate the sample size needed to detect or confirm defect rates for pass/fail data — with zero-acceptance sampling, proportion estimation, and observed-defects confidence interval analysis.
Choose the type of attribute analysis you need to run.
Choose your analysis type, enter the parameters, and press Calculate to see the sample size, confidence intervals, and actionable guidance.
The c=0 rule means: sample n items, accept the lot only if zero defects are found. The formula n = log(α) / log(1−p) gives the sample size that provides (1−α)% confidence that the true defect rate is below p when no defects are found. It is simple, conservative, and widely adopted in ISO and automotive quality standards.
A confidence interval tells you the range in which the true defect rate most likely falls, given what you observed. A 95% CI does not mean there is a 95% chance the true rate falls in the interval — it means: if you repeated the sampling many times, 95% of the constructed intervals would contain the true rate.
DPMO = (defects / (n × opportunities)) × 1,000,000. It standardises the defect rate to a per-million scale, allowing comparison across processes with different complexity. A DPMO of 3,400 corresponds to 6 Sigma; 66,800 is 3 Sigma; 308,537 is 2 Sigma. Lower DPMO means better quality.