Money

The top 10 best and worst cities to raise a family

On Tuesday, WalletHub released a new ranking of the best and worst places to raise a family in the U.S.

The analysts used 41 key metrics to compare and rank the county's 150 most populated cities. The metrics, which were all given equal weight, were: family fun, health and safety, education and child care, affordability and socio-economic condition.

In the map below, lower numbers put cities closer to the top, most desirable part of the list, and higher numbers put cities closer to the bottom.

Source: WalletHub

According to these findings, if affordability is your biggest concern, you may want to consider Pittsburgh. If you want a lot of playgrounds in your neighborhood and other attractions, check out New York City or Chicago. If you want to feel like the only young family for miles around, try Scottsdale, Ariz.

And, if you think your marriage is in trouble, steer clear of Cleveland, Ohio: It's got the highest divorce rate and breakups can be contagious.

Best places to raise a family

  1. Overland Park, Kan.
  2. Madison, Wisc.
  3. Plano, Texas
  4. Seattle, Wash.
  5. Fremont, Calif.
  6. Minneapolis, Minn.
  7. Virginia Beach, Va.
  8. Sioux Falls, S.D.
  9. Irvine, Calif.
  10. Lincoln, Neb.

Worst place to raise a family

  1. Birmingham, Ala.
  2. Detroit, Mich.
  3. San Bernardino, Calif.
  4. Shreveport, La.
  5. Hialeah, Fla.
  6. Miami, Fla.
  7. Jackson, Miss.
  8. Augusta, Ga.
  9. Newark, N.J.
  10. Memphis, Tenn.

Like this story? Like CNBC Make It on Facebook

Don't miss: The top 10 most- and least-educated cities in the US