Freezing temperatures and snowfall might not sound like ideal living conditions, but don’t tell that to the people who deal with them the most. Some of the best cities to live in are right in the middle of America’s Midwest, according to a study by finance blog NerdWallet.

(MORE: The World's Most Densely Populated Cities)

The study weighed several factors to determine which cities have the best quality of life in the United States. Researchers emphasized some of the things that matter most to people, including income opportunities, healthcare and amount of time outside of work.

While some of the worst places for quality of life included large coastal cities, the top 10 was heavily represented by Midwestern cities.

The best states to live in? Nebraska and Minnesota, which each had two cities in the top five. NerdWallet attributed their high marks to strong local economies and high rates of affordability.

Unlike the top cities, the worst city to live in is actually known for its year-round warm weather, but that didn't stop it from having the worst quality of life.

"More year-round outdoor states potentially could have better emotional health because they see the sunshine more often," Dan Witters, a researcher with Gallup-Healthways, told weather.com in February, "but these states do not tend to demonstrate higher levels of well-being. Well-being is driven by your fellow residents and those around you."

Researchers used data from the 2012 U.S. Census Bureau American Community Survey and the Bureau of Labor Statistics to rank the top 100 largest cities by quality of life.

Where does your city rank? Click through the slideshow above to find out.

MORE FROM WEATHER.COM: Do You Live in the Saddest State?