Here’s how much the same mortgage costs now, compared to last year

The interest rate on a mortgage has risen by 2% in the last year. This increases the monthly cost of a financing a home by hundreds of dollars.

Here’s how much the same mortgage costs now, compared to last year

Fewer people are shopping for homes, a sign that homebuyers are getting priced out of the market due to surging mortgage rates, which spiked to an average of 5% this week for 30-year fixed-rate mortgages.

The fixed-rate mortgage rate jumped 0.28% in the last week alone, reaching a high not seen since February 2011, according to government-mortgage company Freddie Mac. A year ago, the 30-year rate averaged 3.04%, which is nearly 2% lower than the rate now.

That 2% difference can add hundreds of dollars to the monthly cost of financing a home, making it unaffordable for some potential buyers. 

For a home worth $408,100 — the median home price in the U.S. — with a 20% down payment, 30-year fixed mortgage and a 5% interest rate, monthly mortgage costs would come to $1,752.62, according to CNBC calculations.

But for the same home purchased last year, when interest rates were 3.04%, monthly mortgage payments would only come to $1,383.51, according to CNBC calculations. That's nearly $400 less per month, and more than $4,400 less per year.

There are signs the market is cooling somewhat

While home prices remain elevated, there are some indications that increased mortgage rates are starting to level out the white-hot housing market.

Mortgage purchase applications were down 6% from a year earlier, for the four-week period ending April 10, according to a recent Redfin study

Redfin's Homebuyer Demand Index, which measures home tour requests for properties listed for sale, has also declined 3% in the past four weeks, compared to a 5% increase during the same period last year. This suggests that there are fewer buyers in the market, which could lead to an easing of home price increases if the trend continues. 

Don't miss: A gallon of gas was 65 cents in 1978—here's how much it cost every year since