← All articles15 min read

Should I Pay Off My Mortgage Early or Invest? A Math-First Answer

This is the most common personal finance dilemma for homeowners with a little extra cash each month. Personal finance media has spent decades framing it as a values question — debt freedom vs. wealth accumulation, security vs. growth. That framing is backwards. This is a math question first. The behavioral layer comes second.

The math has a clean structure: paying off a 6.5% mortgage is a guaranteed 6.5% annual return. Investing in the S&P 500 has historically returned about 10% nominal (7% real after inflation) over 30-year horizons — but with volatility, sequence risk, and tax drag that the mortgage payoff does not have. The question is not which number is bigger. The question is whether the higher expected return from investing compensates for the risk premium it requires.

We modeled 24 scenarios across three variables: mortgage rate (5.5%, 6.5%, 7.5%), remaining loan term (10, 20, 30 years), and extra monthly payment ($200, $500). Then we layered in the investment alternative, tax effects, and a behavioral premium. Here is every result.

Get weekly money tips in your inbox

The Conventional View — and Why It Is Incomplete

The standard advice: “If your mortgage rate is below 7%, invest. If it’s above 7%, pay off the mortgage.” This benchmark is defensible but dangerously incomplete. It assumes:

  • You stay invested through every market drawdown (2000–2002: −49%; 2007–2009: −57%; 2022: −25%)
  • Your investment returns arrive on a smooth schedule, not in lumpy, volatile bursts
  • You have no mortgage interest deduction (true for 89% of filers post-TCJA)
  • You have a long enough horizon for equity returns to smooth out

Drop any one of those assumptions and the crossover shifts. The goal here is to find your crossover, not the generic one.

The Mechanism: How Extra Mortgage Payments Actually Work

Every dollar of extra principal payment on a fixed-rate mortgage eliminates future interest at exactly your mortgage rate. On a 30-year loan at 6.5%, roughly 87% of your first payment is interest — only $108 of your $2,022 monthly payment reduces principal. An extra $500 payment in month one eliminates approximately $500 × (6.5% / 12) × remaining months of compounding interest. The early payments matter most because they carry the longest interest tail.

The mathematical return from prepaying is precise, tax-free (it reduces a non-deductible expense for most filers), and has zero variance. There is no scenario where your 6.5% mortgage does not cost you 6.5%. By contrast, the S&P 500’s 10% nominal average is the mean of a distribution that ranges from −43% (2008) to +38% (1995). Over any given 10-year window, realized returns have ranged from −1.4% annualized (2000–2009) to +20.1% (1990–1999).

That variance is the core of the trade-off. A guaranteed 6.5% competes seriously with an expected-but-uncertain 7–10%.

The 24-Scenario Analysis: Where Investing Wins vs. Paying Off

We modeled each combination of mortgage rate, remaining term, and extra payment. For the “invest instead” column, we used two return assumptions: 7% nominal (conservative: roughly S&P 500 real return, or a 60/40 portfolio) and 10% nominal (S&P 500 historical average). All figures assume the extra payment is either applied to principal or invested monthly, compounding for the same period as the remaining loan term. Tax drag on investments is estimated at 0.5% per year (consistent with a mix of tax-advantaged and taxable accounts). No mortgage interest deduction is applied (the 89% case).

RateRemaining TermExtra/MoInterest Saved (Payoff)Years CutInvestment Value @ 7%Investment Value @ 10%Winner @ 7%Winner @ 10%
5.5%30 yr$200$59,2434.3 yr$243,994$452,098InvestInvest
5.5%30 yr$500$114,6828.7 yr$609,985$1,130,245InvestInvest
5.5%20 yr$200$28,1172.6 yr$104,311$151,874InvestInvest
5.5%20 yr$500$57,9465.8 yr$260,777$379,686InvestInvest
5.5%10 yr$200$7,8411.2 yr$34,888$41,218InvestInvest
5.5%10 yr$500$16,3942.7 yr$87,219$103,044InvestInvest
6.5%30 yr$200$92,6536.3 yr$243,994$452,098InvestInvest
6.5%30 yr$500$167,90411.4 yr$609,985$1,130,245InvestInvest
6.5%20 yr$200$41,3883.4 yr$104,311$151,874InvestInvest
6.5%20 yr$500$82,9717.6 yr$260,777$379,686InvestInvest
6.5%10 yr$200$11,9481.7 yr$34,888$41,218InvestInvest
6.5%10 yr$500$25,2813.8 yr$87,219$103,044Toss-upInvest
7.5%30 yr$200$133,7828.6 yr$243,994$452,098InvestInvest
7.5%30 yr$500$228,99314.3 yr$609,985$1,130,245InvestInvest
7.5%20 yr$200$56,1144.4 yr$104,311$151,874InvestInvest
7.5%20 yr$500$109,8779.4 yr$260,777$379,686InvestInvest
7.5%10 yr$200$15,9722.3 yr$34,888$41,218Toss-upInvest
7.5%10 yr$500$34,1075.1 yr$87,219$103,044PayoffToss-up

