Technical Debt: What It Is, Real Examples, and How to Fix It
• 16 min read
Introduction
Technical debt is the extra work a software team pays for later because of a shortcut it took earlier, such as a quick fix that was never cleaned up or a library nobody updated. Like financial debt, a little of it can be a sensible trade, and the trouble starts when the interest goes unpaid for years. The technical debt examples below come from primary sources such as SEC and GAO reports, and for each one, I've clearly stated how much of the failure was due to debt and how much was due to process.
I run a software house that often works within codebases other teams built, so the second half of this guide covers what those reports skip. That means how to measure the debt in your own product and how to pay it down without stopping your roadmap or betting the company on a rewrite.
In this article:
- 1. Key takeaways
- 2. What is technical debt?
- 3. What are real examples of technical debt, and what did they cost?
- 4. What does technical debt look like in your own product?
- 5. How do you measure technical debt?
- 6. Is all technical debt bad?
- 7. What types of technical debt should you know about?
- 8. How do you pay down technical debt without stopping feature work?
- 9. When should you leave technical debt alone?
- 10. Frequently asked questions
- 11. Sources
Key takeaways
- Technical debt is a shortcut that makes later changes slower and more expensive, and some of it is a sensible trade while a product is still unproven.
- The famous failures at Knight Capital, Equifax, and Southwest involved real debt, but each also needed a process gap to turn that debt into a crisis.
- Ask your team for four numbers: change lead time, change fail rate, the share of each sprint spent on unplanned work, and a static-analysis debt ratio.
- Reserve about 15 to 20% of each sprint for debt and fix the code your team touches most often first, rebuilding only the modules that are actually broken.
What is technical debt?
Ward Cunningham coined the metaphor in his 1992 OOPSLA experience report on the WyCash portfolio system, writing that "shipping first time code is like going into debt" and that "a little debt speeds development so long as it is paid back promptly with a rewrite." The interest, in his words, is that "every minute spent on not-quite-right code counts as interest on that debt."
Researchers at Dagstuhl Seminar 16162 later gave the idea a formal definition: "design or implementation constructs that are expedient in the short term, but set up a technical context that can make future changes more costly or impossible." In plain terms, debt is any choice that helps now and makes the next change harder, and it lives as much in tests and infrastructure as in the code itself.
When a non-technical CEO asks me what it really means, this is the answer I give in one breath.
Technical debt is a shortcut you took to move faster. The interest is that everything you build afterward gets slower and more expensive.
What are real examples of technical debt, and what did they cost?
Each of these cases is often retold as a pure technical debt story, but the official records show debt combined with a process failure, which is the more useful lesson for a founder.
Knight Capital, 2012
On 1 August 2012, Knight Capital's trading router sent more than 4 million orders into the market while trying to fill 212 customer orders, according to the SEC's press release on the settlement. In the first 45 minutes of trading, it executed more than 397 million shares, and Knight lost more than $460 million before later paying a $12 million penalty.
The SEC's order against Knight explains where the debt sat: code for an old function called Power Peg had stayed in the router, unused, since 2003, and Knight's new code repurposed the flag that had once switched it on. When a technician didn't copy the new code to one of the eight servers, that server ran the dead code instead. Knight had no written procedure requiring a second technician to review the deployment, so code left in production for nine years became a $460 million loss in one morning.
Equifax, 2017
The Equifax breach began with a known flaw in Apache Struts. This open-source library was disclosed on 7 March 2017 and remained unpatched when attackers gained access on 13 May, according to the House Oversight Committee's report. They entered through ACIS, a consumer dispute portal the report says was developed in the 1970s, and they stayed for 76 days.
GAO's report on the breach puts the number of people affected at no fewer than 145.5 million and lists four contributing factors: identification, detection, segmentation of database access, and data governance. The House report called the breach "entirely preventable." An unpatched dependency on an old internet-facing system is the debt in this story, though GAO's list shows the detection gaps mattered just as much.
Southwest Airlines, 2022
Over the 2022 holidays, Southwest canceled 16,900 flights and stranded over two million passengers, and the US Department of Transportation fined the airline $140 million, with $35 million of that paid to the Treasury. Southwest's own 2023 annual report attributes the disruption to Winter Storm Elliott and the difficulty of realigning crews.
The case for technical debt comes from the airline's pilots' union, which told the Senate Commerce Committee it had warned since 2014 that "technology and crew scheduling processes were failing." The same testimony quotes CEO Bob Jordan saying in November 2022 that "the scale and the growth of the airline got ahead of the tools that we have." The 10-K also notes that Southwest has since completed upgrades to the software that reassigns crews during disruptions.
The FAA's NOTAM outage, 2023
On 11 January 2023, the FAA's Notice to Air Missions system failed, and the agency stopped departures nationwide from about 7:15 to 9:07 in the morning, Eastern time. The FAA's statement on the outage says contract personnel "unintentionally deleted files while working to correct synchronization between the live primary database and a backup database."
Acting Administrator Billy Nolen later testified to Congress that the older part of the system "relies on 30-year-old software and architecture." The trigger was human error during a manual fix, and the legacy system made that error so costly.
Y2K and federal legacy systems
Y2K is the rare case where a debt came due on a fixed date and was paid in full, which is why so little broke. The Senate Special Committee on the Year 2000 Technology Problem estimated that the US spent $100 billion on the fix, with $8.5 billion of it within the federal government alone, and credited the work with modernizing the systems it touched.
Some of the federal government's debt remains outstanding, and the GAO reported in July 2025 that the government spends over $100 billion a year on IT, about 80% of which goes to operating and maintaining existing systems. The 11 legacy systems GAO judged most in need of modernization are between 23 and 60 years old, and that is where many digital transformation projects begin.
| Example | Type of debt | What it cost | Source |
|---|---|---|---|
| Knight Capital (2012) | Dead code plus a manual deployment with no second review | More than $460 million lost in 45 minutes, plus a $12 million SEC penalty | SEC press release and order |
| Equifax (2017) | Unpatched open-source library on a 1970s-era portal | Data on no fewer than 145.5 million people exposed | House Oversight report, GAO-18-559 |
| Southwest (2022) | Crew scheduling tools that couldn't keep up, per the pilots' union and the CEO | 16,900 flights canceled and a $140 million DOT penalty | DOT, Senate Commerce testimony |
| FAA NOTAM (2023) | 30-year-old software plus a risky manual fix | A nationwide stop on departures lasting almost two hours | FAA statement and testimony |
| Y2K (1999) | Two-digit date fields built into decades of systems | An estimated $100 billion in US spending | Senate Special Committee report |
What does technical debt look like in your own product?
Most founders feel debt long before anyone names it, usually as estimates for simple work that keep growing and fixes in one place that break something unrelated. Other signs include parts of the codebase that only one engineer will touch and libraries that are several years out of date.
I use a specific threshold to signal to a client when debt has moved from an engineering complaint to a business problem.
I tell a client it is now a business problem when the team spends more time fixing and working around things than building. In practice, that looks like this:
At that point, I describe it as lost money and slower delivery, because that is how the client's business sees it.
- Bug fixes take about a third or more of a sprint.
- A noticeable share of fixes break something else.
- Releases that used to take hours now take days.
- Estimates keep growing for work that looks simple.
None of these signs need a code review to spot so that a non-technical founder can ask about each one in the next planning meeting. If you've inherited a codebase from another vendor, our guide to software outsourcing challenges covers what to check first.
How do you measure technical debt?
A single score hides too much, so I combine numbers from tools most teams already run.
I don't trust a single number, so I look at several together. SonarQube gives me a baseline for code smells, duplication, and test coverage on new code. On GitHub, I watch how long pull requests wait for review, how often builds fail, and how many files change in every release. In Jira, I track the ratio of bugs to features per sprint, and I label reopened bugs and regressions so I can see how many come back. Sentry shows what breaks in production and how often.
The metric I care about most is lead time, the time a small change takes to reach production. When a one-day change takes a week, debt is slowing the team down.
For a founder, that comes down to four numbers your team or vendor should be able to produce. Two come from DORA's software delivery metrics, the long-running DevOps research program that now tracks five metrics and has found that "speed and stability are not tradeoffs." Change lead time is how long a committed change takes to reach users, and change failure rate is the share of deployments that fail and require someone to fix them.
The third number is the share of each sprint spent on unplanned work, which you can get from Jira if bugs and regressions are labeled consistently. The fourth comes from static analysis, which scans code without running it. SonarQube's debt ratio compares the estimated time to fix each maintainability issue to the estimated time it took to write the code, with a default of 30 minutes per line of code. A ratio of 5% or less earns an A, 5 to 10% earns a B, 10 to 20% earns a C, 20 to 50% earns a D, and 50% or more earns an E.
| Metric | What it tells you | Where to get it |
|---|---|---|
| Change lead time | How long a small change takes to reach users | Git history and the deployment pipeline |
| Change fail rate | How often a release breaks something | Deployment and incident records, plus Sentry |
| Unplanned work per sprint | How much capacity goes to fixing instead of building | Jira labels for bugs, reopened bugs, and regressions |
| Debt ratio (A to E) | How much cleanup the code needs relative to its size | SonarQube or a similar static-analysis tool |
To put a price on it, the best numbers come from surveys. In McKinsey's 2020 survey of 50 CIOs at companies with more than $1 billion in revenue, respondents said 10 to 20% of the technology budget meant for new products went to resolving tech debt. They estimated their debt at 20-40% of the value of their entire technology estate before depreciation.
A smaller study by Besker, Martini, and Bosch found that developers self-reported losing 23% of their development time to technical debt, although it surveyed only 43 developers and interviewed 16 more. Developers notice it, too, since technical debt topped the list of workplace frustrations in Stack Overflow's 2024 Developer Survey and was a problem for 62% of developers.
Is all technical debt bad?
No. Some debt is a deliberate trade of code quality for speed. Debt nobody chose is a problem.
On an MVP for one client, we hard-coded some functionality instead of building a flexible setup. It saved weeks, and the client reached real users before the funding window closed. We documented the shortcut in Confluence, created a Jira ticket labeled as debt, and agreed with the client to revisit it once the first customers validated the idea. We paid it back in the first sprints after launch, while the context was still fresh.
When debt never gets paid back, every new feature costs more, and the client pays interest on a shortcut nobody remembers taking.
A founder should accept debt while the product is unproven, because a fast learning cycle is worth more than clean code for an idea that may be gone in six months. They should fight it when it sits in the core, such as payments, security, or the data model, or once the product has proven itself.
Martin Fowler's technical debt quadrant sorts debt along two lines: whether it was deliberate or inadvertent, and whether it was prudent or reckless. Our MVP shortcut was deliberate and prudent, and Fowler argues that even prudent inadvertent debt is "inevitable for teams that are excellent designers," because a team learns the right design by building the product.
The debt to worry about is the reckless kind, taken without a record or a plan to repay it. Our guides to MVP development cost and MVP versus proof of concept cover how much shortcut-taking an early product can afford, and our guide to MVP development companies covers how to pick a partner who will keep that record.
What types of technical debt should you know about?
Engineers sort debt by where it lives, and most types map to one of the examples above:
- Code debt is tangled or dead code that slows every change, like the Power Peg code at Knight Capital.
- Architecture debt is a design that no longer fits the business, such as the crew-scheduling tools that Southwest's pilots described.
- Test debt is missing automated tests, which turns every release into days of manual checking.
- Dependency and security debt is libraries and frameworks left unpatched, the type behind the Equifax breach.
- Infrastructure debt is aging systems and hardware, like the 30-year-old software behind the FAA outage.
- Knowledge debt is a system only one person understands, which makes every handover and every holiday a risk.
Dependency debt is the easiest type to measure and often the most expensive to ignore. Framework and library choices that keep it manageable are covered in our startup tech stack guide.
How do you pay down technical debt without stopping feature work?
The routine I recommend keeps features shipping every sprint, and it starts with a fixed share of each sprint set aside for debt.
I usually recommend reserving about 15-20% of each sprint. That is enough to make progress, and the client still sees features. The right share depends on how much debt the product carries.
To decide what goes first, I ask three questions. Does it put users or data at risk? Does it slow down everything else the team does? Does it sit in code we touch every sprint? Debt in code nobody touches can wait.
As steps your team can start next sprint, the routine looks like this:
- Keep a debt register, which can be a Jira label, with each item linked to the code it affects and a note on why the shortcut was taken.
- Rank items by risk to users and data first, and then by how often the team changes that code.
- Reserve a fixed share of each sprint, about 15 to 20%, and protect it when feature deadlines get tight.
- Fix debt in the path of planned features, and write tests around that code before refactoring it, which means restructuring code without changing what it does.
- Update dependencies on a fixed schedule so a known flaw like the Struts one never sits unpatched for weeks.
The hardest conversations are with founders who've already decided the only fix is to throw the code away and start again.
On a project, the client wanted to scrap the codebase and rewrite it. A short audit showed that some modules caused most of the pain and the rest was fine. We replaced those modules step by step while features continued to ship.
To a founder who is sure a rewrite is the answer, I'd say a rewrite means months of building nothing new while competitors move, and it usually takes longer than anyone expects. Rebuild only the parts that are actually broken.
When a system really is past saving, our guide to legacy system modernization covers how to replace it in stages. Our guide to the SaaS development lifecycle covers how to build this kind of maintenance into a product plan from the start.
When should you leave technical debt alone?
When should you leave technical debt alone?
Some debt costs less to carry than to fix, especially in code that rarely changes or in a product you plan to retire. An MVP shortcut that hasn't started charging interest yet can usually wait. This is what I tell founders when their engineers complain about it anyway.
Ignore the ugly code nobody touches. If it works, doesn't hurt users, and no planned feature depends on it, your engineers' discomfort isn't a business reason to fix it.
The same reasoning applies when you're deciding whether to build software at all, because an off-the-shelf product moves the maintenance burden to its vendor. Our guide to custom business software weighs that choice in more detail.
Frequently asked questions
What does "technical debt" mean?
Technical debt is the future cost of a shortcut taken in software today, paid as extra time on every later change to the code it affects. Ward Cunningham introduced the term in 1992 to explain why rushed code needs to be cleaned up later.
What is another name for technical debt?
People also call it tech debt, and engineers sometimes name it by where it sits, such as code debt, design debt, or architecture debt.
How do you deal with technical debt?
Keep a register of known debt and reserve a fixed share of each sprint, usually around 15 to 20%, to pay it down. Fix the debt that risks users or data first, then the debt in code your team changes most often, and leave stable code that nobody touches alone.
How do you determine technical debt?
Ask your team for change lead time, change fail rate, the share of each sprint spent on unplanned work, and a static-analysis debt ratio from a tool like SonarQube. Together they show whether debt is slowing delivery and where in the code it sits.
Sources
- Ward Cunningham, "The WyCash Portfolio Management System," OOPSLA '92 Experience Report (26 March 1992). Origin of the technical debt metaphor and the quoted lines on debt and interest. https://c2.com/doc/oopsla92.html
- Avgeriou, Kruchten, Ozkaya, and Seaman (eds.), Dagstuhl Seminar 16162, "Managing Technical Debt in Software Engineering," Dagstuhl Reports 6(4) (2016). Research definition of technical debt. https://dagstuhl.de/16162
- US Securities and Exchange Commission, press release 2013-222 (16 October 2013). Knight Capital's 4 million orders, 397 million shares, loss of more than $460 million, and $12 million penalty. https://www.sec.gov/newsroom/press-releases/2013-222
- US Securities and Exchange Commission, order in the matter of Knight Capital Americas LLC, Release No. 70694 (16 October 2013), text via Justia. Power Peg code unused since 2003, the repurposed flag, the eighth server, and the lack of a written second-review procedure. https://contracts.justia.com/companies/kcg-holdings-inc-18985/contract/555902
- House Committee on Oversight and Government Reform, Majority Staff Report, "The Equifax Data Breach" (December 2018). Struts disclosure and attack dates, the 1970s-era ACIS portal, 76 days of access, and "entirely preventable." https://oversight.house.gov/wp-content/uploads/2018/12/Equifax-Report.pdf
- US Government Accountability Office, GAO-18-559, "Data Protection: Actions Taken by Equifax and Federal Agencies in Response to the 2017 Breach" (August 2018). No fewer than 145.5 million people affected and four contributing factors. https://www.gao.gov/products/GAO-18-559
- US Department of Transportation, "DOT Penalizes Southwest Airlines $140 Million for 2022 Holiday Meltdown" (18 December 2023). 16,900 canceled flights, over two million passengers stranded, and $35 million paid to the Treasury. https://www.transportation.gov/briefing-room/dot-penalizes-southwest-airlines-140-million-2022-holiday-meltdown
- Southwest Airlines, Form 10-K for fiscal year 2023. Company attribution of the disruption to Winter Storm Elliott and, later, crew reassignment software upgrades. https://www.sec.gov/Archives/edgar/data/92380/000009238024000027/luv-20231231.htm
- Capt. Casey Murray, Southwest Airlines Pilots Association, testimony to the Senate Commerce Committee (9 February 2023). Union warnings since 2014 and CEO Bob Jordan's November 2022 remark. https://www.commerce.senate.gov/services/files/B8D729EC-5F96-4E8D-A902-F43DA29F2E08
- Federal Aviation Administration, "FAA NOTAM Statement" (19 January 2023). Contract personnel deleting files during a database synchronization fix. https://www.faa.gov/newsroom/faa-notam-statement
- Federal Aviation Administration, written statement of Acting Administrator Billy Nolen (15 February 2023). The older part of the NOTAM system relies on 30-year-old software and architecture, as well as on the timing of ground stops. https://www.faa.gov/testimony/written-statement-billy-nolen-acting-administrator-federal-aviation-administration
- US Senate Special Committee on the Year 2000 Technology Problem, "Y2K Aftermath: Crisis Averted" (29 February 2000). Estimated $100 billion US spending, $8.5 billion of it federal. https://www.govinfo.gov/content/pkg/GOVPUB-Y1_3-PURL-LPS90964/pdf/GOVPUB-Y1_3-PURL-LPS90964.pdf
- US Government Accountability Office, GAO-25-107795 (17 July 2025). Federal IT spending of over $100 billion a year, about 80% on operations and maintenance, and 11 critical legacy systems aged 23 to 60 years. https://www.gao.gov/products/GAO-25-107795
- DORA, "DORA's software delivery metrics: the four keys" (updated 5 January 2026). Five delivery metrics and the finding that speed and stability are not tradeoffs. https://dora.dev/guides/dora-metrics-four-keys
- SonarSource, SonarQube Cloud documentation, "Understanding measures and metrics." Debt ratio formula, the 30-minutes-per-line default, and the A to E maintainability ratings. https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/metric-definitions
- McKinsey & Company, "Tech debt: Reclaiming tech equity" (6 October 2020). Survey of 50 CIOs at companies with more than $1 billion in revenue: 10 to 20% of new-product budgets and 20 to 40% of technology estate value. https://www.mckinsey.com/capabilities/tech-and-ai/our-insights/tech-debt-reclaiming-tech-equity
- Besker, Martini, and Bosch, "Technical Debt Cripples Software Developer Productivity," TechDebt 2018 (ACM/IEEE). Developers self-reported losing 23% of development time to technical debt; 43 developers surveyed and 16 interviewed. https://research.chalmers.se/en/publication/507477
- Stack Overflow, "Developers want more, more, more: the 2024 results from Stack Overflow's annual Developer Survey." Technical debt was a problem for 62% of developers. https://stackoverflow.blog/2025/01/01/developers-want-more-more-more-the-2024-results-from-stack-overflow-s-annual-developer-survey/
- Martin Fowler, "Technical Debt Quadrant" (14 October 2009). Deliberate versus inadvertent and prudent versus reckless debt. https://martinfowler.com/bliki/TechnicalDebtQuadrant.html