Managing Technical Debt: A Practical Operating System
Managing technical debt starts with classification, churn-weighted metrics, and capacity rules. A practical playbook for engineering leaders.
Managing technical debt means treating it like an investment portfolio: classify each liability, measure the interest it charges, and repay only where the return is real. In practice that comes down to three moves. Score debt by change frequency and complexity rather than raw warning counts. Allocate capacity through a named mechanism instead of ad hoc cleanup sprints. Price remediation in dollars so product and finance can decide alongside you.
Ward Cunningham framed shipping first-time code as borrowing that speeds development if repaid through refactoring (OOPSLA '92). Managing technical debt well means scheduling that repayment where it pays. Leave dormant legacy code alone and fix the hotspots where feature work actually happens.
What Managing Technical Debt Really Means
A zero-debt target is not the goal, and chasing it does real damage. Teams that demand a clean codebase stop shipping, or they relabel ordinary refactoring as debt so the dashboard looks green. Both outcomes trade one distortion for another.
What managing technical debt actually requires is a deliberately run portfolio. Some debt you repay fast because the interest is high. Some you carry indefinitely because the code barely changes. Some you never touch at all, and that is a decision, not neglect. Managing technical debt is the discipline of choosing which is which and recording why.
That portfolio choice is the operating system this article builds out: classify, measure, price, and allocate.
Classifying Debt Before You Prioritize It
Two schemes settle most "does this count as debt?" arguments, and each assigns a distinct remedy. That makes managing technical debt faster to prioritize.

Fowler's Technical Debt Quadrant
Martin Fowler's quadrant (October 2009) crosses Prudent vs. Reckless with Deliberate vs. Inadvertent:
| Quadrant | Fowler's example | Remedy |
|---|---|---|
| Deliberate-Prudent | "We must ship now and deal with consequences" | Record a repayment trigger |
| Deliberate-Reckless | "We don't have time for design" | Tighten design gates |
| Inadvertent-Prudent | "Now we know how we should have done it" | Refactor while context is fresh |
| Inadvertent-Reckless | "What's layering?" | Coach and add guardrails |
Only Deliberate-Prudent is healthy borrowing, and only if the trigger is written down first. That habit anchors managing technical debt.
Ten Types of Debt Beyond the Code
Li, Avgeriou, and Liang's 2015 mapping study in the Journal of Systems and Software lists 10 types: requirement, architectural, design, code, test, build, documentation, infrastructure, versioning, and defect. Score each separately; architectural debt compounds across teams.
Making Debt Visible in a Unified Backlog
Keep debt in the same product backlog as features, ordered by product owners, not in a separate engineering spreadsheet. Atlassian recommends this unified approach so debt items are prioritized transparently beside customer features. A shadow backlog hides trade-offs and lets debt lose every contest.
Each debt item needs written acceptance criteria, an effort estimate, and a named interest signal.
The shared Definition of Done is your prevention guardrail: automated testing, peer review, and quality checks before work counts as complete. That is what makes managing technical debt a steady practice instead of cleanup sprints. Martin Fowler's "Products Over Projects" makes the same case.
Prioritizing Technical Debt with Hotspots and Churn
Rank candidates by Code Health multiplied by commit churn, not by raw warning count. CodeScene's behavioral code analysis pairs a 1–10 Code Health score with Git change frequency; files that score low and change often are hotspots, and they carry the highest interest rate.
The Hotspot Principle: Fix What Changes
Weight each finding by how often the file changes. Tornhill and Borg's 2022 study of 39 proprietary codebases reported that low-quality code had 15 times more defects and took 124% longer to develop, so the cost lands on code your team edits weekly. Leave dormant modules alone.
Ignore, Refactor, Strangle, or Rewrite
| Outcome | Use when |
|---|---|
| Ignore | Low churn, low criticality, poor health |
| Incremental Refactor | High churn, contained coupling |
| Strangler Fig | High churn, high criticality, incremental boundaries exist |
| Rewrite | Coupling blocks any boundary |
Measuring Technical Debt: Leading and Lagging Indicators
Pair code-level indicators for engineers with delivery metrics for leadership. Leading indicators catch drift before it reaches delivery numbers; lagging indicators confirm debt is already charging interest in production.
Technical Debt Ratio and Clean as You Code
SonarQube calculates the Technical Debt Ratio as remediation cost over development cost, mapping it to an A–E maintainability rating (A is 0%–5%, E is above 50%). The default "Sonar way" gate enforces conditions only on new code, so legacy backlogs do not freeze your pipeline.
DORA Instability Metrics as Debt Signals
DORA's Instability group pairs Change Fail Rate with Deployment Rework Rate: the share of unplanned deployments fixing a user-facing bug or production incident. Rising rework is managing technical debt through reactive patches.
Calculating the Cost of Delay and Remediation Payback
Payback in months = refactoring principal ÷ monthly interest saved. Monthly interest = (rework and incident hours + extra cycle-time hours) × fully loaded rate.

Loaded rate: BLS reports a median annual wage of $135,980 for US software developers ($65.38/hour). The ECEC survey puts wages at roughly 70% of total compensation, implying about $93 per loaded hour before overhead.
Worked example: 40 engineers × 160 hours × 20% drag ≈ 1,280 hours/month ≈ $119,000 interest. A 480-hour refactor (~$44,600) that cuts interest 60% saves ~$71,400/month, so payback lands under one month.
Drag evidence: Stripe's 2018 report found ~33% of the week on technical debt; Besker et al. measured 23%; Tornhill and Borg found low-health code took 124% longer to develop across 39 codebases.
Use low-high bands, not false precision. Managing technical debt with ranges survives a CFO review better than a single decimal, and stating your wage assumptions openly keeps the number defensible.
Allocating Sprint Capacity by Stage and Severity
The 15% to 20% sprint reservation recommended by Atlassian and LinearB is a practitioner rule of thumb, not a benchmark. Match the mechanism to your stage and severity.
| Mechanism | Fits | Failure mode |
|---|---|---|
| Boy Scout Rule (small cleanups per change) | Early-stage, low severity | Hard to audit |
| Fixed sprint tax (10–20%) | Scale-up, moderate debt | Becomes the ceiling |
| Pre-feature refactoring buffer | Localized hotspots | Skipped under deadline pressure |
| Dedicated modernization track (Strangler Fig) | Enterprise, high severity | Drifts into a project to defend |
| Stabilize-before-scale freeze | Severe debt blocking delivery | Stalls the roadmap if open-ended |
Isolated debt sprints usually fail because they are negotiated as one-off trades. Managing technical debt as continuous stewardship avoids that. Track actual allocation, not assumed: LinearB's Resource Allocation profile shows the real split.
Communicating Technical Debt in Business Terms
Translate debt into time-to-market, outage exposure, security risk, and engineering cost. Fowler's distinction helps here: internal quality (modularity, maintainability) is not negotiable, because it lowers cumulative cost, while external quality (visible polish) can be traded.
| Layer | What to report | Signal |
|---|---|---|
| Business value | McKinsey: cumulative debt equals 20–40% of estate value; 10–20% of new-product budget diverted | Principal |
| Trend | McKinsey Tech Debt Score vs. industry peers | Direction |
| Engineering | Interest-rate signal from the ADR | Urgency |
A Debt ADR Template with a Repayment Trigger
Start with Nygard's five sections (Title, Status, Context, Decision, Consequences), then add two fields:
- Interest-rate signal: high, medium, or low, with the affected hotspot.
- Repayment trigger: the churn threshold or review date that forces action.
Managing Technical Debt in the AI Coding Era
AI assistants change the failure mode, not the fundamentals. GitClear's 2025 analysis of 211 million changed lines found copy/pasted lines rose from 8.3% to 12.3% between 2020 and 2024 while moved lines fell from 24.1% to 9.5%, the first year duplication exceeded refactoring.

An AI-Era Governance Checklist
- Gate new code only: apply Clean as You Code so legacy backlogs don't block delivery.
- Cap duplication: treat copy/paste as an explicit debt signal.
- Add fitness functions: automated checks for architectural drift.
- Review design before code: only 48% of developers always verify AI output (SonarSource).
- Watch cognitive debt: Thoughtworks names the gap between implementation and team mental model.
- Track stability: 2025 DORA shows throughput gains with a persistent stability cost.
Managing technical debt this way keeps AI an amplifier, not interest. Managing technical debt is a governance habit.
Where Managing Technical Debt Programs Stall
Three failure modes recur. Each looks reasonable at kickoff and breaks under pressure.
- The standalone cleanup sprint. Pitched against features, it loses the next budget round. Fowler's "Products Over Projects" favors continuous stewardship.
- The big-bang rewrite. It discards working behavior and freezes delivery. The Strangler Fig pattern exists to avoid that risk.
- Unweighted totals. Raw remediation hours point effort at dormant files, not churn-heavy hotspots.
Vendor pricing adds noise: SonarQube and CodeScene Enterprise quotes are custom, so build internal baselines instead of comparing list prices.
For related reading on managing technical debt programs, see more articles. More on the author: about Sofia Bergström.
FAQ
How much sprint capacity should go to technical debt?
Practitioner guidance from Atlassian and LinearB commonly suggests reserving 15% to 20% of sprint capacity for debt paydown, bugs, and developer experience. That figure is a rule of thumb, not a measured benchmark. Early-stage teams often fold cleanup into feature work; scale-ups and enterprises usually need a named track. LinearB's Resource Allocation feature measures actual allocation, so you can check whether the number is real.
How do you prioritize technical debt?
Weight code health by change frequency and rank active hotspots first. CodeScene's method combines a 1–10 Code Health score with Git commit churn, so complex low-health files that change often surface at the top. Leave dormant files alone even when they score poorly. Then tie the shortlist to DORA's deployment rework and change fail signals.
What are the four types of technical debt?
Martin Fowler's Technical Debt Quadrant (2009) splits debt along Prudent vs. Reckless and Deliberate vs. Inadvertent axes, yielding four quadrants. A 2015 mapping study by Li, Avgeriou, and Liang catalogs ten coarse-grained types, including architectural, test, and infrastructure debt. Each type calls for a different remedy and owner.
How do you explain technical debt to non-technical stakeholders?
Lead with time-to-market, outage exposure, security risk, and engineering cost. Fowler's Tradable Quality Hypothesis gives you the frame: internal quality lowers cumulative cost, so repayment is an investment with a payback period, not code aesthetics. For scale, McKinsey's 2020 survey of 50 CIOs found 10% to 20% of new-product budgets diverted to resolving tech debt.
When should you pay down technical debt versus leaving it alone?
Repay where code changes often and has low health, since that combination generates the interest. Leave stable code alone even when it looks messy. When repayment is warranted, prefer an incremental path: Fowler's Strangler Fig pattern builds around a legacy system's edges, cuts over traffic gradually, and decommissions later without a big-bang rewrite.
How does AI-generated code affect technical debt?
GitClear's 2025 analysis of 211 million changed lines reported copy/pasted lines rising from 8.3% in 2020 to 12.3% in 2024, while moved lines (a refactoring proxy) fell from 24.1% to 9.5%. DORA links AI adoption to throughput gains but a persistent negative relationship with stability, so managing technical debt now needs guardrails: diff coverage, duplication caps, fitness functions, and design-first review.
