← Back

Which Technical Debt Should You Fix First?

TL;DR

An old module is not automatically an urgent problem. Compare the cost of leaving it alone with a bounded repair—and make the evidence visible to the whole team.

Conceptual illustration for Which Technical Debt Should You Fix First?

Prioritise technical debt by the harm it causes, the work it is likely to obstruct and the cost and risk of repairing it. Start with evidence from incidents, repeated workarounds and upcoming changes. An old technology or an untidy module is not, by itself, a reason to move it ahead of everything else.

Handle urgent security and reliability issues through the appropriate response process first. For the remaining backlog, compare bounded repairs with the consequences of leaving them alone. Some debt deserves immediate work, some belongs alongside a planned feature, and some can reasonably wait.

The aim is to make that choice visible. “Clean up the backend” is difficult to prioritise. “Remove the release step that requires three people to repeat the same checks” gives the team something it can investigate and improve.

What counts as technical debt?

Technical debt describes a technical decision or condition that makes future work more expensive or difficult. It can come from a deliberate shortcut, an earlier misunderstanding or a design that no longer suits the product.

Martin Fowler's technical debt quadrant distinguishes deliberate from inadvertent debt, and prudent from reckless choices. The point is not to label people. It helps explain why debt can exist even when a team made a reasonable decision with the information available at the time.

The Software Engineering Institute's field study of technical debt also argues for looking beyond local code issues to architectural concerns. Its 2015 research is useful background, not a current benchmark for how much debt your company has.

A bug, an unsupported dependency and an awkward architecture may require different responses. You can discuss them in the same planning conversation without pretending that one score describes them all.

Separate urgent action from ordinary prioritisation

An active incident needs containment and recovery. A credible security issue needs assessment by the people responsible for that risk. Do not postpone either while trying to calculate an attractive refactoring payback.

For non-urgent items, distinguish a deadline from a preference. A confirmed platform retirement date creates a different constraint from a developer's wish to move to a newer framework. Record the evidence behind the date and the consequences of missing it.

Then identify work that blocks an already agreed product change. A repair may be most efficient immediately before that feature, while the team is working in the relevant part of the system. Other repairs may be independent improvements that compete for capacity on their own merits.

Keep these categories visible. If everything is marked critical, the backlog no longer helps anyone choose.

Write an evidence card for each candidate

Describe the problem in a sentence that someone outside engineering can understand. Name the affected workflow, who experiences it and what has actually happened. Link to incident records, delivery examples or measured manual effort where available.

Separate observed facts from estimates. “The last three releases required manual reconciliation” is an observation. “Removing this step will save four hours every week” is a forecast that needs assumptions.

Add the expected exposure. Will this component change next month? Does it sit on a frequently used path? Is only one person able to maintain it? These questions explain why similar-looking code problems can have different priorities.

Finally, propose the smallest useful intervention and a completion check. A decision-maker should be able to understand both the benefit being sought and the point at which the repair is finished.

Technical debt prioritisation follows observed cost, upcoming exposure, the smallest useful repair and review of the actual result.
Fictional backlog and estimated effort. The decision framework is illustrative, not a claim of measured client savings.

A worked backlog: three problems, different priorities

The following backlog is fictional. Its numbers illustrate a planning discussion; they are not Pixelfield client results or industry averages.

Item Evidence in the example Upcoming exposure Proposed decision
Manual release verification Three people each spend 20 minutes on four releases a week Releases continue weekly Trial automation of one repeatable check and measure the remaining effort
Duplicated pricing rules The team found conflicting behaviour during a recent change An agreed pricing feature touches both implementations next month Consolidate the relevant rule with tests as part of that feature
Old reporting module No recent incidents; rarely changed Replacement reporting product is under consideration Record ownership and revisit when the replacement decision is made

The oldest component does not automatically come first. The release problem has recurring observed effort. The pricing problem has a near-term dependency. The reporting module may still contain risks, but age alone does not establish that rewriting it is the best use of the next sprint.