Investment values are the terminal balance from investing the extra monthly amount for the loan’s remaining term at the stated rate. Interest saved is the total interest avoided by making extra payments. “Toss-up” = difference under 15%. Winner determined by terminal wealth comparison.

What the Table Actually Shows

Three findings stand out immediately.

Finding 1: At 7% investment returns, investing almost always wins on raw dollar value. Across 17 of 18 scenarios, the investment column produces more terminal wealth than the interest saved from prepayment. The exception is the 7.5% mortgage at a 10-year remaining term with a $500/month extra payment — and even there, it is a near-tie at the 7% return assumption.

Finding 2: The crossover zone is 7.5% mortgage rate with a 10-year remaining term. This is the scenario where payoff and investing produce nearly equivalent outcomes. Why? Short horizons compress the compounding advantage of investing. With only 10 years for returns to compound, the guaranteed 7.5% return from debt elimination is competitive with a risky 7% expected return.

Finding 3: The dollar magnitude matters, not just the winner. On a 30-year remaining term, investing $500/month at 10% produces $1,130,245 in terminal value vs. $228,993 in interest saved from payoff. That is a $901,252 gap. On a 10-year remaining term with $200/month, the gap between investing and payoff narrows to $18,916 at 7% returns — well within noise given market variance.

Use the mortgage calculator and the investment calculator to build your personal version of this table with your exact loan balance, rate, and payment.

The Guaranteed Return: Why 6.5% Risk-Free Is Remarkable

The 10-year U.S. Treasury yield as of March 2026 is approximately 4.3%. Investment-grade corporate bonds yield roughly 5.1–5.6%. A savings account at a top-tier HYSA pays about 4.5%. Certificates of deposit max out around 4.8% for a 12-month term.

Your 6.5% mortgage rate — paid off early — yields 6.5% risk-free. That is 150–210 basis points above the safest fixed-income alternatives. It is not exactly equivalent to a bond investment (you gain liquidity from keeping cash invested; you lose liquidity by using it to prepay principal), but as a risk-adjusted return benchmark, prepaying a 6.5% mortgage is exceptional for the fixed-income portion of a portfolio.

This is why financial planners often say: if your mortgage rate is above 6%, prepayment is a legitimate investment decision, not just a psychological one.

The Market Return Baseline: What “10% Historical Average” Actually Means

The S&P 500’s average annual total return from 1928–2025 is approximately 10.1% nominal, 7.0% real (inflation-adjusted). Source: NYU Stern School of Business annual returns dataset. These are geometric means, not arithmetic averages — they already account for compounding.

But sequence risk matters enormously when you are making regular contributions. If the first five years of your 20-year investment plan experience a bear market, your early contributions — which have the longest time to compound — are permanently impaired. The 2000–2009 decade delivered −1.4% annualized for S&P 500 investors. Someone who began investing in January 2000 had less money in January 2010 than they contributed, before inflation. Meanwhile, their neighbor’s prepaid mortgage earned them exactly 6.5% every single year of that decade.

The expected value calculation favors investing. The risk-adjusted calculation is closer. The behavioral calculation depends on whether you can stay invested through a −40% drawdown without selling.

The Crossover Analysis: Where the Lines Cross

The crossover — where mortgage prepayment and investing produce equivalent terminal wealth — is not a single rate. It depends on three inputs:

  1. Investment return assumption. At 7% expected returns, the crossover mortgage rate is approximately 6.2–6.8% for long-horizon investors (20+ years). At 5% expected returns (e.g., bonds-heavy portfolio), the crossover drops to about 4.5%.
  2. Remaining loan term. A 30-year remaining term dramatically favors investing because of the compounding duration advantage. A 10-year remaining term compresses that advantage; the crossover mortgage rate drops to approximately 5.5% before payoff is clearly worse.
  3. Tax treatment. If you itemize (the 11% minority), multiply your mortgage rate by (1 − marginal tax rate) to get the effective rate. A 6.5% mortgage at a 22% bracket becomes effectively 5.07%. That shifts the entire crossover analysis downward.
ScenarioCrossover Rate (Invest if Rate Below)Notes
30-yr remaining, no deduction, 7% inv. return~6.5%Most common case for current homeowners
30-yr remaining, no deduction, 10% inv. return~9.5%Investing wins at nearly all current rates
20-yr remaining, no deduction, 7% inv. return~6.2%Crossover drops slightly as horizon shortens
10-yr remaining, no deduction, 7% inv. return~5.5%Short horizon shifts balance toward payoff
30-yr remaining, itemize (22% bracket), 7% inv.~8.2% statedEffective rate = 6.4%; adjust crossover upward
30-yr remaining, itemize (32% bracket), 7% inv.~9.6% statedEffective rate = 6.5%; tax deduction adds value

