NEW JERSEY -- In a new study, WalletHub rated the most educated states in the country and ranked New Jersey in the top 10. The Garden State tied with Connecticut for fourth in the percentage of the population that holds a bachelors degree and topped the list for smallest gender gap.

The personal finance website examined factors including: educational attainment, school quality, and achievement gaps between genders and races. WalletHub compared all 50 states across 18 total metrics. The data set ranges from share of adults aged 25 years and older with at least a high school diploma to average university quality.

Overall Rank* State Total Score ‘Educational Attainment’ Rank ‘Quality of Education’ Rank 
1 Massachusetts 81.84 1 1
2 Maryland 76.8 3 2
3 Colorado 71.24 2 22
4 Vermont 70.61 5 8
5 Connecticut 70.47 4 9
6 Virginia 68.53 7 6
7 Washington 66.95 9 10
8 New Hampshire 66.56 6 27
9 New Jersey 66.28 10 5
10 Minnesota 65.97 8 18

Released on Martin Luther King Day, the study found that New Jersey ranked 34th in the racial gap in educational attainment category. This factor was calculated as the difference between the percentages of black and white bachelors degree holders, according to Diana Polk of WalletHub.

Sign Up for Scotch Plains/Fanwood Newsletter
Our newsletter delivers the local news that you can trust.

On the bright side, New Jersey had the best score related to the gender gap in educational attainment. The rating was determined as the difference between the percentages of female and male bachelor's degree holders, according to Polk.

New Jersey's rank in university quality, No. 25, was based on WalletHub's college and university rankings. It was calculated as the weighted average score by undergraduate enrollment. is Scotch Plains-Fanwood’s only free daily local news source. Sign up for our free daily eNewsletter and “Like” us on Facebook and Twitter @SPF_TAP. Download the free TAPinto App for iPhone or Android.