How much house you can afford depends on where you live

In this Tuesday, March 6, 2018, photo homes stack up in a neighborhood in San Jose, Calif. NerdWallet calculated affordability for 172 metropolitan areas by comparing the median annual household income and the monthly principal-and-interest payment for a median-priced single-family home and found that the least affordable homes are in the San Jose. (AP Photo/Marcio Jose Sanchez)

Your ability to own a home is affected by where you live. Even people with modest incomes can afford homes in Decatur, Illinois, the metropolitan area with the nation’s most affordable houses. At the other end of the affordability spectrum is the San Jose, California, metro area, where high incomes are outmatched by stratospheric home prices.