CalcWise

Guides / Mortgage Strategy

Pay Off Mortgage Early vs Invest: The Math Behind the Decision

You have an extra $500 a month. Should you throw it at your mortgage or put it in an index fund? This is one of the most debated questions in personal finance — and the answer depends on numbers most people never bother to run. This guide does the math for you.

Last updated: September 2026

TL;DR - Quick Answer

  • If your mortgage rate is below 5%: Investing almost always wins — historically by a wide margin
  • If your mortgage rate is 6-7%: Investing still has the edge mathematically, but the gap narrows enough that either choice is reasonable
  • If your mortgage rate is 8%+: Paying off the mortgage is a guaranteed high return — strongly consider it
  • The hybrid approach: Max your 401(k) match first, then split extra cash between mortgage and investing

Use our Mortgage Calculator and Compound Interest Calculator to run your exact scenario.

Infographic comparing paying off a mortgage early versus investing: mortgage payoff saves $147,000 in interest at 6.5%, while investing the same $500/month at 10% grows to $234,000 over 30 years
The core trade-off: guaranteed interest savings vs. historically higher (but uncertain) investment returns

Why This Decision Matters More Than You Think

The difference between paying off your mortgage early and investing isn't just a few thousand dollars — over a 20- to 30-year time horizon, it can mean a six-figure swing in your net worth. The decision boils down to one question: is it better to pay off mortgage early and earn a guaranteed return equal to your interest rate, or invest the money and chase a historically higher but uncertain return?

When you make an extra mortgage payment, you're effectively earning a risk-free return equal to your mortgage interest rate. With a 6.85% mortgage — the average 30-year fixed rate as of September 2026 — every extra dollar you pay earns you 6.85% by avoiding future interest charges. No market crash, no bad quarter, no volatility — just a guaranteed, tax-free return.

When you invest instead, you're betting on the long-term average returns of the stock market. The S&P 500 has returned roughly 10% per year on average (about 7% after inflation) since 1926. That's higher than almost any mortgage rate — but it comes with years where the market drops 20%, 30%, or even 40%. The 2008 crash wiped out 37% of the S&P's value in a single year. The 2020 COVID crash saw a 34% drop in just 33 days.

The mathematical answer and the right-for-you answer are often different. Let's start with the math, then factor in the human elements.

The Numbers: $500/Month Extra Over 20 Years

Let's use a common scenario: you have a $300,000 mortgage at 6.85% interest (the September 2026 national average) on a 30-year fixed term. You're 5 years in and have an extra $500/month to either put toward your mortgage or invest in a broad market index fund.

Option A: Pay Off Mortgage Early

Your standard monthly payment on a $300,000 mortgage at 6.85% is $1,966. Adding $500/month brings your total to $2,466. Here's what happens:

  • Remaining balance (after 5 years): approximately $280,500
  • Without extra payments: 25 years remaining, $289,800 more in interest
  • With $500/month extra: paid off in ~16 years instead of 25
  • Total interest saved: approximately $132,400
  • You own your home free and clear 9 years early

Option B: Invest the $500/Month

Instead of extra mortgage payments, you invest $500/month in a low-cost S&P 500 index fund. Assuming historical average returns:

  • At 10% average annual return: $500/month grows to approximately $343,600 after 20 years
  • At 7% (inflation-adjusted): grows to approximately $246,200
  • Total invested out of pocket: $120,000
  • Investment gain at 10%: approximately $223,600
  • Investment gain at 7%: approximately $126,200

Head-to-Head Comparison

MetricPay Off MortgageInvest (10% return)Invest (7% return)
Total out-of-pocket$120,000$120,000$120,000
Financial benefit$132,400 saved$223,600 gained$126,200 gained
Mortgage paid off9 years earlyOn schedule (year 30)On schedule (year 30)
Risk levelZero (guaranteed)Moderate-HighModerate-High
LiquidityLocked in home equityFully liquidFully liquid
Net advantage vs. payoffBaseline+$91,200-$6,200

*Assumes $300K mortgage at 6.85% (Sep 2026 avg), 30-year fixed, extra payments starting in year 6. Investment returns are nominal (pre-inflation). Tax implications not included — see tax section below.

Real Case Study: Marcus and Elena, $130K Combined Income

Their Situation

  • Combined gross income: $138,000/year in Denver, CO
  • Mortgage: $355,000 at 6.75%, 30-year fixed (3 years in)
  • Current monthly payment: $2,302
  • Remaining balance: $341,000
  • Extra available per month: $800
  • Marcus's 401(k): contributing 6% (employer matches 4%)
  • Elena's 401(k): contributing 5% (employer matches 3%)
  • No other debt

