July 21, 2026, updated November 4, 2026. 3 min read. By Hell Nah team.

"We want to rewrite it from scratch" is one of the most common things a software team says, and one of the most expensive. We talk most people out of it, and it's worth understanding why before you sign up for one.
Why rewrites fail
The old code is ugly because it's full of decisions. Every strange if statement is a bug someone fixed or an edge case a customer hit. A rewrite throws those decisions away, and you rediscover them one support ticket at a time.
Rewrites also freeze the product. While the team rebuilds what already exists, nothing new reaches customers, and competitors keep shipping. The old system still needs fixing during all of this, so you end up paying for two products while getting credit for one.
And a rewrite doesn't fix the reason the code got messy. If deadlines, unclear requirements or missing tests caused it, the same pressures will be there on day one of the new codebase.
When a rewrite is the right call
We'll recommend one when at least one of these is true:
- The framework is no longer maintained and has security issues nobody will patch
- You can't hire anyone who knows the language
- The architecture fundamentally can't support something the business needs, and you can prove it
"Prove it" matters. "It would be easier in the new framework" isn't proof. "This feature needs real-time updates, and here's the experiment showing the current design can't do it" is.
What to do instead
Replace the system piece by piece. New features get built in the new stack, old pieces get swapped out when they need changing anyway, and the product keeps shipping throughout. This is sometimes called the strangler pattern, after the vine that gradually grows over a tree.
In practice it looks like this:
- Put a routing layer in front of the old system. All requests go through it, so you can move them one at a time.
- Add tests around what you're about to touch. They record what the system really does, including the odd behaviour customers rely on.
- Move one small, low-risk piece first. You're testing the migration process as much as the code.
- Keep going in order of value, moving the parts that change most often or hurt most.
- Delete the old code as you go, or you'll end up maintaining both forever.
It's slower to describe and faster to finish. If it stops halfway, you still have a working product that's better than it was. A rewrite that stops halfway leaves you with nothing.
A quick way to decide
Before you commit, write down answers to these:
- What specific thing can't we do today, and why can't we do it in the current system?
- What would we stop shipping during the rewrite, and for how long?
- Which undocumented behaviours do customers rely on, and how would we find them?
- If the new version took twice as long as planned, would we still want to have started?
If you can't answer them, you're not ready to decide. A short code audit will usually tell you what you need to know for far less than a rewrite costs.
Common questions
Our code really is terrible. Doesn't that change things?
Not by itself. Terrible code that works and earns money is an asset with a maintenance problem. Fix the parts that are stopping you first, and you may find the rest can wait.
How long does an incremental migration take?
Longer overall than a rewrite is estimated to take, but it delivers value from the first piece, and it can pause or stop at any point.
Is it ever cheaper to replace a small system outright?
Yes. A small internal tool with few users and little business logic is often quicker to rebuild, because there's little hidden knowledge to lose. The trap is the large, old system that seems simple from the outside.
Working on something like this?
Tell us what you’re building. We reply within two working days, and if we’re not the right fit, we’ll say so.
Related service: Software project rescue

