Escaped defects

tldr: Escaped defects are bugs that reached production. The escape rate (production bugs / total bugs) is one of the few QA metrics that consistently correlates with shipping quality. Driving it down is the closest thing to a universal QA goal.


Why escape rate matters

Most QA metrics are vanity. Test count, bug count, coverage percentage. They reward filling forms.

Escape rate is different. It measures whether the testing process actually works. If 90% of your bugs are caught before production, you have a working QA process. If only 50% are caught, you do not.

The metric is harsh and fair. It does not care how many tests you have. It cares whether they catch defects before users do.


How to calculate it

The simplest version:

Escape rate = production defects / (production + pre-production defects)

Measured per release or per month. Calculated retroactively after defects are categorized.

Variations:

  • Weighted by severity (P0 escapes count more than P3 escapes).
  • By feature (which features escape more bugs?).
  • By introduction time (how long after the bug was introduced did it escape?).

Each cut surfaces different insights.


What good looks like

Industry benchmarks vary. A reasonable working target:

  • Excellent: under 10% escape rate.
  • Good: 10 to 20%.
  • Concerning: 20 to 40%.
  • Broken: above 40%.

Most teams without specific QA investment sit in the 30 to 50% range. Driving it under 20% takes deliberate work.


What drives escapes

Three causes account for most escapes.

Coverage gaps. Tests do not exist for the area where the bug occurred. Fix: requirements-based testing and coverage tracking.

Flaky tests ignored. Tests existed but were ignored because they were unreliable. Fix: invest in test stability.

Late-stage testing. Bugs are caught in pre-production but the team ships anyway under deadline pressure. Fix: prioritization discipline, not more tests.

Each of these has a different solution. Diagnosing which one matters most for your team is the first step.


How to drive it down

Four moves with consistent payoff.

1. Continuous regression

Every commit triggers regression. Bugs introduced today are caught today. AI testing platforms like Bug0 make this affordable for E2E coverage.

2. Production-realistic test environment

A staging environment that mirrors production catches bugs that local environments miss. Cheap to set up; high-impact.

3. Production monitoring as the last line

Even with good testing, some bugs escape. Production monitoring catches them quickly so they are fixed before they affect many users. See production testing.

4. Treat each escape as a learning opportunity

Every escaped defect gets a root cause analysis. The findings drive process and test improvements.


What to avoid

Punishing escapes. Blaming engineers for escaped defects discourages reporting and gaming the metric. Treat escapes as system failures, not individual ones.

Inflating the denominator. Filing trivial pre-production bugs to lower the escape rate. The metric should measure real bugs, not metric-game bugs.

Ignoring severity. A 10% escape rate where the escaped defects are all P0 is much worse than a 30% escape rate of all P3.


FAQs

Should I track escape rate per team?

Be careful. Comparing teams creates incentives to hide bugs. Trend per team can be useful; ranking teams against each other is risky.

How do I categorize a defect as escaped vs not?

If it was found in production by a real user (or production monitoring), it escaped. If it was found by automated production-test infrastructure, it depends on whether the test was meant to catch it pre-production.

What if my escape rate is high?

Diagnose the cause: coverage, flakiness, or prioritization. Fix the root cause, not the metric.

How does Bug0 affect escape rate?

Bug0 drives escape rate down by running E2E regression continuously instead of pre-release only. Most teams see meaningful drops within the first quarter.

Ship every deploy with confidence.

Bug0 gives you a dedicated AI QA engineer that tests every critical flow, on every PR, with zero test code to maintain. 200+ engineering teams already made the switch.

From $2,500/mo. Full coverage in 7 days.

Go on vacation. Bug0 never sleeps. - Your AI QA engineer runs 24/7

Go on vacation.
Bug0 never sleeps.

Your AI QA engineer runs 24/7 — on every commit, every deploy, every schedule. Full coverage while you're off the grid.