A DHU calculator for garments in Excel does one job. It takes the number of defects found and the number of pieces checked, and gives you defects per hundred units. The arithmetic is simple enough to do on paper, which is why people tend to skip over the part that matters: what you count, how you add results from different lines and hours, and how you present the answer so that a supervisor can act on it.
This guide gives you the DHU formula, a step by step example, a simple spreadsheet layout you can build in a few minutes, the common mistakes in calculating DHU across lines and days, and a short note on how to read the result. It is written for quality controllers, industrial engineers, line supervisors and students. All figures in the examples are assumed for teaching and are not benchmarks. If you need the background on the measure itself, read DHU, defects per hundred units in a garment factory.

What a DHU calculator does
DHU stands for defects per hundred units. A DHU calculator works out how many defects a line is producing for every hundred garments checked. Because it is expressed per hundred, you can compare a small sample with a large one, one hour with one day, and one line with another.
The calculation needs only two inputs:
- Defects found. The total count of defects recorded, including more than one on the same garment.
- Pieces checked. The number of garments inspected in the same period and at the same point in the process.
The DHU formula
DHU = (total defects found ÷ total pieces checked) × 100
If a checker inspects 250 pieces and records 20 defects, DHU = 20 ÷ 250 × 100 = 8.0. That means eight defects for every hundred pieces checked.
Notice what the formula counts. It counts defects, not defective pieces. A single garment with three faults adds three to the numerator. For the difference, see defects versus defectives in garments.
Step by step example
Take three sewing lines checked at end of line during one day. The figures are assumed.
| Line | Pieces checked | Defects found | Defective pieces | DHU |
|---|---|---|---|---|
| A | 400 | 28 | 25 | 7.00 |
| B | 350 | 14 | 13 | 4.00 |
| C | 250 | 20 | 18 | 8.00 |
| Total | 1,000 | 62 | 56 | 6.20 |
Line A. 28 ÷ 400 × 100 = 7.00.
Line B. 14 ÷ 350 × 100 = 4.00.
Line C. 20 ÷ 250 × 100 = 8.00.
Factory total. 62 ÷ 1,000 × 100 = 6.20.
From the same data you can get two other figures. Defective pieces were 56, so the defective rate is 56 ÷ 1,000 × 100 = 5.6 percent, and right first time is 94.4 percent. The method for RFT is in what is RFT and how to calculate it in apparel.
The averaging mistake
Look again at the table. The simple average of the three line DHU figures is (7.00 + 4.00 + 8.00) ÷ 3 = 6.33. The correct factory DHU is 6.20. They are not the same, and the difference grows when the lines check very different numbers of pieces.
The reason is that Line B checked 350 pieces and Line C checked only 250, but a simple average treats them equally. The right way to combine lines, hours or days is to add up all the defects, add up all the pieces checked, and divide once.
Combined DHU = sum of defects ÷ sum of pieces checked × 100
Never average percentages or DHU figures unless the sample sizes are the same. This is the single most common error in factory DHU reports.
Cumulative DHU through the day
Supervisors often want a running figure during the shift. Suppose a line checks 100 pieces each hour with these defect counts.
| Hour | Checked | Defects | Hourly DHU | Cumulative DHU |
|---|---|---|---|---|
| 1 | 100 | 5 | 5.0 | 5.0 |
| 2 | 100 | 7 | 7.0 | 6.0 |
| 3 | 100 | 9 | 9.0 | 7.0 |
| 4 | 100 | 15 | 15.0 | 9.0 |
The cumulative figure at the end of hour 4 is 36 ÷ 400 × 100 = 9.0. The hourly figure is rising from 5.0 to 15.0, which signals a problem that the cumulative figure is slow to show. Show both. The hourly number tells the supervisor something changed. The cumulative number tells the manager how the day is going.
Setting up a simple Excel calculator
You do not need software to build a working DHU calculator. A spreadsheet with a few columns is enough.
Columns for the data sheet:
| Column | Content |
|---|---|
| A | Date |
| B | Line |
| C | Style or PO |
| D | Checkpoint (inline, end line, final) |
| E | Pieces checked |
| F | Defects found |
| G | Defective pieces |
| H | DHU, formula `=F2/E2*100` |
| I | Defective %, formula `=G2/E2*100` |
| J | RFT %, formula `=100-I2` |
Guard against empty rows by wrapping the formula, for example `=IF(E2=0,””,F2/E2*100)`.
Summary rows. For a summary by line, use a pivot table or `SUMIFS` formulas. For example, the combined DHU for line A could be `=SUMIFS(F:F,B:B,”A”)/SUMIFS(E:E,B:B,”A”)*100`. This adds defects and pieces first and divides once, which avoids the averaging mistake.
Quick factory total. `=SUM(F2:F500)/SUM(E2:E500)*100`.
Format the DHU cell with one or two decimals, and add conditional formatting so that values above your target turn amber or red.
Setting a DHU target
A DHU figure means little without a target. The target depends on the product, buyer expectations and the checkpoint. Inline checks usually show higher DHU than final checks, because defects are found and fixed before the garment leaves the line.
To make a target concrete, convert it to defects per thousand. If the target is DHU 3.0, the line can have at most 30 defects in every 1,000 pieces checked. In the earlier example, the factory total of 6.20 is 3.2 above a target of 3.0, which means about 32 more defects per thousand than the target allows. Use your own history to set targets, and follow the buyer’s quality requirement where it states one.
Reading the result with a Pareto
A DHU number tells you how many defects there are. It does not tell you which ones. Pair it with a simple defect Pareto. Using the same assumed 62 defects:
| Defect | Count | Share | Cumulative share | DHU contribution |
|---|---|---|---|---|
| Open seam | 18 | 29.0% | 29.0% | 1.80 |
| Skipped stitch | 14 | 22.6% | 51.6% | 1.40 |
| Broken stitch | 10 | 16.1% | 67.7% | 1.00 |
| Stain | 8 | 12.9% | 80.6% | 0.80 |
| Uneven hem | 7 | 11.3% | 91.9% | 0.70 |
| Other | 5 | 8.1% | 100.0% | 0.50 |
The DHU contribution column divides each count by 1,000 pieces checked and multiplies by 100. The contributions add up to 6.20. This is helpful because it shows that fixing open seams alone could bring DHU down by up to 1.80. Three defect types account for about two thirds of the total. Causes for stitch related defects are covered in skipped stitches in sewing, causes and solutions and seam puckering in garments. For tracing causes more broadly, see root cause analysis in garments.
Sample size matters
DHU from 40 pieces is not as reliable as DHU from 400. One extra defect in a small sample moves the figure a lot. With 40 pieces checked, a single defect is 2.5 DHU. With 400 pieces, it is 0.25. When a result looks surprising, check the sample size before drawing a conclusion.
For deciding how many pieces to inspect, see AQL sampling plan for garment inspection. Final inspection by a buyer or a third party follows its own sampling rules, which are different from the factory’s internal DHU checks, so follow the buyer’s inspection instruction.
Where to measure DHU
The place you measure changes the meaning.
- Inline. Checks during sewing. DHU here is a warning signal, and the aim is quick correction.
- End of line. Checks completed garments before they leave the sewing section.
- Final or finishing. Checks garments after pressing and trimming.
- Pre shipment. A separate audit, usually under AQL rules.
Keep each checkpoint separate in the sheet. Mixing inline and final figures in one number makes it hard to say anything useful.
Turning the number into action
A calculator is only useful if someone reads the result and does something. A simple routine works well on the floor.
- Check the hourly DHU against the target. If it is above the target for two hours in a row, the supervisor stops to look.
- Look at the top defect. The checker names the most frequent defect in that hour, for example open seam on the side seam.
- Trace it to an operation. Which operator, machine or batch of cut parts is it coming from?
- Fix and recheck. Adjust the machine, retrain the operator or return the cut parts, then watch the next hour’s figure.
- Record what was done. A one line note in the sheet helps the next shift and builds a record of causes.
In the three line example, Line C at DHU 8.00 is the first place to look, but Line A at 7.00 checked more pieces and contributed 28 of the 62 defects. Looking at both the rate and the volume avoids chasing the highest percentage while missing the biggest source of defects.
Common mistakes
- Counting defective pieces instead of defects. That gives you a defective rate, not DHU.
- Averaging DHU values. Always add the defects and pieces first.
- Mixing checkpoints. Inline and end line numbers are not interchangeable.
- Changing the checking rate. If checkers inspect more thoroughly on one day, DHU rises without any change in the line.
- Ignoring rechecks. A repaired garment that is checked again should be counted consistently, either as a new piece checked or as a recheck, but not both ways in the same report.
- Not recording the style. A complex style naturally has more defects than a simple one.
- Rounding too early. Calculate with full numbers and round only the final figure.
- Treating DHU as the whole story. Pair it with RFT, defect type and rework time.
Using DHU on a dashboard
DHU belongs on the daily quality page of a production dashboard along with RFT, top three defects and the number of pieces checked. See garment factory KPI dashboard for how to lay it out. Setting a line level hourly DHU on the board helps supervisors respond within the hour, rather than at the end of the day. For the bigger set of measures a factory can track, see KPI factors of garments.
Final thoughts
A DHU calculator for garments is only as good as the data and the discipline behind it. The formula is defects divided by pieces checked, times 100. The care goes into counting defects consistently, keeping checkpoints separate, adding totals before dividing and showing the sample size next to the result.
If you build a spreadsheet, keep it simple: one data sheet, one formula for DHU, one summary that uses sums, and one Pareto of defect types. Review it every day with the line supervisors, and use the defect list to decide what to fix first. The number matters less than the action it triggers.
Frequently asked questions
DHU equals total defects found divided by total pieces checked, multiplied by 100. It is expressed as defects per hundred units.
DHU counts defects, so one garment with three faults adds three. Defective percentage counts defective pieces, so the same garment adds one. DHU is usually higher than the defective rate.
Add the defects from all lines, add the pieces checked from all lines, and divide once. Do not average the individual line DHU figures unless each line checked the same number of pieces.
Yes. Use one column for pieces checked, one for defects, and a formula such as `=F2/E2*100`. For summaries, use `SUMIFS` or a pivot table so that totals are added before dividing.
It depends on the product, checkpoint and buyer. Set your target from your own history and any buyer requirement. A DHU of 3.0, for example, means 30 defects in every 1,000 pieces checked.
Enough to give a stable figure. Very small samples swing sharply with one defect. For formal inspections, follow the AQL plan or the buyer’s sampling instruction.
Both are useful, but they answer different questions. Inline DHU warns of problems early. End line DHU shows what the line is sending forward. Keep them separate in your reports.
