Skip to main content

Should I Pay Off My Mortgage or Invest?

Last updated: March 21, 2026

TLDR

At current mortgage rates (6-7%), the math is genuinely close. Paying off a 7% mortgage is a guaranteed 7% return. Expected stock market returns of 7-10% historically are higher but not guaranteed. For high earners, the decision depends more on: tax bracket, whether you've maxed tax-advantaged accounts, psychological value of being debt-free, and where you are in the loan amortization schedule.

DEFINITION

After-Tax Mortgage Rate
The effective cost of your mortgage after accounting for the mortgage interest deduction. For homeowners who itemize deductions, mortgage interest reduces taxable income. At a 37% marginal rate and a 7% mortgage, the after-tax rate is approximately 4.4% (7% × (1 - 0.37)). However, the 2017 SALT cap and higher standard deduction mean fewer homeowners benefit from itemizing, making the deductibility argument weaker than it once was.

DEFINITION

Opportunity Cost
The return you forgo by choosing one option over another. The opportunity cost of paying down a mortgage is the expected investment return on those dollars. If you pay $1,000 extra toward a 7% mortgage and the stock market returns 9%, you've gained 7% but foregone 9% — a 2% opportunity cost.

DEFINITION

Sequence of Returns Risk
The danger that a major market drawdown early in a period (like early retirement) permanently impairs your portfolio. Paid-off real estate has no sequence of returns risk — its value doesn't fluctuate with public markets. This is a real argument for mortgage payoff as retirement approaches.

The Decision That Actually Depends on Context

Few personal finance questions generate more confident-sounding wrong answers than “should I pay off my mortgage or invest?” Both sides have legitimate arguments that apply under different conditions.

The honest answer: at current mortgage rates (6-7%), the math is genuinely close and the right answer depends on your specific situation. At 2020-2021 mortgage rates (2.5-3.5%), invest is the obvious answer. At 8-10% mortgage rates, pay it off is more compelling.

The Pure Math

The core calculation is simple: compare your after-tax mortgage rate against your expected after-tax investment return.

Mortgage rate after tax: If you’re at 7% and you itemize (getting the mortgage interest deduction at a 37% marginal rate), your after-tax rate is approximately 4.4%. If you don’t itemize, it’s 7%.

Expected investment return: The S&P 500’s historical annualized nominal return has been approximately 10% before fees and taxes. After taxes on dividends and capital gains, the expected net return for a high earner in a taxable account is roughly 7-8%.

At a 7% after-tax mortgage rate vs. 7-8% expected after-tax investment return: the spread is 0-1%. This is close enough that the uncertainty of investment returns matters. Paying off the mortgage is guaranteed. Investment returns are expected.

At a 3% after-tax mortgage rate vs. 7-8% expected return: the spread is 4-5%. Investing wins on expected value by a wide margin, and the certainty premium doesn’t justify giving up that spread.

Why Tax-Advantaged Accounts Change the Equation

The analysis above assumes you’ve already maxed every tax-advantaged account. For high earners, this is critical: 401(k), backdoor Roth, HSA, and mega backdoor Roth (if available) should all be maxed before you’re choosing between mortgage paydown and taxable investing.

The tax savings on 401(k) contributions at the 35-37% bracket are immediate and guaranteed. A $23,500 pre-tax 401(k) contribution saves $8,225-$8,695 in federal income tax immediately. No investment or mortgage strategy produces a guaranteed 35-37% return.

Order of operations:

  1. 401(k) up to employer match
  2. HSA (if qualifying)
  3. Max 401(k)
  4. Backdoor Roth IRA
  5. Mega backdoor Roth (if plan allows)
  6. Then: mortgage payoff vs. taxable investing

The Non-Mathematical Arguments

Liquidity. Extra mortgage payments are illiquid — you can’t access them in an emergency without a refinance or HELOC. Invested assets are liquid. For most high earners who have 6+ months of expenses in accessible savings, this matters less, but it’s a real consideration.