The decisions would change with new evidence. If the reporting module depends on a component reaching end of support, that belongs in the assessment. If release verification is catching serious defects, removing it without equivalent checks would be a poor repair.

Notice that the proposed actions are specific. None requires a commitment to a whole-system rewrite before the team has learned whether a smaller change will help.

Use arithmetic to expose assumptions

In the release example, the current effort is:

3 people × 20 minutes × 4 releases = 240 minutes, or 4 person-hours per week.

Suppose the team estimates that a repair will take 32–48 person-hours and avoid 2–4 person-hours of that weekly effort. The simple effort payback spans 8–24 weeks: 32 divided by 4 at the optimistic end, and 48 divided by 2 at the pessimistic end.

This is an illustrative range, not a financial forecast. It excludes ongoing maintenance, delivery risk and any change in release frequency. The recovered capacity is not automatically a cash saving; it may let the same people spend more time on other work.

The range is still useful. It tells the team which assumptions matter. If only half an hour is actually avoided each week, the case is very different. Measure a small trial before committing to a larger automation project.

Do not force every item into this calculation. A rare but serious failure needs a risk discussion. Inventing a precise probability to make a spreadsheet produce a neat ranking can make the decision less honest, not more rigorous.

Prefer a repair that can be completed

A debt item should have a boundary. “Improve the architecture” has no natural stopping point. “Move this pricing rule to one implementation and prove both callers produce the agreed results” does.

Identify the behaviour that must remain unchanged and add tests around it before restructuring. Where the repair changes stored data or an external contract, include the migration and recovery work in the estimate. The code change alone is not the whole task.

Keep the first repair small enough to produce evidence. If the team cannot estimate it because the dependencies are unclear, a short investigation with an explicit question may be the next step. Its output should be a decision or a narrower plan, not an open-ended research exercise.

For broader replacement work, our approach to legacy system modernisation explains how to choose a migration slice and retain a clear source of truth. A prioritisation decision and a migration plan solve related but different problems.

Put debt beside the work it affects

A separate debt backlog can become a place where problems are recorded and forgotten. Connect each item to the product outcome, operational responsibility or planned change it affects.

If a feature depends on a repair, show both in the estimate and acceptance criteria. If a recurring operational problem needs independent work, give it an owner and a review date. If the decision is to defer, record why and what would trigger reconsideration.

There is no universal percentage of every sprint that should be reserved for technical debt. A stable product and a system facing an imminent platform retirement have different needs. Protected improvement capacity can help, but it should not become a substitute for understanding the actual backlog.

For the wider product conversation, our roadmap prioritisation guide can help connect engineering work with product choices. Keep the evidence about a technical constraint attached to the relevant decision.

Check whether the repair helped

Before starting, record what you expect to improve and how you will observe it. After delivery, compare the result with that baseline. Did the manual step disappear? Did the next pricing change become easier to implement? Did the repair introduce a new dependency that now needs maintaining?

Use comparable work where possible, and acknowledge differences. One unusually simple release is not proof that every future release will be faster. Equally, a repair can be useful even if another bottleneck prevents an immediate improvement in overall delivery time.

Close the item when its agreed outcome has been verified. If the result differs from the estimate, update the next decision rather than hiding the difference. That is how a debt backlog becomes a record of learning rather than a collection of complaints.

Download the technical debt decision worksheet to capture evidence, assumptions, a bounded repair and a review trigger. If you need an external assessment of where development effort is being lost, our software development team can help investigate the system before recommending a rewrite.

Michal Vávra
Written by
Head of AI & Development

Michal has been with Pixelfield since September 2012 and has held technical leadership roles since 2017. He is the technical force behind our most demanding builds, combining AI expertise with the infrastructure and software architecture needed to make it work in production. His work spans LLM applications, multi-agent orchestration and complex integrations. He sets the engineering standards behind reliability, performance and scale, and guides the team through the decisions that determine how a system runs long after launch.