Repairing an AC tends to get more expensive the older the unit is. Well-maintained major components can last 10 years or more, but when they start to fail, the higher repair costs diminish the value you get from repairs. A 20-year-old unit will rarely continue to provide performance without raising your energy bills and eventually failing.