Here's the most reliable rule of thumb in the HVAC industry: if a repair costs more than 50% of what a new system would cost, replace it.
For example, if a new system for your home would cost around $6,000 and you're facing a $3,500 compressor replacement, the math favors a new system. You'd be putting half the cost of new equipment into an aging unit that may have other components ready to fail.
This rule isn't absolute — a $200 capacitor replacement on a 5-year-old system is almost always worth it, even if the system had other issues recently. Context matters, which is why we built a more complete framework below.