Building Production Software

Technical Debt: What It Costs and How to Pay It Down

Technical debt is the extra work created by past shortcuts in software. Some of it is a sensible loan. Too much of it slows every feature. This guide explains it for founders and managers, with the signs to look for and a plan to reduce it.

By Rahul D SarkerPublished November 17, 2026Updated November 17, 20266 min read

Part of our Building Production Software series. Start with Production-Grade Software: Engineering Practices That Prevent Technical Debt.

The Short Answer

What is technical debt?

Technical debt is the future cost of choosing a quicker or simpler solution in software now instead of a better one that would take longer. Like a loan, it lets you ship sooner, and like a loan it carries interest: every later change takes more time until the shortcut is fixed. A small amount is normal and often wise. It becomes a problem when the interest consumes most of the team’s time.

Ward Cunningham introduced the metaphor in 1992 to explain to non-technical colleagues why code that works may still need rework. In his later explanation he was clear that he did not mean writing poor code. He meant shipping with an incomplete understanding of the problem, then going back to bring the code in line with what you have since learned.

13.5 hrsA week the average developer reported spending on technical debt, in a 41.1-hour working weekStripe, The Developer Coefficient, 2018
3.8 hrsA week the average developer reported spending on bad codeStripe, The Developer Coefficient, 2018
Read the transcript

In 1992, a programmer called Ward Cunningham needed to explain a problem to his boss. So he called it debt. He didn’t mean bad code. He meant shipping before you fully understand the problem, and going back later. Like a loan, it gets you there sooner. And like a loan, it charges interest. In a Stripe survey, developers reported spending 13.5 hours a week on technical debt. So how do you know when you have too much? You can see it without reading code. Estimates for similar features keep growing. Fixing one bug creates another. And only one person can touch a certain area. Then pay it down steadily. Write the debts down. Rank them by what slows current work. Reserve a fixed share of every cycle. Tidy as you go. And replace in slices, not rewrites. Messy code that nobody touches costs nothing. Messy code you change every week is expensive. Some debt is a sensible loan. The trouble starts when nobody plans to repay it. The full guide is free at loomstrat.com.

Types of Technical Debt

Martin Fowler’s technical debt quadrant sorts debt by two questions: was it deliberate, and was it prudent?

The technical debt quadrant
DeliberateInadvertent
Prudent“We must ship now and will deal with the consequences.” A conscious loan with a plan.“Now we know how we should have built it.” Learning that every project produces.
Reckless“We do not have time for design.” A shortcut with no plan to repay.“What is layering?” Debt from lack of skill, unseen until it hurts.

Debt also differs by where it sits.

  • Code. Duplication, unclear names, functions that do too much.
  • Architecture. Parts of the system tangled together so that one change touches many places.
  • Tests. Too few automated tests, so every release needs slow manual checking.
  • Dependencies. Old versions of frameworks and libraries, some no longer receiving security fixes.
  • Infrastructure. Manual deployments, servers set up by hand, no way to rebuild the environment.
  • Documentation. Knowledge that exists only in one person’s head.

Signs You Have Too Much

Symptoms a non-technical manager can see
SymptomWhat is probably behind it
Estimates for similar features keep growingEach change now touches more tangled code
Fixing one bug creates anotherToo few automated tests; hidden connections between parts
Releases are rare and stressfulManual deployment and manual testing
Only one developer can work on a certain areaUndocumented, complicated code
New developers take months to become usefulNo documentation, inconsistent structure
The team asks for a rewriteDebt has been left unpaid for a long time
Security updates are postponedDependencies too old to upgrade easily

Engineers can add measures: how long a change takes to reach users, how often a release causes a failure, test coverage on the parts that change most, and the age of dependencies. The useful question is where debt and change meet. Messy code that nobody touches costs nothing. Messy code in the part of the product you change every week is expensive.

What It Costs

  • Slower delivery. The same feature takes longer each quarter.
  • More defects. Fragile code breaks in production.
  • Security exposure. Unpatched dependencies are a common way in.
  • Hiring and retention. Good engineers leave codebases they cannot improve.
  • Valuation. Buyers and investors examine code quality; see our guide to technical due diligence.

When Taking on Debt Is Right

A first product exists to test whether anyone wants it. Building it to handle a million users before it has ten is waste. Taking a shortcut is sound when you know you are taking it, you record it, the shortcut is contained in one place, and you have a trigger for repaying it, such as reaching a number of customers. Our guide to production-grade software sets out which practices are worth keeping even in a first version.

How to Pay It Down

  1. 1

    Make it visible

    Keep a debt register: a short list of known problems, where they are, what they cost and what fixing them would take.

  2. 2

    Rank by interest, not by ugliness

    Fix what slows current work most. Leave untouched areas alone.

  3. 3

    Reserve steady capacity

    Set aside a fixed share of each cycle, often 15 to 20 per cent, for debt work. A steady share beats an occasional clean-up month.

  4. 4

    Fix as you go

    When a feature touches a messy area, tidy that area as part of the feature.

  5. 5

    Add tests before changing

    Write tests around the old behaviour first so that the tidy-up cannot break it unnoticed.

  6. 6

    Automate the checks

    Formatting, static analysis and dependency updates should run automatically on every change.

  7. 7

    Replace in slices

    Move one part at a time to the new design while the old one keeps running. Avoid stopping feature work for a full rewrite.

  8. 8

    Report the result

    Track delivery time and failure rate so that the business can see the return.

Refactor or Rewrite

A rewrite is tempting and risky. The old system contains years of fixes for cases nobody remembers, and the business must stand still while the new one catches up. Rewrite only when the technology is no longer supported, the design cannot meet a core requirement, or the system is small. In other cases, improve it piece by piece. Our guide to legacy system modernisation compares the options.

Explaining It to the Board

Avoid the word refactoring. State the cost in business terms: “Adding a payment method took nine weeks; with this work it would take three.” “We cannot apply the security update until this is done.” Tie each item to a feature it unblocks or a risk it removes, and show the trend in delivery time afterwards.

If you have inherited a codebase and cannot tell how much debt it carries, a short independent review will tell you. That is where a project rescue usually begins, and it is something we can do.

Frequently Asked Questions

What is an example of technical debt?

Copying a block of code into five places to ship quickly. It works, but every later change must be made five times, and one will be missed.

Is technical debt always bad?

No. A deliberate, recorded shortcut that gets a product to market sooner can be a good decision. It turns bad when it is never repaid.

How do you measure technical debt?

By its effects: time for a change to reach users, how often releases fail, how long new developers take to contribute, and the age of dependencies in frequently changed code.

How much time should a team spend on technical debt?

A common practice is a steady 15 to 20 per cent of each development cycle, with more for a system that has been neglected.

Who is responsible for technical debt?

Both sides. Engineers create and repay it; the business decides the deadlines that cause it and the time allowed to fix it.

Should we rewrite our software from scratch?

Rarely. Rewrites take longer than expected and lose hidden behaviour. Replace the system in stages unless the technology itself is at the end of its life.

Have a build brief already forming in your head?

Loomstrat Studio scopes, builds, and hands over production software in 3–6 weeks - fixed price, 100% repository ownership.

  • Reply within 24 hours
  • Fixed price before we start
  • Zero technical debt guarantee