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: Baltimore City Schools To Offer Weekly COVID-19 Testing For Students, Staff

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

READ MORE: Marijuana Legalization Proposed In Maryland Legislature

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: External Cameras On Howard County Schools Buses Will Catch Drivers Who Pass Illegally

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

CBS Baltimore Staff