What's the best capital city to live in? Not Trenton

If you're looking to move into any of the country's 50 capital cities, the one that should be last on your list is Trenton, New Jersey.

At least, that's what WalletHub says. In its analysis of the country's capital cities, Trenton ranked last, earning the title of worst U.S. capital to live in.

Why did it fare so poorly? The website checked 51 parameters that spoke to each city's affordability, economic strength, quality of education and health, and overall living standards.

Trenton had the third-lowest median household income and Millennials moving into the area, the second-highest unemployment rate and the lowest percentage of adults who earned a bachelor's degree or higher. It also tied with Augusta, Maine, for the city with the third-fewest number of attractions in a capital city.

Trenton is joined at the bottom, but not outdone by Hartford, Connecticut, where 30 percent of the population is considered impoverished. In Trenton, 38 percent of its population lived in poverty in 2016, according to City Data.

Beyond pancakes and hash browns: Great NJ breakfasts from around the world

Health: This is why children are dying from the flu in NJ

Education: Here are the school districts with best teachers in NJ

Now that it's clear where not to go, where is the overall best state capital to hang your hat? Austin, Texas, the website found. It has the second-highest median household income (adjusted for Cost of Living), has the fifth-highest amount of adults with a bachelor's degree or higher education and the second-lowest rate of premature death, according to WalletHub.

If you don't need the full package, these cities were ranked best in these categories:

Most affordable: Cheyenne, Wyoming

Highest for economic well-being: Bismarck, North Dakota

Highest education quality and health: Madison, Wisconsin

Highest quality of life: Honolulu, Hawaii

To view complete rankings, visit WalletHub's website.