PrepayMath

Pay Off Mortgage or Invest Calculator

Compare putting extra cash into your mortgage with investing it. In both cases you spend the same amount each month.

Principal & interest only. Taxes, insurance and PMI in escrow are not affected.

How we compare

Prepay: the extra cash goes to principal. Once the loan is paid off, the whole freed-up payment plus the extra is invested every month until the original payoff date. Invest: the extra cash goes into investments every month and the mortgage runs its normal course. We then compare the investment balance after tax on gains at the original payoff date, when both paths have no mortgage.

Worked example

$300,000 at 6.5% with 25 years left and $500 a month extra. Prepaying clears the loan in about 15 years 11 months. With a 7% return and 15% tax on gains, prepaying ends at about $367,549 and investing at about $366,780, almost a tie. With no tax (for example, in a Roth IRA), investing comes out ahead, about $405,036 vs $383,778.

The rule of thumb: prepaying earns a guaranteed return equal to your mortgage rate. Investing wins only if your after-tax return beats that rate, and it comes with risk.

Related guide

Should You Pay Off Your Mortgage Early or Invest?: Compare prepaying your mortgage with investing the same cash. See worked examples at different returns and tax rates, plus the non-math factors that matter.

Frequently asked questions

What return should I assume?

Use a conservative, long-run figure for your actual mix of investments. Then try lower numbers to see how sensitive the answer is.

Does the mortgage interest deduction change this?

If you itemize, your effective mortgage rate is a bit lower, which favors investing slightly. Most households take the standard deduction, so it often doesn't apply.

Why does tax on gains matter?

Investment gains in taxable accounts may be taxed, while mortgage interest saved is not. Retirement accounts can defer or avoid that tax.

Is paying off the mortgage ever clearly better?

When your mortgage rate is high, when you would otherwise leave the money in low-yield savings, or when being debt-free matters to you more than an expected but uncertain gain.

Related calculators