By CBS Baltimore Staff

BALTIMORE (WJZ) — A new study ranked Maryland the second most educated state in the entire country.

The WalletHub study looked at 18 different metrics covering education quality and attainment to determine its rankings. Maryland came in with the best educational quality in the country, second in terms of the percentage of residents with graduate or professional degrees and third in the percentage of residents with a bachelor’s degree.

READ MORE: National Weather Service Confirms EF-1 Tornado Hit Bowie, Second Tornado In Anne Arundel County

Massachusetts took the top spot, while Connecticut came in third. Vermont and Colorado round out the top five.

READ MORE: ‘It’s Not Working,’ Council Member Frustrated At Relentless Violence In Baltimore As Police Defend Crime Plan

At the bottom of the list is West Virginia, followed by Mississippi, Louisiana, Arkansas and Alabama.

Last year, WalletHub ranked the Washington, D.C., metropolitan area, including the Maryland suburbs, the third most educated city in the country. Baltimore came in at number 22.

MORE NEWS: Civil Rights Lawyer Ben Crump Joins Lawsuit Against Baltimore City Public Schools

Get alerts from WJZ first! Follow WJZ on Facebook and download the app.

CBS Baltimore Staff