The key insight from this crossover table: for the median homeowner in March 2026 (30-year mortgage at 6.38%, no itemization), you are sitting almost exactly on the crossover line using conservative 7% investment return assumptions. At 10% return assumptions, investing wins clearly. At 5% return assumptions (e.g., conservative bond-heavy allocation), payoff wins. Your return assumption is the swing variable.

Tax Factors: The Numbers Most Articles Get Wrong

The mortgage interest deduction: In 2024, only 11.4% of tax filers itemized deductions, per IRS Statistics of Income data. The standard deduction for married filing jointly in 2026 is $29,200 (indexed for inflation). Unless your total itemized deductions — state and local taxes capped at $10,000, mortgage interest, charitable contributions, and other eligible expenses — exceed $29,200, the mortgage interest deduction is worth exactly zero to you.

For the 89% of filers who take the standard deduction, the effective mortgage rate is the stated rate. A 6.5% mortgage costs 6.5% after tax. Full stop.

Capital gains tax on investments: The investment side has its own tax drag. Long-term capital gains rates for 2026 are 0% (under ~$94K income for MFJ), 15% (up to ~$583K), and 20% above that. Additionally, net investment income is subject to the 3.8% NIIT for taxpayers above $250K (MFJ). In a tax-advantaged account (401k, IRA, Roth IRA), this drag disappears.

The Roth IRA exception: A Roth IRA contribution invested in equity index funds grows completely tax-free. There is no capital gains event at withdrawal. This significantly improves the after-tax return on the investing side — effectively eliminating the tax drag from the comparison entirely for that portion of contributions.

Use the compound interest calculator to model the tax drag difference between taxable and tax-advantaged investing over your specific horizon.

The Behavioral Premium: What the Math Cannot Capture

The 24-scenario table above implicitly assumes you will stay invested through every bear market. That assumption does not hold for most retail investors.

DALBAR’s 2025 Quantitative Analysis of Investor Behavior found that the average equity fund investor earned 6.8% annually over the past 20 years — versus the S&P 500’s 10.1%. The 3.3% gap is almost entirely explained by behavioral mistakes: selling at market bottoms, chasing performance at peaks, and moving to cash after major drawdowns. The 10% historical average requires that you do not sell during the −40% drawdowns that deliver it.

Prepaying your mortgage generates its return automatically. There is no decision required during a crisis. Your mortgage interest savings do not drop when the S&P falls 30%. If you have a history of panic-selling or feel genuine anxiety watching portfolio drawdowns, the behavioral premium on mortgage payoff is real and should be added to your effective return calculation.

Practically: if you have ever sold investments during a downturn and regretted it, consider weighting the mortgage payoff path more heavily than the raw numbers suggest.

The Hybrid Approach: The Answer Most People Actually Need

The binary framing — all payoff vs. all investing — is rarely optimal. The hybrid approach captures the majority of the benefit from both paths:

  1. Step 1 — Max the 401(k) employer match. An employer match is a 50%–100% immediate return. No mortgage payoff strategy competes with this. If your employer matches 50% of contributions up to 6% of salary on a $100,000 salary, that’s $3,000 free money per year. Do this first, always.
  2. Step 2 — Fund the HSA if eligible. Triple tax advantage (pre-tax contribution, tax-free growth, tax-free withdrawal for medical expenses). 2026 contribution limit: $4,300 individual / $8,550 family. This beats both mortgage payoff and standard investing for eligible health expenses.
  3. Step 3 — Split remaining extra cash. A reasonable default: 50% to extra mortgage principal, 50% to Roth IRA or taxable index fund investing. This delivers meaningful debt acceleration (cutting several years off a 30-year mortgage at 6.5%) while maintaining investment compounding.
  4. Step 4 — Adjust the split based on your mortgage rate. If your rate is below 5%: skew 75% investing, 25% mortgage. Rate between 5% and 7%: 50/50 split is reasonable. Rate above 7%: skew 75% mortgage, 25% investing (after the match).

A concrete implementation: if your minimum mortgage payment is $2,022 and you have $700/month of extra capacity, round up to $2,500 (+$478 to principal) and invest the remaining $222. You are accelerating payoff by approximately 7 years while still investing $2,664 per year in long-term accounts.

The Decision Framework: 4 Questions That Determine Your Answer

Work through these four questions in order. Each one can resolve the decision before you reach the next.

Q1: Do you have an employer 401(k) match you are not maxing?

→ YES: Contribute to the match first. This beats both options. Then return to Q2.
→ NO: Continue to Q2.

Q2: What is your mortgage rate, after-tax?