The Decision

  • Both already get full employer match (free 3-4% return)
  • 6.75% mortgage rate is in the "gray zone"
  • Elena wants security of faster payoff
  • Marcus wants the upside of market returns
  • Solution: hybrid approach

What They Did: The 50/50 Split

Marcus and Elena split their $800/month: $400 extra toward the mortgage and $400 into a Vanguard Total Stock Market index fund (VTSAX, 0.04% expense ratio). After 27 months, their mortgage balance is $308,500 (vs. $324,000 without extra payments — $15,500 ahead), and their investment account holds $12,100 ($10,800 contributed + $1,300 growth). They estimate the mortgage will be paid off about 6 years early, while the investment account will hold roughly $180,000 by the time they hit year 20. They have the psychological win of progress on both fronts, and the flexibility to shift the ratio if rates drop (refi and invest more) or the market tanks (lean into mortgage payments). Marcus also noted that with the S&P 500 up roughly 14% year-to-date in 2026, the investment side is outpacing their projections — but they're sticking with the 50/50 split to stay disciplined through any future downturn.

How Your Mortgage Rate Changes the Answer

The decision is heavily influenced by your specific mortgage rate. Here's how the 20-year outcome shifts for $500/month extra, assuming a 10% average stock market return:

Mortgage RateInterest Saved (Payoff)Investment Growth (Invest)Winner
3.0%$42,000$223,600Invest (by $181K)
4.5%$71,000$223,600Invest (by $153K)
5.5%$95,000$223,600Invest (by $129K)
6.85% (Sep 2026 avg)$132,400$223,600Invest (by $91K)
7.5%$149,000$223,600Invest (by $75K)
8.5%$178,000$223,600Close call
10.0%$224,000$223,600Payoff (breakeven)

*Investment returns are nominal at 10%. Interest saved varies by remaining balance and years left. Figures are approximate — use our calculators for your exact scenario.

Key Insight

The stock market's long-term average (10% nominal) essentially makes investing the mathematical winner at any mortgage rate below about 8-9%. But at today's 6.85% average rate, the gap between mortgage payoff and investing is narrower than it was during the 3-4% rate era of 2020-2021. Remember: the 10% average includes years of -37% (2008) and +29% (2019). The payoff return is guaranteed and consistent every single month.

Tax Factors Most People Miss

Taxes change the math in important ways that favor investing in some scenarios and mortgage payoff in others:

Mortgage Interest Deduction

If you itemize deductions (only about 10% of filers since the 2017 standard deduction increase), your effective mortgage rate is lower than the stated rate. In the 22% tax bracket, a 6.85% mortgage effectively costs 5.34%. This widens the gap in favor of investing.

Capital Gains Tax on Investments

Investment gains are taxed when you sell. Long-term capital gains (held over 1 year) are taxed at 0%, 15%, or 20% depending on income. For a married couple earning $130,000, the rate is 15%. This means your 10% gross return is closer to 8.5% after taxes — still higher than most mortgage rates, but the gap narrows.

Tax-Advantaged Accounts Change Everything

If you invest in a 401(k) or Roth IRA instead of a taxable brokerage account, the math shifts dramatically. Roth IRA gains are completely tax-free. 401(k) contributions reduce your current taxable income. An employer match is an immediate 50-100% return that no mortgage payoff can compete with. Always capture the full employer match before putting extra money toward the mortgage.

When Paying Off Your Mortgage Early Is the Better Choice

Despite the math favoring investing in most scenarios, there are real situations where accelerating your mortgage payoff is the smarter move:

  • You're within 5-7 years of retirement. Entering retirement without a mortgage payment dramatically reduces your required withdrawal rate. A $2,000/month mortgage payment means you need $600,000 less in your retirement portfolio (using the 4% rule).
  • Your mortgage rate is above 7%. At rates this high, the guaranteed return from payoff starts to rival historical stock market returns — with zero risk.
  • You've already maxed out tax-advantaged accounts. If your 401(k), Roth IRA, and HSA are fully funded, the comparison shifts to taxable investing vs. mortgage payoff, where the after-tax investment return is lower.
  • You have low risk tolerance or sleep poorly. The psychological burden of debt is real. A 2025 survey by the National Endowment for Financial Education found that mortgage debt was the #2 source of financial stress (after credit cards), with 62% of homeowners reporting anxiety about their monthly payment.
  • You're in a high-tax state with no itemized deductions. Without the mortgage interest deduction, your effective rate equals your stated rate, making payoff relatively more attractive.

Step-by-Step: How to Make Your Decision

1

Max out your employer 401(k) match first

