Technical Debt Ratio
When to use. Teams with SonarQube, Code Climate, or similar static analysis already deployed.
- +Simple formula, universally understood by engineering audiences
- +Tool supported across SonarSource, CAST, Code Climate, Codacy
- +Objective and repeatable across runs
- +Trend-friendly, easy to chart quarter over quarter
- -Only captures code-level debt, misses architectural and process debt
- -Requires tool investment and regular scan cadence
- -Remediation estimates vary by tool, comparison across vendors imprecise
- -Less compelling for non-technical audiences than dollar figures
| Below 5% | A | Healthy |
| 5 to 10% | B | Manageable |
| 10 to 20% | C | Concerning |
| 20 to 50% | D | Critical |
| Above 50% | E | Severe |
A codebase needs 240 developer days to remediate all flagged issues, against 2,400 development days that produced it. TDR = 240 / 2400 x 100 = 10%. SQALE rating B, manageable. Action: Boy Scout rule plus quarterly debt sprints.