The median sale price for a single-family home in Massachusetts climbed in May to a number that might be a fitting representation of the devilish process of trying to buy a home here: just more than $666,000.

Real estate market analysts at The Warren Group said Tuesday that there were 4,010 single-family home sales in the Bay State last month, a 2.4% increase over May 2024's sales. The median price paid for those homes was up 4.7% year-over-year basis to hit $666,125, the organization said.

“We talk a lot about lack of inventory, which is a problem, but still the state has seen an increase in the number of single-family sales since last year, as well as a rise in the median sale price,” Cassidy Norton, associate publisher of The Warren Group, said. “Median sale prices tend to follow a curve throughout the year, with the high point usually in June, so buyers who can hold on may see deals later in the year.”

The most affordable homes in Massachusetts this year were selling in the four western-most counties, with the year-to-date median home sale price at $415,000 in Hampshire County and lower medians in Franklin ($348,500), Hampden ($320,000) and Berkshire ($325,000) counties.

So far in 2025, there have been 14,358 single-family home sales in Massachusetts, a 2.2% increase over the same five months of 2024. During that same span, the median price of a single-family home is up 5.1% to $620,000 so far this year, The Warren Group said.

Massachusetts has been coming to grips in recent years with its housing shortage, estimated to be 220,000-plus units by the end of the decade, and many Beacon Hill politicians routinely say the high cost of housing is repelling young people from the Bay State. A 2024 housing law included tools and resources meant to spur production of housing in an attempt to make it both more available and more affordable.

On the condominium side of the market, The Warren Group said there have been 7,323 condo sales in the first five months of 2025, a 1.2% increase over 2024. The year-to-date median condo sale price is up 1.9% from the same checkpoint in 2024 to $539,000.

“Similar to single-family sales, condo sales have increased over 2024, but price growth has been more constrained,” Norton said. “The median condo sale price in May 2025 was the same as in May 2024.”