(WTAJ) — A 2021 survey from WalletHub on “best states to live in” ranks Pennsylvania as a top contender.

The survey ranks states on a score based on 52 key indicators of livability. Each metric, such as the number of attractions, school system quality, access to public transportation and cost of living, is divided into five main categories:

  1. Affordability
  2. Economy
  3. Education & Health
  4. Quality of Life
  5. Safety

Each category is worth 20 points, adding up to a total of 100 points of overall best place to live.

Overall, Pennsylvania claims the No. 10 best state to live in, bringing in a total of 59.21 points.

It’s worth noting that Pennsylvania also snagged the No. 2 spot based on the “Quality of Life” category and No. 7 spot on “Safety.”

The best state to live in is close by, too. New Jersey took the title with a total of 63.01 points.

WalletHub’s survey determined that the worst state to live in is New Mexico with only 38.96 points.

To see an in-depth breakdown of the survey, visit WalletHub’s website.

Get daily updates on local news, weather and sports by signing up for the WTAJ Newsletter