Every couple of years, the same question floods personal finance forums and family group chats: should I throw extra money at the mortgage or put it in the market? If you’re carrying a home loan — a fixed debt where you make monthly payments that cover both interest and principal repayment — and you’ve got some breathing room in your budget, this is genuinely one of the most consequential money decisions you’ll make. The answer isn’t universal. It depends on your mortgage interest rate, your federal income tax bracket, what you expect the stock market to return, and honestly, how you’d feel watching your portfolio drop 25% while you still owe $200,000 on your house. This article builds the decision framework from the ground up, shows you the math at three different rate environments, and ends with a clear if-this-then-that rule you can apply to your own situation today.


The Only Number That Actually Matters First: Your After-Tax Mortgage Rate

Before you run any scenario, you need to know your effective cost of carrying the mortgage — not just the rate on your statement. If you itemize deductions on your federal tax return (meaning you list out deductible expenses rather than taking the standard deduction), your mortgage interest reduces your taxable income, which lowers the real cost of that debt. The rules governing what qualifies are detailed in IRS Publication 936: Home Mortgage Interest Deduction, which is the authoritative source for determining how much of your interest is actually deductible.

The formula is simple:

After-tax mortgage rate = Stated rate × (1 − your marginal federal tax bracket)

So if you’re in the 22% bracket and your mortgage rate is 6.5%, your after-tax rate is roughly 5.07% (6.5% × 0.78). That’s the hurdle your investments need to clear.

A critical caveat for 2026: the standard deduction for a married couple filing jointly is now high enough that the majority of homeowners no longer itemize, according to IRS Statistics of Income data (IRS Publication 17, Your Federal Income Tax). If you’re taking the standard deduction — which most middle-income homeowners do — your mortgage interest isn’t reducing your tax bill at all. Your after-tax rate equals your stated rate. Full stop.

Quick check: If your total itemized deductions (mortgage interest + property taxes + charitable giving + state and local taxes, capped at $10,000) don’t exceed your standard deduction, use your raw mortgage rate as the hurdle rate. Don’t give yourself a phantom tax benefit.


Three Scenarios: Where the Math Actually Lives

Let’s run three real examples using a $250,000 remaining balance, 15 years left on the loan, and $500/month in surplus cash you could either send to the mortgage servicer or invest. We’ll use a 7% average annual stock market return as the investment baseline — roughly in line with long-run historical averages for a diversified U.S. equity index fund, net of inflation. The SEC’s Office of Investor Education and Advocacy explains in its Introduction to Investing guide how compounding returns interact with time horizon and contribution size — the core principle that makes early and consistent investing powerful regardless of which path you choose.

Mortgage RateAfter-Tax Rate (22% bracket, itemizing)Invest at 7% — 15-yr resultPayoff path — interest savedMathematical winner
3.0%2.34%~$158,000 portfolio~$30,000 savedInvest — by a wide margin
5.0%3.90%~$158,000 portfolio~$66,000 savedInvest — but closer
7.0%5.46%~$158,000 portfolio~$112,000 savedBorderline — depends on actual returns

Assumptions: $500/month surplus, 15-year horizon, taxable brokerage account for the invest path (capital gains friction applies), standard amortization for payoff path. Market returns are not guaranteed.

What the 3% Scenario Tells You

If you locked in a mortgage at 3% or below — a window that existed roughly from 2020 through early 2022 — this is mathematically the clearest case in favor of investing. Your after-tax borrowing cost is under 2.5% in most brackets. Even a conservative bond-heavy portfolio has historically cleared that hurdle. Paying down a 3% mortgage early is, in expected-value terms, roughly equivalent to investing in an asset that returns 3%. That’s a real return, but it’s not where most practitioners want their marginal dollar.

The right move here: make your minimum mortgage payment, max your 401(k) to the current IRS limit (per the IRS announcement on 2025 retirement plan contribution limits, that limit is $23,500 for under-50 contributors and $31,000 for those 50 and older in 2025, with 2026 limits to be announced in a subsequent IRS revenue procedure), then put the remainder into a Roth IRA or taxable brokerage account.

What the 5% Scenario Tells You

This is the most common scenario for people who bought or refinanced between 2018–2019 or in 2023–2024. At 5%, you’re not giving away money by paying down the mortgage, but you’re probably still leaving expected value on the table versus a long-horizon equity allocation. The spread between a 5% guaranteed return (paying down the mortgage) and a 7% expected return (diversified index funds) sounds small — but compounded over 15 years on $500/month, it’s roughly $40,000–$50,000 in today’s dollars.

The behavioral wildcard matters here. If you would genuinely lose sleep watching a $100,000 portfolio drop to $65,000 in a correction — and you’ve got a $200,000 mortgage balance — some practitioners find the hybrid path (split the surplus 50/50) delivers better actual outcomes because they don’t panic-sell.

What the 7% Scenario Tells You

