Join Discord

Pay Off the Mortgage Early or Invest?

Put the same extra money toward the mortgage or into investments, and compare where you end up.

Photo or PDF of your latest statement. Read on your device, never uploaded.

Pay Off Mortgage or Invest? by AIPreciseTools Β· Open the full calculator β†—

How the comparison works

Both plans spend the same money each month for the remaining years of the loan:

  • Pay extra: the extra goes to principal until the loan is paid off. After that, the whole former payment plus the extra is invested each month until the original end date.
  • Invest: the loan runs to its original end date, and the extra is invested every month.

At the original end date both plans own the home outright, so the difference is the investment balance, after tax on the gains.

Beyond the math

Paying down a mortgage is a guaranteed, risk-free return equal to its rate. Investing has historically earned more over long periods but can fall, sometimes for years. If the mortgage interest is deductible, its true cost is a bit lower. Most planners suggest an emergency fund and any 401(k) employer match before either.

The example, step by step

A homeowner owes $300,000 at 6.5% with 25 years left and has an extra $500 a month. In Plan A, the extra goes to the mortgage. In Plan B, it goes into investments that earn 7% a year, with 15% tax on the gains when sold. The calculator compares the two at the date the loan would have ended anyway.

Plan A pays the mortgage off in 15 years and 11 months, 9 years and 1 month early, and saves $125,588 in interest. After that, the homeowner invests the whole former payment plus the extra until the original end date. Plan B keeps the mortgage for the full 25 years and invests $500 every month. At the end, Plan B has $366,780 after tax and Plan A has $367,031. The difference is $250.73, so on these numbers the plans are effectively tied.

The result is not an accident. At a 7% return the investment has to beat a guaranteed 6.5% by enough to compensate for taxes on gains and the risk of loss, and here the two roughly cancel.

How the investment return changes the answer

The return is the assumption that matters most, and no one can know it in advance. On the same loan:

Investment returnInvest the extraPay extra, then investBetter choice
4%$241,005$322,895Pay off, by $81,890
5%$275,592$336,712Pay off, by $61,121
6%$317,022$351,404Pay off, by $34,381
7%$366,780$367,031About even, pay off by $251
8%$426,686$383,660Invest, by $43,026
10%$586,404$420,209Invest, by $166,195

Below about 7%, paying down the mortgage wins. Above it, investing wins, and the gap widens quickly. The investment side is a projection, while the mortgage return is certain, so if the numbers are close, the guaranteed option is the better one for risk-averse people.

How the mortgage rate changes the answer

A lower mortgage rate makes investing more attractive, and a higher rate makes extra payments more attractive, since the saving from paying early is a guaranteed return at your loan's rate. At a 7% investment return:

Mortgage ratePayoff time with extraInterest savedResult at 7% return
4%16 yr 5 mo$65,682Invest, by $85,502
5%16 yr 3 mo$87,713Invest, by $54,845
6.5%15 yr 11 mo$125,588About even
8%15 yr 7 mo$169,580Pay off, by $62,262

At 4% or 5%, investing the extra comes out well ahead on these assumptions. At 8%, paying off the mortgage is the clear winner. If you have a loan from a period of low rates, the case for extra payments is weak; a recent high-rate loan has a strong case.

Taxes on investment gains

The calculator taxes only the gains when the investments are sold. Putting the money in a tax-advantaged account, such as a retirement account, changes the comparison. For the same example at a 7% return:

Tax on gainsInvest the extraPay extra, then investBetter choice
0%$405,036$383,220Invest, by $21,816
15%$366,780$367,031About even, pay off by $251
20%$354,029$361,635Pay off, by $7,606

Tax rates matter because the mortgage saving is not taxed, while investment gains are. If you invest through a retirement account with a tax deduction or tax-free growth, the effective after-tax return may be higher than in a taxable account. If you get a tax deduction for your mortgage interest, the real cost of the loan is a bit lower, which favors investing slightly.

Things the numbers do not capture

  • Liquidity. Money paid into a mortgage is hard to get back without selling or borrowing against the home. Investments can be sold if you need cash.
  • Risk. A market decline early on can leave you behind, while the loan saving is certain.
  • Behavior. Many people find it easier to keep making a bigger mortgage payment than to invest steadily through falling markets.
  • Peace of mind. Owning your home outright earlier lowers your required monthly spending, which is valuable in retirement or if income is uncertain.
  • Employer match. A 401(k) match is an immediate return that beats both options, so capture it first.

A sensible order of priorities

  1. Keep an emergency fund of several months of expenses.
  2. Capture any employer retirement match.
  3. Pay off high-rate debt such as credit cards.
  4. Then split extra money between mortgage and investments, leaning toward the mortgage if your rate is high or you value certainty, and toward investing if your rate is low and your horizon is long.

You can also split the money, putting half into each, which reduces the regret of choosing wrong. For the details of how extra payments change a schedule, use the amortization calculator.

More questions people ask

Is it better to pay off a mortgage or invest?

There is no universal answer. Paying off the mortgage earns a guaranteed return equal to the loan rate, while investing has a higher expected return with risk. The comparison turns on your rate, the return you expect after taxes, your time horizon and how you feel about risk.

Should I do both?

Many people split extra money, partly to the mortgage and partly to investments. It reduces the chance of regret and provides some of both certainty and growth. Enter each amount separately in the calculator to compare.

What if I plan to move before the mortgage ends?

Extra payments increase your equity, which you get back when you sell, minus selling costs. If you move in a few years, the interest saved is smaller than the full-term figures, and liquid investments may be more flexible. Adjust the years left to your expected stay for a rough view.

Reading the "Difference" line

The calculator shows the difference between the two plans at the date the original loan would have ended. A positive number for investing means the investment plan ends with more money; a negative number means paying extra comes out ahead. Remember that the difference depends on one fixed return for every year, while real returns vary, so a result within a few thousand dollars on a $300,000 loan is a tie for practical purposes.

Worked examples on this page were calculated with the same formulas as the calculator above. Written and last reviewed by Shaun Longbottom, November 2026.

Frequently asked questions

Is it better to pay off a mortgage or invest?

When your expected after-tax investment return is clearly above the mortgage rate, investing usually ends ahead; when the mortgage rate is high or you value certainty, paying it down wins. Try your numbers above.

Does paying extra on a mortgage save a lot of interest?

Yes. On a $300,000, 6.5% loan with 25 years left, $500 extra a month saves well over $100,000 of interest and ends the loan years early.

About this calculator

  • Reviewed by: the AIPreciseTools senior developer, who builds and maintains every calculator on the site.
  • Numbers checked: Nov 12, 2026. We re-check the tax brackets, rates and limits it uses when the source publishes new ones, and the page date changes when we do.
  • Tested: every release runs worked examples through the calculator and checks the answers. How we build and check tools.
  • Not advice: it gives estimates for planning, not tax, legal or medical advice. Check anything important with a professional.
  • See a mistake? Use Report a problem on this page and we'll check it and correct the page.

Was this calculator helpful?

Run a blog, class page or shop? Put this calculator on your site, free. It fits any page and keeps working on phones.