US Tax Tools
Planning

Should You Pay Off Your Mortgage or Invest the Money?

If you have extra cash each month, the question of whether to make extra mortgage payments or invest that money is one of the most common personal finance dilemmas. It looks simple on the surface — compare your mortgage rate to your expected investment return — but the tax treatment of both sides makes the real math more nuanced.

The Basic Framework

Your decision boils down to a single comparison:

After-tax mortgage cost vs. After-tax investment return

If your investments are expected to return more than your mortgage costs (after taxes on both sides), investing wins. If your mortgage costs more than you can reliably earn, paying it off first is the rational choice.

What Does Your Mortgage Actually Cost You?

The nominal cost is your interest rate. But if you itemize deductions, the mortgage interest deduction reduces your effective cost.

After-tax mortgage rate = Mortgage rate × (1 − marginal tax rate)

However, post-TCJA (Tax Cuts and Jobs Act), the standard deduction is high enough that most homeowners no longer itemize. If you take the standard deduction, the mortgage interest deduction provides zero additional tax benefit — your effective mortgage cost equals your nominal rate.

When the deduction matters:

  • Single filer: Standard deduction is $15,750 (2025). Your total itemized deductions (mortgage interest + state/local taxes + charitable giving) must exceed this.
  • Married filing jointly: Standard deduction is $31,500 (2025). Far fewer households exceed this threshold.

Illustrative after-tax mortgage costs:

Mortgage RateTax RateItemizing?After-Tax Rate
6.5%24%Yes4.94%
6.5%22%Yes5.07%
6.5%AnyNo (standard)6.5%
7.0%AnyNo (standard)7.0%

Most homeowners who bought or refinanced in 2022 or later are carrying rates between 6% and 8% and taking the standard deduction. Their true mortgage cost is their full stated rate.

What Can You Realistically Earn by Investing?

Stock market (S&P 500 index): Historically ~10% nominal return, or ~7% after inflation. Past performance is not guaranteed, and sequence-of-returns risk is real.

But taxes reduce investment returns too:

  • Dividends and short-term capital gains taxed as ordinary income
  • Long-term capital gains taxed at 0%, 15%, or 20%
  • In a tax-advantaged account (401k, IRA, Roth), growth is tax-deferred or tax-free

Approximate after-tax expected returns by account type (assumes 10% gross, 22% bracket):

Investment AccountApproximate After-Tax Return
Taxable brokerage7.5–8.5% (favorable long-term gains rates)
Traditional 401(k) / IRA10% growth (taxed at withdrawal; net varies)
Roth IRA / Roth 401(k)~10% (fully tax-free)
High-yield savings / CDs4–5% (taxed as ordinary income)

The Decision in Practice

Scenario 1: Mortgage at 4% (bought pre-2022), standard deduction

After-tax mortgage cost: 4% Expected after-tax stock return: 7–8% Verdict: Invest — the math strongly favors investing over paying off a low-rate mortgage.

Scenario 2: Mortgage at 7%, standard deduction

After-tax mortgage cost: 7% Expected after-tax stock return: 7–8% Verdict: It is essentially a toss-up. Risk tolerance and psychological factors should drive the decision.

Scenario 3: Mortgage at 7%, itemizing, 24% bracket

After-tax mortgage cost: 7% × (1 − 0.24) = 5.32% Expected after-tax stock return: 7–8% Verdict: Invest, but the advantage is narrower.

The Risk Dimension: Guaranteed Return vs. Expected Return

Paying off your mortgage is a guaranteed, risk-free return equal to your interest rate. You will not wake up tomorrow and find your home equity down 30%.

Investing in stocks is an expected return with significant volatility. The S&P 500 has lost 30–50% in bear markets. If you plan to retire in 5 years and the market drops 40%, you may regret not having paid off the mortgage.

Who should lean toward paying off the mortgage:

  • Those close to retirement who cannot absorb sequence-of-returns risk
  • People who carry significant psychological stress from having debt
  • Those in states with high income taxes who may have limited investment tax efficiency
  • Anyone without a 3–6 month emergency fund (build this before either option)

Who should lean toward investing:

  • Young investors with 20+ year horizons who can ride out volatility
  • People with low-rate mortgages (below 5%)
  • Those with access to tax-advantaged accounts they have not yet maxed out
  • High earners with Roth opportunities (tax-free compounding beats even a 6% guaranteed return)

The Employer Match Trumps Everything

Before allocating extra dollars to the mortgage, always capture any available 401(k) employer match. A 50% match on 6% of salary is a guaranteed 50% return before investment gains — no mortgage payoff rate comes close.

A Hybrid Approach

Most financial planners recommend a middle path:

  1. Emergency fund: 3–6 months of expenses in cash
  2. 401(k) to employer match
  3. Max HSA (if eligible)
  4. Max Roth IRA (if eligible)
  5. Return to 401(k) up to annual limit
  6. Extra mortgage payments or taxable brokerage (based on rate comparison)
  7. Any remaining funds split between investing and accelerated payoff

This approach captures guaranteed tax-advantaged returns first, then applies the rate comparison to the remaining discretionary dollars.

Bottom Line

The mathematically optimal answer for most people with mortgages above 5%–6% is a close call — but the right answer depends heavily on your specific mortgage rate, tax situation, account types available to you, and time horizon. If your mortgage rate is low (below 5%), investing in tax-advantaged accounts almost always wins mathematically. If your rate is high (above 6.5%) and you take the standard deduction, the risk-adjusted case for paying off the mortgage becomes much stronger. Either way, max out your employer 401(k) match and emergency fund before making this decision.

deductions investment mortgage

Last updated March 22, 2026 Tax year 2025-26

Data sources: IRS (irs.gov), Social Security Administration

This tool is general information only, not financial advice.

Reviewed by USTax Tools Editorial Desk

Read our methodology →