Some places are barely livable for millennials. And it has nothing to do with avocado toast.
It's because the largest generation in the American workforce today is earning 20% less than the boomer generation, and location is key for these 25- to 40-year-olds trying to build a life.
In order to determine the most livable states for this generation, personal finance site WalletHub compared the 50 states and the District of Columbia across 30 key metrics. The data set categories include education/health, quality of life, economic health, civic engagement, and affordability (which, besides housing cost, average earnings, and homeownership rate, also factor in the average price of a latte at Starbucks) (SBUX) .
These are the best states for millennials.
(Above, Washington, D.C. Photo: Kristi Blokhin / Shutterstock)
1. District of Columbia
Besides being at the top of the list, D.C. also ranks No. 1 for both education/health, and quality of life. It also has the highest average earnings for millennials.
Photo: 4kclips / Shutterstock.com
2. North Dakota
North Dakota ranks as the most affordable of all 50 states as well as No. 1 for economic health. It also has the lowest unemployment rate among millennials.
Photo: David Harmantas / Shutterstock
Minnesota has the highest rate of homeownership for millennials of all 50 states. It also ranks No. 2 for civic engagement. Above, people participate in the women's march in St. Paul in 2016.
Photo: Ken Wolter / Shutterstock
Massachusetts ranks No. 2 of all 50 states for education/health, and No. 3 for quality of life. The state has the highest percentage of millennials with health insurance coverage. Above, Boston.
Photo: Marcio Jose Bastos Silva / Shutterstock
Iowa is No. 5 for affordability, with the lowest housing cost of all 50 states, and No. 4 for lowest unemployment among millennials. Above, Bettendorf, Iowa.
Wisconsin ranks No. 5 for quality of life. Above, Lake Monona in Madison.
Utah has the fourth highest rate of homeownership among millennials.
Nebraska has the second lowest unemployment rate among millennials, after North Dakota. Above, Omaha.
Colorado is among the three states with the highest economic health ranking.
Photo: Sean Xu / Shutterstock
10. South Dakota
South Dakota has the third lowest unemployment rate among millennials in all 50 states.
Washington ranks No. 4 for highest average earnings for millennials. Above, dancers at Olympic Sculpture Park in Seattle.
Photo: bakdc / Shutterstock.
12. New Hampshire
New Hampshire is No. 2 for economic health. Above, Portsmouth, N.H.
Ranked 13 overall, Pennsylvania ranks No. 36 for economic health, and 15 for quality of life. Above, the South Street shopping district in Philadelphia.
Photo: James Kirkikis / Shutterstock
Vermont is in the top four for education/health among all 50 states.
Connecticut ranks poorly for affordability (No. 41) but high (No. 3) for education/health. Above, Westport, Conn.
Ohio is one of the 12 most affordable states, but ranks No. 37 in economic health. Above, Dayton, Ohio.
Texas ranks No. 1 for the lowest percentage of millennials with depression, but fewer millennials have health insurance coverage in Texas than in any other state.
Photo: D Guest Smith / Shutterstock
At No. 18, Illinois is middle of the road. It's in the top 12 for quality of life but ranked No. 45 for economic health. Above, the Jay Pritzker Pavilion in Millennium Park in Chicago.
Photo: Nick Fox / Shutterstock
19. New York
New York is in the top two for highest average earnings for millennials, as well as a low rate of depression.
Virginia scores sixth highest for civic engagement. Above, Richmond, Va.
Missouri is one of the cheapest states to live, ranked No. 6 for affordability. Above, Kansas City, Mo.
California was one of the five states with the highest average earnings for millennials, and ranked No. 3 for the lowest rate of depression among millennials. Above, downtown Ventura, Calif.
Photo: Valeria Venezia / Shutterstock
One of the cheaper states to live (it ranks 20 for affordability) Kansas ranks No. 36 for quality of life. Above, Wichita.
Wyoming had one of the lowest rates (third among all 50 states) of millennials living with their parents. Above, Jackson Lake in Grand Teton National Park.
Photo: B Brown / Shutterstock
Indiana was in the top 10 (No. 9) for affordability. Above the University of Indiana, Bloomington.
Photo: Ken Wolter / Shutterstock
26. Rhode Island
Although No. 8 in the education & health category, Rhode Island has one of the highest rates of depression among millennials in the 50 states. Above, Providence.
Michigan was No. 15 for affordability, but ranked 43 for economic health. Above, Detroit.
Photo: f11photo / Shutterstock
Of all 50 states and D.C., Maine has the lowest percentage of millennials.
Photo: Gary Yim / Shutterstock
Alaska was one of the four states with the highest percentage of millennials. Above, downtown Juneau.
Photo: Felix Lipov / Shutterstock
Maryland is one of the least affordable states, ranked No. 47 in that category. Above, Annapolis.
See the ranking of all 50 states at WalletHub.