What is technical debt?

Technical debt is the extra future work caused by choosing a quicker or easier solution now instead of a better one. Like financial debt, it charges interest until the code is fixed.

Also called tech debt, code debtUpdated

Technical debt is the future cost of choosing a quicker or easier solution now instead of a better one. Like financial debt, it can be useful, because it lets you ship sooner. And like financial debt, it charges interest. Every change to the code around a shortcut takes longer and breaks more often, until you pay off the principal by fixing it.

Ward Cunningham introduced the metaphor in 1992, in an experience report at the OOPSLA conference about the WyCASH+ portfolio management system. He wrote: "Shipping first time code is like going into debt. A little debt speeds development so long as it is paid back promptly with a rewrite." The danger, he added, "occurs when the debt is not repaid."

Types of technical debt

Martin Fowler's technical debt quadrant sorts debt on two axes: deliberate or inadvertent, and prudent or reckless.

  • Prudent and deliberate: "We'll launch in one region and add failover next quarter." A conscious trade with a plan to repay.
  • Reckless and deliberate: "No time for tests." It usually costs more than it saves, and quickly.
  • Reckless and inadvertent: code written without knowing good design practice.
  • Prudent and inadvertent: the team only learns the right design after building the system. Fowler argues this kind is inevitable, even for excellent teams.

Debt also builds up outside application code: outdated frameworks and runtimes, dependencies with known vulnerabilities, manual deployments, missing documentation, and an architecture that no longer fits the product.

Example: the hard-coded GST rate

An e-commerce startup hard-codes an 18% GST rate into checkout to launch on time. Each later change is added as another if in three places, the checkout, the invoice PDF and the refunds job: a category taxed at 5%, a B2B invoice with the buyer's GSTIN, an inter-state order that needs IGST instead of CGST and SGST.

Two years on, a rate change takes a week and causes a refund mismatch in production. Those lost weeks are the interest. Paying off the principal means one tax module, with rates held in configuration and a test for each rule.

How to manage it

  • Make it visible. Record debt items in the backlog with the cost of leaving them: incidents, slower delivery, security exposure. That is why "technical debt in Jira" is a common search. Teams want a label or issue type for it.
  • Budget for it. Many teams reserve a fixed share of each sprint for debt and upgrades instead of waiting for a clean-up quarter that never comes. A definition of done that includes tests and documentation stops new debt piling up.
  • Pay where the interest is highest. Fix code that changes often and causes incidents. Debt in a stable, rarely touched module may not be worth paying off.
  • Prefer gradual fixes to rewrites. Replace a problem area piece by piece with the strangler fig pattern, so the business keeps getting releases.
  • Watch delivery metrics. Rising lead times and change failure rates, two of the DORA metrics, often reveal debt before anyone names it.

Our guides on modernising legacy software without a rewrite and software maintenance cost cover how to plan and budget the repayment.

Any idea in mind? Let's make it real.

Tell us what you're building. You'll hear back from an engineer, not a sales team, usually within one working day.

Book a 30-min call