This article contains affiliate links — see our affiliate disclosure.

You have some extra money each month and one nagging question: should you throw it at the mortgage or put it in the market? Both are good uses of money — you either shrink a debt or grow an asset — so it's a hard choice to get "wrong." But there is a number that tips the scale, and it's simpler than the internet makes it sound. This guide walks through the break-even math, the tax reality most people misunderstand, and the emotional side that the spreadsheets leave out. Want to test the numbers as you read? Open the compound interest calculator and the mortgage calculator in separate tabs.

The one number that decides it: your rate vs. the market

Strip away the noise and this is a comparison of two returns. Paying extra on your mortgage earns you a guaranteed, risk-free return equal to your interest rate — every dollar of principal you knock out is a dollar of future interest you'll never pay. Investing instead earns you whatever the market returns, which over the long run has averaged about 10% per year before inflation for a broad U.S. stock index like the S&P 500.

So the rule of thumb writes itself:

The catch is the word guaranteed. Your mortgage return is certain; the market's is not. That gap is why this is a real decision and not just "always invest."

The break-even math, worked out

Say you have $500 a month to deploy for the next 15 years, and your mortgage is at 4%. Prepaying saves you a guaranteed 4%. Investing that same $500 a month at a 7% average return (a deliberately conservative stand-in for the market, after inflation and taxes) grows very differently thanks to compound interest:

$500/month for 15 yearsGuaranteed returnApprox. ending value
Prepay a 4% mortgage4% (risk-free)~$123,000 of interest-and-principal saved
Invest at 7% averageNot guaranteed~$158,000
Invest at 10% averageNot guaranteed~$207,000

Even using a cautious 7% return, investing pulls ahead of prepaying a 4% mortgage — and the gap widens over longer horizons because compounding accelerates. Flip the mortgage rate up to 7% or 8%, though, and the "prepay" column climbs while the risk-free certainty makes it the safer bet. Run your own rate and time horizon before you commit either way.

Plug your extra payment and time horizon into the compound interest calculator to see the investing side, then use the mortgage calculator to see how the same money shortens your loan.
Advertisement (300×250) — Replace with AdSense code

The tax angle (smaller than you've been told)

You'll hear that the mortgage interest deduction makes keeping a mortgage cheaper, effectively lowering your rate. That was true for far more people before 2018. Since the standard deduction roughly doubled, the large majority of filers now take the standard deduction and deduct zero mortgage interest — which means for most homeowners, the deduction changes nothing.

You only benefit if your itemized deductions add up to more than the standard deduction. Even then, the deduction only shaves your effective mortgage rate a little (a 4% mortgage might act like a 3% one). The bigger tax story is usually on the investing side: money that goes into a 401(k), IRA, or HSA grows shielded from taxes, and the higher the tax shelter, the more attractive investing becomes relative to prepaying. Don't keep a mortgage purely for the write-off.

Do this first (before either option)

The pay-vs-invest debate assumes your financial base is already solid. Before you send extra dollars in either direction, make sure you've handled the moves that beat both:

Once those are in place, the extra money is truly "free" to optimize — and that's when the rate-vs-return math above kicks in.

Want to see your whole picture in one place before you decide? A free net-worth and investment tracker like Empower's free dashboard shows your accounts, fees, and retirement projections side by side — useful for judging whether investing or prepaying moves the needle more for you.

The peace-of-mind factor (it's real money too)

Not everything shows up in a spreadsheet. A paid-off house means your single largest bill disappears — no mortgage payment, whatever happens to your income. For people near retirement, or anyone who simply sleeps better without debt, that certainty can be worth accepting a slightly lower expected return. Personal finance is personal: if carrying a mortgage keeps you up at night, "the math says invest" is cold comfort.

A reasonable middle path is to split the difference — invest most of the extra money for growth while sending a smaller, steady amount at the principal. You capture most of the market's long-run edge and still watch the balance fall and the payoff date move closer. Many people find that hybrid far easier to stick with than an all-or-nothing plan.

When each option wins

Lean toward investing when: your mortgage rate is low (roughly under 5%), you have a long time horizon, you're comfortable with market ups and downs, and you haven't yet maxed tax-advantaged accounts.

Lean toward prepaying when: your mortgage rate is high (roughly 7%+), you're close to retirement, you value guaranteed returns and a debt-free home, or market volatility genuinely stresses you out.

Don't guess — see it: run your extra payment through the compound interest calculator for the investing path and the mortgage calculator for the payoff path, then compare the two numbers side by side.

The bottom line

Compare your mortgage rate to the return you realistically expect from investing. When your rate is well below the market's long-run average, investing usually wins on the math — especially inside tax-advantaged accounts, and especially after you've grabbed your employer match and cleared high-interest debt. When your rate is high or certainty matters more than squeezing out the last percentage point, prepaying is a smart, guaranteed return. And if you can't decide, splitting the money between the two is rarely a mistake. Run your own numbers first, so the choice is yours and not a stranger's rule of thumb.

Frequently Asked Questions

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

Financially, it comes down to your mortgage rate versus what you expect to earn investing. If your mortgage rate is well below the market's long-run average of about 10% per year, investing usually builds more wealth over time. If your rate is high — say above 7% to 8% — paying the mortgage down is a closer call and offers a guaranteed, risk-free return equal to your rate. The right answer also depends on your emergency fund, risk tolerance, and how much peace of mind a paid-off home gives you. Compare both paths with the compound interest calculator and the mortgage calculator.

How does paying off a mortgage compare to investing in the S&P 500?

Paying extra on a mortgage earns you a guaranteed return equal to your interest rate. Investing in a broad stock index like the S&P 500 has averaged roughly 10% per year before inflation over the long run, but that return is not guaranteed and comes with real short-term risk. Over long periods the market has usually beaten a low mortgage rate, which is why many people invest instead of prepaying a cheap mortgage — but a guaranteed 6% or 7% from prepayment is nothing to dismiss.

Should I pay off my mortgage before maxing out retirement accounts?

Usually no. An employer 401(k) match is an immediate 50% to 100% return, which beats prepaying any mortgage. Tax-advantaged accounts like a 401(k), IRA, or HSA also shelter your growth from taxes. Most planners suggest capturing the full match and funding tax-advantaged accounts before throwing extra money at a low-rate mortgage.

Does the mortgage interest deduction change the math?

For most homeowners, far less than they think. Since the standard deduction roughly doubled in 2018, the large majority of filers take it and deduct no mortgage interest at all. You only benefit if your itemized deductions exceed the standard deduction — and even then, the deduction just lowers your effective mortgage rate slightly. Do not keep a mortgage solely for the tax break.

This article is provided for educational purposes only and does not constitute financial, legal, or tax advice. Investment returns are not guaranteed and past performance does not predict future results. Tax rules and lending terms vary by situation — confirm specifics with a licensed professional before making any decision.