How to Talk About Tech Debt with Clients and Managers
What has worked for me when asking for refactoring budget: describing tech debt as hosting costs, hotfix hours and risk, with one worked example.
· 2 min read · Erik Kubica
Developers, myself included, often struggle to get budget for refactoring, partly because we pitch code quality instead of business impact.
The pitch tends to sound like this: "We need two sprints to refactor the billing module because it violates SOLID principles, our cyclomatic complexity is too high, and the classes lack clean separation of concerns."
A non-technical founder or client may hear: "I want thousands of euros to tidy up code, and your customers get no new features."
It's understandable when management says no. The debt keeps growing, and developers get frustrated.
Translating Code Problems into Euros
Technical debt can be thought of as unpaid rent with interest. If you want a client or manager to fund a refactoring sprint, it helps to describe it in terms they already track: money, time, and risk.
Here is the simple formula I use to estimate the carrying cost:
Monthly Debt Cost = Excess Hosting Waste + (Monthly Hotfix Hours * Hourly Rate)
At my rate of €25/hr, thirty hours a month spent on regressions and database lockups costs a client €750 a month. Add an oversized cloud bill, and the total is easier to see.
One Case: Roughly €9,600 a Year
Two years ago, a SaaS client brought me in because their application was slow during peak business hours. Their engineering team had asked for a three-month rewrite, which the CEO had turned down.
I didn't propose a rewrite. I started with their AWS billing console and database telemetry:
- Un-indexed PostgreSQL queries were taking 4.2 seconds, using 75% CPU on an AWS
db.t4g.xlargeinstance costing $190/mo. - They were paying an extra $130/mo for oversized web containers to cope with slow request queuing.
- In the preceding quarter, their developers had logged 64 hours troubleshooting timeouts and connection drops (about €1,600 of engineering time).
Here is the proposal I gave the CEO:
| Metric | Before | After 3-Day Query Optimization |
|---|---|---|
| Monthly Cloud Hosting | €320 / mo (oversized AWS setup) | €45 / mo (right-sized compute) |
| Monthly Hotfix Hours | 21 hours / mo (€525) | 0 hours / mo (€0) |
| Total Monthly Waste | €845 / month | €45 / month |
| Refactoring Investment | — | €600 (24 hours at €25/hr) |
I told the CEO that spending €600 on developer hours to optimize six database queries and add three composite B-tree indexes would, by my estimate, save about €800 a month. That put the payback period at roughly 23 days.
He approved the work in ten minutes.
What helped in that case was putting the cost of the bugs and the hosting bill next to the cost of the fix.
This approach won't fit every situation. Some debt is hard to put a euro figure on, such as security risk or slow onboarding, and in those cases it can help to describe the risk plainly and let the client decide. What I try to do is measure what I can (wasted CPU, hours lost to recurring regressions) and show the expected return, rather than argue for clean architecture in the abstract.