In plain English
Legacy code is code your team is afraid to change. Age alone doesn't make code legacy. Code becomes legacy when the people who understood it are gone, there are few automated tests, or it runs on outdated tools. Every company that ships has some. It only becomes a business problem when it slows you down in ways you can measure. Watch for simple features taking weeks instead of days, the same bugs coming back, new engineers needing months to get productive, or security updates you can't apply. If most changes go smoothly and only one or two areas are painful, that's normal. If the team routinely pads estimates because of 'the old system,' it's costing you real money.
What it means for you
Legacy code is a tax on every future feature. A mild case adds maybe 10 to 20 percent to your timelines, and a severe one can double them and raise the odds of outages or security incidents.
Ask your tech lead
- Which parts of the codebase do you avoid touching, and how much extra time do they add to typical estimates?
- How much of our critical code is covered by automated tests, and where are the biggest gaps?
- Are we running on any languages, frameworks, or services that are past end of support, and what would it take to upgrade them?
Listen for
- Only one person can safely change a key part of the system, and the plan if they leave is vague or missing.
- Estimates keep growing for features that sound simple, and the explanation is always 'it's complicated in there' with nothing more specific.
- The proposed fix is a full rewrite from scratch, with no plan to keep shipping features in the meantime and no incremental path.
In more detail
In practice, legacy code shows up as friction. A developer opens a file, sees tangled logic with no tests and no notes, and knows a small change could break something unrelated. So they move slowly, test by hand, and add buffer to estimates. Multiply that across a team and a year and the cost is large but invisible. It rarely appears as a line item. It appears as missed dates, a cautious team, and a growing backlog of 'we'll fix it later' notes, which engineers call technical debt.
Some rough ranges help. Healthy teams usually spend about 10 to 20 percent of their time on maintenance and cleanup. If yours is closer to 30 to 50 percent, or if no time is set aside and things keep breaking, legacy code is likely hurting you. Test coverage is another signal. Most teams don't need 100 percent, but core money paths like signup, billing, and checkout should be well covered. A codebase where nobody can say what's tested deserves a closer look.
The trade-off is between paying down debt and shipping features. Rewriting everything is tempting and usually a mistake. Full rewrites often take two to three times longer than planned, and the old system still needs care while they happen. The better approach is usually incremental. Add tests around the painful areas, replace one piece at a time, and upgrade outdated dependencies before they become security risks. A steady budget of time each sprint tends to beat one heroic cleanup project.
Here is a realistic example. A 12-person SaaS company had a billing module written by a contractor three years earlier. It had no tests, and every pricing change took about three weeks and caused at least one billing error. The CTO proposed six weeks to rebuild it. Instead, the team spent two weeks adding tests around the existing code, then cleaned it up in small steps over the next quarter alongside normal work. Pricing changes dropped to about four days, and billing errors mostly stopped.