Fixed expense reduction. A paid-off home reduces your retirement income requirement. If your mortgage is $3,500/month, paying it off reduces the annual withdrawal you need by $42,000. This has value beyond the interest rate comparison — it reduces sequence-of-returns risk and lowers your required portfolio size.

Risk tolerance. Some people cannot comfortably hold a mortgage and a stock portfolio simultaneously during market downturns. The psychological comfort of being debt-free has real value if it prevents panic-selling during corrections.

Timeline. The closer you are to retirement, the more weight the risk-reduction argument deserves. The investment return spread needs to be larger to justify carrying mortgage risk into retirement.

A Framework for the Decision

If your mortgage rate is below 5% and you’ve maxed all tax-advantaged accounts: invest.

If your mortgage rate is 5-7% and you’ve maxed all tax-advantaged accounts: your decision, based on risk tolerance and psychological comfort with debt. Either choice is defensible.

If your mortgage rate is above 7%: the guaranteed return of payoff is more competitive and the case for prioritizing it strengthens.

If you haven’t maxed tax-advantaged accounts: that comes first, no question.

Q&A

What's the mathematical case for paying off a mortgage vs. investing?

At a 6.5% mortgage rate (common in 2024-2025), paying it off is a guaranteed 6.5% return. The S&P 500's historical annualized real return is roughly 7-10% over long periods, but with significant volatility. The expected value calculation favors investing over mortgage payoff when expected returns exceed the mortgage rate. The uncertainty argument favors payoff — guaranteed beats expected when the spread is small.

Q&A

Should high earners prioritize mortgage payoff over maxing 401(k)?

No. The tax savings on 401(k) contributions at the 35-37% bracket, combined with compound growth, almost always exceed the guaranteed return of mortgage paydown. Max all tax-advantaged accounts first. Use additional savings after maximizing tax-advantaged space for the mortgage vs. invest decision.

Like what you're reading?

Try Thalvi free — no credit card required.

Want to learn more?

I have a 3% mortgage from 2021. Should I pay it down early?
No. A 3% after-tax mortgage rate (or even 2% after the interest deduction) is extremely cheap capital. Expected investment returns of 7-9% produce a 4-6% spread that compounds meaningfully over the remaining loan term. Pay the minimum and invest the rest.
What about the psychological value of being mortgage-free?
It's real and shouldn't be dismissed. A paid-off home reduces fixed monthly expenses, which reduces the income you need in retirement and lowers anxiety about financial shocks. If mortgage payoff meaningfully improves your quality of life and peace of mind, that's worth something the pure math doesn't capture. The question is how to weight it against 3-6% expected returns foregone.
Does it matter where you are in the amortization schedule?
Yes, meaningfully. In the early years of a mortgage, most of the payment is interest — paying extra early has more impact on total interest paid and loan duration. In the later years (year 20+ of a 30-year mortgage), most of the balance is principal and you're paying minimal interest. Prepaying is less efficient in the later years of the loan.
What about the tax deductibility of mortgage interest?
Less important than it used to be. The 2017 tax law raised the standard deduction and capped the SALT deduction at $10,000. Fewer homeowners itemize than before. If you don't itemize, you get no benefit from mortgage interest deductibility, making the pre-tax mortgage rate and the after-tax mortgage rate identical. If you do itemize, the deductibility reduces your effective mortgage rate by your marginal tax rate.
How should I think about this decision in my 40s vs. my 50s?
In your 40s with 20+ years to retirement, the invest-over-payoff math is most compelling — long runway for compounding returns. In your 50s approaching retirement, the risk-reduction and expense-reduction arguments for mortgage payoff become stronger. Being mortgage-free by retirement eliminates a large fixed expense, reduces your required withdrawal rate, and removes sequence-of-returns risk on that portion of your budget.

Keep reading