Every homeowner with extra cash asks the same question: should I throw it at my mortgage or put it in the market?
The personal finance community is split. Dave Ramsey says pay off the mortgage. Warren Buffett says invest. Both are successful. Both have millions of followers. Both can’t be right for the same person.
The answer depends on your mortgage rate, your investment timeline, your tax situation, and your psychological relationship with debt. Here’s the full analysis with real numbers so you can decide for yourself.
The core comparison: rate arbitrage
The question comes down to one concept: can you earn a higher after-tax return investing than you’re paying in mortgage interest?
If your mortgage rate is 6.5% and you’re in the 22% tax bracket (and itemizing deductions), your effective after-tax rate is roughly 6.5% × (1 - 0.22) = 5.07%.
The S&P 500 has returned approximately 10% nominal annually over the long term. If you believe that continues, investing beats paying down a 6.5% mortgage by roughly 4-5% per year.
But here’s the problem with that comparison: it assumes perfect market timing, ignores sequence of returns risk, and treats a 30-year mortgage as if it behaves like a 30-year investment.
| Mortgage Rate | Effective After-Tax (22% bracket) | S&P 500 Historical | Spread (Investing Advantage) |
|---|---|---|---|
| 3% | 2.34% | 10% | 7.66% |
| 4% | 3.12% | 10% | 6.88% |
| 5% | 3.90% | 10% | 6.10% |
| 6% | 4.68% | 10% | 5.32% |
| 7% | 5.46% | 10% | 4.54% |
| 8% | 6.24% | 10% | 3.76% |
At 3%, investing is a no-brainer. At 7%+, the margin shrinks. At 8%, a 3.76% advantage is still significant, but not enough to ignore the risks.
Scenario 1: Pay down the mortgage ($300,000 at 6.5%)
Let’s take a concrete example. You have a $300,000 mortgage at 6.5% with 25 years remaining. You have an extra $500/month to deploy.
| Strategy | Total Interest Paid | Payoff Time | Net Worth at End |
|---|---|---|---|
| Minimum payments | $319,000 | 25 years | $300,000 (home equity) |
| Extra $500/mo to mortgage | $190,000 | 14.5 years | $300,000 (home equity, 10.5 yrs earlier) |
| Extra $500/mo to stocks (8% return) | $319,000 | 25 years | $300,000 + $557,000 = $857,000 |
The investing scenario produces $557,000 more in net worth at year 25, assuming 8% annual returns. That’s the math the “pay off your mortgage” crowd ignores.
But it assumes you invest every dollar and never touch it for 25 years. That’s harder than it sounds.
Scenario 2: The behavioral gap
The investing advantage only exists if you actually invest the money and stay invested through market downturns. Most people don’t.
Consider what happens when the market drops 30% in a year (which happens roughly once per decade):
- The prepayment person: No change. Their mortgage balance is lower, their equity is higher. They feel good about their decision.
- The investor: Their portfolio is down 30%. They panic. They sell at the bottom. They put the money in a savings account earning 4%. They never buy back in. Their 25-year return collapses to 4-5% instead of 8-10%.
This is the single biggest argument for mortgage prepayment: it’s a behavioral hedge against your own worst impulses. The mortgage prepayment is forced equity. You can’t sell it at a loss because you got scared.
| Behavior | Investing Outcome | Mortgage Prepayment Outcome |
|---|---|---|
| Stay disciplined through all cycles | Best case: $557,000 gain | Guaranteed: interest savings |
| Panic sell in a downturn | Worst case: bond/money market returns | Same guaranteed savings |
| Spend the “extra” cash instead of investing | $0 gain | Same guaranteed savings |
| Refinance to a lower rate later | Can’t refinance stocks | Win-win: reduced rate + built equity |
Scenario 3: The middle path (50/50 split)
What if you don’t have to choose? Splitting your extra cash gives you both the guaranteed return of debt reduction and the upside of market exposure.
Instead of $500/month to one strategy, do $250 to mortgage and $250 to investments.
| Strategy | Mortgage Interest | Portfolio Value (25 yrs, 8%) | Total Net Worth |
|---|---|---|---|
| 100% mortgage | $190,000 saved | $0 | Higher equity, no portfolio |
| 100% investing | $319,000 paid | $557,000 | $557,000 + full equity |
| 50/50 split | $254,500 paid | $278,500 | $278,500 + partial equity savings |
The 50/50 split produces roughly $324,000 in combined benefit, compared to $557,000 for all-in investing or ~$129,000 for all-in mortgage prepayment (interest saved).
But the 50/50 split is the most psychologically sustainable option for most people. You get the dopamine hit of watching your mortgage balance drop AND the excitement of portfolio growth. You’re less likely to abandon either strategy because you’re not fully committed to one extreme.
The tax math nobody explains
Mortgage interest is tax-deductible if you itemize. The standard deduction in 2026 is $15,000 for single filers and $30,000 for married filing jointly. Most homeowners don’t exceed the standard deduction because the SALT cap ($10,000) limits state and local tax deductibility.
If you don’t itemize (most people don’t): Your mortgage interest is effectively not deductible. Your after-tax rate = your actual rate. A 6.5% mortgage costs you 6.5%.
If you do itemize: Your effective rate = actual rate × (1 - marginal tax rate). In the 22% bracket, 6.5% becomes 5.07%. In the 32% bracket, 6.5% becomes 4.42%.
| Filing Status | Likely Itemize? | Effective Rate on 6.5% Mortgage |
|---|---|---|
| Single, standard deduction | No | 6.50% |
| Married, standard deduction | No | 6.50% |
| Married, $15K mortgage interest + $10K SALT + $5K charity | Yes (exceeds $30K) | 5.07% (22% bracket) |
| Married, large mortgage + high SALT | Yes | 4.42% (32% bracket) |
The lower your effective rate, the stronger the case for investing over prepayment.
When mortgage prepayment clearly wins
Despite the mathematical advantage of investing, there are situations where prepayment is the right call:
1. Your mortgage rate is 7%+ At 7%+, the spread between mortgage interest and expected investment returns narrows to 3% or less. After taxes and inflation, that spread almost disappears. The guaranteed 7% return from paying down debt is more attractive.
2. You’re within 10 years of retirement Sequence of returns risk — the danger of a market downturn early in retirement — makes mortgage prepayment attractive for pre-retirees. If the market drops 20% the year you retire and you still have a $2,000/month mortgage payment, your portfolio is getting hit from both sides.
3. You value cash flow over net worth A paid-off mortgage eliminates your single largest monthly expense. That frees up cash flow for anything: working less, traveling more, or taking a lower-paying but more fulfilling job. The peace of mind has real value.
4. The market is at all-time highs and valuations are stretched This is timing the market, which is generally a bad idea. But if Shiller CAPE ratios are above 35 (as they were in 2021-2022) and you’re nervous about valuations, paying down debt is a reasonable alternative to buying expensive assets.
When investing clearly wins
1. Your mortgage rate is under 4% The spread between 4% and 10% is 6%. Even after taxes, 4.5-5% advantage. You’d have to try to lose money over a 30-year horizon at that spread.
2. You’re under 40 and have a long time horizon Time heals all market downturns. A 25-30 year investment horizon means you’ll weather multiple cycles. The compounding advantage of investing over 25+ years is enormous.
3. You don’t plan to stay in the home long-term If you’re selling in 5 years, extra mortgage payments mostly just increase your down payment on the next house. The liquidity of investments is more valuable because you can use the money for the next down payment or anything else.
4. You have a high risk tolerance If you truly won’t panic sell in a downturn, the math favors investing. Most people overestimate their risk tolerance, but if you rode out 2008 and 2020 without selling, you can trust yourself.
The final answer
Here’s the decision framework:
Pay down the mortgage if:
- Your rate is 7%+ and you’re not itemizing deductions
- You’re within 10 years of retirement
- You’d sleep better without the mortgage payment
- You’ve maxed out all tax-advantaged retirement accounts
Invest instead if:
- Your rate is under 5%
- You’re under 40 with a long time horizon
- You consistently invest through market cycles
- You itemize deductions and get the tax benefit
- You need liquidity for other goals (downsizing, relocation, career change)
Do both (50/50) if:
- Your rate is 5-7%
- You want to hedge your behavioral risk
- You can’t decide and want to avoid regret on either side
- The psychological benefit of progress on both fronts keeps you consistent
The worst approach isn’t picking the wrong option — it’s analysis paralysis that leads to doing nothing with the extra cash. Sitting on $500/month in a checking account earning 0.01% is worse than either prepayment or investing.
Pick a path. Execute. Reassess in 12 months. The compound interest you lose by waiting is the only mistake you can’t fix.
Ready to run your numbers?
Use the calculator above to compare mortgage prepayment vs investing for your specific loan amount, rate, and time horizon. See the dollar difference in 5, 10, 15, and 25 years. That visualization will tell you which path is right for you.
If you’re not sure where to start with investing, use the investment calculator to model different return scenarios and contribution amounts.