On this page
For years, NIST’s 2002 study was my reference for what a bug costs: about 13 hours to fix a bug found after release. It was the best-known number around, and it served its purpose well.
I’ve spent most of my 25 years in software as a backend developer, on the receiving end of bug reports. I didn’t need a study to tell me bugs are expensive; I felt it every time a vague ticket ate my afternoon. NIST gave me a way to put a number on that feeling.
Then AI changed how teams write and ship code, and I wanted numbers from this decade. This post is what I found, what each number measures, and which popular figures don’t hold up. I checked every number against its source before publishing. If you know a better data point or spot a mistake, tell me and I’ll update the post: developers@fairleadhq.com.
What the NIST study measured
The figure comes from The Economic Impacts of Inadequate Infrastructure for Software Testing, a 2002 report by RTI for NIST. Table 6-4 gives the hours to find and fix a bug, by the stage where it was found:
| Where the bug was found | Hours per bug | Share of bugs found there |
|---|---|---|
| Requirements | 2.0 | 5% |
| Coding and unit testing | 2.4 | 40% |
| Integration | 4.1 | 45% |
| Beta testing | 6.2 | 5% |
| After release | 13.1 | 5% |
| Weighted average | 3.9 | 100% |
Three details are worth knowing before you reuse it:
- The respondents developed CAD/CAM/CAE and PDM software. The chapter describes four substantial and six partial survey returns; it doesn’t state how many contributed to this particular table.
- The hours are calculated from survey estimates, rather than timed observations.
- The 13.1 hours applies to bugs found after release, estimated at 5% of bugs in that chapter. Its weighted estimate across discovery stages is 3.9 hours.
I still agree with the idea behind the table, though not with the precision people give it. In my experience, a bug gets harder to fix the further it travels from the moment it happened, because the context disappears: nobody remembers the change, the session is gone and the logs have rotated. The exact hours matter much less than that direction.
The other classic, “a bug costs 100x more to fix in production”, has a weak source trail. Bossavit’s investigation traced the chart to Pressman’s IBM81 course-note citation, without locating the underlying project data. That doesn’t prove the data never existed. A 2016 paper by Menzies and colleagues, covering 171 Team Software Process projects from 2006 to 2014, found no consistent increase in resolution effort with phase delay within that sample.
That result surprised me, and I think it’s a fair challenge. Today we run so many tools and services that we have tons of data about what the user went through. When that data is there, it’s much easier to see why the user felt the pain, so a bug caught later isn’t always more expensive. My reading: a late bug isn’t automatically expensive. A late bug with no evidence is.
Newer person-hour numbers
I didn’t find a fresh, measured, industry-wide “hours per bug” benchmark for SaaS. These are the closest things I found:
| Source | Who | Result | What it really measures |
|---|---|---|---|
| VDC Research and Memfault, 2024 | Survey of 783 embedded and IoT professionals, 36 countries | Codebase-size groups reported medians of 15, 14, 25 and 30 person-hours per customer-reported defect | Self-reported; larger groups generally reported more hours. Embedded, not SaaS. Distributed by a monitoring vendor. |
| METR, 2025 | 16 experienced open-source maintainers, 246 real tasks | 2.0 hours per task on average | Bugs and features mixed. Participants were asked to submit tasks expected to take at most two hours or split longer ones; actual completion time wasn’t capped there. |
| SWE-bench Verified, 2024 | 93 developers annotated 1,699 samples; 500 retained | 91% in the two bands estimated at up to one hour | Estimates, not timings, on curated, clearly written bugs: OpenAI reports 45 of the 500 tasks above one hour. Annotators assumed time to get familiar with the codebase first. Epoch AI’s caution about optimism rests on a small METR exercise. |
| Meta, Diff Authoring Time, 2025 | Telemetry-based study at Meta | 14% DAT improvement in the typed-mocking experiment; 33% in the React auto-memoization case study | A method for estimating active authoring time on code changes. Neither result is average bug-fix effort. |
The VDC survey has one result I keep coming back to. Respondents were grouped by how they collect diagnostic data from the field:
The third-party-diagnostics group reported a median one-third as large as the no-field-data group. It’s a survey association. It doesn’t isolate the effect of the tools.
Still, this is the chart that feels most like my own work. For years, when a bug report came in, my first hours went into logs, traces and monitoring dashboards, across whatever tools we had, looking for the one request behind the report. Writing the fix was usually the short part. Finding what happened was the long one.
Inside one debugging session
First, how common debugging is. In the Stack Overflow 2026 Developer Survey, 83.2% of 24,714 respondents said debugging or troubleshooting is part of a typical week. Only writing code ranked higher, at 89.9%. That tells you how many people debug, not how long it takes.
A useful look inside a session is a study by Li and Coblenz (FSE 2026, author PDF). They observed 12 professionals across 17 debugging tasks, about 10.9 hours; four tasks were unfinished when observation ended:
The average stage shares were 13% for working on the fix and 57% for building the mental model. These describe the observed sessions, not the cost of an entire production-defect lifecycle.
The 57% didn’t surprise me at all. That’s the part where you sit with logs open and try to build a picture: which request, which state, which version. When a report already carries that evidence, the picture forms fast. When it doesn’t, you rebuild it from scratch, sometimes more than once.
The finding I find more useful: reproduction recurs while developers build understanding and check a fix. The paper doesn’t separate reproduction time within those later stages. Adding 12 + 57 + 18 and calling the resulting 87% “reproduction” would misrepresent the study.
Calendar time includes queues and review
A bug can take a few hours of work and stay open for weeks. Effort and elapsed time are different measurements. PR timestamps reveal delays, but they don’t tell us how many engineer hours a bug consumed.
| Source | Result |
|---|---|
| LinearB 2026 benchmarks (8.1 million pull requests, 4,813 teams) | The “Fair” P75 bands (top 60%) are pickup 5 to 16 h, review 15 to 24 h and deployment 107 to 277 h. These are separate metric bands, not the stage timings of one typical PR. |
| Wang, Galster and Morales-Trujillo, 2026 (one SaaS company, five monitoring cycles) | Non-reproducible bugs fell from 33% to 0%. Average bug closure time fell from 60 days to 15. |
| BlueOptima, 2026 (13 enterprises) | Median incident-fix pull request: 1.7 hours in the most maintainable code, 65.2 hours in the least maintainable. |
LinearB’s “coding time” is also elapsed time, normally from the first commit to PR creation. The chart shows upper bounds of separate P75 bands; they cannot be added or subtracted to calculate active work or waiting for a typical PR.
The monitoring study is a before-and-after case at one company. Monitoring and process changed together. The results come from the publisher’s abstract; the paper was published online on August 6, 2026.
This is the gap I find most frustrating. A fix that took an afternoon can sit in a queue for days, and the customer feels every one of those days. I don’t count the waiting as engineering effort, but I’ve stopped pretending it’s free.
What AI changed
The best controlled trial gave a surprising answer. METR randomly allowed or disallowed AI tools on 246 real tasks:
That used early-2025 tools. METR’s follow-up estimates pointed toward a speedup, but METR called the new signal unreliable: 30% to 50% of surveyed developers said they withheld tasks they didn’t want to do without AI (METR, February 2026). The follow-up doesn’t establish the size of the current effect.
Some vendor datasets associate AI adoption with more output and more downstream load. They differ in populations, definitions and periods, so they don’t establish a single industry-wide effect.
Faros has already published a newer edition. Its Q3 2026 report (September 2026, the most recent 12 months of telemetry) shows some per-change effects easing: incidents per pull request are up 14.5%, against 242.7% in the earlier report. Total load kept growing, though: monthly incidents are up 125.4%, time in QA is up 300.6%, and pull requests merged without any review are up 76.3%.
| Source | Result |
|---|---|
| Faros AI, Q2 2026 (22,000 developers) | Task throughput +33.7%; unreviewed merges +31.3%. Comparisons are between low- and high-adoption periods within organizations. Its detailed findings give incidents/PR +242.7%, equivalent to 3.427x, rather than exactly the “3x” headline. |
| GitClear, 2025 (211 million changed lines) | Code reworked within two weeks rose from 3.1% (2020) to 5.7% (2024). |
| LinearB, 2026 AI-contribution table (general 8.1-million-PR benchmarks presentation) | P75 pickup: AI-assisted 8.3 h, agentic 17.6 h, unassisted 3.4 h. These figures aren’t attributed to its separate 2.7-million-PR AI-leverage dataset. |
| Stack Overflow, 2026 (13,756 answers to this question) | 62.2% selected debugging/troubleshooting among tasks delegated to an AI tool or agent in the last 30 days; 72.9% selected writing code. The total includes 16.4% who selected “None of the above”. |
| Jellyfish, 2026 (1,000+ companies) | Bugs per pull request stayed roughly flat while pull request volume rose, so the total defect load grows with output. |
| Uplevel, 2024 (785 developers: 351 with Copilot access, 434 control) | No practically meaningful efficiency improvement; a 41% higher bug rate. Some differences were statistically significant but small. This measured access, not actual Copilot usage. |
| ActiveState, 2026 (307 enterprise leaders) | The vendor reports at least 139 annual hours per engineer fixing or revisiting AI-assisted work. The press release doesn’t provide enough calculation detail to independently reproduce that estimate. |
Most of these results come from vendors, and the telemetry studies are observational. If bugs per pull request stay flat as PR volume rises, defect counts rise. The effect on total bug-fix hours still depends on effort per defect and which defects are addressed. These sources don’t establish that finding and fixing bugs became more expensive, or cheaper, across the industry.
My own view, and it is a view, not a finding: AI made writing code cheap, but it hasn’t made understanding a bug cheap. When nobody on the team wrote the code line by line, nobody remembers why it does what it does. The evidence from the moment the bug happened matters more than it used to, not less.
Numbers that don’t hold up
Some figures in circulation change meaning once you trace them to the source:
| Number you’ll see | What the source says |
|---|---|
| “13 to 15 hours per bug” (NIST) | Table 6-4 gives 13.1 hours for bugs found after release, based on a small CAD-software survey in 2002. |
| “Production bugs cost 100x more” | The source investigation didn’t locate the underlying project data. |
| “4.57 hours median per bug fix” | That’s the runtime of an automated repair tool (ITER), cited in the RepairAgent paper. No human involved. |
| “87% of debugging is reproduction” | Three stages of the Li and Coblenz study added together. The paper doesn’t measure that. |
| “21% average flow efficiency” (DORA) | One illustration in the AI Capabilities Model, p. 77, not a measured average. |
| “12 hours” or “24 hours” MTTR per defect | Worked examples in Bugasura and Monito, not empirical estimates. |
| “Faros: AI made pull requests 154% bigger” | The +154% is from the 2025 report. The Q2 2026 report gives +51%, and Q3 2026 gives +71.8%. |
I like a round number as much as anyone. But a number you can’t trace to its source is a number you can’t defend in front of a CFO or a skeptical engineer, and both will ask.
How I model it now
I don’t use a single number anymore. I use three labeled scenarios: 6, 12 and 24 engineer hours per customer-reported bug. Each is an assumption with the nearest outside reference next to it, not a finding:
| Scenario | Engineer hours per bug | Nearest outside reference |
|---|---|---|
| Lower | 6 | NIST beta-stage estimate, 6.2 hours |
| Central | 12 | NIST after-release estimate, 13.1 hours; VDC medians of 14 to 15 hours for small codebases |
| Higher | 24 | VDC medians of 25 to 30 hours for large codebases or no field data |
Then I measure the real thing on the team in front of me:
- active engineer hours from picking up the bug to submitting the patch,
- the share of bugs closed as “can’t reproduce”,
- pickup and review time for bug-fix pull requests.
Those three numbers beat any benchmark in this post, because they describe your bugs, not someone else’s. Honestly, I’d trust four weeks of a team’s own data over every table above.
A note on bias: at Fairlead we build a recorder for bug evidence, so I have a stake in this topic. That’s why every number here links to its source and says what it measures.
Help me keep this current
This is a snapshot, and some of it will be wrong or outdated soon. If you have any of these, send them to developers@fairleadhq.com:
- a study or dataset I missed,
- a newer edition of a source listed here,
- a number I got wrong or described badly,
- your own team’s numbers, even rough ones. Tell me how you’d like them credited, or if you’d rather stay anonymous.
I’d rather be corrected in public than keep repeating a wrong number. I’ll update the post and note every change below.
Updates
- October 28, 2026: first version.
Sources
- RTI for NIST (2002). The Economic Impacts of Inadequate Infrastructure for Software Testing, Planning Report 02-3, Table 6-4.
- VDC Research and Memfault (2024). The State of IoT Software Development.
- Li, H. and Coblenz, M. (2026). A Grounded Theory of Debugging in Professional Software Engineering Practice. Proc. ACM Softw. Eng. 3, FSE.
- Becker, J., Rush, N., Barnes, B. and Rein, D. (2025). Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity. METR.
- METR (2026). We are Changing our Developer Productivity Experiment Design.
- OpenAI (2024). Introducing SWE-bench Verified. Epoch AI. What skills does SWE-bench Verified evaluate?
- Beller, M. et al. (2025). What’s DAT? Three Case Studies of Measuring Software Development Productivity at Meta. FSE 2025.
- Wang, D., Galster, M. and Morales-Trujillo, M. (2026). Application monitoring for bug reproduction in web applications: An action research study. Journal of Systems and Software 243.
- LinearB (2026). Engineering benchmarks and research and The AI engineering productivity gap.
- LinearB (2026). AI-contribution table and coding-time definition.
- Stack Overflow (2026). Developer Survey: Work data and Knowledge data.
- BlueOptima (2026). Does your technical debt have a clear price tag?
- Faros AI (2026). AI Engineering Report Q2 2026, its detailed findings and Q3 2026 takeaways.
- GitClear (2025). AI Copilot Code Quality.
- Jellyfish (2026). AI coding tool adoption metrics.
- Uplevel Data Labs (2024). GitHub Copilot impact study, PDF copy.
- ActiveState (2026). The AI Remediation Bill.
- Bouzenia, I., Devanbu, P. and Pradel, M. (2025). RepairAgent. ICSE 2025.
- The Register (2021). Everyone cites that “bugs are 100x more expensive to fix in production” research, but the study might not even exist.
- Menzies et al. (2016 preprint). Are Delayed Issues Harder to Resolve?.
- DORA (2025). AI Capabilities Model, p. 77.

