Research

AI Research

Breaking the Legacy Trap

How AI changes the economics of modernising Scotland’s public services

Scotland spends heavily on keeping ageing technology running. New evidence suggests AI can fundamentally change the economics of replacing it.

Our latest research examines how AI-first analysis and software engineering can reduce the effort required to modernise legacy systems, shorten payback periods and help shift public-sector technology investment from maintaining the past to building services for the future.

Download the full report (PDF 2mb)

Executive summary

Across Scotland’s public sector, ageing systems continue to perform essential functions every day. But keeping them running comes at an increasing cost.

Scotland’s public sector spends an estimated £1.86 billion a year on ICT. Applying the UK Government benchmark that around half of IT expenditure is consumed by legacy estates suggests that approximately £930 million a year may be spent sustaining legacy technology.

At the same time, Scottish Government data shows that around £3.80 is spent running and improving existing technology for every £1 invested in digital transformation.

For years, deferring replacement has often been rational. Modernising legacy systems can be expensive, technically difficult and risky. The benefits may be clear, but the upfront cost and length of time before an investment pays back can make maintaining the existing system for another year the defensible choice.

AI is changing that calculation.

Storm ID’s measured delivery evidence shows how AI-assisted analysis and software engineering can reduce the effort required to understand existing applications and build their replacements.

The result is potentially significant: systems that previously appeared too expensive to modernise may now have a very different business case.

Bar chart: for every £1 Scotland spends on digital transformation, £3.80 goes on running and maintaining existing technology. Public bodies and NHS healthcare organisations, 2023/24. Source: Scottish Government (2026a).

The economics of legacy technology are changing

Three figures frame the opportunity.

Estimated annual Scottish public-sector spend sustaining legacy technology
£930m
Reduction in like-for-like delivery effort measured on an AI-first public-sector programme
40%
Illustrative reduction in the payback period for replacing a legacy system
10.5 years down to 6.3 years

Consider an ageing application costing £1 million a year to maintain.

Based on UK Government evidence, a modern replacement could cost around 28.6% less to run, saving approximately £286,000 a year.

If rebuilding the system conventionally costs £3 million, it would take around 10.5 years for those savings to repay the investment.

If AI-first delivery reduces the rebuild effort by 40%, the cost falls to around £1.8 million and the payback period reduces to approximately 6.3 years.

The annual benefit of modernisation has not changed.

What AI changes is how quickly you can get there.

Line chart: AI brings the payback forward by four years. For an illustrative system costing £1m a year to maintain and saving £286k a year once replaced, a £3.0m conventional rebuild breaks even after 10.5 years, while a £1.8m AI-first rebuild breaks even after 6.3 years. Across the 15 to 60% range of savings, AI-first break-even falls between 4.2 and 8.9 years. After 10 years, AI-first is £1.1m ahead and conventional is still £0.1m behind. Sources: UK Parliament (2026); Storm ID delivery data.Download the full research (PDF 2mb)

What AI changes

Modernising an application that may have evolved over twenty or thirty years starts with understanding what it actually does.

Business rules can be embedded in source code, databases and configuration. Important knowledge may also sit in support tickets, spreadsheets, documentation and the experience of long-serving staff.

AI can accelerate this digital archaeology.

It can help engineers analyse unfamiliar code, identify business rules, map dependencies and generate documentation for review. Validated findings can then feed into specifications, tests, migration activity and the development of replacement software.

On one UK public-sector programme, Storm ID measured a 40% like-for-like reduction in effort using an AI-first delivery approach.

The gains were not evenly distributed.

Reduction in coding effort within the build phase
71%
Overall like-for-like reduction in delivery effort
40%
Reduction in governance, control gates and formal sign-off
7%

The last figure matters.

AI can significantly accelerate technical analysis and engineering, but it does not remove the need for experienced people, effective governance or accountable decision-making. In fact, moving faster makes strong testing and assurance even more important.

Bar chart: the saving is largest where the work is reading and writing code, smallest where people must decide. Effort saved against conventional delivery on one UK public sector programme delivered AI-first: AI-assisted Alpha build 71%, front-end prototyping 65%, requirements elicitation and definition 44%, technical architecture and design documentation 32%, project management and stakeholder engagement 7%, testing 0%. 40% across the programme. Source: Storm ID delivery data.

Storm ID’s wider AI-first legacy modernisation experience suggests that savings vary considerably between systems, with an observed range of approximately 15% to 60% depending on factors such as source-code availability, architecture, integrations, data quality, technology and governance requirements.

What could this mean for Scotland?

The research models an illustrative four-year scenario in which AI-first modernisation is applied to a growing proportion of Scotland’s legacy estate: from 10% in Year 1 to 40% by Year 4.

It is a scenario, not a forecast, but it illustrates the potential scale of the opportunity.

Three distinct forms of value emerge.

Running costs avoided over four years
£291m

As modern systems replace more expensive legacy technology, annual avoided running costs could rise from approximately £27 million in Year 1 to around £120 million a year by Year 4.

Engineering capacity released over four years
£169m

A 40% reduction in delivery effort means the same transformation investment can go further. In the illustrative scenario, approximately £169 million of engineering effort could be released over four years - allowing the same budget to support around two-thirds more modernisation than conventional delivery. This is delivery capacity, rather than a direct cash saving.

Potential annual staff capacity released by Year 4
14.4m hours

Modern technology can also make better automation and service redesign possible. Applying the moderate scenario from Storm ID’s earlier research suggests that around 14.4 million hours of staff capacity a year could be released by Year 4 as more of the estate is modernised.

These are three different forms of value and should not be added together as a single saving.

Taken together, however, they illustrate how modernisation can reduce the burden of maintaining ageing technology while creating capacity to deliver further change and improve public services.

Three bar charts: three kinds of value, each building year on year, and never added together. Illustrative scenario with 10% of the legacy estate modernised in Year 1, rising to 40% by Year 4. Running costs avoided, in £m a year: 27.4, 56.4, 87.2 and 119.7, £291m cumulative. Engineering effort released, in £m a year: 15.9, 32.8, 50.7 and 69.7, £169m cumulative. Staff hours released, in millions a year: 3.6, 7.2, 10.8 and 14.4, building towards 36 million. Sources: Storm ID model (Appendix A); Storm ID (2026).

A route out of the legacy trap

The paper proposes that Scotland starts with a focused first wave of legacy modernisation, measures what happens and uses that evidence to determine how far and how quickly to scale.

  1. 1
    Create a Scottish public sector legacy technology inventory
    Build a shared view of legacy systems, their operating costs, risks, dependencies and replacement plans.
  2. 2
    Prioritise by value and feasibility
    Identify the strongest candidates for modernisation based on whole-life cost, service outcomes, operational risk and the wider opportunities for public-service reform.
  3. 3
    Create a common AI-first delivery and assurance framework
    Establish consistent standards covering approved tools, information protection, human accountability, security, architecture, testing, accessibility and traceability.
  4. 4
    Measure outcomes consistently from the first wave
    Track delivery time, effort and quality alongside operating costs, systems retired and outcomes for citizens and staff.
  5. 5
    Reinvest demonstrated benefits
    Where modernisation produces verified cashable savings, use an agreed proportion to support subsequent waves of change.
Diagram: a route for Scotland, five steps that repeat with every wave. 1, know the estate: a national legacy inventory, building on Cyber Resilient Scotland. 2, select a first wave: representative systems, chosen on value and feasibility through Public Service Reform. 3, modernise under common assurance: one AI-first delivery and assurance framework for every wave. 4, measure: effort, cost, quality and service outcomes on a common basis. 5, scale and reinvest: a defined share of proven savings funds the next wave. Measurement runs from the first day of every wave, and each wave's results select and fund the next.

The cost of standing still has changed

Legacy systems have persisted for rational reasons.

Replacing critical technology has traditionally required significant upfront investment, long delivery times and uncertain returns. For many systems, maintaining what already existed was the defensible choice.

AI does not remove the complexity or risk of modernisation.

It changes the arithmetic.

Faster analysis and engineering can bring the benefits of modernisation forward and strengthen the case for changing systems that previously appeared uneconomic to replace.

For a growing share of the public-sector estate, the question may no longer be whether modernisation is affordable, but whether continuing to defer it is now the more expensive choice.

Move Scotland’s technology investment from the cost of standing still to the capacity to keep improving.

Read the full research

Breaking the Legacy Trap: How AI changes the economics of modernising Scotland’s public services

Explore the evidence, financial modelling, methodology and recommendations for creating a more systematic approach to legacy modernisation across Scotland’s public sector.

Download the full report (PDF 2mb)