BOSTON (CBS) — Massachusetts is the best state to raise a family, according to a new study.

WalletHub released their ranking of all fifty states from best to worst places to raise a family on Monday.

READ MORE: Nor'easter To Bring Up To 2 Feet Of Snow And Possibly Blizzard Conditions Saturday

The main categories the report researched included family fun, health and safety, education and child care, affordability, and socio-economics.

A total of 20 points could be earned from each of the five categories and then the scores were combined. Massachusetts received a total score of 63.37.

READ MORE: Distraction Brewing Company, Local Artists Team Up To Support Charity

New Hampshire and Vermont also made it to the top five.

While the Bay State finished first overall, it was ranked 3rd for infant-mortality rate, 19th for median family salary, and 28th for the violent-crime rate.

MORE NEWS: 'Long Overdue': Peabody, Sudbury Plow Drivers Preparing For Saturday's Nor'easter

Check out the study’s complete results.