(Bloomberg) -- U.S. mortgage rates were little changed, holding at the highest level since April 2010.

The average for a 30-year loan was 5.10%, down slightly from 5.11% last week, Freddie Mac said in a statement Thursday.

The U.S. housing market, overheated and starved of listings, is getting tested by mortgage rates that have climbed at the fastest rate in decades. The 30-year average is up almost two percentage points from the end of last year. While the added costs are pushing out some would-be buyers, competition remains fierce, fueling bidding wars and sending purchase prices soaring.

Read more: Would-Be U.S. Homebuyers Eye Second Jobs to Afford Down Payments

With inventory limited, sales are beginning to stall. A measure of contracts to buy previously owned homes decreased in March for a fifth straight month, reaching the lowest level since May 2020, the National Association of Realtors reported this week. 

The last time mortgage rates were this high, the median sales price of an existing U.S. home was $172,300, data from the Realtors group show. It’s now more than double that, after reaching a record $375,300 last month.

©2022 Bloomberg L.P.