The top 10 most- and least-educated cities in the US

San Francisco, California
coolbiere photograph | Moment Open | Getty Images

On Tuesday, WalletHub released a new ranking of the most and least educated cities in the U.S.

The company's analysts created the list using nine weighted metrics to compare the cities. One looked at the share of adults over 25 with a bachelor's degree. Others assessed education gaps based on gender and race. Larger percentage differences led to a lower education ranking.

The importance of education is no secret. Studies have reliably shown that going to school improves your health, makes you happier and raises your income.

The Economic Policy Institute found that education is also correlated with general economic prosperity on a larger scale. According to their report, investments in education attract high-wage employers looking to hire people who know how to think. Residents of those areas go on to make more money and enter higher tax brackets, and the local economy receives an influx of capital.

Here are the most and least educated cities across the U.S.

Most educated cities

  1. Ann Arbor, Michigan
  2. Washington, D.C.
  3. San Jose, California
  4. Durham, North Carolina
  5. Madison, Wisconsin
  6. Boston, Massachusetts
  7. Provo, Utah
  8. San Francisco, California
  9. Austin, Texas
  10. Tallahassee, Florida
Professionals in these cities take home the most money after rent and taxes

Least educated cities:

  1. McAllen, Texas
  2. Brownsville, Texas
  3. Visalia, California
  4. Bakersfield, California
  5. Modesto, California
  6. Fresno, California
  7. Salinas, California
  8. Hickory, North Carolina
  9. Lafayette, Louisiana
  10. Beaumont, Texas

Like this story? Like CNBC Make It on Facebook.

Don't miss: Here's how much millennials are earning in 11 major US cities

Here are the 10 best cities to start your career