Technical Debt Analysis: How to Measure, Price and Prioritize It Across Your Application Portfolio
Every IT budget has a line nobody planned: the money spent keeping old systems running instead of building new ones. Technical debt is why that line keeps growing, and most organizations cannot say how large it is or which part to tackle first.
The cost is real. Technical debt quietly pulls money away from new products and toward upkeep, and the drain rarely shows up as its own line in the budget. The pattern will be familiar to most IT leaders.
Technical debt analysis turns that vague drag into numbers and decisions. This guide shows how to measure it, what a good debt ratio looks like, why a clean ratio can still mislead, how to price debt for your CFO, and how to decide what to do with each application.
What technical debt analysis covers, and where a code-only view stops
Technical debt analysis answers three questions about every application: how much debt it carries, what that debt costs each year, and what you should do about it. Most tools answer the first. The other two decide where your money goes.
The budget effect is measurable. In a McKinsey survey of CIOs, 10 to 20 percent of the technology budget meant for new products went to resolving tech debt. The survey dates from 2020 and covered 50 CIOs.
The term is looser than people assume. Ward Cunningham introduced the metaphor in a 1992 experience report to explain to his boss why the team kept reworking code. O’Reilly notes two common misreadings: that debt is always bad, and that it has an exact financial value. In an InfoQ interview, Henney argued that what most developers call technical debt is really unmanaged technical debt.
Debt also comes in more than one form:
- Code debt: shortcuts, duplication and complexity in the source.
- Design debt: architecture that no longer fits the business.
- Documentation debt: knowledge that lives only in people’s heads.
- Testing debt: missing or brittle tests. We cover it in our piece on how agentic orchestration tames test debt in CI/CD.
A repository scan sees only the first of these. It does not see which applications the business depends on, what each costs to run, or what breaks when you change one. Gartner’s 2026 Magic Quadrant for technical debt management tools now frames the job as measuring debt at both the architectural and code levels. Portfolio decisions need one more layer: cost and business value.
Technical debt metrics: the debt ratio and what counts as good
The most-used metric is the technical debt ratio (TDR): remediation cost divided by development cost, as a percentage. SonarQube defines it the same way and assumes 0.06 days of development effort per line of code.
That makes “good” easy to state. SonarQube’s maintainability rating gives an A for a ratio of 5% or less, B up to 10%, C up to 20%, D up to 50% and E above that. Treat those bands as a code-quality benchmark, not a portfolio target. A 4% ratio on one codebase says nothing about whether the application is worth keeping.
Pair the ratio with measures that carry cost and value:
Metric | What it tells you | What it misses |
Technical debt ratio | Fix effort relative to build effort, per codebase | Business value, run cost, integration risk |
Debt interest | Share of project spend lost to fixing and integrating | Which applications cause it |
Maintenance time | Share of engineering time spent on upkeep | Whether that time goes to applications that matter |
Run cost per application | What each application costs to operate | Why the cost is high |
Debt interest is the one to watch. McKinsey warns that a company that spends more than half its IT project budget on integrations and fixing legacy systems is likely paying interest only. Developer surveys show how wide the range runs: Sonar found developers spend about 30% of their time on code maintenance, while a Chainguard survey put maintenance and technical debt together at 84%. The two measure different things, so quote them as a range, not one benchmark.
When a clean debt ratio still hides a bad decision
A good score can point you the wrong way. Three patterns show up again and again:
- Low ratio, wrong application. A tidy codebase for a product line the business is winding down looks healthy and still wastes budget.
- High ratio, low interest. An ugly but stable system nobody changes costs little to leave alone. Fixing it spends principal to save almost no interest.
- Clean code, expensive platform. A well-written application on unsupported infrastructure scores well while licenses, hosting and specialist staff drive the cost.
In each case the ratio answers “how messy is the code?” The decision needs a different question: what does this application cost us, and what does it earn?
Turn debt analysis into portfolio decisions with the TIME model
Debt data becomes useful when it drives a decision for each application. The standard tool is the TIME model, which traces to Gartner’s application portfolio triage work from 2010. It sorts every application into Tolerate, Invest, Migrate or Eliminate by assessing its technical and functional fit.
Debt analysis supplies the evidence for each placement. Here is how we read the signals:
Call | Typical profile | Debt signals to look for | What you do |
Tolerate | Stable, adequate fit, rarely changed | High ratio but low interest, few incidents | Monitor; spend only on security and support |
Invest | Strategic, good fit, some gaps | Moderate debt in the parts that change most | Fund targeted fixes |
Migrate | Valuable capability on unsuitable technology | High interest, frequent incidents, tangled dependencies | Map dependencies, then plan the move |
Eliminate | Low value, high cost or risk | Run cost above value; duplicated function | Retire, after checking downstream impact |
The point to hold on to is that most debt never needs paying down. AWS makes the same case: debt must be repaid, but technical debt need not be. The aim is to know which debt is worth the money, and to leave the rest alone on purpose.
How to explain technical debt cost to the CFO
Start with scale, then move to your own estate. OutSystems found that businesses spend about one-third of their IT budget on technical debt, rising to 41% for enterprises. At national level, CISQ puts the US cost of poor software quality at about $2.41 trillion, before counting an estimated $1.52 trillion of accumulated technical debt. Both are modelled or survey-based estimates, so use them for context, not for your business case.
Your CFO already thinks in principal and interest, so use them. Martin Fowler describes the extra effort of adding features as the interest paid on the debt. In practice:
- Principal is the one-off cost to fix the problem or retire the application.
- Interest is the annual drag: extra maintenance, slower delivery, incident cost, and run cost above what the application needs.
This hypothetical ledger covers four applications. The figures are illustrative; replace them with your own.
Read the table by payback, not by size. The reporting tool has the second-largest principal and almost no interest, so the right call is to leave it alone. Retiring the HR archive costs $200,000 and removes $500,000 of drag every year.
Two cautions keep the ledger honest. Give ranges, not single figures, because critics rightly warn that dollar values can make soft costs look harder than they are. And revisit the numbers every year, because interest changes as the application does. For the testing share of the budget, our guide to software testing cost estimation shows how to size it.
Then end with a decision request, not a debt total: “We propose to spend $2.9M across three applications to remove about $1.65M of annual drag, and to leave the reporting tool alone.”
What to look for in technical debt analysis tools
One industry guide groups tools into four categories: static code analysis, AI-powered modernisation, IDE plugins and enterprise application intelligence platforms. The Gartner Magic Quadrant mentioned earlier covers vendors including CAST, CodeScene, Moderne, Sonar and vFunction. Each category answers a different question, so match the tool to the decision you need to make.
For portfolio decisions, check five things:
- Portfolio coverage: does it find applications you did not list, including unmanaged ones?
- Cost data: can it show run cost by layer, not just a total?
- Business-value input: can you record how much each application matters?
- Risk scoring: does it show dependencies and the impact of changing them?
- Decision output: does it end in a recommendation per application, or just a dashboard?
A code-level tool still earns its place. It just cannot make the portfolio decision on its own.
How QyrusAI helps with technical debt analysis
QyrusAI Modernize treats technical debt as a visibility problem, not a spreadsheet problem. It follows four steps: discover, map, assess and prioritize.
- Auto discovery continuously finds applications, infrastructure and configurations across legacy and cloud environments, including unmanaged Shadow IT.
- Dependency mapping models how applications, services and infrastructure connect, so you can see what a change will touch.
- Signal-based debt scoring correlates tickets, logs, code and operational metrics to flag noisy and fragile assets, so each application is scored from evidence, not opinion.
- Digital twin impact simulation models what-if changes before you commit to them.
- Application rationalization turns those scores into retire, migrate and modernize decisions.
QyrusAI also breaks cost into infrastructure, software, people and maintenance layers. That moves you from cost visibility to cost intelligence, which is what a CFO conversation needs.
Across QyrusAI implementations, reported results include 20–30% of legacy applications decommissioned, migration timelines cut by 25–40%, 15–20% infrastructure savings and migration success rates above 98%.
Conclusion
Technical debt analysis pays off only when it ends in a decision. Measure debt for each application, price its interest, and use the TIME model to decide what to tolerate, fund, migrate or retire.
QyrusAI helps by discovering your estate, mapping dependencies, and scoring debt based on evidence. Request a demo to see how QyrusAI turns your application estate into a prioritized modernization plan.
FAQs: Technical Debt Analysis
What is a good technical debt ratio?
For a single codebase, 5% or below earns SonarQube’s top maintainability rating. Treat that as a code-quality benchmark. For decisions, pair it with annual interest and business value.
How do you measure technical debt in an application portfolio?
Score every application on the same four measures: debt ratio, annual interest, run cost and business value. Then place each one in the TIME model. Start with discovery, because you cannot score applications you have not found.
What tools can analyze technical debt across applications, not just code?
Static analysis tools cover code. Architecture and portfolio platforms add dependencies, cost and risk. Look for one that combines discovery, dependency mapping and cost data, and that ends in a decision for each application.
How do I explain technical debt cost to the CFO?
Use principal and interest. Principal is the cost to fix; interest is the annual drag. Show payback for each application and ask for a decision on the ones that pay back fastest.
Is all technical debt bad?
No. Cunningham’s original idea was that shipping early and repaying later can be a sound trade. Debt becomes a problem when nobody manages it, which is why Tolerate is a legitimate decision.
Stay Ahead, Stay in the Loop with QyrusAI!
One Platform for Modernization, Quality Assurance and Intelligent IT Operations.