This isn't optional. A 50% employer match is an instant 50% return — no mortgage payoff or market investment comes close. If your employer matches 4% and you earn $80,000, contribute at least $3,200/year to get the full $1,600 match.

2

Build a 3-6 month emergency fund

Neither extra mortgage payments nor investments help if you lose your income and can't make the regular payment. Keep $15,000-$30,000 in a high-yield savings account (4.25-4.75% APY as of September 2026) before aggressively tackling either option.

3

Pay off any debt above your mortgage rate

Credit card debt at 22%? Car loan at 8%? Pay those off before making extra mortgage payments. The guaranteed return is higher than either your mortgage rate or expected stock returns.

4

Compare your effective mortgage rate to expected returns

Calculate your after-tax mortgage rate (rate x (1 - tax bracket) if you itemize). Compare it to your expected after-tax investment return (7-8% in a taxable account, 10% in tax- advantaged). If the spread is 3%+ in favor of investing, lean toward investing.

5

Factor in your personal risk tolerance and timeline

If you're 15+ years from retirement with stable income, you can weather market volatility — lean toward investing. If you're 5-10 years out, the guaranteed return of mortgage payoff becomes more valuable. Use our Investment Return Calculator to model different scenarios.

3 Common Arguments — And Why They're Only Half Right

"You can always borrow against your home equity"

True, but a HELOC or cash-out refinance comes with closing costs, variable rates, and the risk of owing more than your home is worth in a downturn. Investments in a brokerage account are instantly liquid — you can sell and have cash in 2 business days. Home equity is the least liquid form of wealth you can hold.

"The stock market always goes up long-term"

Over 20+ year periods, yes — the S&P 500 has never had a negative return over any 20-year rolling period since 1926. But 10-year periods can be flat (2000-2010 returned just 1.2% annually). Your specific timing matters. If you retire in a downturn, a paid-off home provides safety that a depleted portfolio cannot.

"Inflation makes your mortgage cheaper over time"

This is correct — a fixed $2,000/month payment feels smaller in 10 years when inflation has raised wages. But this argument applies equally whether you make extra payments or not. Your fixed payment stays the same regardless. The real question is what earns a better return: the extra payment or the invested dollar. Inflation doesn't change that comparison.

Run Your Own Numbers

Every mortgage and financial situation is different. Use our free calculators to see exactly how each scenario plays out for you.

Frequently Asked Questions

Is it better to pay off my mortgage early or invest?

Mathematically, investing usually wins if your expected return exceeds your mortgage rate after tax. With a 6.85% mortgage (the average 30-year fixed rate as of September 2026) and a historical 10% stock return, investing the extra money produces roughly $80,000 more over 20 years per $500/month. However, the guaranteed savings from paying off a mortgage carry zero risk, while market returns are not guaranteed.

What if my mortgage rate is very low — say 3%?

A low rate makes investing even more attractive. At 3%, the spread between your mortgage cost and expected investment return is about 7 percentage points. Paying off a 3% mortgage early is essentially choosing a guaranteed 3% return over a historically likely 7-10% return. Most financial advisors would recommend investing in this scenario.

Should I factor in the mortgage interest deduction?

Yes, but its impact is smaller than most people think. Since the 2017 Tax Cuts and Jobs Act raised the standard deduction, only about 10% of filers itemize. If you do itemize, the deduction lowers your effective mortgage rate by your marginal tax bracket — for example, a 6.85% rate becomes effectively 5.14% in the 25% bracket.

What about the emotional benefit of being debt-free?

This is real and valid. Studies show that carrying a mortgage is a significant source of financial stress. If being debt-free lets you sleep better, take career risks, or retire with confidence, the peace of mind can outweigh a few percentage points of return. Personal finance is personal — the mathematically optimal answer isn't always the right one for you.

Can I do both — pay extra on my mortgage AND invest?

Absolutely, and this is what many financial planners recommend. A common approach: invest enough to get your full employer 401(k) match (free money), fund a Roth IRA ($7,000 limit in 2026), then split remaining extra cash 50/50 between extra mortgage payments and taxable investing. This hedges your bets and builds wealth on two fronts.

Should I refinance before deciding to pay extra or invest?

If your current mortgage rate is significantly above today's rates, refinancing first is almost always the best move. Dropping from 7.5% to 6.85% on a $300,000 balance saves roughly $130/month in interest, freeing up more cash for either extra payments or investing. However, factor in closing costs (typically $3,000-$6,000) — you need to stay in the home long enough to break even, usually 18-24 months. Use our Mortgage Calculator and Refinance Calculator to run the exact numbers.

Related Guides