In the past year, affordability for homebuyers has fallen in 89 of the 100 largest housing markets thanks to rising home prices and stagnant income growth in many metros. The cost of commuting and utilities can also play a big role depending on where you live. California continues to be a tough housing market for middle-class homebuyers. Seven of the 10 least affordable housing markets are located in the golden state, with Miami, Fairfield County, and Honolulu being the only non-California metros to make the list. In these least affordable markets, middle-class households would need to spend at least 42% of their monthly income to buy the median priced home. But in pricey San Francisco, that number jumps to an incredible 77% of income. San Jose, Miami, Orange County, San Diego, and Los Angeles follow with middle-class homebuyers needing to fork over at least 50% of their monthly income on housing.