Roughly 43 million Americans have made the decision to rent rather than purchase their homes, due to convenience, cost, or both, according to personal-finance website WalletHub.

While there may be a variety of factors that go into the rent-versus-buy decision, it usually comes down to price. Like home prices, rental rates can vary significantly by U.S. region, state, and city. To ease the financial burden and help renters make a more informed decision, WalletHub has identified the best and worst places to rent in 2018.

The company compared 182 rental markets, including 150 of the most populated U.S. cities, based on 22 relevant metrics in two dimensions: (1) rental market and affordability; and (2) quality of life. Each of the metrics with corresponding weights were graded on a 100-point scale, with a 100 representing the most-favorable conditions.

Four Arizona towns top the list: Scottsdale, Peoria, Chandler, and Gilbert. Those are followed by Fargo and Bismarck, N.D.; Overland Park, Kansas; Lincoln, Neb.; and Mesa and Tempe, Ariz.

At the other end of the list, Huntington, W.Va., is fifth from the bottom; New Haven, Conn., is fourth; Cleveland third; Memphis, Tenn.; second, and Detroit last.

Here's an interactive map that shows how all 182 cities stack up:

Source: WalletHub

The graphic below ranks the cities by additional measures, including affordabilty, cost of living, and safety.