The rankings are based on factors including jobless rates, violent crime, foreclosures, income and property taxes, as well as considerations like weather, commute time and political corruption.

Reeling for decades from the decline of the U.S. auto industry, Michigan’s troubled duo of Detroit and Flint registered at No. 2 and No. 3, respectively, among the most miserable cities.