The darker the purple, the higher the median household income.

Location, location, location is still the most important factor for those considering a move, according to newly released research from Trulia. That’s because geography doesn’t just determine the price of housing; it also affects costs related to utilities, travel time and “non-housing essentials.”

The online real estate and rental listing company released lists of the most and least affordable places to live in the United States based on the percent of monthly middle-class income spent on housing, commuting and utilities.

The most affordable places to live, according to the company:

  1. Akron, OH
  2. Dayton, OH
  3. Louisville, KY
  4. Kansas City, MO
  5. Wichita, KS
  6. Little Rock, AR
  7. Cleveland
  8. Toledo, OH
  9. Syracuse, NY
  10. St. Louis

The least affordable places to live:

  1. San Francisco
  2. Los Angeles
  3. Miami
  4. San Diego
  5. Orange County, CA
  6. San Jose, CA
  7. Ventura County, CA
  8. Honolulu
  9. Oakland, CA
  10. Fairfield County, CT

Trulia released its data a day before the U.S. Census Bureau released the latest data on median income from its American Community Survey (see graphic).

For 2014, the bureau found, median household incomes were lower than the U.S. median ($53,657) in 28 states and higher in 18 states and the District of Columbia. Rhode Island, Vermont, Iowa and Pennsylvania median household incomes did not have a statistically significant difference from the United States as a whole.

Maryland had the nation’s highest median household income in 2014, $73,971. New Jersey ($71,919), the District of Columbia ($71,648) and Alaska ($71,583) followed, but the Census Bureau said that these figures were not statistically different from one another. Mississippi had the lowest median household income, at $39,680.