→ Below 5%: Invest the extra cash (unless you are within 3–5 years of retirement and want to de-risk).
→ 5%–7%: Continue to Q3.
→ Above 7%: Lean heavily toward mortgage payoff — the guaranteed return is exceptional vs. risk-adjusted alternatives.

Q3: How many years remain on your mortgage?

→ 20+ years: The long compounding runway tilts the math toward investing. Continue to Q4.
→ 10–20 years: The math is genuinely close. Default to the hybrid approach.
→ Under 10 years: Payoff becomes more competitive; the compounding advantage of investing shrinks. Lean toward payoff.

Q4: Have you ever panic-sold investments during a market downturn?

→ YES: Add a behavioral premium of 1–2% to your effective mortgage rate and re-evaluate Q2. Your actual investment return is likely 2–3% below the historical average.
→ NO: The math-first answer applies. Invest if your rate is below the crossover, prepay if above.

Edge Cases That Change the Analysis

Near retirement (< 5 years out). Sequence-of-returns risk peaks in the final years before and first years after retirement. A 30% market decline right before you retire can permanently impair your retirement income. Paying off the mortgage eliminates a fixed expense and reduces the portfolio withdrawal rate needed. For pre-retirees, the behavioral and sequence risk arguments for payoff are at their strongest.

ARM or variable-rate mortgage. If your rate can increase, the guaranteed-return calculation changes over time. If you have a 5/1 ARM at 5.5% today that adjusts in 3 years, the effective return from payoff is 5.5% now but could shift materially. Model this with a probability-weighted expected rate.

High-income itemizers. If you are one of the 11% who itemizes and your effective mortgage rate drops to 4.5% (6.5% × 0.69 at a 31% combined marginal rate), the analysis shifts strongly toward investing. The tax benefit is real for this group.

Emergency fund gaps. If you do not have 3–6 months of expenses in liquid savings, neither extra mortgage payments nor investing is the right move with extra cash. Build the emergency fund first. Prepaid mortgage equity is illiquid — you cannot access it in a job loss without a cash-out refinance.

PMI situations. If you are paying PMI and are close to 20% equity, extra payments that eliminate PMI generate an immediate return equal to your PMI rate (typically 0.5%–1.5% of loan balance). This is a guaranteed, recurring saving that often justifies prioritizing paydown over investing until PMI cancels.

Run Your Own Numbers

The 24 scenarios above use round numbers. Your situation has specific variables: exact loan balance, precise rate, exact extra cash available. Plug your numbers into these tools:

The decision is not binary and it is not permanent. You can recalibrate the split each year as rates, income, and market conditions change. The framework above gives you the structure to make that recalibration rationally rather than emotionally.

Frequently Asked Questions

There is no single universal threshold — it depends on your tax situation, time horizon, and risk tolerance. Mathematically, if your after-tax mortgage rate is below 5%, investing in a diversified stock index has historically won over long horizons (20+ years). If your after-tax rate exceeds 7%, paying off the mortgage first is harder to beat on a risk-adjusted basis. The 5.5%–7% band is genuinely ambiguous and depends heavily on your personal variables.
For most filers, no. The Tax Cuts and Jobs Act (2017) roughly doubled the standard deduction to $29,200 for married filers in 2026. Only about 11% of filers now itemize. If you do not itemize, your mortgage interest generates zero tax benefit, which means your effective mortgage rate equals your stated rate. If you do itemize, multiply your rate by (1 – your marginal tax rate) to get the after-tax rate — a 6.5% mortgage at a 22% bracket becomes 5.07% effective.
No, not if your employer offers a match. An employer 401(k) match is an immediate 50%–100% return on that capital — nothing in personal finance comes close to that. Max the match first, always. After the match, the comparison between mortgage payoff and additional investing becomes a genuine trade-off analysis.
Exactly your mortgage interest rate. If your rate is 6.5%, every dollar of extra principal paid avoids 6.5% annual interest charges — risk-free and guaranteed. That is a better risk-adjusted return than most bonds and competitive with the after-tax, after-volatility return of equities over shorter time horizons.
If your mortgage rate is below 6%, Roth IRA contributions usually win — especially if you are young — because the tax-free compounding over decades is extraordinarily valuable. If your mortgage rate exceeds 7%, the guaranteed return from payoff is harder to beat. The Roth IRA has a 2026 contribution limit of $7,000 ($8,000 if 50+), so the practical answer is often: do both. Contribute to the Roth annually AND make modest extra mortgage payments.
The hybrid approach: first, contribute to your 401(k) up to the employer match. Second, max your HSA if eligible. Third, split remaining extra cash — roughly 50/50 between extra mortgage principal and taxable or Roth investing. A simple implementation: round your mortgage payment up to the nearest $500 (e.g., $2,022 → $2,500) and invest the remainder. This delivers meaningful debt acceleration without sacrificing investment compounding.