Independent educational resource. Not affiliated with CAST, SonarSource, or any code-analysis vendor. Figures cite CISQ, Stripe, Besker et al. and BLS.

Volume I, Methodology

The technical debt
measurement reference.

To calculate technical debt in dollars, multiply engineers x loaded cost x share of time lost to debt. At a loaded cost of $216,200 (BLS mean wage for software developers, $148,100 in May 2025, at the 68.5% wage share of pay in June 2026) and Stripe's 33%, that is $71,300 per engineer a year.

Have static-analysis output? Use the Technical Debt Ratio instead: remediation cost divided by development cost. The calculator below runs both, plus a sprint-time method, and shows the formula behind every number. Go to the calculator

SQALE method/Technical Debt Ratio/CAST framework/ISO 25010
Section II

Guided assessment.

Choose a methodology, supply the inputs that match your evidence base, and read the ledger output with formulas attributed.

Financial Impact Model. Best when you need a board-ready dollar figure and lack code-analysis tooling. Inputs are estimates: precision matters less than internal consistency.

$

Wage plus benefits. Default: BLS mean wage for software developers, $148,100 (May 2025), divided by 68.5%, the wage share of pay for professional jobs (ECEC, June 2026).

%

Stripe (2018) found 33% on average; Besker et al. (2019) measured 23%.

yr

Older codebases compound debt cost. We apply a 3.5% per year multiplier as a modelling assumption, calibrate to your own trend.

/ yr

Sev 1 and Sev 2 incidents your post-mortems trace to debt.

h

Your estimate from incident logs. Priced at loaded salary / 2,080 paid hours. The default of 24 is a placeholder, not a published average.

Formula, Financial Impact
annual_cost = team_size x loaded_salary x debt_fraction x (1 + age x 0.035)
= 12 x $216,200 x 0.28 x 1.175
Line item
Source
Annual
Velocity loss
Salary x debt %
$854K
Incident response
8 x 24h x $104/h
$20K
Total annual cost
Sum, current year
$874K
Velocity tax
32%
capacity loss
Year 1 cost
$874K
status quo
Three year cost
$3.12M
18% annual growth
Three year amortisation, do nothing scenario
PeriodPrincipal carriedInterest accruedTotal period cost
Year 1$874K$0$874K
Year 2$874K$157K$1.03M
Year 3$874K$343K$1.22M
Cumulative$3.12M

Estimates are sensitive to debt-time fraction, the input most likely to be guessed. Run two scenarios, for example 23% (the Besker et al. measured average) and 33% (Stripe's survey mean), and present the range.

Section III

Methodology comparison.

There is no single correct way to measure technical debt. The right framework depends on your tooling, your audience, and the precision required. Full analysis on the frameworks page.

FrameworkInputsOutputBest forTooling
TDRRemediation cost, dev costPercentageCode-level measurementSonarQube, Qlty
SQALEIssues, remediation timeA to E ratingIndustry-standard reportingSonarQube, plug-in
CASTViolations, principal $Dollar principalEnterprise portfoliosCAST Highlight
Financial ImpactTeam size, salary, %Annual dollar costBoard presentationsNone required
Time BasedSprint capacity, debt hoursCapacity loss %Agile teamsExisting retros
Section V

Common questions.

01How do you calculate technical debt?+

Three methodologies dominate. The Technical Debt Ratio (remediation cost divided by development cost) is the measure behind SonarQube's maintainability rating. The Financial Impact model multiplies team payroll by the fraction of time lost to debt, useful when you have no static-analysis data. The Time-Based approach extracts debt hours from sprint retrospectives. The right choice depends on your tooling, your audience, and the precision you need.

02What is a good technical debt ratio?+

Below 5% is healthy and aligns with SQALE rating A. 5 to 10% is manageable (rating B). 10 to 20% is concerning (rating C) and warrants dedicated debt sprints. Above 20% is critical (rating D) and typically blocks new feature work without intervention. Above 50% (rating E) is severe enough that rebuild is often cheaper than refactor. These thresholds are SonarQube's default maintainability rating grid; the rebuild-versus-refactor reading is our guidance, not part of the grid.

03How much does technical debt actually cost?+

CISQ estimates the annual US cost of poor software quality at $2.41 trillion. Stripe found developers spend 33% of their time on debt-related work on average. Besker, Martini and Bosch (2019) measured 23% of developer time wasted to debt, and Stripe's 42% figure counts all maintenance work. McKinsey's 2020 CIO survey put tech debt at 20 to 40% of the value of the technology estate, a balance-sheet measure rather than a share of time. Untreated debt compounds at a modelled 15 to 25% per year. At a loaded cost of $216,200 per engineer (BLS mean wage $148,100, May 2025, divided by the 68.5% wage share of pay, June 2026) and Stripe's 33%, a 12-engineer team loses about $856K a year in velocity loss alone, before incident costs.

04What is velocity tax?+

Velocity tax is the percentage of sprint capacity consumed by debt-related friction rather than feature work. It captures workarounds, debt-forced rework, debugging time on legacy code, and onboarding overhead. A 30% velocity tax means your team ships 70 units of value for every 100 units of effort. The tax compounds because each new feature must navigate around accumulated complexity.

05How accurate are these calculations?+

The Financial Impact model has roughly plus or minus 30% precision because it relies on debt-time estimation. The Technical Debt Ratio is more precise (plus or minus 10%) when you have SonarQube or Qlty output, but only captures code-level debt. Time-Based estimation is the least precise individual data point but the most defensible because it is grounded in retrospective evidence. Best practice: run two methodologies and compare.

06How much should we budget for debt repayment?+

The 20% rule (reserve 20% of every sprint for debt) is the most common starting point and works well for moderate debt. For TDR above 20%, dedicated debt sprints quarterly are more effective. For severe debt (above 50%), debt ceilings that pause feature work until a threshold is met outperform fixed allocations. See the management strategies page for the decision flowchart.

07Why do you cite Stripe, McKinsey, and CISQ?+

They are the most widely cited quantitative sources on developer productivity and software quality cost. Stripe surveyed more than 1,000 developers and more than 1,000 C-level executives in five countries for its 2018 Developer Coefficient study. McKinsey's 2020 survey of 50 CIOs sized tech debt at 20 to 40% of technology-estate value. CISQ (Consortium for Information and Software Quality) publishes its cost of poor software quality report roughly every two years (2018, 2020, 2022). Besker, Martini and Bosch (Journal of Systems and Software, 2019) add a measured figure: 23% of developer time wasted to debt.