Defect Rate Calculator
Work out defect percentage, DPMO, yield and defects per thousand from a count of defects and units.
What it does
A defect rate is the share of units in a batch that fail a check. It is the most direct way to describe quality: divide the number of defective units by the number inspected and multiply by 100. The American Society for Quality describes a defect as any output that fails to meet a specification or a customer expectation, which is the sense used here.
A related measure is defects per million opportunities, usually shortened to DPMO. It counts how many defects would occur if a million chances for a defect were observed. ASQ gives the numerical goal of a six sigma process as 3.4 defects per million opportunities, and its quality experts describe DPMO as a relative performance metric that scales an observed rate up to a common base.
The two measures differ because DPMO includes the number of chances per unit. A circuit board with 500 solder joints has far more opportunities for a defect than a plastic clip with one. Reporting only the percentage of bad boards hides that difference, so teams often show both figures side by side when comparing processes.
First pass yield is the complement of the defect rate. If 12 units out of 8,000 fail, then 7,988 pass and the yield is 99.85 percent. Yield is useful because it matches how many units move on to the next step without rework, which is what a production planner cares about.
This page counts each defective unit once. If a unit has several flaws, record them as separate defects when you want DPMO across opportunities, but keep the defective unit count for the percentage and yield. The tool shows the percentage, DPMO, first pass yield and defects per 1,000 units so that the same batch can be viewed from each angle.
How to use
- Count the units inspected in the batch.
- Count the units that failed at least one check and enter them as defective units.
- Enter the number of opportunities for a defect on each unit, or 1 if you only want a per unit rate.
- Read the defect rate as a percentage.
- Check the first pass yield, which is 100 percent minus the defect rate.
- Use DPMO when comparing this process with another one that has a different number of opportunities per unit.
Formula
- D
- Defective units found in the batch.
- U
- Units inspected in the same batch.
- O
- Opportunities for a defect on each unit.
- p
- Defect rate as a percentage, D / U x 100.
- Y
- First pass yield as a percentage, 100 minus p.
- Q
- Quality measure scaled to a million opportunities, D / (U x O) x 1,000,000.
DPMO assumes each opportunity is independent and equally likely to produce a defect, which is an approximation in most processes. If every unit has one opportunity, DPMO is simply the defect rate as a percentage multiplied by 10,000. The yield here is first pass yield, so units repaired and retested do not count as good on the first pass.
Worked example
Example: twelve bad units in a batch of 8,000
Defaults: 12 defective units, 8,000 units inspected and 10 opportunities for a defect on each unit.
- Divide defective units by units inspected: 12 / 8,000 = 0.0015.
- Convert to a percentage: 0.0015 x 100 = 0.150 percent.
- Subtract from 100 for the first pass yield: 100 - 0.150 = 99.85 percent.
- Multiply opportunities by units: 10 x 8,000 = 80,000 chances for a defect.
- Scale to a million: 12 / 80,000 x 1,000,000 = 150 DPMO.
- Restate per thousand units: 12 / 8,000 x 1,000 = 1.50 defects per 1,000 units.
- The tool shows 0.150 %, 150 DPMO, 99.85 % and 1.50 per 1,000 units.
Reference table
| Defective units | Defect rate | First pass yield | DPMO |
|---|---|---|---|
| 8 | 0.100 % | 99.90 % | 100 |
| 12 | 0.150 % | 99.85 % | 150 |
| 40 | 0.500 % | 99.50 % | 500 |
| 80 | 1.000 % | 99.00 % | 1,000 |
Limits
- Counts a unit as defective or good, so it does not track several separate flaws on the same unit.
- Does not convert DPMO into a sigma level, which needs an assumption about process shift and centring.
- Assumes a single batch sampled in one pass, with no weighting for different inspection effort across lots.
- Gives descriptive rates only and does not put a confidence interval around a small defect count.
Common mistakes
- Mixing up the number of defects with the number of defective units when a unit can have several flaws.
- Using opportunities per batch instead of opportunities per unit in the DPMO calculation.
- Calling 0.150 percent a rate of 0.150 per unit instead of 0.0015 per unit.
- Treating first pass yield as final yield after rework and retest.
- Comparing DPMO values from processes that define an opportunity differently.
Try it yourself
Quick checks. Answers sit tucked under each question.
Three units fail out of 1,500 inspected, with one opportunity per unit. What are the rate and DPMO?
The defect rate is 3 / 1,500 x 100 = 0.200 percent and the yield is 99.80 percent. DPMO is 3 / 1,500 x 1,000,000 = 2,000.
How many defects per 1,000 units is a defect rate of 0.150 percent?
Multiply the rate as a decimal by 1,000: 0.0015 x 1,000 = 1.50 defects per 1,000 units.
If 40 units in a batch of 8,000 fail, what is the first pass yield?
The defect rate is 40 / 8,000 x 100 = 0.500 percent, so the first pass yield is 100 - 0.500 = 99.50 percent.
Questions
What is a defect rate?
The percentage of inspected units that fail a check. It is defective units divided by units inspected, multiplied by 100.
How is DPMO different from a percentage?
DPMO scales the count to a million chances for a defect and includes the number of opportunities per unit, which a plain percentage does not.
What is first pass yield?
The share of units that pass on the first attempt without rework. It is 100 percent minus the defect rate.
What counts as an opportunity?
One chance for a defect to occur on a unit, such as a solder joint or a field on a form. You must define it consistently before comparing processes.
How does defect rate relate to six sigma?
ASQ gives the goal of a six sigma process as 3.4 defects per million opportunities. Converting DPMO to a sigma level also needs an assumption about how far the process mean drifts off target.
Should I count defects or defective units?
Use defective units for the percentage and yield, since those describe whole units. Use the defect count across opportunities when you need DPMO.
Sources
- ASQ, Six Sigma definition and the 3.4 defects per million opportunities goal
- ASQ Ask the Experts, DPMO as a relative performance metric