What the term means
Legacy software is a system your team can't change with confidence. It still runs, often something important, but each change feels like a gamble.
The word sounds like "old", yet age is a poor test. A two-year-old app is legacy if its builder left and nobody understands it.
A thirty-year-old system can be in good health. That takes tests, and people who still know it.
Where the confidence goes
Michael Feathers wrote the standard book on working with such code, in 2004. His working definition is simple: legacy code is code without tests.
Tests are small programs that check the system still does what it should. Without them, nobody knows what a change broke until a customer finds it.
Other causes add to the problem:
- The people who built it have left, and what they knew left with them.
- It runs on a language, framework or operating system that no longer gets security fixes.
- Nobody wrote down what it does, or why.
- It's tangled, so a change in one place breaks something far away.
Why companies keep it
Legacy systems survive because they work. They hold years of unwritten rules, such as one customer's discount or the report your accountant expects.
Large organisations live with this too. In July 2025, the US Government Accountability Office named 11 federal systems most in need of modernising.
They were 23 to 60 years old. Eight used outdated programming languages, and seven ran with known security weaknesses.
What it means for a buyer
The cost shows up as slowness and fear. Small changes take weeks, so releases get rarer and requests pile up.
The risk grows quietly. Security fixes stop when a framework reaches its end of life.
The business also comes to depend on one person's memory.
Calling a system legacy doesn't mean it must go. Often the best move is to add tests around it, write down how it works and keep it.
Common mix-ups
- Old and legacy. Old code with good tests and people who know it is easy to change. New code without either can be legacy within a year.
- Legacy and broken. Most legacy systems work fine from day to day. The risk sits in changing them.
- Legacy and technical debt. Debt is the shortcuts inside the code. Enough of it, left alone, is one way a system becomes legacy.
What to ask or check
You can ask these questions without reading any code:
- How long did the last small change take, from request to live?
- Who can make a change today, and what happens if they leave?
- Are there automated tests, and do they run before each release?
- Which versions of its language, framework and operating system does it use, and are they still supported?
- When did someone last restore a backup to prove it works?
If the answers are vague, the system is legacy, whatever its age. The next step is a written map of what it does, before anyone decides to replace it.
