Skip to content
TestStaff

QA strategy

What a bug in production costs, and how to put a number on yours

A production bug costs engineer time to fix, developer time spent testing, and the incident itself. How to add the three up with your own numbers.

Published 3 min readWritten by the TestStaff QA team

On this page

"Bugs are expensive" is easy to agree with and hard to act on. Without a number, testing competes with features on gut feeling, and features usually win. The number doesn't have to be precise. It has to be yours, built from things your team can count.

A bug that reaches production costs you in three places. Add them up and you have a monthly figure you can compare with what it would cost to catch more of those bugs before they ship.

The three costs of an escaped bug

Fixing it. Someone stops what they were doing, reproduces the bug, finds the cause, writes the fix, gets it reviewed and ships it again. Count the engineer hours for a typical production bug, and multiply by what an engineer hour costs you with salary, benefits and overhead included.

The testing developers do instead. When no one owns testing, developers test their own work before each release. Those hours are real, and they come out of time spent building features. Count them per release.

The incident. A customer hits the bug before you do. That can mean refunds, support tickets, a lost renewal, or an evening of on-call. It's the hardest of the three to measure, so start with something you can see: support hours per incident, or revenue that was refunded or delayed.

A worked example

Here is the arithmetic with the starting numbers of our Cost-of-Bugs Calculator. They are a starting point to replace, not an industry average.

  • 4 releases a month, with 3 bugs reaching production in each
  • 6 engineer hours to fix one production bug, at $90 an hour
  • 10 hours of developer testing per release
  • $500 in revenue or support cost per production incident

That gives three monthly figures:

  • Fixing: 4 releases × 3 bugs × 6 hours × $90 = $6,480
  • Developer testing: 4 releases × 10 hours × $90 = $3,600
  • Incidents: 4 releases × 3 bugs × $500 = $6,000

Together that's $16,080 a month, or $192,960 a year. Two of the three costs grow with the number of bugs that reach production, so every escaped bug you prevent takes something off both.

What the estimate leaves out

The three costs above are the ones a team can count. Others are real but harder to put a number on, so the calculator leaves them out:

  • Releases that slip while a late bug is fixed
  • Context switching: the feature work that stops while someone chases a bug
  • Trust: the customer who doesn't report the bug and quietly stops using the feature

If one of these is large for your product, note it next to the number rather than inflating the number itself. A figure your team believes is more useful than a bigger one it argues with.

How teams bring the number down

The levers follow from the formula. Fewer bugs reaching production lowers the fixing cost and the incident cost at the same time. Moving routine testing off developers lowers the second cost.

  • A written regression checklist for your critical flows, run before every release
  • A second person testing, even part time, who sees what the author of the code can't
  • Automated tests on the flows that take money or sign people up, run on every merge
  • Counting escaped bugs each release, and adding a test for each one

Knowing which lever fits starts with knowing where your bugs come from. A QA audit reviews how your team tests today and hands you a coverage map of your critical flows and a 30/60/90-day plan for what to fix first.

QA audit

We review how your team tests today and hand you a coverage map of your critical flows, advice on tooling and a 30/60/90-day plan, at a fixed price paid upfront.

Read about QA audit

About the author

Written by the TestStaff QA team

Senior QA engineers who test web and mobile releases for software teams. Every bug we report comes with video and repro steps within 24 hours.

About TestStaff
  1. QA strategy

    Hire a QA engineer or outsource testing: how to decide

    What a QA hire costs beyond salary, what outsourcing costs beyond the invoice, and five questions that tell a small team which one fits.

    4 min read

  2. Automation

    Manual vs automated testing: what to do first

    Manual testing finds what nobody wrote down. Automation repeats what you already know. How a small team decides what to automate, and when.

    4 min read

  3. Tools

    Playwright vs Cypress: how to choose for your team

    Browsers, languages, parallel runs and debugging in Playwright and Cypress, from each tool's own documentation, plus a one-week trial to settle it.

    5 min read