Home / Insights / Software Costs and Budgets
Software Costs and Budgets
Legacy Modernisation in 2027: What AI Agents Make Cheaper, What They Do Not, and How to Fund It in Stages
In a Google Cloud survey published on 10 November 2026, 49% of enterprise decision-makers said that relying on on-premises software had delayed, cut back, paused or cancelled an AI or other technology initiative. Ensono reports that 71% of modernisation initiatives exceed their planned costs. AI agents now make parts of the work far cheaper, but not the parts that sink budgets. This guide shows executives how to build a 2027 modernisation case that is funded in stages and can be stopped without a write-off.
TopicsSoftware Costs and BudgetsArchitecture and Modernization
Key takeaways
- Legacy has become an AI problem. 49% of decision-makers in Google Cloud’s November 2026 survey say on-premises software has delayed, reduced, paused or cancelled an AI or other technology initiative.
- The budget record is poor. Ensono finds that 71% of modernisation initiatives exceeded planned costs and that 61% of organisations paused, delayed, scaled back or abandoned one in the past 24 months.
- Agents change the cost of some work, not all of it. Code analysis, documentation, test generation and like-for-like upgrades get much cheaper. Deciding which business rules are still right, moving data and running the cutover do not.
- Run-cost savings alone rarely pay it back. In our five-year illustration every modernisation option costs more than standing still until you price the cost of change and the initiatives the old system blocks.
- Fund it through four gates. The first gate should cost 5–10% of the programme and produce assets that keep their value even if you stop there.
On this page
- Why legacy is back on the board agenda for 2027
- What AI agents make cheaper, and what they do not
- The three costs of standing still
- Five answers for each system
- A five-year comparison: why the big rewrite loses
- Fund it in four gates
- Which system goes first: a scoring test
- What to ask of a delivery partner
- The first 90 days
- Frequently asked questions
- Sources and methodology
Why legacy is back on the board agenda for 2027
For a decade, the honest answer to “should we modernise the old system?” was often “not yet”. It worked, the people who understood it were still around, and the rewrite quotes were frightening. Three things have changed that answer for 2027 budgets.
First, old systems are now blocking AI plans, not just annoying the IT team. Google Cloud and Hypothesis Group surveyed 1,250 enterprise IT and business decision-makers in the United States for The Innovation Paradox 2026, published on 10 November 2026. Nearly half (49%) said that relying on on-premises software had actively delayed, reduced in scope, paused or cancelled AI or other technology initiatives. Another 39% said their reliance on legacy software and cloud providers left them dealing with complex licensing rules or limited room to negotiate. Google sells cloud services and defines legacy as software that runs locally, so read the framing with that in mind. The finding still matches what we see in delivery: an AI agent is only as useful as the systems it is allowed to read from and write to.
Second, the money is moving. Gartner forecast on 21 October 2026 that worldwide IT spending will grow 15% in 2027 to $7.35 trillion, with AI infrastructure and AI software driving the increase. McKinsey’s March 2026 study of technology budgets found that AI already consumes up to one-third of companies’ change budgets and adds to run costs as well. When AI takes a third of the change budget, the remaining two-thirds has to work harder, and a system that makes every change slow becomes a visible cost.
Third, the track record of modernisation programmes is still poor. Ensono’s 2026 State of IT Modernization Report, a survey of IT leaders in the US and UK released on 15 September 2026, found that 71% of modernisation initiatives exceeded planned costs and that 61% of organisations had paused, delayed, scaled back or fully abandoned initiatives in the past 24 months. Almost all respondents (97%) said talent shortages had increased modernisation costs to some degree. The same survey found that 78% now consider legacy systems more important than they did two years ago, and that 52% are optimising and extending existing systems while modernising applications in place, not replacing them outright.
Put together, these findings describe the decision most leadership teams face: the old system matters more than ever, it is in the way of the AI plan, and the classic way of replacing it fails more often than it succeeds. The question for 2027 is not whether to modernise. It is how to buy modernisation in a form that cannot run away with the budget.
What AI agents make cheaper, and what they do not
Vendors are publishing large numbers. AWS reported in May 2026 that its Transform service had processed more than 4.5 billion lines of code and saved customers over 1.6 million hours in its first year, and that 250,000-line mainframe applications had been transformed and tested in six weeks. By late June it put the totals at 7 billion lines and an estimated 2 million hours. One named customer, Air Canada, upgraded Node.js runtimes in days with an 80% cost reduction. These are vendor-reported figures, not independent audits, and the best results come from the most mechanical work. They are still large enough that no 2027 business case should assume 2023 prices for every line item.
The useful question for an executive is which lines of the estimate fall and which do not.
| Work in a modernisation programme | Effect of AI agents in 2026 | What still needs your people |
|---|---|---|
| Reading and documenting the old code | Large reduction. Agents map dependencies, summarise modules and draft documentation across whole portfolios. | Someone who knows the business must confirm what the code is meant to do. |
| Extracting business rules | Useful first draft, with traceability back to the source lines. | Deciding which rules are still correct, which are obsolete and which were bugs that customers now rely on. |
| Characterisation tests | Large reduction. Agents generate tests that pin down current behaviour. | Choosing the scenarios that matter and supplying realistic data. |
| Like-for-like upgrades (runtime, framework, language version) | Largest reduction. This is where the published results are strongest. | Review, performance checks and release. |
| Re-architecture and redesign | Modest. Agents speed up coding once the target design exists. | The design itself, and the trade-offs behind it. |
| Data migration and reconciliation | Modest. Agents help write mapping and checking scripts. | Data quality decisions, reconciliation sign-off and regulatory evidence. |
| Cutover, parallel running and training | Little change. | Almost all of it. This is operational and organisational work. |
Two cautions belong next to that table. The first is quality. DORA’s 2025 research on AI-assisted software development, based on about 5,000 respondents, found that 90% of them use AI at work, and that AI adoption is still associated with less stable delivery. Faster code is not the same as safer releases, and a modernisation programme is mostly a release-safety problem. The second is that the lines agents reduce most were rarely the ones that caused overruns. Programmes run late because nobody can agree what the old system really does, because the data is dirtier than assumed, and because cutover is rehearsed too late. Agents help with the first of those and barely touch the other two.
The practical conclusion: AI lowers the cost of understanding a legacy system far more than the cost of replacing it. That shift is what makes staged funding possible, because understanding is exactly what you want to buy first. Our guide to AI coding agents and the economics of custom software covers how the same shift affects new builds.
The three costs of standing still
Most business cases for modernisation are built on the wrong line. They promise lower run costs, and then struggle when finance points out that the old system is already paid for. A sound case counts three costs, in this order of importance.
- The tax on every change. AlixPartners’ 2026 enterprise technology research estimates that technical debt consumes 30–40% of the total cost of every change programme, and that a third or more of developers’ time goes on workarounds caused by debt instead of value-creating work. If you spend $1 million a year changing a system, a realistic share of that is paying for the system’s age.
- The initiatives it blocks. This is the 49% finding from the Google Cloud survey. List the AI and digital projects in your 2027 plan that need data or actions from the old system, and write the value of each next to it. For many mid-size companies this line is larger than the other two combined.
- The run cost and the risk. AlixPartners puts the inflation of run costs from debt at 10–20%. Add the items that do not show in a normal budget: unsupported versions, the two people who still understand the batch jobs, and the audit findings that are renewed every year.
If only the third line is large, you probably do not have a modernisation case, and the right decision is to keep the system and manage its risks. If the first two are large, you do, and the next question is which form of modernisation to buy.
Five answers for each system
Modernisation is not one decision. Each system, and often each part of a system, deserves one of five answers. The mistake is choosing the fifth by default because it is the one a vendor proposed.
| Answer | What it means | Choose it when | Cost profile |
|---|---|---|---|
| Retain | Keep it, fix security and support gaps, document it. | It is stable, rarely changed and blocks nothing in the plan. | Lowest. Mostly risk management. |
| Wrap | Put APIs in front so new products and AI agents can use it without touching the core. | The core logic is sound but nothing can connect to it. | Low to medium. Value arrives in months. |
| Replatform | Move it to current infrastructure and runtimes with minimal code change. | The main pain is hosting cost, licences or unsupported versions. | Medium. This is where agents save most. |
| Refactor in stages | Replace it slice by slice while the old system keeps running. | It is changed often, the change tax is high and it blocks planned work. | Medium to high, spread over years, with value at each stage. |
| Replace | Rebuild from scratch or buy a product, then switch over. | A good product exists for a non-differentiating function, or the system is small. | Highest and most concentrated risk. |
Ensono’s finding that 52% of organisations are now modernising in place suggests the market has reached the same view: wrap and refactor are displacing the big rewrite. Our technical guides explain the mechanics of connecting AI to legacy systems without a rewrite and of replacing a monolith slice by slice. For a product-versus-custom choice on the replace option, use the build versus buy framework.
A five-year comparison: why the big rewrite loses
The following is an illustration with invented but realistic numbers, not a client case. A mid-size company runs an order management system that costs $1.5 million a year to host, license and support. It also spends about $1 million a year on changes to that system. Four options are compared over five years.
- Stand still: run cost stays at $1.5 million a year.
- Big-bang rewrite, on plan: $3.0 million build over two years while the old system runs, then a new system costing $0.9 million a year.
- Big-bang rewrite, 40% over and a year late: $4.2 million build, three years of running the old system, two years of the new one.
- Staged refactor: $2.4 million spread over three years, with run cost falling each year as slices are retired ($1.5m, $1.4m, $1.2m, $1.0m, $0.9m).
| Five-year cost | Stand still | Big-bang, on plan | Big-bang, 40% over and a year late | Staged refactor |
|---|---|---|---|---|
| Modernisation spend | – | $3.0m | $4.2m | $2.4m |
| Run cost over five years | $7.5m | $5.7m | $6.3m | $6.0m |
| Total | $7.5m | $8.7m | $10.5m | $8.4m |
| Difference from standing still | – | +$1.2m | +$3.0m | +$0.9m |
The first lesson is uncomfortable: on run cost alone, every option loses to standing still within five years. This is why business cases built on hosting and licence savings are rejected, and they should be.
The second lesson appears when you add the change tax. Assume debt consumes 30% of the $1 million annual change spend, the low end of the AlixPartners range, so $300,000 a year. The staged option retires the most frequently changed slices first, so it recovers part of that from year two: roughly $0.1 million, then $0.2 million, then $0.3 million in each of years four and five, about $0.9 million in total. That closes its gap exactly, before counting a single unblocked initiative. The on-plan rewrite recovers nothing until year three and ends about $0.3 million short. The late rewrite recovers $0.6 million against a $3.0 million gap.
The third lesson is about AI. If agents take a quarter off the modernisation spend, which is an assumption for the purpose of the example and not a benchmark, the staged total falls to $7.8 million and the on-plan rewrite to $7.95 million. The ranking does not change, because the damage in a rewrite comes from the overrun and the extra year of double running, not from the base estimate. Given that 71% of initiatives in the Ensono survey exceeded planned costs, the overrun column is the one to plan around.
The return on modernisation therefore comes from the initiatives it unblocks. If the old system is not blocking anything you intend to do, the numbers say keep it.
Fund it in four gates
A staged programme needs staged money. Approve the programme in principle, then release funding gate by gate, each with a defined output and a defined reason to stop.
| Gate | Typical share of budget | What you receive | Stop or rethink if |
|---|---|---|---|
| 1. Understand (4–8 weeks) | 5–10% | System and dependency map, documented business rules, characterisation tests for core flows, a cost baseline, and one of the five answers for each system. | The three costs of standing still turn out to be small. You keep the documentation and tests, which reduce key-person risk on their own. |
| 2. Prove (8–12 weeks) | 10–15% | One slice running in production alongside the old system, or an API wrapper with one real consumer, plus a measured cost per slice. | The slice cost more than 1.5 times its estimate, or the data needed more repair than assumed. |
| 3. Scale (quarterly tranches) | 60–70% | Slices delivered in order of business value, each in production before the next tranche is released. | Two consecutive tranches miss their production date, or the unblocked initiatives are no longer in the plan. |
| 4. Retire | 10–15% | Old components switched off, licences ended, data archived to meet retention rules. | Never skip it. Run savings only exist once the old system is turned off. |
The percentages are planning guidance from our own delivery work, not industry statistics. The structure matters more than the exact split. Gate 1 is where AI agents have changed the economics most: mapping and documenting a portfolio used to be slow enough that companies skipped it and went straight to a rewrite estimate based on guesswork. It is now affordable to know what you own before you decide.
Ensono’s data supports the discipline. Organisations that call themselves modernisation leaders are far more likely to have structured success measurement (74% against 16% of those catching up) and alignment with the business (64% against 36%). Gates are simply a way to make that measurement a condition of the next payment. For how this fits a wider AI programme, see our AI transformation planning approach and the guide to planning a 2027 technology budget.
Which system goes first: a scoring test
Score each candidate system from 0 (no) to 2 (clearly yes) on six questions. This is a prioritisation aid we use in discovery, not a validated index.
- Is it changed at least monthly, and do changes regularly take longer than the business expects?
- Does a funded 2027 initiative, such as an AI agent, a customer portal or a new channel, need data or actions from it?
- Can fewer than three people change it safely?
- Will any component, runtime or database it depends on lose vendor support within 24 months?
- Does it lack automated tests for its core flows?
- Are licence costs rising, or do the terms restrict access by APIs and AI agents?
| Score | Likely answer | Next step |
|---|---|---|
| 0–3 | Retain | Document it, close security gaps and review again in a year. |
| 4–7 | Wrap or replatform | Run Gate 1, then expose APIs or move it to supported infrastructure. |
| 8–12 | Refactor in stages, or replace | Run Gate 1 and Gate 2 before committing the main budget. |
Questions 1 and 2 measure value; questions 3 to 6 measure risk. A system that scores high only on risk is a candidate for wrapping and risk reduction. A system that scores high on both is where the first slice should come from.
What to ask of a delivery partner
The commercial terms should carry the same staged logic as the funding. Whether you use an internal team, a partner or both, ask for the following.
- Gate 1 as a separate, fixed-scope piece of work whose outputs (maps, rule documentation, tests) belong to you and sit in your repositories, whoever does the later gates.
- Estimates as ranges per slice, with the assumptions written down, not one number for the whole programme.
- Pricing that reflects AI productivity. If agents do the mechanical upgrades, pay per delivered slice or outcome, not for hours that are no longer needed.
- Disclosure of AI use: which tools touch your code, where the code is processed and how generated changes are reviewed.
- Evidence of equivalence: characterisation tests passing on old and new, and reconciliation reports for migrated data.
- People who know the old technology as well as the new. Ensono’s 97% figure on talent shortages is a reminder that this is the scarce skill.
- An exit at every gate with no penalty beyond work done.
PoliteTech’s enterprise software development and software architecture consulting services cover this kind of work, from assessment through staged delivery.
The first 90 days
- Weeks 1–2: list your systems with annual run cost, annual change spend and the 2027 initiatives each one blocks. Apply the six-question score.
- Weeks 3–8: run Gate 1 on the two highest-scoring systems. Use AI-assisted analysis, and have business owners confirm the extracted rules.
- Weeks 9–10: choose one of the five answers for each system and build the five-year comparison with your own numbers, including an overrun scenario.
- Weeks 11–12: approve Gate 2 for one slice, agree the stop criteria in writing, and put the retire gate in the budget now so it is not cut later.
At the end of the quarter you will have spent a small share of the programme and will know more about your systems than most companies learn in the first year of a rewrite.
Frequently asked questions
How much does legacy modernisation cost in 2027?
There is no reliable public price per system, because cost depends on size, data quality and how much behaviour must be preserved. What the evidence does show is that overruns are normal: Ensono found 71% of initiatives exceeded planned costs. Buy an assessment first, ask for a range per slice, and plan with an overrun scenario.
Can AI agents rewrite a legacy system automatically?
They can do much of the mechanical work. AWS reports 250,000-line mainframe applications transformed and tested in six weeks, a vendor-reported figure. Agents do not decide which business rules are still correct, clean your data or run the cutover, and those are the parts that cause most overruns.
Is it cheaper to keep the old system?
On run cost alone, often yes over five years, as the illustration in this article shows. The case for change rests on the cost of every change you make to the system and on the initiatives it blocks. If both are small, keeping it and managing the risk is a sound decision.
Should we modernise before starting AI projects?
Usually not in full. Wrapping the old system with APIs is often enough to let an AI agent or a new product use it, and it delivers value in months. Use what you learn from that to decide which parts deserve deeper work.
How long does a staged modernisation take?
As planning guidance from our own work, the assessment gate takes 4–8 weeks and a first slice can be in production 8–12 weeks after that. The full programme for a large system runs over several years, but it delivers value at each stage and can be stopped at any gate.
Sources and methodology
Guidance reflects PoliteTech delivery experience and the public sources below, each checked on the date shown. The five-year comparison, the gate percentages and the scoring test are illustrations and planning aids with stated assumptions, not benchmarks or client results. Vendor-reported figures are labelled as such in the text.
- Google Cloud, 10 November 2026: New survey finds enterprises trapped between legacy software and AI modernization (The Innovation Paradox 2026, with Hypothesis Group) — accessed 15 November 2026. Survey of 1,250 US enterprise IT and business decision-makers: 49% report on-premises software delayed, reduced, paused or cancelled AI or other technology initiatives; 39% report licensing complexity or limited negotiating flexibility. Vendor-commissioned.
- Ensono press release, 15 September 2026: 2026 State of IT Modernization Report — accessed 15 November 2026. 78% say legacy systems matter more than two years ago; 52% modernising in place; 71% of initiatives exceeded planned costs; 61% paused, delayed, scaled back or abandoned initiatives in 24 months; 97% on talent shortages; leaders 74% against 16% on success measurement and 64% against 36% on business alignment. The release does not state the sample size.
- AWS, 15 May 2026: One year. 4.5 billion lines of code. 1.6 million hours saved — accessed 15 November 2026. Vendor-reported results for AWS Transform, including 250,000-line mainframe applications transformed and tested in six weeks and the Air Canada example.
- AWS, 29 June 2026: AWS Transform, from migration to continuous modernization — accessed 15 November 2026. Updated vendor-reported totals of 7 billion lines of code and an estimated 2 million hours saved.
- AlixPartners, 2026 State of Enterprise Technology: The legacy reckoning — accessed 15 November 2026. Technical debt inflating run costs by 10–20%, consuming 30–40% of the total cost of change programmes, and a third or more of developers’ time spent on workarounds.
- McKinsey, March 2026: Recalibrating technology budgets for the AI era — accessed 15 November 2026. AI consuming up to one-third of change budgets and adding to run costs. Based on technology leaders at 17 global companies.
- Gartner press release, 21 October 2026: Gartner Forecasts Worldwide IT Spending to Grow 15% in 2027, Totaling $7.35 Trillion — accessed 15 November 2026. The 2027 IT spending forecast. Also reported by Network World, 22 October 2026.
- DORA (Google Cloud): State of AI-assisted Software Development 2025 — accessed 15 November 2026. About 5,000 respondents, 90% using AI at work, and the continued association between AI adoption and delivery instability. Summarised by TechTarget.
Related reading
Continue your research
Weighing up a legacy system for 2027?
Tell us which system is holding your plans back. We will help you scope an assessment, choose between wrapping, staged refactoring and replacement, and give you an estimate with a range for the first stage.
