For the creation of this ranking, Niche researchers factored in good public schools, affordable costs of living, low crime rates and the overall satisfaction of their residents, culling data from the U.S. Department of Education, the Census Bureau, the FBI and public-sentiment polling. Niche also considered local commutes; diversity; health and fitness of its residents; jobs, and housing costs.