Sub topic 10
Defects: rework, scrap, and errors
This chapter assumes you know the basic idea of Lean waste and have read the TIMWOODS overview. You should be comfortable with simple percentages and with reading a short Python script.
What counts as a defect
In Lean, a defect is any output that does not meet the customer's requirement the first time it passes through the process. The waste is the effort spent making the bad output and the further effort spent dealing with it. The customer is not paying for either.
Defects take three common forms:
- Rework. The item is fixed and goes through a step again. Examples are re-welding a joint, correcting an invoice, or fixing a bug found in testing.
- Scrap. The item cannot be saved and is thrown away. The materials, machine time, and labor are all lost.
- Errors that escape. The defect reaches the customer. This is the most expensive form, because it adds returns, refunds, support calls, and lost trust.
A defect does not have to be a physical flaw. A purchase order with the wrong cost center, a form missing a signature, and a software release that crashes on login are all defects.
Examples across settings
| Setting | Rework | Scrap | Escaped error |
|---|---|---|---|
| Manufacturing | Re-machining a part that is out of tolerance | Casting with a crack that cannot be repaired | Wrong part shipped to a customer |
| Office | Re-keying data after a typo is found | Printed contracts discarded after a template error | Incorrect invoice sent to a client |
| Software | Fixing a bug found in code review or QA | Feature built on a misread requirement and then dropped | Production outage caused by a bad deploy |
Why defects cost more than they seem
The visible cost of a defect is the repair or the replacement. The hidden costs are usually larger:
- Extra capacity. Rework uses machines and people that could have made good output.
- Extra inventory. Teams build buffers of spare parts or extra work to cover the expected failures.
- Extra waiting. Items sit in a queue for inspection or for a repair slot.
- Extra inspection. Checking everything is itself a form of over-processing.
- Lost trust. Customers who receive a bad item may not come back.
A useful rule of thumb is that the cost of a defect grows by roughly an order of magnitude at each stage it passes. A typo caught by the person who made it costs seconds. Caught by the next step, it costs minutes. Caught by the customer, it can cost hours of support time plus the relationship.
Measuring defects
Three measures are common. Pick the one that matches how your process is built.
- Defect rate (percent defective). Defective units divided by total units.
- First pass yield (FPY). The share of units that pass a step with no rework or scrap.
- Rolled throughput yield (RTY). The product of the first pass yields of every step. It shows how small losses compound.
RTY is the measure people most often misjudge. A five-step process in which every step has a 95% first pass yield sounds healthy, but only about 77% of units get through with no rework: 0.95 × 0.95 × 0.95 × 0.95 × 0.95 ≈ 0.774.
step_yields = [0.95, 0.95, 0.95, 0.95, 0.95]
rty = 1.0
for y in step_yields:
rty *= y
print(f"Rolled throughput yield: {rty:.1%}")
print(f"Units needing rework or scrap per 1000: {round((1 - rty) * 1000)}")Running this prints Rolled throughput yield: 77.4% and Units needing rework or scrap per 1000: 226. Many teams look only at the final inspection result. That figure hides the rework that happened inside the process, which is the part Lean wants to remove.
Hidden factory
The hidden factory is the part of the operation that exists only to fix mistakes. It includes the rework bench, the "special handling" email chain, and the people who spend each Friday correcting reports. These activities rarely appear on a process map, and they rarely have their own budget line. Counting them is often the first surprise in a defect study.
A practical way to expose the hidden factory is to ask each team, "What do you do that you would not need to do if the input were right?" Write down the answers and estimate the weekly hours.
Common causes
Defects rarely come from carelessness alone. Typical causes include:
- Unclear or missing standards, so two people do the same task differently.
- Poor inputs from the previous step, such as incomplete forms or specifications that change late.
- Tools or machines that drift out of calibration.
- Interruptions and multitasking that break concentration.
- Large batches, which delay feedback. If a mistake is made on the first item of a batch of 500, all 500 may be wrong before anyone notices.
- Fatigue, rushed schedules, and unreasonable load (muri).
The last two are linked to other wastes. Large batches come from overproduction and inventory. Unreasonable load comes from the muri you met earlier.
Countermeasures
Match the countermeasure to where the defect arises.
| Cause | Countermeasure | How it works |
|---|---|---|
| Steps done differently by different people | Standard work | One documented best-known method that everyone follows and can improve |
| Operator can make the wrong choice | Poka-yoke (mistake-proofing) | The design makes the error impossible or obvious, such as a connector that fits only one way |
| Defect found late | Stop and fix at the source (jidoka) | The process stops when an error is detected, so it is not passed on |
| Large batches delay feedback | Smaller batches, one-piece flow | Errors are found after one item, not after hundreds |
| Messy or cluttered workplace | 5S | A clean, ordered area makes wrong or missing items easy to see |
| Wrong inputs | Clear acceptance criteria upstream | The receiving step states what a good input looks like |
Inspection is not on this list as a primary fix. Inspecting after the fact finds defects but does not prevent them, and it adds cost. Use it as a safety net while you build prevention.
Poka-yoke in software
Mistake-proofing works in code too. A function that rejects bad input at the boundary stops a defect from spreading into later steps.
from datetime import date
def schedule_delivery(order_id: str, delivery_date: date) -> str:
if not order_id.strip():
raise ValueError("order_id must not be empty")
if delivery_date < date.today():
raise ValueError("delivery_date must not be in the past")
return f"Order {order_id} scheduled for {delivery_date.isoformat()}"
print(schedule_delivery("A-1001", date(2999, 1, 1)))The checks run at the point of entry. A bad order never reaches the carrier, so no one has to find it and correct it later.
Applying the 5 Whys to a defect
Suppose a team keeps shipping parcels with the wrong label.
- Why was the label wrong? The operator typed the address by hand.
- Why by hand? The order system does not fill the label field automatically.
- Why not? The label printer uses an old export format.
- Why is the format old? Nobody owns the interface between the two systems.
- Why does nobody own it? The last upgrade project ended without a handover.
The root cause is a missing owner, not the operator. A countermeasure such as "retrain the operator" would fail. A lasting fix assigns ownership and connects the systems.
Edge cases and common errors
- Treating the operator as the cause. Blame hides the process flaw. Ask what allowed the error to happen.
- Counting only scrap. Rework is also waste, and it is usually larger and less visible.
- Adding inspectors. Extra checks make each person less careful, because they assume someone else will catch the problem.
- Fixing the symptom. Repairing one item without finding the cause guarantees the next one.
- Ignoring near misses. An error caught just before it caused harm shows the same weakness as one that did. Record these as well.
- Setting a target of zero without changing the process. A target alone produces hidden rework and hidden reporting, not fewer defects.
Summary of the working model
Prevent where you can, detect early where you cannot, and fix the cause rather than the item. Measure first pass yield step by step so you see the hidden factory. Choose countermeasures that change the process, such as standard work and poka-yoke, instead of relying on people to be more careful.
Exercise
A process has four steps with first pass yields of 98%, 96%, 90%, and 99%. Final inspection shows that 3% of finished units are rejected. Calculate the rolled throughput yield, and explain why the final inspection figure understates the problem.
Show answer
RTY = 0.98 × 0.96 × 0.90 × 0.99 ≈ 0.838, or 83.8%. About 16% of units need rework or scrap somewhere in the process. The final inspection sees only the units that still fail at the end. Units repaired at earlier steps, the hidden factory, never show up there. The third step, at 90%, is the best place to start looking for causes.
Exercise
An office team finds that 1 in 8 customer quotes has a wrong tax rate and must be reissued. Name one poka-yoke countermeasure and one standard-work countermeasure for this defect.
Show answer
Poka-yoke: have the quoting system look up the tax rate from the customer's region automatically, so the user cannot enter it by hand. Standard work: document one method for choosing the tax rate, including the table to use and a check before sending, and train everyone on it.