According to the Global Peace Index, the United States ranks 128 out of 163 countries. The U.S. has terrorist attacks, mass shootings, hate crimes, and natural disasters making headlines often, putting citizens and visitors in danger.

Safety varies from state to state. Some states are safe from some dangers but fall prey to others. In order to determine which states are the safest, WalletHub compared all 50 states across 52 safety indicators grouped into the following categories:

Personal and Residential Safety

Financial Safety

Road Safety

Workplace Safety

Emergency Preparedness

Indicators that were used to determine the safest states include:

DUIs per capita

Road quality

Unemployment rate

Debt per income

Poverty rate

Number of mass shootings

Assaults per capita

Law enforcement employees per capita

Share of families with children aged 0 to 17 who feel they live in safe neighborhoods

Each state was given a score between 0 and 100 for each metric, with 100 being the safest. This score was used to determine which states are the safest in the U.S.

Minnesota is the safest state in the U.S. Minnesota ranks first for Road Safety, third for Financial Safety, and seventh for Personal & Residential Safety and Workplace Safety. Minnesota has the third-highest percentage of adults with a rainy-day fund and the fourth-lowest share of uninsured people in its population. Some of the safest cities in Minnesota are Lakeville, Plymouth, Eden Prairie, and Maple Grove.

Vermont is the second-safest state in the U.S. with a score of 64.32 – just below Minnesota’s 64.43. Vermont ranks fourth for Financial Safety and fifth for Personal & Residential Safety. Furthermore, Vermont has one of the lowest unemployment rates in the country, has the third-lowest share of uninsured people, and has the second-fewest assaults per capita.

Maine ranks third for the safest states with a score of 62.53. Maine ranks second for Personal & Residential Safety and Emergency Preparedness. Maine has the lowest number of assaults per capita of any state in the U.S. Maine has the lowest violent crime rate overall than any other state, and has the fourth-lowest property crime rate as well.

Utah ranks fourth just below Maine with a score of 62.48. Utah ranks second for Workplace Safety, sixth for Emergency Preparedness, and seventh for Road Safety. Utah has the fourth-lowest total loss from climate disasters per capita and the lowest percentage of drunk driving fatalities in the U.S. Law enforcement credits the community for looking out for each other and being involved in keeping the community safe.

As the fifth-safest state in the U.S., Connecticut has a score of 61.49. Connecticut ranks first for Personal & Residential Safety and has the second-fewest fatal occupational injuries per total workers. Connecticut has its share of dangerous places; however, some of its safest cities are Weston, Ridgefield, Easton, New Canaan, and Madison. In these cities, the violent crime rate is 3 or less per 100,000 people.

New Hampshire’s score is 61.19, making it the sixth-safest state in the U.S. New Hampshire ranks fourth for Personal & Residential Safety and fifth for Emergency Preparedness. Additionally, New Hampshire has the third-fewest fatalities per 100 million vehicle miles of travel and the fourth-fewest assaults per capita. As far as Financial Safety, New Hampshire has the second-highest percentage of adults with rainy-day funds and has one of the lowest unemployment rates in the country of 2.6%.

Iowa is the seventh-safest state in the U.S. with a scare of 60.85. Iowa ranks second for Financial Safety and third for both Personal & Residential Safety and Road Safety. Iowa has the fifth-lowest share of uninsured people in its population. Some of Iowa’s safest cities are Sioux Center, Norwalk, and Eldridge, which are also some of Iowa’s wealthiest cities. It takes some extra resources and funds to make sure communities have proper safety measures.

Hawaii is the eighth-safest state with a score of 60.29. Hawaii ranks fourth for Emergency Preparedness and sixth for Financial Safety (which is important since Hawaii also has the highest cost of living in the U.S.). Furthermore, Hawaii has the fourth-highest percentage of adults with rainy-day funds and has one of the lowest unemployment rates in the country of 2.7%. Additionally, Hawaii has the second-lowest share of uninsured people in its population.

Massachusetts’s score of 58.98 makes it’s the ninth-safest state in the U.S. Massachusetts ranks first for Financial Safety and second for Road Safety. Furthermore, Massachusetts has the fewest fatalities per 100 million vehicle miles of travel and the fewest share of uninsured people in its population. Massachusetts also has the fourth-lowest bullying incidence rate.

Finishing the top ten safest states in the U.S. is Wyoming with a score of 57.31. Wyoming ranks ninth for Personal & Residential Safety. Wyoming has the smallest population in the country, and with small populations generally comes small crime rates. Residents say you could keep your car keys in the ignition and not have to worry about your car being stolen. Generally, everyone gets along and looks out for one another.