To put in mildly, mortgage rates have moved dramatically in the last three years: plunging to record lows during the pandemic, then doubling in 2022 to reach 20-year highs. Now, they’ve backed off a bit, and seem poised to remain steady, if still elevated — especially in light of the Federal Reserve’s decision not to raise interest rates at its June 14 meeting.

But what influences mortgage rates in the first place? The Fed? Inflation? Something else? The answers are complex, but the moves make more sense when you learn which factors drive mortgage rates — and which don’t. Here’s a quick crash course that could save you money on a new mortgage or a refinance.

1. It (sort of) begins with the Federal Reserve

The Federal Reserve doesn’t set mortgage rates, but the central bank’s decisions definitely influence mortgage rates. As the coronavirus pandemic hammered the U.S. economy in 2020, the Fed said it would keep rates near zero for the foreseeable future — and mortgage rates plunged. As the Fed began hiking rates in 2022, mortgage rates rose in anticipation of those moves from the central bank.

The Fed’s rate decisions typically drive shorter-term products, like credit cards or home equity lines of credit, says Greg McBride, CFA, Bankrate’s chief financial analyst. Meanwhile, mortgage rates move based on longer-term interest rates.

“It’s the longer-term outlook for economic growth and inflation that have the greatest bearing on the level and direction of mortgage rates,” McBride says. “Because mortgages are packaged together into securities and sold as mortgage bonds, it’s the return investors demand to buy these bonds that dictates the general level of mortgage rates.”

Mortgage rate levels are priced above that of the 10-year U.S. Treasury, considered by investors to be a risk-free investment. The spread in pricing between mortgage rates and the 10-year Treasury reflects the risk that investors bear for holding those bonds, McBride adds.

“It may seem counterintuitive that 30-year mortgage rates are priced relative to yields on 10-year Treasuries,” McBride says, “but when these 30-year mortgages are packaged together into bonds, on average, they tend to pay out over a 10-year period as homeowners refinance, move or otherwise pay off their loans early.”

2. Economic conditions play a role

What happens in the economy, and how those events affect investors’ confidence, influences mortgage pricing. Good and bad economic news have an inverse impact on the direction of mortgage rates.

“Bad economic news is often good news for mortgage rates,” McBride says. “When concern about the economy is high, investors gravitate toward safe-haven investments like Treasury bonds and mortgage bonds, pushing bond prices higher but the yields on those bonds lower.”

Good economic news — increases in consumer confidence and spending, robust GDP growth and a solid stock market — tend to push mortgage rates higher. That’s because the higher demand means more work for lenders who only have so much money to lend and manpower to originate loans, says Jerry Selitto, president of Better.com, an online mortgage lender. This effect was on full display in late 2021 and early 2022 — with job growth strong and the economy in recovery, mortgage rates spiked.

3. Inflation, the long-forgotten foe

Inflation is the increase in the pricing of goods and services over time, and it’s an important benchmark when measuring economic growth. Rising inflation limits consumers’ purchasing power, and that’s a consideration lenders make when setting mortgage rates.

Lenders have to adjust mortgage rates to a level that makes up for eroded purchasing power when inflation rises too quickly. After all, lenders still need to make a profit on the loans they originate, and that becomes more difficult when consumers’ buying power is diminished.

Likewise, inflation is a consideration investors make in the prices they’re willing to pay, and the returns they demand, on mortgages and other bonds they purchase on the secondary market.

While inflation held at low levels for decades, trillions of dollars in federal stimulus issued in 2020 led to sharp price increases in 2021 and 2022. Inflation spiked to its highest level in four decades, surpassing 9 percent year-over-year in June 2022. That leads back to the first item on our list — soaring prices forced the Fed to clamp down by raising rates a record-setting 10 consecutive times in the last 15 months. It’s since retreated to 4 percent in May, which encouraged the Fed to put rate hikes on pause in June. But the specter of high prices remains haunting.

 “Inflation, inflation, inflation – that’s really the hub on the wheel,” McBride says. 

4. Your financial and credit picture

The first three items on the list are all about the broader economy. This factor focuses on you and your creditworthiness.

Lenders want to feel confident that you can and will repay your mortgage, and they do that by assessing your risk of default. Your credit score is the most crucial indicator of your ability to manage debt and pay bills on time. Borrowers with lower credit scores pay higher interest rates and have more-limited loan options if their credit is less than stellar.

Lenders also pay close attention to your debt-to-income, or DTI ratio. Your DTI ratio is the sum of all of your monthly debts (including the new monthly mortgage payment) in relation to your gross monthly income.

Generally, the higher your DTI ratio, the riskier you appear (on paper) to a lender — and the higher your interest rate will be. As a general rule of thumb, conventional lenders want to see your DTI ratio stay below 43 percent, but some loan programs will consider borrowers with a DTI ratio as high as 50 percent.

As mortgage rates fall, your DTI ratio falls, too, because a lower rate will drop your monthly mortgage payment, which is included in your DTI ratio calculation. As a result, you could afford to buy more house, Selitto says.

5. Origination costs (so lenders can keep the lights on)

The final item on our list is not about the economy or the borrower but about lenders’ bottom lines. The cost of originating mortgages includes tasks such as running a credit check, underwriting, a title search and the many other steps a lender must take to process a loan.

Tighter lending regulations implemented after the 2008 housing crash have cut into lenders’ profits as they’ve changed their systems to comply with new regulations, Selitto says. That’s pushed the cost of originating mortgages higher.

In the fourth quarter of 2021, the cost to originate a mortgage rose to $9,470 per loan, up from $9,140 per loan the previous quarter, according to the Mortgage Bankers Association. That’s a steep increase from average production costs of $6,758 per loan lenders averaged from 2008 through 2021.

“In setting prices, lenders have to look at the cost of origination and decide what margins they want above those costs,” Selitto says. “The more efficient a manufacturer of mortgages can be, the more competitive they are on pricing.”

Bottom line

When demand for mortgages surges, lenders may have to account for the spike in — and the processing costs involved — by hiking mortgage pricing. Likewise, when demand is flat or falls, lenders have to adjust pricing to attract business and keep the lights on, Selitto says.

Mortgage rates are always a moving target. They change hourly, daily and weekly, and are difficult to time perfectly. If you’re weighing a home purchase or refinance, it’s a good idea to shop with multiple lenders to compare mortgage rates and find out when you should lock in your loan.