The answer depends on your mortgage rate, investment returns, and how much risk you can handle
Paying off your mortgage early feels like winning. Investing the same money feels like building wealth. The real choice is whether the may provide return of eliminating your mortgage beats the uncertain but historically higher returns of the stock market — and whether you sleep better with less debt or more invested assets.
If your mortgage rate is below 4%, the math usually favors investing. If it's above 7%, paying off the mortgage often makes more sense. Between those numbers, the decision hinges on your comfort with market volatility, how long you plan to stay in the home, and whether you have other high-interest debt.
This is not a question with one right answer. It's a question about your specific situation and what trade-offs you're willing to make.
Key Takeaways
- A mortgage rate below 4% usually means investing beats paying off early, because stock market returns have historically exceeded that rate over long periods.
- A mortgage rate above 7% usually means paying off the mortgage is the safer choice, because you're may provide that return and don't face market risk.
- Paying off your mortgage reduces monthly cash flow but eliminates a debt obligation; investing keeps cash flexible but exposes you to market downturns.
- If you have credit card debt or other high-interest loans, paying those off first almost always makes more sense than either mortgage payoff or investing.
- Your age, job stability, and how long you'll stay in the home matter as much as the numbers do.
How mortgage rates and investment returns actually compare
Your mortgage rate is a may provide return on your money — but in reverse. If you pay off a 5% mortgage, you're earning a may provide 5% "return" by not paying that interest. If you invest instead, you're betting that your investments will return more than 5% over time.
The stock market has returned roughly 10% per year on average over the past 50 years, but that's an average. Some years it returns 20%. Some years it loses 30%. A bond fund might return 4% to 5% with much less volatility. A high-yield savings account might return 4% to 5% with almost no volatility.
The gap between your mortgage rate and what you could earn investing is called the spread. A wider spread favors investing. A narrow or negative spread favors paying off the mortgage. If your mortgage is 3% and you can reliably earn 8% in the stock market, the spread is 5% — investing wins. If your mortgage is 7% and you can earn 5% in bonds, the spread is negative — paying off wins.
But this math assumes you'll actually invest the money and not spend it, and that you can tolerate watching your investment account drop 20% in a bad year without panic-selling.
The tax advantage of keeping your mortgage
If you itemize deductions on your taxes, mortgage interest is deductible. This lowers your actual cost of borrowing. A 5% mortgage might cost you only 3.5% after the tax deduction, depending on your tax bracket.
This is one reason financial advisors often recommend investing instead of paying off a low-rate mortgage: the government is effectively subsidizing your borrowing. That subsidy disappears if you pay off the loan.
However, most homeowners don't itemize anymore. The standard deduction is high enough that itemizing only makes sense if you have substantial mortgage interest, property taxes, and charitable donations. Check your own tax situation before counting on this advantage.
What paying off your mortgage actually costs you
Paying off your mortgage early means that money is no longer available for emergencies, home repairs, or opportunities. If your roof fails next year and you've put all your spare cash into mortgage principal, you'll have to borrow again or drain savings.
It also locks your money into an illiquid asset. You can't easily access the equity you've paid down without refinancing or taking out a home equity loan, both of which cost money and time. If you need cash in a hurry, you're stuck.
The psychological benefit is real, though. Many people sleep better with less debt, even if the math says investing wins. That's not irrational — it's a legitimate part of your decision. If carrying a mortgage causes you stress, the peace of mind from paying it off might be worth earning slightly lower returns.
What investing instead actually costs you
Investing means you keep your mortgage payment obligation for 15 or 30 years. If you lose your job or face a major expense, you still owe that payment. You can't pause it or reduce it without refinancing.
It also means living with market risk. If you invest aggressively and the market drops 40%, your invested money is worth less — but your mortgage payment stays the same. You might be forced to sell investments at a loss to cover the payment, which locks in losses.
The math works only if you actually stay invested through downturns. Many people don't. If you'll panic-sell when the market drops, paying off your mortgage might be the better choice for you, even if the long-term numbers favor investing.
When to prioritize paying off your mortgage
Pay off your mortgage first if your rate is above 6%, you're within five years of retirement, or you're uncomfortable with market volatility. You should also prioritize mortgage payoff if you have high-interest debt like credit cards — that almost always comes first.
If you're self-employed or your income is unstable, paying down your mortgage reduces your monthly obligations and gives you more breathing room in lean months. The may provide return of eliminating that payment is worth more to you than the uncertain returns of investing.
If you're nearing retirement and want to enter it debt-free, paying off your mortgage makes sense even if the math slightly favors investing. Retirement is when you stop earning, so having no mortgage payment is a real advantage.
When to prioritize investing instead
Invest if your mortgage rate is below 5%, you're young (more than 15 years from retirement), and you can tolerate seeing your portfolio drop 30% without selling. You should also invest if you don't have a fully funded emergency fund yet — that comes before either mortgage payoff or investing.
If you're maxing out retirement accounts like a 401(k) or IRA, you're already investing. The question then becomes whether to invest in taxable accounts or put extra money toward the mortgage. For most people, maxing retirement accounts first makes sense because of the tax advantages.
If you have a stable income and a long time horizon, the historical math strongly favors investing. You're taking advantage of compound growth over decades, which is where investing's advantage over mortgage payoff becomes largest.
A practical middle path: split the difference
You don't have to choose one or the other. Many people put extra money toward both: accelerating mortgage payments some months and investing other months, or splitting a bonus between the two.
This approach lets you reduce your mortgage faster than the minimum while still building invested assets. It also gives you flexibility — if the market crashes, you can pause investing and focus on the mortgage. If you need cash, you have investments to draw from.
The downside is that you're not optimizing for either goal. You'll pay off the mortgage slower than if you focused entirely on it, and you'll build less invested wealth than if you focused entirely on investing. But for many people, the psychological benefit of progress on both fronts outweighs the mathematical inefficiency.
Frequently Asked Questions
What if my mortgage rate is exactly 5%?
At 5%, the math is roughly neutral — mortgage payoff and investing are close to equivalent. The decision comes down to your comfort with risk and your life stage. If you're risk-averse or near retirement, pay off the mortgage. If you're young and comfortable with volatility, invest.
Should I pay off my mortgage if I'm close to retirement?
Yes, usually. Entering retirement with no mortgage payment is a significant advantage because you're no longer earning income. Even if the math slightly favors investing, the security of a paid-off home often outweighs it. You should still maintain an emergency fund separate from your home equity.
Does it matter if I have a 15-year vs. 30-year mortgage?
A 15-year mortgage has a higher monthly payment but you pay less interest overall. A 30-year mortgage has a lower payment but more total interest. If you're deciding whether to pay extra toward a 30-year mortgage, the same math applies: compare your rate to investment returns. The loan term itself doesn't change the decision.
What if I can't decide and I'm losing sleep over it?
Your emotional comfort matters. If the idea of carrying a mortgage stresses you, paying it off is worth the slightly lower mathematical return. If the idea of not investing aggressively stresses you, invest. The best financial plan is one you'll actually stick with, not the one that's theoretically optimal on a spreadsheet.