At 7%, the math is tight. Your guaranteed return from paying down the mortgage approaches — and sometimes exceeds — what a reasonable expected return on equities offers, especially after you account for taxes on investment gains in a taxable account. This is also where risk tolerance stops being abstract. You need to ask yourself honestly: would you stay fully invested through a 30% market drawdown while carrying a $200,000+ mortgage balance? If the answer is uncertain, the psychological value of a paid-off home is real and has financial consequences — panic selling at the bottom destroys returns in ways that a spreadsheet can’t fully capture.

To understand where mortgage rates have been and where they stand today, the Consumer Financial Protection Bureau’s Explore Interest Rates tool lets you see how rates vary by loan type, credit score, and down payment — useful context for benchmarking your own rate against current market conditions. Borrowers who purchased in 2023 and 2024 frequently landed in the 6.5–7.5% range, which is precisely where the paydown case becomes competitive with expected equity returns.


The Tax-Advantaged Account Exception That Changes Everything

There’s one scenario where the math almost always favors investing regardless of your mortgage rate: when you haven’t yet maxed out tax-advantaged accounts. A 401(k) contribution in the 22% bracket gives you an immediate 22% return on your money before the market does anything. A Roth IRA contribution lets that money compound tax-free for decades. These benefits don’t exist in the mortgage paydown math.

The hierarchy most practitioners should follow:

  1. Contribute enough to your 401(k) to capture any employer match (this is a 50–100% instant return — nothing competes with it)
  2. Max your HSA if you’re on a high-deductible health plan (triple tax advantage: pre-tax contributions, tax-free growth, tax-free withdrawals for qualified medical expenses)
  3. Max your IRA — Roth if your income qualifies, backdoor Roth if it doesn’t
  4. Then decide between extra mortgage payments and a taxable brokerage account

If you’re not yet doing steps 1–3, the mortgage-vs-invest debate is technically premature. The IRS is offering you a better deal first. IRS Publication 590-B (Distributions from Individual Retirement Arrangements) confirms that qualified Roth IRA withdrawals in retirement are completely tax-free — a compounding advantage that mortgage paydown simply cannot replicate.


The Decision Rule: If X, Then Y

Here’s the framework distilled into actionable if-then rules for your specific situation.

If your mortgage rate is below 4%: Invest the difference. Make minimum mortgage payments. The expected value gap is too large to ignore over any horizon longer than 7 years.

If your mortgage rate is 4–6%: Hybrid approach. Max all tax-advantaged accounts first (401(k), IRA, HSA). Split surplus 70/30 toward investing vs. extra mortgage principal if you can tolerate market volatility; flip to 50/50 or 40/60 if you’re within 10 years of retirement or your job security is uncertain.

If your mortgage rate is above 6%: Aggressive paydown makes real mathematical sense, especially if you’re 45+ and approaching retirement. The guaranteed 6%+ return is competitive with expected equity returns on a risk-adjusted basis. That said, still max your 401(k) match and HSA before sending extra principal — those tax advantages are worth preserving. A reasonable split for a 7% mortgage: capture all tax-advantaged space first, then direct 60–70% of remaining surplus to mortgage paydown.

Regardless of rate: If you’re carrying high-interest consumer debt (credit cards, personal loans above 8%), pay those off before either option above. No investment return reliably beats 20% APR.


Where to Put the “Invest” Dollars

If you’ve decided the math favors investing, execution matters. For a taxable brokerage account, low-cost index funds minimize the tax drag that chips away at projected returns. Three platforms practitioners commonly use for the invest-the-difference path:

  • Fidelity (fidelity.com): Zero-expense-ratio index funds (FZROX, FZILX), no account minimums, solid automated investing tools
  • Schwab (schwab.com): Competitive index fund lineup, strong customer service, easy integration with existing retirement accounts
  • Betterment (betterment.com): Automated tax-loss harvesting — selling underperforming positions to offset gains elsewhere — useful for hands-off investors who want the invest path without managing allocation decisions manually

All three offer taxable brokerage accounts alongside IRA options. The SEC’s Office of Investor Education and Advocacy publishes plain-language guidance on how compounding returns scale with contribution size and time horizon — modeling your monthly contribution amount and expected return against your specific payoff date is a practical first step before committing to a target allocation.


The Bottom Line

The mortgage-vs-invest question doesn’t have a universal answer, but it does have a mathematical answer once you plug in your actual numbers. Your after-tax mortgage rate is the hurdle. Expected investment returns — realistic, not optimistic — are what clear it. Tax-advantaged accounts bend the rules in favor of investing at almost any mortgage rate. And risk tolerance — real, honest, tested-through-a-bear-market risk tolerance — determines whether the mathematically optimal path is also the practically sustainable one for you.

Run your numbers. Check your mortgage statement for the current rate. Confirm whether you’re itemizing or taking the standard deduction (IRS Publication 936 covers the mortgage interest piece; IRS Publication 17 covers the broader itemization framework). Then apply the if-then rules above. For most people reading this in mid-2026, the answer is: max the tax-advantaged accounts first, then let your mortgage rate make the call for the rest.