The formulas
Every metric here is a ratio of two counts, so its value depends entirely on what is counted. Each formula below uses valid defects only: reports closed as not a defect, duplicate or cannot reproduce are left out and tracked separately as the rejection ratio.
Defect density
defects ÷ sizeThe ISTQB glossary defines it as the number of defects per unit size of a work product. Size is usually thousands of lines of code (KLOC) or function points. This calculator counts defects found before and after release together.
Defect removal efficiency (DRE)
defects before release ÷ (defects before release + defects after release) × 100The share of all known defects removed before users met them. ISTQB calls the same calculation for a single test level the defect detection percentage.
Defect leakage
defects after release ÷ defects before release × 100 or defects after release ÷ all defects × 100Two definitions are in common use, explained in the next section. The second is identical to the escape rate.
Defect escape rate
defects after release ÷ (defects before release + defects after release) × 100The share of all known defects that reached production. It always equals 100% minus DRE.
Defect rejection ratio
rejected reports ÷ (valid defects before release + rejected reports) × 100How many reports raised during testing turned out not to be defects.
Reopen rate
reopened defects ÷ defects marked fixed × 100How many fixes failed retest. Count a defect once even if it was reopened more than once, or report the repeats separately.
Test execution rate and pass rate
executed ÷ planned × 100 passed ÷ executed × 100Blocked tests have not run, so they lower the execution rate and do not appear in the pass rate.