How Much Does Legacy Modernization Cost?
Legacy modernization costs depend on system size, the approach and how much old code must be rewritten. Here are the cost bands, the drivers and a worked example.
On this page
Short answer
Legacy modernization is the work of updating old software so it can be maintained, secured and changed, and its cost depends on the size of the system, the approach chosen and how much business logic is buried in the code. A small system can be modernized for tens of thousands of dollars, while a core enterprise system can run into millions, so the answer is a range tied to scope.
What is legacy modernization?
Legacy modernization is the process of bringing old software up to date so it can keep running safely and change at the pace the business needs. The old system usually still works, but it runs on unsupported technology, is hard to change, and depends on people and knowledge that are disappearing.
Modernization is not the same as replacement. Replacement throws the old system away and builds a new one. Modernization keeps the parts that work and updates the parts that hold the business back, which is usually cheaper and less risky than a full rebuild.
The work typically covers the code, the data, the infrastructure and the way the team works. A system that is modernized on old infrastructure still carries risk, and a system that is moved to the cloud without cleaning up the code still carries the old maintenance burden. The guide to legacy modernization explains the approaches in more detail.
What are the cost bands?
Costs vary widely, so the useful way to talk about them is by system size and approach. The bands below are planning ranges for the project work, not including the ongoing running costs, which continue after the project ends.
| System size | Typical approach | Planning range |
|---|---|---|
| Small, one team | Rehost or replatform | $20,000–$80,000 |
| Departmental system | Refactor key parts | $80,000–$300,000 |
| Core business system | Phased refactor and rebuild | $300,000–$1,500,000 |
| Enterprise platform | Multi-year programme | $1,500,000 and above |
These ranges assume a team that already knows the business domain. A system with no documentation and no surviving experts costs more, because the team has to reverse-engineer the rules before it can change anything safely.
Running costs also change. A modernized system usually costs less to run, because it uses less infrastructure and fewer manual workarounds, but the savings appear over years rather than months, so they should not be used to justify the project on their own.
What drives the cost up or down?
Five factors drive most of the cost, and they are worth estimating before any commitment is made.
| Driver | Why it matters |
|---|---|
| Code size and quality | More code and more tangled code take longer to understand and change |
| Hidden business rules | Rules buried in code must be found and tested before they are moved |
| Data quality | Dirty or duplicated data needs cleaning and migration testing |
| Integrations | Each connected system adds testing and coordination work |
| Availability needs | Systems that cannot go down need careful cutover planning |
Hidden business rules are the most underestimated driver. A pricing rule or an approval step that only exists in code, with no document and no owner, can take weeks to recover, and getting it wrong breaks the business. A discovery phase that maps these rules is usually the best money spent on the project.
Integrations are the second driver. A system that talks to ten other systems needs ten sets of tests and ten coordinated cutovers, and the cost grows with each one. Reducing the number of integrations, or replacing them with standard interfaces, is often part of the modernization itself.
Which approach should you choose?
The approach is chosen by risk and by how much of the system still works, not by fashion. Four approaches cover most cases, and most projects use more than one.
- Rehost. Move the system to new infrastructure without changing the code. Cheapest and fastest, but it fixes none of the code problems.
- Replatform. Change the platform, such as the database or the runtime, while keeping the logic. A good fit when the code is sound but the platform is unsupported.
- Refactor. Restructure the code in place, piece by piece, so it can be maintained and tested. The usual choice for systems that work but are hard to change.
- Rebuild. Replace the system with new software. Most expensive and most risky, but the right choice when the old system cannot be fixed.
The strangler fig pattern is the usual way to run a refactor or rebuild safely. The new system grows alongside the old one, taking over one function at a time, and the old system shrinks until it can be switched off.
It costs more in the short term, because two systems run at once, but it avoids the big-bang cutover that fails most often. A cloud services partner can help with the infrastructure side of the move.
Example: modernizing a claims system
Example (hypothetical): an insurer runs a claims system built 18 years ago. It has 120,000 lines of code, 14 integrations and a small team that knows it well. The company decides to refactor it in phases over 18 months.
The budget is built from the team. A team of 5 engineers and 1 tester costs $120,000 a month including overheads, and the project runs for 12 months of active work, which is $1,440,000. Discovery and business-rule mapping take 2 months and cost $240,000, and testing, migration and cutover add $180,000.
The total is $1,440,000 plus $240,000 plus $180,000, which is $1,860,000. The company adds a 15 percent contingency, which is $279,000, bringing the budget to $2,139,000. The strangler fig approach means the old and new systems run together for 6 months, which adds $90,000 in dual-running costs, for a final budget of $2,229,000.
What are the common mistakes?
The most common mistakes in legacy modernization are skipping discovery, trying to do everything at once and measuring success by lines of code moved.
- Skipping discovery. Starting to rewrite before mapping the business rules means the new system misses rules that matter and the project stalls.
- Big-bang cutover. Replacing everything in one weekend is the highest-risk move, and the failure is usually discovered by users on Monday morning.
- Modernizing the technology but not the process. A new system that still follows the old paper process delivers little of the promised benefit.
- Losing the experts. If the people who know the old system leave before their knowledge is captured, the project loses its map.
- No plan for the data. Migrating data is often half the work, and bad data in the new system is worse than bad data in the old one.
How do you estimate and control the cost?
You estimate the cost by discovering the system first, then pricing the work in phases, and you control it by cutting scope rather than by cutting testing.
- Run a discovery phase. Map the code, the data, the integrations and the business rules, and fix the budget after discovery, not before.
- Price by phase. Break the work into phases with a working result at the end of each, so the project can stop or change direction.
- Hold a contingency. Keep 15 to 20 percent aside for the rules and problems that discovery missed.
- Measure business outcomes. Track time to change, failure rate and running cost, not just the share of code moved.
- Keep the old system running. Do not switch off the old system until the new one has handled real load for a full cycle.
If the estimate is too large for the budget, the answer is usually to modernize a smaller slice first, such as the part that changes most often, rather than to cut the testing. A partner for custom software development can run the discovery phase and give a fixed estimate for the first slice.
Key takeaways
- Legacy modernization cost depends on system size, approach and how much business logic is hidden in the old code
- Planning ranges run from tens of thousands for a small system to millions for an enterprise platform, always as a range, never a single figure
- Hidden business rules and data quality are the most underestimated cost drivers
- The strangler fig pattern replaces the system one function at a time and avoids the risky big-bang cutover
- Discovery first, phase the work, hold a 15 to 20 percent contingency and measure business outcomes
Frequently asked questions
How much does legacy modernization cost?
It depends on size and approach. A small system can be modernized for tens of thousands of dollars, a departmental system for hundreds of thousands, and a core enterprise system for millions. Use planning ranges tied to scope, and fix the budget after a discovery phase maps the code, data and business rules.
Is it cheaper to replace the system instead?
Not usually. Replacement looks simpler but it means rebuilding every business rule, migrating all the data and retraining everyone at once, which is the highest-risk and often the most expensive option. Modernization keeps the parts that work and changes the parts that hold the business back.
How long does modernization take?
It depends on the system. A small system can be modernized in a few months, while a core enterprise system often takes one to three years in phases. Phasing matters: each phase should deliver a working result, so the project can stop or change direction without losing everything.
What is the strangler fig pattern?
It is a way to replace a system gradually. The new system grows alongside the old one and takes over one function at a time, while the old system shrinks until it can be switched off. It costs more in the short term because two systems run at once, but it avoids the big-bang cutover.
Why do modernization projects go over budget?
The usual causes are hidden business rules that were never documented, dirty data that needs cleaning, and integrations that take longer than expected. A discovery phase, a contingency of 15 to 20 percent and phasing the work are the main defences.
Should we move to the cloud first?
Moving to the cloud without cleaning up the code just moves the problems, while rewriting without a stable platform creates its own risk. Most projects do both in a planned order: stabilize the infrastructure, then refactor the code, or run the two tracks together with clear ownership for each.