If you're looking for an affordable retirement, the city in which you decide to live should be an important factor.

Personal finance website WalletHub recently ranked 182 U.S. cities based on their affordability, activities, quality of life and health care.

Each city was graded on a 100-point scale, with 100 representing the highest score.

Here are the cities that fared best.