When to Rewrite Legacy Software: Business Case Guide
In this article
Deciding whether to rewrite legacy software is a business decision, not just a technical one. The short answer: you should consider a rewrite when the cost of maintaining and extending the current system exceeds the cost of building a replacement, and when the business risk of keeping it outweighs the risk of replacing it. This guide gives you a structured, step-by-step process to build that business case, including what data to gather, how to frame the decision, and how to avoid common pitfalls.
What You'll Need
- Access to your current system's usage logs, error reports, and support tickets.
- Basic financial data: current maintenance costs (licenses, hosting, staff time), revenue impact of outages, and projected budget for a rewrite.
- Stakeholder input from IT, operations, finance, and business users who rely on the system.
- A clear understanding of your business goals (e.g., faster feature delivery, compliance, scalability).
- A spreadsheet or document to track costs, risks, and decision criteria.
Step-by-Step
- Define the business problem, not the technical one. Start by asking: What is the system preventing you from doing? Common answers: can't add new features quickly, can't scale to handle more users, security vulnerabilities, or high downtime. Write down the top 3–5 business impacts with concrete examples (e.g., "we lost $50k in sales last month due to a 2-hour outage").
- Inventory the current system. List what the system does, its users, its integrations, and its data. Note the technologies it uses (programming languages, databases, hosting). Don't go too deep; you need a high-level map, not a code review.
- Quantify the cost of keeping it. Calculate the annual total cost of ownership (TCO): hosting, licenses, maintenance staff time, and the cost of downtime (average hourly revenue loss × hours down per year). Add the "opportunity cost": features you can't build because developers are stuck patching old code. This is often the biggest hidden cost.
- Estimate the cost of rewriting. Get a rough estimate from your engineering team: how many developers, for how long, plus infrastructure and migration costs. Be realistic—add 20–30% buffer for unexpected issues. Also estimate the cost of doing nothing (which is step 3, but projected forward 3–5 years).
- Assess risks on both sides. For keeping: security vulnerabilities, compliance failures, knowledge loss if key staff leave, and inability to integrate with modern tools. For rewriting: project delays, data migration errors, user resistance, and the risk that the new system doesn't meet all needs. Write these as a simple risk matrix (likelihood × impact).
- Identify must-have features for the new system. Talk to users and stakeholders. List the top 10 features the new system must have, and which current features can be dropped or simplified. This prevents the rewrite from becoming a 1:1 clone.
- Choose a rewrite strategy. There are three main options: full rewrite (build from scratch), incremental rewrite (replace modules one by one), or buy a commercial off-the-shelf product. For most legacy systems, an incremental approach is safer and cheaper, but if the architecture is fundamentally broken, a full rewrite may be the only way. Document your chosen strategy and why.
- Create a business case document. Structure it as: executive summary, current state analysis, cost comparison (keep vs. rewrite), risk analysis, proposed solution, timeline, and success metrics (e.g., reduce downtime by 90%, cut feature delivery time in half). Use plain language—your CFO needs to understand it.
- Present to stakeholders with a recommendation. Don't just present data; make a clear recommendation: "We recommend a 12-month incremental rewrite, costing $X, because it will save $Y per year and reduce risk of a major outage." Be prepared to answer questions about migration and downtime.
- Plan a proof of concept (optional but recommended). Before committing full budget, build a small prototype of the riskiest part (e.g., data migration, a critical workflow) to validate assumptions. This de-risks the project and gives stakeholders confidence.
Common Mistakes
- Focusing only on technical debt. Technical debt matters, but the business case must be about money, risk, and business capability. If you can't tie the rewrite to a business outcome, you'll lose the argument.
- Underestimating migration costs. Moving data from old to new systems is often the most expensive and time-consuming part. Include data cleaning, mapping, and validation in your estimate.
- Ignoring user adoption. A new system that users hate will fail. Budget for training and change management, not just development.
- Rewriting everything. If the old system is 90% fine, rewrite only the 10% that's painful. A full rewrite of a complex system can take years and often fails.
- Not getting a second opinion. Your team may be biased toward rewriting (it's more fun) or against it (fear of change). Have an independent architect or consultant review your estimates.
Tips
- Start with a small pilot project to prove the value of the rewrite before going all-in.
- Use the "strangler fig" pattern: gradually replace parts of the legacy system with new services, keeping the old system running until the new one is complete.
- Involve business users early in the design phase—they know the pain points better than anyone.
- Set clear success criteria before you start, and measure them after launch (e.g., "reduce average page load time from 4s to 1s").
- Consider whether you can buy a solution instead of building. Off-the-shelf software may meet 80% of your needs at a fraction of the cost.
Troubleshooting
If your business case is rejected or the rewrite stalls, here's what to do:
- If stakeholders say "too expensive": Revisit your cost estimates—maybe you can do a smaller scope or a phased approach. Present the cost of doing nothing over 5 years; often that's higher than the rewrite.
- If the project is over budget or behind schedule: Cut scope, not quality. Drop non-essential features and focus on the core. Communicate the revised timeline honestly.
- If data migration fails: Stop and audit your data. Clean the data before migrating, and test with a small subset first. Have a rollback plan.
- If users resist the new system: Provide extra training, and consider a parallel run where both systems operate for a while. Listen to feedback and fix usability issues quickly.
- If the new system has bugs: Prioritize critical fixes and communicate the timeline. Don't rush—stability is more important than feature completeness.
Frequently Asked Questions
How do I know if my legacy system is really "legacy"?
A system is legacy when it's hard to maintain, lacks vendor support, or uses outdated technology that makes it difficult to integrate with modern tools. If you're spending more time patching than building, it's legacy.
What's the biggest cost factor in a rewrite?
Usually data migration and integration. Moving data accurately and connecting the new system to other applications can take more time than writing new code.
Can I rewrite without stopping the old system?
Yes, using an incremental approach. You run both systems in parallel, gradually moving users and data over. This reduces risk but increases temporary costs.
How long does a typical rewrite take?
It varies widely—from a few months for a small app to several years for a large enterprise system. A realistic estimate is 1–2 years for a medium-sized system.
Should I rewrite or buy off-the-shelf software?
If an off-the-shelf product meets most of your needs, buying is usually cheaper and faster. Rewriting makes sense only when you have unique requirements that no product can satisfy.
What if my team wants to rewrite but I'm not sure?
Ask them to build a business case just like this guide. If they can't quantify the benefits, that's a red flag. Also consider a proof of concept to test the riskiest assumptions.