BOSTON (CBS) – The Massachusetts school system is second to none, according to a new survey.

WalletHub ranked the school systems of every state across 21 key measures, and found that Massachusetts is far ahead of the pack. In fact, three New England states come in the Top 5, with New Hampshire at No. 3 and Vermont in fifth.

READ MORE: New Memorial In Worcester Honors Firefighters Killed In Line Of Duty

Bay State schools rank first in both quality and safety, according to WalletHub. It also takes the top spot when it comes to math and reading test scores, median ACT score and has the lowest percentage of threatened or injured high school students.

READ MORE: 2 Extricated From Car After Crash In Medford

New Jersey schools ranked second in the study. The worst school system in the country belongs to Louisiana, WalletHub says.

Massachusetts also finished first in WalletHub’s school survey in 2016. 

MORE NEWS: 'Loss Of A Beautiful Boy': Candlelight Vigil Held In Memory Of 5-Year-Old Elijah Lewis

See the full report here.