Skip to content

What is technical debt?

Technical debt is the potential future cost of expedient software decisions that can make later changes more difficult, expensive, or even impossible.

Technical debt is the potential future cost of software design or implementation choices that help in the short term but can make later changes harder. The metaphor, as Martin Fowler frames it, separates principal (the work needed to correct the choice) from interest (the extra work that choice adds to later changes). Unlike a bank loan, though, the interest depends on which changes actually become necessary and may never materialize if the affected part stays unchanged. Debt can be taken on knowingly to meet a deadline, or it can surface when new requirements make an earlier solution a poor fit. It can also lie in a system's overall architecture, even when the code itself is well written. The Carnegie Mellon Software Engineering Institute describes technical debt as a contingent liability whose impact depends on how the system is expected to evolve. So the useful question for decision makers is where to intervene, not how to eliminate every imperfection.

See also: Code refactoringChanging code's internal structure without altering its observable behavior, one small step at a time, under test coverage.

Deliberate debt and accidental debt

An acknowledged shortcut can buy time; whoever approves it should log the reason, expected consequence, and revisit date. An architecture decision record preserves that context. Other debt emerges without an explicit decision, as when an integration built for two applications becomes hard to extend to others.

Refactoring, restructuring software internally without changing its observable behavior, is one possible response; other cases require changes to data or interfaces between systems. A legacy system still in use is not automatically technical debt: you need to pin down the specific constraint and its concrete effect.

How to assess the cost

Automated metrics can surface clues but cannot establish the economic cost on their own. In a preliminary study of Apache JMeter, 44.2% of debt instances flagged in code comments showed growth in lines of code, the study's proxy for removal difficulty. The study covers only one project, does not measure hours or money, and its authors did not isolate the effect of normal software growth.

An enterprise example

In a case the SEI describes, two applications owned by different teams share a database schema: a change by one team can break the other's application. Replacing that direct coupling with a service interface requires work by both teams. Because the benefit crosses project boundaries, the SEI recommends an enterprise-level decision and funding, rather than leaving the choice to either team alone.

Why it matters for decision makers

For each debt item, record the affected area, expected changes, observed effects, a cost-to-fix estimate, and who can authorize the work. If the affected area will stay stable, accepting the cost may be reasonable; if it will change often or soon, fixing it now may pay off. When the fix spans several applications, funding should be decided above individual teams. Estimates are assumptions to revise with experience, not firm accounting figures.

Frequently asked questions

No. A stopgap can be reasonable if its immediate benefit justifies the future cost and someone revisits the decision.

By estimating the cost of fixing it and the extra work it adds to expected changes. Automated metrics are clues, not a firm monetary figure.
  • Code refactoringChanging code's internal structure without altering its observable behavior, one small step at a time, under test coverage.
  • Architecture decision recordA short document that records an architectural decision, its context and its consequences.
  • Data debtData debt is the future work caused by neglected data, definitions, and dependencies, which make information more costly and risky for an organization to use.
  • Legacy systemAn application still critical but hard to change: obsolete stack, scarce skills, no support from the original vendor.
  • 10-10-10 ruleThe 10-10-10 rule weighs a decision's immediate, medium-term, and long-term consequences without treating the time horizons as fixed calendar deadlines.

See it in the universe

If it is a technical decision you keep postponing, that is the decision I help you make.

See custom tools, governance and operations

Or write to me.