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.

Results are principal & interest unless you add the optional costs. A recast or refinance doesn't change escrowed taxes or insurance.

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.

Second worked example: a low-rate mortgage

You owe $180,000 at 3.25% with 22 years left and have $400 a month extra. Assume a 6% annual return and 15% tax on gains. Prepaying clears the loan in about 13 years 9 months. After 22 years, investing first ends at about $201,557, compared with about $167,562 for prepaying first. When your mortgage rate is well below your expected after-tax return, investing tends to come out ahead, with more risk.

Who this calculator fits

Pros and cons

Prepaying: a guaranteed return equal to your mortgage rate and a debt-free date, but the money is illiquid. Investing: potentially higher growth and easier access to cash, but returns vary. Investor.gov describes risk tolerance as your ability and willingness to lose some or all of your investment in exchange for potentially greater returns. [source]

Common mistakes

How the comparison works

Both strategies spend exactly the same amount each month. In the prepay path, the extra goes to principal until the loan is paid off, and then the full freed-up payment plus the extra is invested until the original payoff date. In the invest path, the extra is invested every month while the mortgage runs its normal schedule. At the original payoff date both households own the home outright, so the only difference is the invested balance, shown after the tax rate you enter.

How to use it well

  1. Start with a conservative return and your realistic tax rate on gains.
  2. Run it again with a lower return. If the winner changes, the decision is close, and liquidity and peace of mind should decide.
  3. Share the scenario with a partner or adviser using the share button, so you're both looking at the same assumptions.

The calculator holds the return steady every year, which real markets never do. Treat the result as a way to see how the answer depends on your assumptions, not as a forecast.

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.

Related guide

Recast vs Paying Extra on a Low-Rate (3%) Mortgage: Have a 3% mortgage and spare cash? Compare recasting, paying extra and investing with worked numbers, and see why low rates change the answer.

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