Last updated: November 2026. Runtime support status checked against nodejs.org in November 2026.
The estimate came back at three weeks. Product had asked for a tax-ID field on the checkout form, a change everyone assumed was two days, and the tech lead’s breakdown read like an apology: the checkout service still runs on Node.js 20, which no longer gets security patches; it has no integration tests, so every change needs a manual regression pass; and the one engineer who understands its pricing module is on parental leave until March.
None of those three problems were on any roadmap, and together they turned a two-day feature into a quarter-long conversation. That is technical debt in the form leaders meet it: as a gap between how long work should take and how long it does.
Technical debt is the extra cost you pay on every change because of shortcuts, outdated dependencies or designs your team has outgrown. Manage it like a loan book: find where the interest is highest, price it in engineering time, and pay down the expensive pieces inside normal delivery instead of in a rewrite.
What is technical debt?
Ward Cunningham introduced the metaphor in his 1992 OOPSLA experience report on the WyCash portfolio system: “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 sentence after it is the one most teams forget: “Every minute spent on not-quite-right code counts as interest on that debt.” Cunningham also warned that entire engineering organizations can be brought to a standstill under the debt load of an unconsolidated implementation.
Martin Fowler’s 2019 definition makes the finance useful. He calls the underlying problem “cruft,” meaning deficiencies in internal quality that make the system harder to change. The extra effort cruft adds to each new feature is the interest. The one-time work of removing it is the principal. In his example, a feature that would take four days in a clean module takes six with the cruft, and cleaning up the module first takes five days. The cleanup only pays for itself if two or more similar features follow.
That framing settles two arguments that come up in every planning meeting:
- Debt isn’t automatically bad. Borrowing to hit a launch date can be the right call, as long as someone knows the loan exists and when it’s due.
- Debt you never touch costs nothing. Fowler puts it plainly: “crufty but stable areas of code can be left alone.” Interest is only charged when someone works in that code.
What types of technical debt are there?
There are two useful ways to classify debt: by how it was taken on, and by where it lives in the system. The first tells you whether your process is creating it. The second tells you who can fix it.
Fowler’s technical debt quadrant splits debt along two axes, deliberate versus inadvertent and prudent versus reckless:
| Reckless | Prudent | |
|---|---|---|
| Deliberate | The team knows the right design and skips it because it believes it can’t afford clean code | The team ships knowingly to hit a release, having weighed the cost of the debt against the value of shipping early |
| Inadvertent | The team doesn’t know good design practice and takes on debt without realizing it | The team builds the system, learns what the design should have been, and only then sees the debt |
Only one of these is a planning decision. Deliberate-prudent debt belongs in your backlog with an owner and a review date, and Fowler notes it may never be worth paying down if the interest stays small. Reckless debt in either row is a skills or process problem, and paying it down without fixing the cause means taking it on again next quarter. Prudent-inadvertent debt is unavoidable: it’s the price of learning what your system needs to be.
By location, these are the types that show up in almost every codebase, with the signal that usually exposes them:
| Type | Technical debt examples | How it shows up |
|---|---|---|
| Code | Copy-pasted validation in 14 controllers, 900-line functions, dead feature flags | Small changes touch many files; reviewers can’t follow the diff |
| Architecture | A shared database every service writes to, a monolith with no module boundaries | Teams block each other; one deploy breaks another team’s feature |
| Test | No integration tests on billing, flaky end-to-end suite everyone reruns | Manual regression passes before every release; failures get ignored |
| Dependency and platform | End-of-life runtimes and frameworks, pinned library versions three majors behind | Security scanner findings with no patch available; upgrades blocked by other upgrades |
| Build and infrastructure | Hand-run deploy scripts, snowflake servers, 40-minute CI | Releases batched weekly because each one is painful |
| Knowledge | One engineer who understands the pricing module, no runbooks | Work stalls when a specific person is out |
Dependency debt is the type with a hard deadline attached, because vendors publish the date it starts to hurt. Python’s core team sunset Python 2 on January 1, 2020 after announcing a 2015 date in 2008 and extending it in 2014, and said it would not improve Python 2 after that day “even if someone finds a security problem in it.” Google ended long-term support for AngularJS on December 31, 2021, and Arc’s guide to moving from AngularJS to Angular explains why that migration is effectively a rewrite. Node.js 20, the runtime in the opening example, is listed as end-of-life on Node’s release page, and the project’s EOL page is blunt about what that means: no more updates, including security patches.
Knowledge debt is the one leaders underrate. Cunningham’s 1992 report already named the symptom, warning that unconsolidated code leads to “extreme specialization of programmers.” If a module has a bus factor of one, that is debt, whatever the code looks like.
How do you find the technical debt that costs you most?
Look for code that is both unhealthy and frequently changed. Unhealthy code nobody touches charges no interest, and healthy code that changes daily is doing its job. The expensive debt sits where poor quality meets high activity, and three sources of evidence will find it.
Delivery signals
Start with the delivery metrics you may already track. DORA’s software delivery metrics now include five measures in two groups. Throughput covers change lead time, deployment frequency and failed deployment recovery time. Instability covers change fail rate and deployment rework rate, which DORA defines as the ratio of unplanned deployments that happen because of a production incident.
These won’t point to a file, but a team whose lead time keeps rising while headcount stays flat, or whose rework rate climbs after each release, is paying interest somewhere. Arc’s guide to measuring developer productivity covers how to collect these at the team level without turning them into individual scorecards.
Change hotspots in version control
Your git history records where the team spends its effort. This one-liner counts how many commits touched each file in the last year:
git log --since="12 months ago" --format= --name-only \
| grep -v '^$' | sort | uniq -c | sort -rn | head -20
Change frequency alone flags busy files, including healthy ones. Multiplying it by file size gives a rough hotspot score that surfaces large files people keep having to edit:
"""Rank files by change frequency x size: a rough map of where debt costs you."""
import subprocess
import sys
from collections import Counter
from pathlib import Path
def churn(since: str = "12 months ago") -> Counter:
out = subprocess.run(
["git", "log", f"--since={since}", "--format=", "--name-only"],
capture_output=True, text=True, check=True,
).stdout
return Counter(line for line in out.splitlines() if line.strip())
def main(top: int = 15) -> None:
rows = []
for path, commits in churn().items():
p = Path(path)
if not p.is_file():
continue # deleted or renamed since
loc = len(p.read_text(errors="ignore").splitlines())
rows.append((commits * loc, commits, loc, path))
print(f"{'score':>8} {'commits':>7} {'lines':>6} file")
for score, commits, loc, path in sorted(rows, reverse=True)[:top]:
print(f"{score:>8} {commits:>7} {loc:>6} {path}")
if __name__ == "__main__":
main(int(sys.argv[1]) if len(sys.argv) > 1 else 15)
Run it from the repository root with python3 hotspots.py 20. Line count is a crude proxy for complexity, so treat the output as a shortlist for a conversation with the team, not a verdict. The top ten files usually match what engineers already complain about, and the one that doesn’t is worth asking about.
The cost of poor code health has been measured. A 2022 study by Adam Tornhill and Markus Borg, “Code Red: The Business Impact of Code Quality”, analyzed 39 proprietary production codebases and found that low-quality code contained 15 times more defects than high-quality code, that issues in it took on average 124% longer to resolve, and that its maximum cycle times were nine times longer. Read the multiples with the authorship in mind: Tornhill founded CodeScene, and the study grades code quality with CodeScene’s own Code Health metric. The direction of the effect is the safe takeaway, and the exact multiples are one vendor’s measurement.
Static analysis and the team itself
Static analysis tools put a number on the principal. SonarQube, for example, defines technical debt as the summed remediation effort of its maintainability issues and reports a debt ratio against a default development cost of 30 minutes per line, with an A maintainability rating at 5% or below. That’s useful for tracking direction over time. It says nothing about interest, because a file with a poor rating that nobody edits costs you nothing.
The cheapest instrument is a question in your next retro: “Which part of the codebase do you dread changing, and why?” Most answers will overlap with the hotspot list. The ones that don’t usually point at debt git history can’t see, such as a 25-minute local setup or a test suite people rerun until it passes.
How do you prioritize technical debt?
Rank debt by interest paid per month against principal, then pull forward anything with an external deadline. A debt item that costs the team three days a month and takes ten days to fix pays back in about a quarter. One that costs half a day a month and takes six weeks to fix may never pay back.
For each candidate, estimate four things in engineering days, roughly:
- Interest: extra days per month this debt adds to normal work. Ask the engineers who work in that area, and check the hotspot data.
- Principal: days to fix it properly, including tests and rollout.
- Payback period: principal divided by monthly interest.
- Deadline risk: a date after which the cost jumps, such as an end-of-life runtime, an expiring certificate process, a compliance audit or a contract renewal.
Here is a worked example for the checkout service from the opening. The figures are illustrative:
| Debt item | Interest (days/month) | Principal (days) | Payback | Deadline risk | Decision |
|---|---|---|---|---|---|
| Node.js 20 runtime, past EOL | 0.5 (security exceptions, scanner noise) | 8 | 16 months | Already past; no security patches since EOL | Do now: deadline overrides payback |
| No integration tests on checkout | 4 (manual regression on every release) | 12 | 3 months | None | Do next quarter |
| Pricing module only one engineer understands | 2 (blocked work, interruptions) | 5 (pairing, runbook, docs) | 2.5 months | Engineer on leave until March | Do now: cheapest and fastest payback |
| Legacy promo-code engine, rarely changed | 0.2 | 20 | 8 years | None | Leave it; revisit if roadmap touches it |
The decision rules that fall out of a table like this:
- Deadline debt first. End-of-life dependencies and security exposure get scheduled regardless of payback, because the interest rate changes from “slow” to “incident” on a known date.
- Fast payback next. Anything that pays back within two quarters goes into the plan.
- Bundle the rest with the roadmap. Slow-payback debt gets fixed when a planned feature already has to touch that code, so the principal is partly paid by work you were doing anyway.
- Write down what you’re leaving alone. A recorded decision not to fix something is better than an undiscussed one.
Most teams carry a long list of debt they will never fix. Moving it out of the backlog and into a “leave alone” list, with a trigger for revisiting each item, keeps the backlog short enough to plan from.
How do you reduce technical debt without stopping feature work?
Reserve a fixed share of capacity, fix debt in the code you’re already changing, and replace large systems incrementally. The usual alternative, a dedicated “tech debt quarter,” competes with every other priority for the same people and has no natural end point, so it is the first thing cut when a deadline moves.
Reserve capacity and protect it
Pick a share of each sprint or cycle for debt work and treat it like an operating cost. There’s no universal right number, so start with a share the team can defend in planning and adjust it based on whether lead time and rework rate improve. Google’s SRE organization sets a written limit for a related problem: it has an advertised goal of keeping toil below 50% of each SRE’s time, because “toil tends to expand if left unchecked and can quickly fill 100% of everyone’s time.” Debt work needs the same treatment in reverse. A share agreed in advance is what stops the reserved time from being borrowed back for features every sprint.
Pay down debt where you’re already working
When a feature touches a hotspot, include the cleanup of that area in the feature’s estimate. This is how the slow-payback items from the prioritization table get paid: the code is already open, the tests have to be written anyway, and nobody needs to approve a separate project. Make it explicit in your definition of done for hotspot files: any change there leaves the file with tests around the touched behavior.
Replace large systems piece by piece
For architecture and platform debt too big for either approach, use the strangler fig pattern. Fowler’s 2024 write-up describes building new functionality alongside the legacy system and moving behavior across gradually until the old one can be switched off. He is direct about the alternative, writing that he and his colleagues have seen the plan to replace a system wholesale “go down in flames most of the time.” The incremental route costs some transitional code you’ll throw away, and Fowler argues the reduced risk and earlier value outweigh it.
Arc’s analysis of Ruby on Rails scalability makes a similar case at the service level: extract the one latency-critical piece instead of rewriting the application.
Keep a debt register
Track debt in the same system as other work, with the fields you need to prioritize it. A lightweight register can live in the repository:
# docs/tech-debt.yaml
- id: TD-014
title: Checkout service on Node.js 20 (end-of-life)
type: dependency
owner: payments-team
interest_days_per_month: 0.5
principal_days: 8
deadline: already past
decision: scheduled
target: 2026-Q4
- id: TD-021
title: Legacy promo-code engine
type: code
owner: growth-team
interest_days_per_month: 0.2
principal_days: 20
decision: leave
revisit_when: roadmap touches promotions
Review it monthly with the same people who set roadmap priorities. Debt managed only by engineers gets traded away in planning, because nobody in the room is speaking for it.
How do you stop taking on new technical debt?
Match the prevention to the quadrant cell the debt comes from. Deliberate debt needs a written record and a due date, reckless debt needs a change in how work gets reviewed, and dependency debt needs a routine that keeps every upgrade small.
- Record deliberate debt when you take it on. When the team ships a shortcut on purpose, write the trade down that day. Michael Nygard’s 2011 architecture decision record format keeps short, numbered files in the repository, each with a context, a decision, a status and its consequences. The consequences section is where a deliberate shortcut gets its interest estimate and review date, and a matching entry in the debt register puts it in front of the monthly review.
- Make reckless-deliberate debt a product decision. “We don’t have time to do it properly” should come with a named product owner who signs off on the repayment date. Teams take on debt less casually when someone outside engineering has to put their name to it.
- Catch reckless-inadvertent debt in review. This is the cell a skills gap fills, so code review is where it gets caught. Pair less experienced engineers with someone who knows the module when they change a hotspot file, and ask for a second reviewer who has worked in that code. The definition-of-done rule from the paydown section keeps those files from decaying again once they’re cleaned up.
- Keep dependency upgrades small and constant. A runtime that falls three majors behind turns into a migration project. GitHub’s Dependabot version updates open pull requests that bump outdated dependencies, configured by a dependabot.yml file in the repository, so upgrades arrive as routine reviews instead of a quarterly project. Add each runtime’s end-of-life date to the register on the day you adopt that version, so the deadline is on the books a year or more ahead.
- Expect prudent-inadvertent debt and shorten the loop. No process stops a team from learning, and Fowler treats this kind as inevitable. Schedule a design review a few months after a new system reaches production and log what you would now build differently, while the people who made the choices are still around to explain them.
How do you make the business case for paying it down?
Translate interest into time and money, and tie principal to a business date. Executives who reject “we need to refactor” approve “checkout changes cost us 4 extra engineer-days a month, and fixing that takes 12 days.”
Start from your own numbers, because they are the ones leadership will trust:
- Monthly interest in money. Interest days per month multiplied by a loaded daily engineering cost. If you price the work at contractor rates, Arc’s survey of 5,302 freelance developers puts senior freelance rates at $75 to $150 an hour, so an eight-hour senior day costs $600 to $1,200. At an illustrative $1,000 a day, four days a month is $48,000 a year, before counting slower delivery. Arc’s guide to estimating software development cost uses the same hours-times-rate arithmetic for new projects, and it works for pricing the principal too.
- Delivery impact. Change lead time and rework rate for the affected service against the team average.
- Risk with a date. “Node.js 20 receives no security patches” is a sentence a CFO understands without a translation.
- What gets faster. Name the roadmap items that become cheaper once the debt is paid.
External figures help frame the size of the problem, as long as you cite them with their dates. In a McKinsey survey of 50 CIOs at financial-services and technology companies with revenue above $1 billion, published in October 2020, respondents estimated tech debt at 20% to 40% of the value of their technology estate before depreciation, and said 10% to 20% of their new-product technology budget went to resolving tech debt issues. Stripe’s Developer Coefficient report, published in September 2018, found developers reported spending 13.5 hours a week on technical debt. Stripe ran that survey with Harris Poll and asked more than 1,000 developers and more than 1,000 C-level executives in the US, UK, France, Germany and Singapore. Both studies are self-reported and several years old, so use them to open the conversation and your own data to close it.
When does technical debt become a staffing problem?
Debt becomes a staffing problem when the fix needs skills or capacity your team doesn’t have, or when paying it down would stall the roadmap for longer than the business will accept. Both are common with platform debt: a framework migration needs people who have done that migration before, and the team that knows the product needs to keep shipping it.
Three patterns work:
- Bring in migration specialists for a fixed scope. An AngularJS rewrite, a runtime upgrade across 30 services or a database move has a clear start and end. Contract specialists who have done it before, pair them with an internal owner, and require documentation as a deliverable so you don’t create new knowledge debt.
- Backfill the roadmap instead. Move your most experienced engineers onto the debt, because they know which parts of the system are load-bearing, and add contractors to keep feature work moving. Arc’s comparison of staff augmentation, outsourcing and managed services covers which model fits each kind of work.
- Fix the knowledge debt directly. For a bus-factor-of-one module, hire or assign a second owner and give them pairing time with the first. Arc’s guide to integrating freelance developers covers onboarding outside engineers into an existing codebase.
Whichever pattern you choose, the hire should be someone who writes tests before refactoring and can explain a migration plan in terms of risk. When you interview, ask candidates to walk through a migration they led: what they did first, what they left alone, and how they knew it was working. If you need extra hands for either kind of work, Arc lets you hire remote developers for freelance or full-time roles.
Frequently asked questions
Is technical debt always bad?
Technical debt is a tool when it’s taken on deliberately and tracked. Shipping a simpler design to meet a launch window can be the right business decision, as long as the team records the debt and schedules the repayment. It becomes harmful when nobody knows it exists, nobody owns it, or the interest keeps growing in code the team changes every week.
What is the difference between technical debt and a bug?
A bug is incorrect behavior that users or tests can observe. Technical debt is a problem in the code’s internal structure, dependencies or tooling that makes future changes slower or riskier, even when everything works correctly today. Debt often causes bugs later, which is why heavily indebted areas tend to have higher defect rates.
How much time should a team spend on technical debt?
There’s no standard figure, and the right share changes with the state of the codebase. Pick a starting allocation, protect it from being borrowed for features, and adjust it each quarter based on whether lead time, rework and incident trends are improving. Teams facing an end-of-life deadline may need a temporary increase well above their usual level.
How do you measure technical debt?
Measure the principal with static analysis tools that estimate remediation effort, and measure the interest through delivery data: lead time, change fail rate and rework rate for the affected areas, plus change frequency from version control. Ask engineers to estimate how many extra days a month each known item costs them. Combining those three views is more reliable than any single tool’s score.
Can AI coding tools reduce technical debt?
AI coding assistants can speed up mechanical debt work such as dependency upgrades, test scaffolding and repetitive refactors, provided a developer reviews every change. DORA’s 2024 report estimated that as AI adoption increased, delivery throughput fell by 1.5% and delivery stability by 7.2%. Its 2025 report, with 90% of respondents using AI at work, found a positive relationship with throughput but a continuing negative one with stability, and described AI as amplifying whatever strengths and weaknesses a team already has. Point AI at paydown work in well-tested code, and hold its output to the same review rules as any other change.
Running technical debt like a loan book
Treat every piece of debt as a loan with an interest rate, a principal and sometimes a due date. Find the expensive loans by looking where poor code health meets frequent change, pay off deadline debt first and fast-payback debt next, fix the rest when the roadmap takes you there, and write down what you’ve decided to leave alone. Record new debt the day you take it on, with an owner and a review date.
When the fix needs migration experience or extra capacity, Arc matches you with developers from the top 2% of its vetted talent pool. Freelance roles are typically filled within 72 hours, full-time roles in around 14 days, and there is no cost until you make a hire.








