Your legacy modernisation project has just entered its 18th month. It feels close to done, but the budget has doubled, deadlines keep slipping and the team is quietly updating their LinkedIn profiles. Sound familiar?
You are not alone. Most modernisation initiatives never reach a real outcome, and the cause is rarely technology. More often it is simpler: we solve the wrong problem, or solve it in the wrong order. This article covers where these projects really go wrong, which root problems make them hard, what AI changes, and what the teams that modernise successfully do differently.
In brief
- In a survey of 400 large enterprises, 74 percent had started but not completed a legacy modernisation project.
- The root problems are well known: missing documentation, a shrinking skills pool, layered technologies and business rules buried in code.
- Yet projects mostly fail for business and organisational reasons: the scope is defined by the old system, not by business value.
- AI makes the biggest difference in understanding and documenting code: what used to take months can now be mapped in weeks.
- AI does not fix a badly defined scope. A value-driven, incremental approach is still the key to success.
How many legacy modernisation projects really fail?
Figures like "90 percent fail" are popular but rarely have a reliable source. There is, however, a survey that looked specifically at legacy modernisation: according to Advanced's 2020 study of 400 US and European enterprises with revenues above one billion dollars, 74 percent of organisations had started a legacy modernisation project but failed to complete it. Only 12 percent of the application and infrastructure leaders surveyed felt that leadership was fully committed to funding, and 56 percent of them put this down to "fear of change".
The scale of the problem is also well documented. According to McKinsey, up to 70 percent of the software used by Fortune 500 companies was built more than 20 years ago, and a traditional modernisation programme can take five to seven years. The US Government Accountability Office (GAO) reported in 2025 that around 80 percent of the federal government's annual IT spend of more than 100 billion dollars goes on operating and maintaining existing systems.
The root problems: why is a legacy system so hard?
Before discussing mistakes, it is worth saying plainly that legacy systems are hard to modernise for good reasons. We meet the same obstacles on almost every project.
Missing or outdated documentation
The system has grown over decades, and the documentation describes the first version at best. The real behaviour lives in the code. When someone asks "how exactly does the system calculate this fee?", the answer is often "we would have to look in the code". This is the biggest hidden cost of modernisation: before rewriting anything, you have to understand what the old system does.
Disappearing expertise
The original developers have retired or moved to another company or project, and the knowledge left with them. For some technologies (COBOL, old Delphi, AngularJS, older .NET versions) it is increasingly hard to find people. The GAO report also highlights that critical US Treasury systems run on COBOL and Assembly, for which the skills pool keeps shrinking. We see the same in the Hungarian market on a smaller scale: a key system is often truly understood by just one person.
Layered technologies
A typical long-lived enterprise application contains .NET, ASP.NET, HTML, business logic in stored procedures and Python scripts added later, all at once. Each layer comes from a different era and a different developer. That makes it very hard to predict the impact of any change.
Business rules buried in code and hard-coded settings
Business rules often do not sit in a clean, separate layer but are scattered across SQL procedures, screen logic and configuration files. Environment settings (servers, file paths, integrations) are likewise often hard-coded. Every environment change then requires development work.
No tests
Most legacy systems have no automated test suite. So nobody can be sure that everything still works the same after a change. This leads to the "it works, don't touch it" mindset, which grows technical debt year after year.
The uncomfortable truth: technology is not the main problem
These obstacles are real, but most projects do not fail because of them. Most organisations instinctively treat modernisation as a technology problem, while the real difficulty lies around it: in mindset, prioritisation, organisational dynamics and wrong assumptions. If these are flawed, even the best technology stack will not save you, because we do not replace technology for its own sake but to achieve a business goal. Most failures come down to the same three mistakes.
1. The scope is defined by the existing system
Not by business value or the goal you want to reach, but by what the current system can do. The result: you rebuild features that hardly anyone uses, and you reassemble processes exactly as they were in the old system. There is no business process re-engineering (BPR) at all.
2. The business is a "stakeholder", not a "co-owner"
On paper the business is involved, but in reality you are not working together. Because the task is approached as a technology refresh, the business side is not active, or nobody listens to what it would like to do differently. The result: constant misunderstandings and redesigns, and the business either loses interest or becomes increasingly frustrated by the end of the project.
3. You underestimate the organisation's immune system
People will not automatically start using the new system. Many simply dislike changes to how they work, and without training and proper roll-out the new system remains alien. The result: technical success, business failure. The project closes successfully on paper, yet many people are unhappy.
Delays and cost overruns are only symptoms. The real problem is treating a business transformation as a technology project. Because the task is badly defined, the scope grows along the way, and that upsets even the best planning (more on this: scope creep in agile projects).
Value architecture first, systems second
Most projects start with which systems exist, what technology they run on and what technology we want to introduce. Instead, start with where business value is created and where it is not. You also need to decide whether modernisation is worth it at all, or whether a completely new system or process would be better, and whether the job can be done within a realistic budget.
- Map the processes that create value and those that destroy it.
- Measure what is actually used. If logs exist, they show how often each feature is used and where the volumes are. What is not needed does not need to be rewritten.
- Separate the features that give you a competitive edge from the commodity ones. For the latter, a ready-made, standard solution often exists.
- Break the project into stages. Incremental replacement (known as the "strangler fig" pattern, after Martin Fowler) means the new system takes over the old one's functions piece by piece while the old one gradually empties out. That is an order of magnitude less risky than a "big bang" replacement.
- Wrap what does not need rewriting right away. With an API layer or containerisation, the old system can fit into a modern architecture, so you do not have to rewrite everything at once.
What does AI change in legacy modernisation?
This is where the biggest change has happened in the last two years. In November 2025 the Thoughtworks Technology Radar moved the practice of using generative AI to understand legacy codebases to "Adopt", describing it as "a practical default rather than an experiment". This matters because the root problems above (missing documentation, lost knowledge, opaque layers) are exactly where AI helps most.
| Area | How AI helps | What to watch out for |
|---|---|---|
| Code analysis and understanding | Explains what a procedure does, what values it returns and what it depends on | The explanation must be checked, especially for edge cases |
| Extracting business rules | Describes calculation and decision rules buried in code in plain language | Validate with the business, because it also describes bugs as "rules" |
| Documentation | Produces in weeks what has been missing for decades | Must be updated as the code changes, or it goes out of date again |
| Dependency mapping | Shows what depends on what and what a change affects | Set-up takes effort on large codebases |
| Writing tests | Writes tests that capture current behaviour before anything is touched | The tests capture current behaviour, bugs included |
| Rewrites and upgrades | Speeds up repetitive rewriting and framework upgrades | Every change must be reviewed and tested by a person |
| Prototyping | Lets you quickly try the new architecture on a single feature | A prototype is not a production system |
International examples point the same way. According to the Wall Street Journal, Morgan Stanley's in-house AI tool reviewed 9 million lines of legacy code (including COBOL) and saved around 280,000 developer hours by turning old programs into plain-English specifications. Amazon's CEO said that upgrading an application to a newer Java version used to take about 50 developer-days on average, and with AI support a few hours, saving the equivalent of some 4,500 developer-years of work. In one banking example McKinsey measured 40 percent less effort on a mainframe modernisation task, and promises 40 to 50 percent faster modernisation with its own approach. The latter is the consultancy's own, independently unverified figure, so treat it with caution.
It is just as important to know what AI cannot do. It does not decide for you what is worth modernising at all. It does not replace business involvement. It makes mistakes, so every output must be checked by an expert. And in a regulated environment you need to agree up front which code and data may go to a cloud-based AI tool. AI speeds up a well-defined modernisation; a badly defined one it will at most take into a dead end faster.
What we have seen on our own projects
- Understanding mixed-technology legacy code. On a system combining .NET, ASP.NET, HTML, business logic stored in MSSQL and Python, we used GitHub Copilot to analyse code fragments, for example to quickly understand what values a given procedure returns. Here AI sped up understanding, not code writing.
- AI-assisted frontend upgrade. On an insurer's broker and agent portal we moved the AngularJS 1.x front end to current Angular without touching the backend. We used Claude to speed up the repetitive rewriting work.
- Containerisation instead of a rewrite. For a large state-owned enterprise we moved two legacy Java applications into a shared Docker layer instead of a native migration, moved hard-coded settings into external files, and did not need to touch the business logic. The work took about five months, including testing, and we used AI tools along the way. Details are in the legacy Java containerisation case study.
- Full rewrite with a single-step cut-over. We rewrote a vehicle condition assessment and fleet dispatch system from Python to Java/Spring Boot and Angular, with a new database structure and a carefully designed data migration. As the system served around 25 companies with many live users, the switch could only happen in one step. That is why migration and testing needed especially thorough preparation.
Optimise for business trust, not technical perfection
The perfect solution rarely pays off. Good project delivery and a precise scope matter much more. In our experience the fate of a project is often decided in the first 90 days: if there is no visible result, you lose the support of decision-makers and key users, and the project team's motivation fades too. Instead:
- deliver a tangible result within 90 days, moving step by step;
- tie milestones to business value, not technical phases (the first milestone should not be "design complete" but a working feature on the new architecture);
- build in continuous business feedback, take it seriously and act on it.
The biggest mistake: leaving people out
You can be technically flawless and the project can be formally successful, and you can still fail. If users do not understand the new solution, were not involved, or find it slower and more cumbersome than the old one, the new system will not deliver the expected results. That is why you need:
- change management from day one;
- redesigned workflows, strictly with the involvement and approval of the business;
- motivation for users and the project team;
- early user involvement, not six weeks before go-live but in the very first design phase.
The real cost of delay
Most leaders underestimate what it costs to keep the existing system as it is. According to Stripe's international survey, developers spend on average 42 percent of their time on maintenance, dealing with bad code and modifying legacy code. McKinsey describes a European bank that spent 70 percent of its IT capacity on maintaining legacy systems. Add the costs that are harder to measure: long release cycles, AI initiatives that never get beyond the pilot because of outdated data structures, and talented developers who leave because of an outdated technology stack.
Checklist: before you start a legacy modernisation
- Do we know which business goal the modernisation serves and how we will measure success?
- Have we mapped which features are actually used and which are not needed?
- Is there up-to-date documentation, or have we planned time and tools (such as AI) to uncover how the system works?
- Is someone who knows the system still available, and are we capturing their knowledge?
- Are there automated tests for the current behaviour before we touch anything?
- Have we broken the project into stages, with a visible business result within 90 days?
- Is the business taking part as a co-owner, not just a stakeholder?
- Have we agreed which code and data may go to AI tools?
What we do differently at FrontX
- We start every modernisation with business analysis: first we uncover where the value is, and only then what needs rewriting.
- We use AI tools for understanding and documentation, not just for coding, and every output is checked by an expert.
- Where possible we wrap or containerise instead of rewriting, and replace the old system step by step.
- We do not disappear after legacy modernisation: we support both the old and the new system.
If you are about to modernise a legacy system, or need to restart a stalled project, we are happy to help you work out where to begin: book a free consultation.
Frequently asked questions
Why do legacy modernisation projects fail?
Rarely because of technology. The most common reasons are that the scope is defined by the old system instead of business value, the business is not involved as a real partner, and users do not adopt the new system. In Advanced's survey, 74 percent of large enterprises did not complete the modernisation they had started, and a lack of leadership commitment was an important factor.
What is the hardest part of modernising a legacy system?
Understanding the system. Documentation is incomplete or outdated, the original developers are gone, business rules are hidden in the code, and technologies have often been layered on top of each other. Before rewriting anything, you have to understand what the old system does.
How does AI help with legacy modernisation?
Mostly with understanding: it explains code, extracts business rules from it, produces documentation and tests, and speeds up repetitive rewriting and version upgrades. However, the results must be checked by an expert, and AI does not decide what is worth modernising.
Full rewrite or incremental modernisation?
In most enterprise environments incremental replacement carries less risk: the new system takes over the old one's functions piece by piece, while the remaining old parts can be fitted into a modern architecture through APIs or containerisation. A full, single-step replacement is only justified when running the old and new systems in parallel is not feasible, and then it needs especially thorough migration and testing preparation.
What does it cost not to modernise?
More than it seems. According to Stripe's survey, developers spend on average 42 percent of their time on maintenance and dealing with old code, and at a European bank studied by McKinsey 70 percent of IT capacity went on legacy maintenance. Add the risk of disappearing expertise and slowing development.
László Behán is Managing Director and Co-Founder of FrontX Kft. He was previously CIO of Signal Insurance, Head of Development and Data Warehouse at Groupama Insurance, and Operations Director and board member at LeasePlan Hungaria. He has 25 years of IT and business leadership experience in financial services. LinkedIn profile


