Six cities in Massachusetts rank among the 20 best small cities in the nation, according to Wallethub’s recent study, “2019’s Best Small Cities in America.” 

The personal finance site took more than 1,200 U.S. towns and cities with a population between 25,000 and 100,000 and analyzed factors among five key dimensions - affordability, economic health, education and health, quality of life and safety.

Leawood, Kansas, topped the list. Here’s the six that ranked in Massachusetts: 

Arlington - #18

Newton - #16

Needham- #11

Milton - #7

Lexington - #6

Melrose - #4