๐ŸงฎCalcMatrix
Finance2026-08-25ยทCalcMatrix

Pay Off Mortgage or Invest? The 20-Year Compound Interest Math

"Pay off the mortgage or invest?" is the classic dilemma for every homeowner. Online answers are everywhere: some say with a 4% mortgage rate and 3% investments, of course you pay off the loan; others say long-term index investing can hit 6%-8%, so you must invest. But most people only compare the current interest-rate gap and overlook time โ€” the variable that's easiest to underestimate. Today we do the math differently: put the same sum of money on a 20-year timeline, lay out the real outcome of both paths with compounding, and then you decide which wins.

First Ledger: What Do You "Earn" by Paying Off Early?

Paying off a mortgage early is, at heart, using cash to buy out future interest expenses. Take a loan of 1,000,000 over 30 years at 4% (equal installments): if you prepay 200,000 in year 5 and choose to shorten the term, you save roughly 100,000-150,000 in interest โ€” run your own numbers through the loan calculator for precision.

But note: the interest you save by prepaying is effectively like "depositing" that 200,000 into a product with a return equal to your mortgage rate, with zero risk and no tax. A 4% mortgage rate is the guaranteed annualized return on that money โ€” and that's its biggest advantage: certainty, no volatility.

Second Ledger: Invested Instead, How Big Does 20 Years of Compounding Get?

The other path works differently: the 200,000 isn't spent on debt โ€” it becomes principal entering the compounding machine. Let's simulate three annualized returns in the compound interest calculator and see the difference after 20 years:

Annualized returnValue after 20 yearsTypical scenario
3% (conservative)โ‰ˆ361,000Money market / CDs
5% (balanced)โ‰ˆ531,000Bond + dividend combo
7% (aggressive)โ‰ˆ774,000Broad-index long-term investing

The table reveals a brutal truth: as long as your annualized return reaches 5% or higher, the investment side clearly beats the 100-150k in interest saved after 20 years. At 7%, 200,000 grows to 774,000 โ€” far ahead of the interest you'd save by prepaying. That's the power of compounding: the longer the horizon, the more extreme the gap.

The table above looks like investing wins outright, but there's a critical catch in reality: most people can't achieve their ideal annualized return. That's the true fork in the road. Use the CAGR calculator to work out your actual return over the past 3-5 years โ€” don't fool yourself with "I think I can get 7%." Here's how to read it: if your real annualized is below your mortgage rate (say 3% real vs a 4% mortgage), prepaying wins โ€” it's like earning a stable 1% spread; if the two are roughly equal, it's a tie, and you should prioritize your liquidity needs; only if your real annualized beats the mortgage rate by 2% or more does keeping the money invested make sense, and even then only if you can stomach volatility and stay invested long-term without panic-selling. The mistake most people make is comparing the mortgage rate to their best single year of returns โ€” earning 30% on a fund in one great year doesn't mean you'll earn 30% every year for 20 years. Compare using your real, sustainable annualized return, and the conclusion actually holds up.

Liquidity, Psychology, and Risk: Three Ledgers Beyond the Rate Gap

The rate gap isn't everything โ€” three more ledgers are commonly overlooked.

  1. Liquidity ledger: money used to prepay is "locked up" โ€” you can't get it back in an emergency; invested money stays "liquid" and can be cashed out. If you expect big expenses ahead (kids' schooling, parents' medical care), don't tie all your liquidity into prepayment
  2. Psychology ledger: some people lose sleep over a red investment account; others get anxious every time they see mortgage interest. Investment discipline depends on "holding power" โ€” if you can't hold, the paper gains of investing are fake
  3. Risk ledger: prepaying is a 100% certain return; investing carries volatility and possible losses. Betting a certain 4% against an uncertain 7% โ€” if you lose that bet, you not only get no return, your principal shrinks

Your Decision Framework: Solutions by Profile

  • Risk-averse, want stability: prepay the mortgage and lock in the 4% risk-free spread โ€” you'll sleep better
  • Disciplined long-term investor: keep the money and invest on a plan โ€” on the condition your real annualized return reliably beats the mortgage rate and you can handle a 30% drawdown without selling
  • Middle ground: half prepay, half invest โ€” lock in some guaranteed return while keeping liquidity and compounding flexibility. The most balanced option

Back to where we started: prepay or invest has no one-size-fits-all answer โ€” it's about "doing the math and knowing yourself." Open the compound interest calculator and run both scenarios, then use the CAGR calculator to measure your real annualized return, and the answer surfaces on its own. When the math is clear, you won't panic about where the money goes either way.