The good news is that Dallas doesn't have anywhere close to the most expensive housing in the country.

The bad news is our home prices are still far from cheap — and costs are rising, a new report from mortgage trend researchers at HSH.com found.

According to the report, you need to earn $54,764 a year to afford a median-priced home in Dallas-Fort Worth, up $2,938 from last quarter.

That increase stems from rapidly rising housing prices: The median home cost $232,000 during the most recent financial quarter, which is a 10.5 percent increase from last quarter and a 7.9 percent increase since the same time last year.

D-FW ranked near the middle of the pack for affordability, compared with 26 other metro areas around the country. Affordability here came in just above Baltimore and just below Philadelphia.

RELATED: Dallas fell behind in one economic stat — but that doesn't mean you're getting paid less

The least affordable metro areas were expensive ones in California, with San Francisco topping that list.

The most affordable metro area was Pittsburgh, where you'd need to make $32,390 to afford a median-priced home.

The other Texas metro areas that were ranked also fell somewhere near the middle: In Houston, you'd need to make at least $52,274 to afford a median-priced home, and in San Antonio, that number is $48,752.

The study factored in how much you'd need to pay for things like taxes, interest and insurance, as well as the purchase price.

RELATED: Is Texas one of the worst places to work for new and expecting parents?

Here's a map showing how different cities stack up: