While some housing data has been uneven recently, one thing is crystal-clear: it’s a seller’s market.

In March, Americans who sold homes realized the highest price gains since December 2007, data firm RealtyTrac said Wednesday. On average, homeowners sold for $30,500 more than their purchase price, an average 17% price gain.

Of course, all real estate is local. In San Francisco, seller gains averaged 72%, while in another hot spot, Boulder, Colorado, the average gain was 53%.

And 36% of markets across the country hit new all-time price peaks in 2015 and 2016. In March, seven markets touched new highs:

Market Median price Boulder, Colo $451,250 Denver, Colo $325,200 Portland, Ore $300,000 Fort Collins, Colo $295,000 Austin, Tx $292,500 Greeley, Colo $257,500 Cincinnati, Oh $147,700

The pricing power sellers have in this inventory-starved market is perhaps even more stark than the data show. As RealtyTrac points out, banks are seizing this opportunity to unload many distressed properties.

Bank-owned properties sell for a median price that’s 40% lower than the overall median sales price nationally, and the share of sales that were bank-owned rose during the quarter, to 9.4% of the total, from 8.5% in the last three months of 2015.

Despite the strong price gains across the country, there are still markets that are struggling. Sellers in 19 markets lost money compared to their purchase prices, led by Rockford, Illinois, where sales prices were an average 11% lower than purchase prices.

RealtyTrac also noted another interesting development in March home sales: homeowners who sold had owned their properties an average of 7.67 years, up 4% compared to the average of 7.37 years in March 2015.