Houston is the No. 29 least-affordable housing market in the country, according to the RealtyHop Housing Affordability Index.
The index measures projected median incomes, median for-sale home listings, taxes and other data to calculate the share of median income needed to afford the median home. It then ranks the 100 largest cities in the U.S. in terms of affordability.
A Houston household earning the median annual salary of $57,800 would need to spend 37% of that salary to afford the median-priced home of $334,000, the index said.
Miami surpassed New York City this month as the least-affordable housing market in the United States. The index calculates a Miami household earning the median annual salary of $43,400 would need to contribute 78.71% of its income to own the median-priced home of $589,000.
The top 5 least-affordable cities after Miami and New York are Los Angeles, Newark, N.J., and Jersey City, N.J.
Other Texas cities to crack the top 50 are Austin (No. 21), Dallas (22), Irving (44) and Fort Worth (46).
Twelve of the top 18 least-affordable cities in the nation are in California.
The most affordable cities are, in order: Wichita, Kan.; Fort Wayne, Ind.; Detroit; Lubbock, Texas; and Cleveland.