To hear local Realtors tell it, losing a few bidding wars is a rite of passage for any prospective homebuyer in Rochester, N.Y.

In the western New York city, homes typically go from listed to under contract in a matter of days. A well-kept home can command dozens of offers. Listing prices might as well be starting bids. Agents often advise clients surfing online listings to set their price filters well below what they actually hope to pay, to account for the inevitable bidding wars.

By many metrics, Rochester, a city of 200,000 on the banks of Lake Ontario, has the most competitive housing market in the country.

Zillow’s market heat index, which measures factors like time on market, interest in active listings, and price cuts, ranks Rochester as a tougher place to buy a home than San Francisco, San Jose, Boston, and New York. The index considers any reading over 70 to be a strong seller’s market. Rochester scores a 146.5.

“After one or two offers, they kind of get the hang of it, and then they listen to my advice,” said Talha Shahid, a real estate agent in the city. He tries to prepare his buyers for the reality that a home listed at $300,000 will likely sell for $350,000, and that any offers with inspection contingencies usually aren’t competitive.

Learn more: Is now a good time to buy a house?

So, how did a city whose population peaked in 1950 end up with one of the most cutthroat real estate markets in the US? The answer, somewhat counterintuitively, has to do with its affordability.

The median home in the metro area of about 1 million sold for $225,000 at the end of March, according to the Greater Rochester Association of Realtors. That’s up 12.5% from a year earlier, but still cheap enough to be achievable for buyers earning $60,000 to $80,000.

The area’s median household income was around $67,000 in 2022, and major employers span several relatively well-paying industries like healthcare and higher education. Paychex, a publicly traded payroll provider, is headquartered in the city, while the corporate offices of East Coast grocery store chain Wegmans are in a nearby suburb.

Read more: How much house can I afford with a $70,000 salary?

“We’re catching up with the rest of the country,” said Jonathan Long, a Rochester-based mortgage loan consultant with 1st Priority Mortgage. “The housing market is a little tough, and mortgage payments are a little tough right now, but all in all, I would still say it’s a super affordable place to live.”

‘Nothing out there’

Meanwhile, the region has struggled for years with a deep inventory shortage. There were just 913 homes for sale at the end of March, down 8.1% from a year ago, according to the Realtors association. On average, a home spends just eight days on the market.