Educational

What Is Legacy Software? Meaning, Examples and Warning Signs

What is legacy software? A plain definition, real legacy system examples, the warning signs to check and the safe options for an ageing codebase.

Abstract illustration of an old software system built from stacked, interlocking blocks, with newer components growing around it

In this article:

Almost every company that has shipped software for more than a few years runs some. Ask ten engineers what is legacy software and you will hear ten answers: “COBOL”, “anything older than me”, “the code nobody wants to touch”. Only the last one is close to the truth.

This guide gives a working definition, concrete legacy system examples, and a practical way to tell whether your own system has crossed the line.


What is legacy software?

Legacy software is software that the business still depends on but that the team can no longer change safely, quickly or cheaply. It still runs, it often still makes money, and that is exactly why it cannot simply be switched off.

The legacy software meaning is about the relationship between a system and the people around it, not about the year it was written. A system becomes legacy when the cost and risk of changing it grow faster than the value of the changes. The usual causes are missing tests, missing knowledge, unsupported technology, or all three.

Michael Feathers, in Working Effectively with Legacy Code, defines legacy code simply as code without tests. It is a useful engineering lens: without tests, every change is a guess, and behaviour has to be verified by hand or, worse, in production.

For engineering leaders, a practical definition combines both views. A legacy system is any system where you cannot confidently predict the effect of a change.


Legacy does not mean old

Age is a weak signal. A twenty-year-old mainframe batch job with complete documentation, a stable team and a full regression suite is not a problem; it is a reliable asset. A two-year-old Node.js service written by a contractor who has since left, with no tests and a dependency tree nobody has upgraded, can already be legacy code.

What turns software into legacy is usually a combination of four factors:

  • Knowledge loss. The people who designed it have left, and the reasons behind its decisions were never written down.
  • Unsupported technology. The language version, framework, runtime or operating system no longer receives security fixes.
  • No safety net. There are few or no automated tests, so the real specification is whatever production happens to do.
  • Structural coupling. Modules depend on each other so tightly that a small change ripples through the whole system.

Legacy is closely related to technical debt, but the two are not identical. Technical debt is the accumulated cost of shortcuts and deferred improvements; legacy software is often what a system becomes when that debt is never repaid. If you want the underlying concept first, read our guide on what technical debt is.


Legacy system examples

Below are legacy system examples we encounter regularly. Most organisations will recognise at least one of them.

ExampleWhy it counts as legacyTypical risk
COBOL or mainframe batch processing in banking and insuranceCore logic in a language few engineers know; every change goes through a small group of specialistsKey-person dependency, slow change cycles
A PHP or Java monolith that grew for years without testsEvery release needs manual checks; deployments happen at weekendsProduction incidents, long onboarding
A heavily customised on-premise ERPUpgrades break the custom code, so the company stays on an old versionSecurity exposure, blocked integrations
Desktop applications in Visual Basic 6, Delphi or AccessTools and runtimes are no longer supported and hard to connect to web or mobileCompatibility failures, data silos
Services still running on Python 2 or AngularJSRuntimes and frameworks that have reached end of lifeUnpatched vulnerabilities, hiring difficulty
A SaaS product with a separate code fork per enterprise clientEvery fix must be applied many times, and the forks drift apartRising maintenance costs, slower releases

Two of these are familiar from our own work. One was a B2B payment platform running an 8-year-old PHP monolith with no tests, more than 40 production incidents a month, weekend deployments and six months of onboarding for new engineers. The other was an enterprise SaaS product serving 200+ enterprise clients through more than 15 client forks. Both are documented on our case study page.

Notice the pattern: none of these examples is defined by a programming language alone. COBOL with good tests and a stable team is less risky than a young microservice that nobody understands.


Why legacy systems are risky

Legacy software rarely fails dramatically. It fails slowly, by making every change more expensive. The cost shows up in four places.

Delivery speed

When nobody is sure what a change will break, teams compensate with manual testing, long release cycles and change freezes. Stripe’s Developer Coefficient survey found that developers report spending on average 17.3 hours of a 41.1-hour week on maintenance, including 13.5 hours on technical debt. In a legacy codebase, that share is rarely smaller.

Security

Unsupported runtimes and libraries stop receiving patches. Older systems also tend to rely on outdated authentication, hard-coded credentials or network trust assumptions that made sense in a closed data centre. Fixing a vulnerability is hard when you cannot test the fix.

People

Engineers avoid legacy modules, a few specialists become single points of failure, and new hires take months to become productive. Every year, the knowledge concentrates in fewer heads.

Money

Maintenance absorbs budget that could fund new products. At national scale, CISQ’s report on the cost of poor software quality in the US estimated accumulated software technical debt at around $1.52 trillion in 2022. A good part of that sits in systems like the ones in the table above.


Warning signs: a checklist

Use this checklist to judge whether a system has become legacy software. If several items apply, a structured assessment is usually worth more than another round of firefighting.

  • Nobody on the current team can explain why key modules are built the way they are.
  • Automated test coverage on core business logic is low, or nobody knows what it is.
  • The language, framework, database or operating system version is out of vendor support.
  • Releases are batched, scheduled outside business hours, or depend on a manual checklist.
  • Simple changes regularly take days instead of hours.
  • Fixes in one area often break something unrelated.
  • New engineers need months, not weeks, before they can ship safely.
  • Only one or two people are trusted to touch certain parts of the code.
  • Upgrades keep being postponed because “something might break”.
  • The system cannot easily expose an API to new products or partners.

What you can do about legacy software

Discovering that you run legacy code is not a reason to panic, and it is rarely a reason to rewrite. The realistic options are:

OptionWhat it meansWhen it fits
Keep and containLeave it running, add monitoring, isolate it behind a clear interfaceStable systems with little planned change
Refactor incrementallyAdd characterization tests, then improve the structure in small, reversible stepsThe core logic is sound but hard to change
Replace piece by pieceExtract modules behind a routing layer using the strangler fig pattern or branch by abstractionParts of the system must evolve quickly
Rewrite from scratchBuild a full replacement before switching overRarely; mostly when the business domain itself has changed

The order matters. First make the system observable and testable, then change it. Every step should be measurable and reversible, with production running throughout. We cover the mechanics in our guide to legacy code migration, and the trade-offs of starting over in refactoring vs rewriting.

A common mistake is to treat modernization as a technology project. It is a risk-reduction project. The goal is not to use a newer language; it is to give the team back the ability to change the system safely.


Conclusion

So, what is legacy software? It is any system your business depends on but your team can no longer change with confidence. Age, language and framework are symptoms, not the definition. The useful question is not “is it old?” but “can we predict what a change will do?”.

If the checklist above looks uncomfortably familiar, start with an assessment, not a rewrite. Our legacy modernization service replaces and refactors legacy systems incrementally, with zero downtime and reversible steps, and the first 30-minute call is free.