These are some of the best public schools in the country. (Pictured: Whitefish Bay High School in Wisconsin). Google Maps There are nearly 100,000 elementary, middle, and high schools in the US. The best districts are coveted, and a high-caliber school system can be a key factor when a family decides to relocate to one city over another.

Niche, a company that researches and compiles information on schools, provides a ranking of the best school districts in America— that is, the collective quality of all the schools in a district determined by a grade of overall experience.

The ranking includes key factors such as the strength of academics, health and safety, diversity, and the quality of teachers. Read more about the methodology here.

Business Insider searched the ranking to find the best in each state. Sufficient data wasn't available for Hawaii, so it does not appear on this list.