Technical debt: the definition
Technical debt is the set of internal quality deficiencies in a piece of software that make every change slower, more expensive or riskier than it should be. Like financial debt, it has a principal, the work needed to bring the code back into shape, and interest, the extra cost paid on every change for as long as that work is not done.
Software can work perfectly for its users and still carry heavy debt. It does not show on screen. It shows in the time needed to add a feature, in the regressions that follow a release and in how hard it is to onboard a new developer.
Martin Fowler sums up the mechanism in his reference article on technical debt: the extra effort it takes to add features is the interest, and cleaning up the code is paying off the principal.
Where the metaphor comes from
The term comes from Ward Cunningham, who used it in 1992 in an experience report presented at the OOPSLA conference, The WyCash Portfolio Management System. He wrote: "Shipping first time code is like going into debt."
Two points in that text are often forgotten. Cunningham does not condemn debt: a little of it speeds development, provided it is paid back promptly by reworking the code. And the danger he describes is non-repayment, whose interest can eventually bring a whole organisation to a standstill.
The metaphor was designed to speak to people in finance. That is still its main value: it gives a technical team and a management team a shared vocabulary.
The four types of debt: Fowler's quadrant
Not all debt is equal. In 2009, Martin Fowler proposed the technical debt quadrant, which crosses two questions: was the debt taken on deliberately or inadvertently, and prudently or recklessly?
| Reckless | Prudent | |
|---|---|---|
| Deliberate | The team knows it is cutting corners and does it anyway, believing there is no time to design properly | The team chooses to ship now, knowingly, and plans to deal with the consequences |
| Inadvertent | The team is unaware of design practices and does not realise what it is accumulating | The team understands afterwards how the system should have been designed |
Prudent, deliberate debt is a management tool: it has a reason, a date and a repayment plan. Prudent, inadvertent debt is unavoidable, even in good teams, because you learn by building. The two left-hand cells point to a skills or management problem, and are addressed through supervision, code review and training.
Concrete examples of technical debt
Debt is not limited to "messy code". It sits at several levels.
- Code. A business rule copy-pasted in five places, functions several hundred lines long, dead code nobody dares to delete.
- Architecture. Business logic written in the screens, modules that all know about each other, a database shared by several applications.
- Tests. No automated tests on critical paths, flaky tests the team has learned to ignore.
- Dependencies. A language or framework version that is no longer maintained, a library abandoned by its author.
- Deployment. A manual release procedure known to one person, a server that cannot be rebuilt.
- Knowledge. No record of architecture decisions, business rules known to a single developer.
- Data. Columns used for something other than their purpose, duplicates, missing integrity constraints.
An example of prudent, deliberate debt: to meet a trade-show date, a team hard-codes the pricing rules for one country, knowing that a second country will mean reworking the module. The decision is defensible if it is written down and added to the backlog. It becomes a problem when, two years later, four countries have been added by copy-paste.
How to recognise technical debt
Signs a non-technical manager can see
- Simple requests take longer and longer, for a comparable scope.
- Every release breaks something that used to work.
- Estimates become wide, with the recurring comment "we don't know what we will find".
- The team dreads certain changes, always in the same areas.
- Only one person can work on part of the system.
- A new developer takes months to become autonomous.
None of these signs is enough on its own. Their accumulation, and above all their worsening from one quarter to the next, is a reliable signal.
Signs a CTO can see
- The time between a commit and its release to production keeps growing.
- Fixes and incidents consume a growing share of capacity.
- The same files appear in most bug fixes.
- Language or framework versions are approaching end of support, or are past it.
- An upgrade is postponed because it drags ten others with it.
- Static analysis warnings and disabled tests pile up.
How to measure technical debt
No single number measures technical debt. A figure in days or in money displayed by a tool is an estimate built on assumptions: useful for following a trend, not for drawing up a balance sheet. Serious measurement combines several indicators and looks at how they change.
| Indicator | What it reveals | Limitation |
|---|---|---|
| Lead time from change to production | Overall friction: code, tests, deployment | Also depends on approval processes |
| Change failure rate, regressions per release | Fragility of the code and of the test safety net | Sensitive to how an incident is defined |
| Test coverage of critical paths | The ability to change without breaking | A high figure says nothing about test quality |
| Dependency age, unsupported versions | Security risk and the cost of future upgrades | An old but maintained dependency is not a problem |
| Static analysis: complexity, duplication | Areas that are hard to understand | Measures form, not design |
| Share of capacity absorbed by unplanned work | The interest actually being paid | Requires honest time tracking |
Change lead time and change fail rate are among the software delivery metrics defined by the DORA research programme. Management can understand them, and they can be calculated from tools you already have.
Compare an application with itself over time, not with a market average. When this data does not exist, a code and security audit carried out by a third party provides a baseline and a first ranking.
Prioritising: where is the interest being paid
Fowler points out that interest is only due when the code is modified. Prioritisation therefore crosses how often an area is changed with the risk it carries.
- Frequently changed and painful. High priority: every change pays interest.
- Rarely changed but risky (unsupported version, known vulnerability, knowledge held by one person). High priority, for risk reasons.
- Rarely changed, mediocre but stable. Leave it alone.
Reducing technical debt in agile and Scrum
The Scrum Guide does not contain the words "technical debt". It does provide the tool that limits its creation: the Definition of Done, a formal description of the state an Increment must reach. An item that does not meet it cannot be released or presented at the Sprint Review. If it includes tests and code review, debt no longer builds up silently.
For debt that already exists, the following procedure works in Scrum as well as in Kanban (see Scrum or Kanban from the client side):
- Make the debt visible. Each item becomes a backlog entry, with its concrete consequence and an estimate.
- Rank it by frequency of change and by risk.
- Reserve regular capacity. A fixed share of every sprint, agreed with the product owner, beats a large annual clean-up that is always postponed.
- Repay as you go. When a user story touches an indebted area, cleaning it up is part of the story.
- Isolate the large items. A major version upgrade is planned as a project, with deliverable stages and an end criterion.
- Block new debt. Static analysis and tests in continuous integration: changed code does not degrade the indicators.
- Measure and show. The indicators are presented at the sprint review, like features.
The product owner orders the backlog, debt included. That requires items written as business consequences: "changing prices takes weeks instead of days" can be prioritised, "refactor the PricingManager" cannot.
Explaining technical debt to a board
A board does not fund "refactoring". It funds a cost reduction, a risk reduction or a new capability. Present the debt from those three angles.
- Cost. The share of capacity going into fixes and unplanned work, and its trend.
- Risk. Unsupported components, dependence on one person, inability to patch a vulnerability quickly.
- Blocked opportunities. Roadmap items that are slowed down or made impossible.
Then offer scenarios: change nothing, repay continuously with reserved capacity, or run a targeted project. For each, state the cost, the duration and the indicator that will verify the result. A trend measured on your own system is more convincing than a general statistic.
When continuous repayment is no longer enough, the question becomes how to move off the existing system. That is covered in our article on the legacy application: definition, risks and exit plan.
Technical debt and AI-generated code
Coding assistants produce code faster than a team can review it. That is the source of a specific kind of debt.
- Comprehension debt. Code is merged without anyone knowing precisely why it is written that way. The day it has to change, it behaves like inherited code.
- Duplication. The assistant generates a function where an equivalent one already existed.
- Architectural inconsistency. The code is plausible in isolation but ignores the project's conventions.
- Complacent tests. Generated from the implementation, they check what the code does, not what it should do.
- Unvetted dependencies. Libraries are added without checking their maintenance status or licence.
The 2024 DORA report notes that AI adoption comes with a negative effect on delivery stability and throughput, and stresses fundamentals such as small batch sizes and robust testing.
The countermeasures: the same review standards as for hand-written code, small changes, tests written from expected behaviour, automated static analysis, and a team rule that the author of a change must be able to explain it. Within that framework, AI also helps repay debt: tests on existing code, documentation, repetitive version upgrades.
When technical debt is acceptable
Taking on debt is rational to validate a hypothesis with a prototype that may be thrown away, to meet a non-negotiable regulatory or commercial deadline, or on a component whose retirement is already planned.
Three conditions keep that debt healthy: it is decided rather than suffered, it is written down with its reason and date, and its repayment has a precise trigger. Conversely, debt is not an option on security, data integrity or backups. Fowler also observes that sacrificing internal quality to go faster quickly backfires, because the mess slows down the very features it was meant to speed up.
Frequently asked questions
What is technical debt in simple terms?
It is the future cost created by imperfect technical choices in software: code that is hard to change, missing tests, obsolete components, missing documentation. It shows up as slower, riskier changes, and grows for as long as it is left untreated.
What is a simple example of technical debt?
A calculation rule copy-pasted in several places in the code. Everything works on release day, but every change to the rule has to be applied everywhere, and one omission creates an inconsistency. The time lost on each change is the interest.
Who is responsible for technical debt in a Scrum team?
The whole team. Developers flag it, estimate it and respect the Definition of Done. The product owner orders it in the backlog. Management grants the capacity required.
Can technical debt be eliminated completely?
No, and it is not a useful goal. Part of the debt appears because the team understands the problem better after building the solution. The goal is to keep it at a level where it does not slow the roadmap or create a security risk.
What is the difference between technical debt and a legacy application?
Technical debt is a property of any software, including recent software. A legacy application is a critical system the organisation no longer has control over. Debt left unpaid for years produces legacy.
Conclusion
Technical debt is neither a fault nor a fatality. It is a way of financing development that becomes dangerous when it is invisible, undecided and never repaid. Making it visible in the backlog, measuring it with a few indicators tracked over time, reserving regular capacity for it and blocking the creation of new debt are, in most cases, enough to keep it under control.
To have the debt in your application assessed or to organise its repayment, write to us at contact@your-digital-hub.com or read about our legacy application modernization service. You can also describe your situation on our contact page.