QA glossary
What is defect leakage?
Defect leakage is the share of defects that testing missed and a user or the live system found later. It is calculated as defects found after release divided by all defects found, before and after. A low figure means testing caught most problems before customers did.
An example from QA practice
In one release the team logs 90 defects during testing, and customers report 10 more in the first month. Defects found in total: 100. Defect leakage: 10 divided by 100, or 10%. The next release has 95 found in testing and 5 reported after release, which is 5%. The team then reads the 10 and 5 escaped bugs to see what kind of check was missing.
Using the number well
- Count one release at a time: a figure for a single release can be traced to its causes; an average over a year cannot.
- Agree what "after release" means: a defect reported by a customer, found in production monitoring or found during the next sprint are different things.
- Read the escaped bugs: the value of the number is in the list behind it. Ask what test would have caught each one.
- Do not turn it into a target: if testers are scored on it, fewer bugs get logged as defects.
Leakage versus density
Defect leakage measures how well testing works. Defect density measures how defective the code is. A module can have high density and low leakage if the team found and fixed the bugs before release.
Common questions
Is zero defect leakage realistic?
Rarely. Software is too complex to test completely, so some defects will reach users in most releases. A figure of zero may also mean that nobody reported anything, which is different from nothing being wrong. Aim for a falling trend and for learning from each escaped defect.
Who should calculate defect leakage?
Whoever owns the bug tracker data, usually QA, but the figure should be shared with developers and product owners. Agree beforehand how defects are labelled as found before or after release, because inconsistent labels make the number meaningless. A short review of each escaped bug is more useful than the percentage.
How long after release should escaped defects be counted?
Pick a fixed window, such as the first month after release or until the next release, and use it for every release so the figures compare. A short window misses defects that surface slowly, and a long one mixes in bugs from later changes. Write the window beside the figure.
How BetterQA does it
We take the figure from the bug tracker the team already uses, BugBoard or the client's own Jira, so there is no separate spreadsheet to keep in step. For each escaped defect our engineers write down which test would have caught it and add that test, which is how the number is meant to be used.
Related terms
- Defect density
- Bug triage
- Release readiness
- Test coverage
- Root cause analysis