New cars lose value as soon as they are driven off the lot. The average new car is worth just 40% of its purchase price after five years, according to Car Fax.

How much a car depreciates is a critical factor in getting the most for your money when buying or leasing a new car. A vehicle with strong resale value will pay off at trade-in time, or help lower monthly lease payments.

Car shopping and review site Edmunds.com lists the cars and SUVs with the best retained values, noting brands and models that have the highest projected private party value five years after their launch. The private party value is expressed as a percentage of their average True Market Value as calculated by Edmunds.

Here are the vehicles by category, from compact cars to luxury SUVs, that keep their value best: