Skip to main content

Pay Off Mortgage or Invest Calculator

Learn more about this calculator

Money put toward the mortgage earns exactly the loan’s rate, guaranteed: every dollar of principal you pay off stops costing interest. Money invested earns whatever it makes, less the tax on it. So the question comes down to two rates, and to how sure you need to be.

Enter what is on your mortgage statement and the money in question: a lump sum now, or an extra amount each month. The calculator runs two paths that spend the same money every month until the day the loan would have ended. On one, the money pays down the loan and the payment it frees is invested. On the other, the money is invested and the loan runs its course. Whichever ends with more, in today’s dollars, is the better use of the money.

Taxes are counted the way they work: interest from savings and bonds is taxed every year, stock funds mostly as capital gains, Treasury bills free of state tax, and the mortgage interest deduction only if you itemize, which about 9 in 10 households don’t. For investments that swing, it runs 1,000 markets and says how often investing actually came out ahead, because a higher average return is not the same as winning most of the time.

What this calculator covers

Use these as a quick scope check before you rely on the output.

  • •A lump sum now or extra each month, against investing the same money
  • •Five places the money could go, from savings to a stock fund, at planin30’s planning returns
  • •After-tax rates for both sides, with the rate investing has to beat
  • •How often investing came out ahead across 1,000 markets
  • •Interest you would no longer pay, and how much sooner the loan ends
  • •Year-by-year chart of both paths, in today’s or future dollars

Frequently asked questions

Is it better to pay off the mortgage or invest?

Compare what paying it off earns, the loan’s rate (less any tax the deduction saves), with what investing is expected to earn after tax. A loan at 6% or more is hard to beat safely. A loan at 3% is usually beaten by stocks on average, though not every time. Keep an emergency fund and take any employer 401(k) match first either way.

Does the mortgage interest deduction change the answer?

Only if you itemize. Since the standard deduction roughly doubled in 2018, about 9 in 10 households take it instead, so their mortgage interest saves no tax and the loan costs its full rate. If you itemize, the deduction lowers what the loan really costs and makes keeping it more attractive.

How can investing be ahead on average but lose most of the time?

Stock returns are lopsided: a few very good markets pull the average up, while the typical market does a little worse than the average. When the loan’s rate is close to what stocks are expected to earn after tax, investing can win on average yet come out behind in more than half of the markets. The calculator shows both.

Related calculators and planners

Other calculators and planners that pair well with the Pay Off Mortgage or Invest Calculator.