QA Metrics Calculator
Quality metrics come up constantly in QA lead and manager interviews, and on the job. Enter a few raw numbers and get defect removal efficiency, defect leakage, defect density, and pass rate, each with a plain-English read on what it means. Free, client-side, no account.
Calculate your QA quality metrics.
Enter a few raw numbers and get defect removal efficiency, defect leakage, defect density, and pass rate, with a plain-English read on each. Nothing is uploaded.
Enter defects found in testing and in production to get DRE and leakage; add KLOC for density, or test counts for pass rate.
What each number means
Defect Removal Efficiency (DRE)
The percentage of defects caught before release. Defects found in testing divided by total defects. 90%+ is strong; lower means too much is escaping.
Defect Leakage
The flip side of DRE: the percentage of defects that escaped to production. Lower is better, and every escape is a prompt for root-cause analysis.
Defect Density
Defects per thousand lines of code (KLOC). Useful for comparing components, but read it as a trend alongside coverage, low density can also mean weak testing.
Test Pass Rate
Passed test cases over total executed. A quick health read on a build, though it says nothing about coverage quality.
Questions before you start
How do you calculate defect removal efficiency (DRE)?
DRE is defects found before release divided by total defects (before release plus production), times 100. For example, 92 in testing and 8 in production gives 92% DRE. 90% and above is generally strong.
How do you calculate defect density?
Defect density is total confirmed defects divided by size, most commonly per thousand lines of code (KLOC). Read it as a trend and alongside coverage, since low density can also mean weak testing.
What is the difference between defect leakage and DRE?
They are two sides of the same coin. DRE is the percentage of defects caught before release; defect leakage (escape rate) is the percentage that escaped. DRE plus leakage equals 100%.
Is this QA metrics calculator free?
Yes. It runs entirely in your browser with no account and no upload. You can copy the results as a Markdown table.
Keep going
Defect Density (glossary)
The formula, what it is good for, and its limitations as a quality metric.
Defect Leakage (glossary)
How escape rate measures test effectiveness, and how to discuss it in interviews.
QA Lead Interview Prep
Metrics, strategy, and leadership questions tailored to QA lead loops.
QA Mock Interview Practice
Explain quality metrics and their limits out loud with an AI interviewer. Scored, free to start.