This article contains affiliate links. If you sign up through one of our links we may earn a commission — at no extra cost to you. We only recommend tools we believe are useful.
If your mortgage rate is below your expected long-run investment return, investing the spare cash usually wins. If it is above, paying the mortgage down usually wins. That is the one-sentence answer. The problem is the rate that matters is not the rate on your loan documents, and the return that matters is not the historical S&P 500 number. Once you adjust for tax, risk, and the cash buffer you actually need, the spread shrinks. This is how to run the real math.
Key takeaways
- Compare your after-tax mortgage rate to your after-tax, risk-adjusted expected return, not the headline numbers.
- At a 6.5% mortgage rate, paying the loan down is a guaranteed risk-free return that beats most bond yields.
- Build a 3-6 month cash buffer and max tax-advantaged retirement accounts before doing either.
- A hybrid 50/50 split between extra principal and a taxable brokerage gives you optionality without picking a side.
- Behavioral factors matter: a paid-off house you will actually keep is worth more than an optimal portfolio you panic-sell.
The headline math
The S&P 500 has returned roughly 10% nominal and about 7% real over the last 90 years. A 30-year fixed mortgage at 6.5% has a guaranteed cost of 6.5%. On the surface, investing wins by about 350 basis points a year. Over 30 years on $1,800 a month, that gap compounds into hundreds of thousands of dollars.
But you cannot spend a headline average. The same 90 years contains a 14-year stretch (1966-1982) where real returns were roughly zero, a 10-year stretch (2000-2010) that ended underwater, and a 50% drawdown in 2008-2009. Paying down a 6.5% mortgage gives you 6.5% every year, regardless of what the market does.
Adjust for tax
Two tax wrinkles move the answer.
Mortgage interest deduction
If you itemize, you can deduct mortgage interest on up to $750k of acquisition debt (post-2017 TCJA). Only about 10% of households itemize after the standard deduction was doubled, so for most people this is irrelevant. If you do itemize and you are in the 24% federal bracket, a 6.5% mortgage has an after-tax cost closer to 4.94%.
Capital gains and dividends
Investments in a taxable brokerage account get taxed too. Long-term capital gains are 15% or 20% federal plus state. Qualified dividends get the same treatment. A 10% nominal return in a taxable account is closer to 8-8.5% after tax. In a Roth IRA or Roth 401(k), the full return is yours.
The $300k mortgage example
Here is the comparison most people actually face. You have a $300,000 mortgage at 6.5% on a 30-year term. The principal-and-interest payment is roughly $1,896 a month. You have an extra $1,800 a month you could either throw at the principal or invest in a low-cost index fund.
| Strategy | Year 10 net worth | Year 20 net worth | Year 30 net worth |
|---|---|---|---|
| Pay $1,800/mo extra to mortgage | ~$245,000 equity, $0 brokerage | Mortgage paid off in year 12, then invest $3,696/mo at 8% | ~$1.41 million |
| Invest $1,800/mo in taxable at 8% after tax | ~$58,000 equity, $327,000 brokerage | ~$169,000 equity, $1.06 million | House paid off naturally, ~$2.20 million brokerage |
| 50/50 split ($900 each) | ~$130,000 equity, $164,000 brokerage | Mortgage paid off year 17, accelerated investing after | ~$1.85 million |
If the market actually returns 8% net, investing wins by a wide margin. If it returns 5% net (a not-unreasonable forward-looking estimate at current valuations), the gap closes to almost nothing. If it returns 3% real, paying down wins.
Risk-adjusted, not just expected
A 6.5% guaranteed return has a standard deviation of zero. An 8% expected stock return has a standard deviation of roughly 15-18%. The right comparison is not return-to-return — it is return-to-Sharpe. If you would not borrow at 6.5% to invest in stocks (and you shouldn't), then you should think hard before passing up a 6.5% guaranteed return to do the same trade indirectly.
Liquidity is not optional
Money sent to your mortgage principal is gone until you sell or refinance. Money in a brokerage account is available in three business days. If you lose your job and need to tap savings to keep current on the mortgage, the home-equity dollars do not help. This is the single biggest reason to keep at least some money outside the house.
Before deploying extra cash to either mortgage or brokerage, you should have:
- A 3-6 month cash emergency fund in a high-yield savings account.
- Full employer 401(k) match — this is a 100% return you cannot get anywhere else.
- Any high-interest debt (credit cards, personal loans above 8%) paid off.
If your savings rate is thin, services like budget-and-cashflow planners can help you find the $1,800/mo before you argue about where to send it.
The hybrid strategy
The order of operations I recommend to most households:
1. Cash buffer
Three to six months of essential expenses in a HYSA or money market fund. Do not skip this.
2. Full 401(k) match
If your employer matches 50% on the first 6% of salary, that is a guaranteed 50% return. Nothing else competes.
3. Roth IRA
$7,000 a year ($8,000 if 50+) into a Roth IRA at a low-cost broker. Pick a target-date index fund and walk away.
4. Max the 401(k)
Bump contributions toward the $23,500 annual limit. Tax-deferred compounding on a 6.5% mortgage spread is still very attractive.
5. Now split the rest 50/50
Any leftover cash — including bonuses, tax refunds, side income — goes 50% to extra mortgage principal and 50% to a taxable brokerage. This gets you forced deleveraging and liquid market exposure. You sleep better, and the math is within rounding error of either pure strategy.
When to lean toward paying it off
- Your mortgage rate is above 7%.
- You are within 10 years of retirement and want to enter it debt-free.
- You do not itemize.
- You are an anxious investor who has panic-sold before. A guaranteed 6.5% you will actually hold is better than an 8% return you will sabotage.
- You are self-employed with volatile income — a lower required monthly payment is a real safety margin.
When to lean toward investing
- Your mortgage rate is below 4.5% (many homeowners locked these in 2020-2021).
- You are in your 20s or 30s with a 30+ year time horizon.
- You have a stable, high income and a fat cash buffer.
- You are disciplined and will not sell in a 40% drawdown.
- You have unused tax-advantaged space (Roth IRA, HSA, 401(k)).
Behavioral factors are real returns
Vanguard's Advisor's Alpha research estimates that behavioral coaching alone is worth 1-2% a year in real investor returns. The standard advice — invest, do not pay down — assumes you will hold through every drawdown without flinching. Most people will not. A paid-off house is a real, tangible thing that does not show a red number on a Tuesday morning. Do not underweight that.
Refinancing changes the question
If you can refinance from 6.5% to 5.5%, run the math again. A lower rate makes investing relatively more attractive, and the closing costs are often paid back in 2-3 years. If rates fall meaningfully in 2026 or 2027, refinance first, then decide.
Related reading
FAQ
Is paying off my mortgage early a guaranteed return?
Yes. Every dollar of principal you pay down saves you the mortgage interest rate on that dollar for the remaining loan term. It is a risk-free, after-tax (if you don't itemize) return equal to your mortgage rate.
What if my mortgage rate is 3%?
Almost certainly invest. A 3% guaranteed return is below long-term Treasury yields. You can earn that in a money-market fund. Keep the cheap money working for you and put the spare cash into a diversified portfolio.
Does the mortgage interest deduction change the answer?
Only if you itemize, which most households no longer do after the 2017 standard deduction increase. If you do itemize and are in a high bracket, your effective mortgage rate may be 20-25% lower than the stated rate.
Should I pay off my mortgage before retiring?
Most planners say yes if you can do so without depleting retirement assets. Entering retirement debt-free lowers your required income, which lowers your tax bracket, which can keep more of your Social Security untaxed. The behavioral comfort is also real.
What about recasting versus refinancing?
A recast keeps your rate and term but lowers your monthly payment after a lump-sum principal payment. It is essentially free. A refinance gets you a new rate and term and costs 2-4% of the loan. Recast if you have a low rate; refinance if rates have dropped meaningfully.
Is a HELOC a good substitute for liquidity?
It is a backup, not a substitute. Banks can freeze or reduce HELOC lines during recessions — exactly when you most need them (this happened in 2008). Real cash in a HYSA beats a HELOC for emergency reserves.
What if I have a 15-year mortgage?
A 15-year mortgage is itself a form of accelerated payoff. The math tilts even more toward investing extra cash, because your loan amortizes fast already and the rate is usually lower.
Should I pay off the mortgage if I have student loans?
Pay off the higher-rate debt first. Federal student loans at 4-5% are usually cheaper than current mortgages. Private student loans at 8%+ should be attacked before either.
Does dollar-cost averaging into the market change the math?
Slightly. DCA into the market over 30 years smooths sequence-of-returns risk and is essentially what we modeled above. Lump-summing extra principal vs lump-summing into stocks is the riskier framing — that is where behavioral factors dominate.
What about real estate as an investment?
Your primary home is a place to live first and an investment second. The leverage and tax-free capital gains exclusion ($250k single, $500k married) are real benefits, but real estate returns have historically tracked inflation, not the stock market. Do not treat home equity as a substitute for a diversified portfolio.
Bottom line
If your mortgage rate is at or below 5%, lean toward investing the extra cash, especially in tax-advantaged accounts. If it is at or above 7%, lean toward paying it down. In the middle band — 5-7%, which is where most 2023-2025 mortgages live — the 50/50 hybrid is almost always within a few percent of the optimal answer, and it is the strategy most people will actually stick with. Build the cash buffer, capture every tax-advantaged dollar first, then split the rest. The right answer is the one you will execute for 30 years without flinching.
Comments (0)
Be the first to comment.
Leave a comment