Skip to content
Home » Pay Off Mortgage vs. Invest Calculator

Pay Off Mortgage vs. Invest Calculator

Are you a homeowner with a mortgage who also has some extra cash to invest?

Then you’ve probably wondered if you should pay off the mortgage early or invest the money instead.

It’s one of the most commonly asked mortgage questions, and as you might suspect, the answer depends a lot on your particular mortgage rate.

Choosing to pay down a 3% mortgage early is a very different decision than paying down a 7% mortgage ahead of time.

My pay off mortgage vs. invest calculator compares both paths side by side and shows you which might be best based on your mortgage rate and projected market returns.

Pay Off Mortgage vs. Invest Calculator

Got extra cash? See whether you’d come out ahead by paying down your mortgage or by investing the money instead. Compare your estimated net worth under each choice, and find the investment return you’d need to break even.
Your Mortgage
$
%
Find this on your mortgage statement, or add your original loan term to your closing date.
$
The minimum payment from your statement, without escrow (taxes and insurance) or any extra principal amount paid. We’ll use it to work out when your loan will actually be paid off.
The Money You Have to Put to Work
💡 Enter a lump sum, an extra monthly amount, or both. Paying down the mortgage means applying it to principal. Investing means putting it in the market while you keep making your regular payments.
$
One-time amount available today
$
On top of your regular payment
Your Investment Assumptions
%
Before taxes. Returns are never guaranteed, and real markets go up and down
%
Assumes you sell your investments when your mortgage would have been paid off on its regular schedule and pay tax on the gains then. If state tax applies, add it to this number (15% federal + 5% state = 20%). Use 0 for a Roth IRA or similar account
What This Means
Side-by-Side Comparison
Both choices use the same cash each month, your regular payment plus any extra, and are compared on the date your mortgage would have been paid off on its regular schedule. If you pay it off early, the freed-up payment goes into investments until that date.
What If Returns Are Different?
Shows how the result changes if your investments earn more or less than you assumed. Your assumption is highlighted.
Things to Weigh
  • Paying down your mortgage is a guaranteed return equal to your mortgage rate. Investment returns are not guaranteed, and stocks can lose value, sometimes for years.
  • The right comparison is risk-adjusted. Earning slightly more than your mortgage rate on average may not be worth the risk.
  • Money put into your mortgage is hard to get back out. Investments are usually easier to sell, so keep an emergency fund before doing either.
  • If you have a tax-advantaged account such as a 401(k) with an employer match, the match is usually an instant return worth capturing first.
  • Paying off the mortgage lowers your required monthly expenses, which can matter a lot in retirement or if your income drops.
  • State taxes may also apply to your investment gains. This calculator only uses the single tax rate you enter, so include your state rate in that number if it applies to you.
  • If you itemize, mortgage interest may be tax deductible, which lowers the true cost of your mortgage. This calculator does not include that deduction, which can make paying down the mortgage less valuable than shown.
Disclaimer: This calculator is for informational and educational purposes only and does not constitute financial, legal, or tax advice. Your monthly principal and interest payment is calculated from the balance, rate, and maturity date you enter (the remaining term is the number of months from today to that date). If you check the box for extra payments, the remaining term is instead worked out from the monthly principal and interest payment you enter, assuming that payment stays the same until the loan is paid off. Both methods use a standard fixed-rate amortization formula, and the payment shown is an estimate, so compare it with the principal and interest on your mortgage statement (without escrow). If your actual payment is higher, you may have paid extra on your loan, so check the box for extra payments and enter your payment. If you pay down the mortgage, a lump sum is applied to principal today, extra monthly amounts are added to your regular payment, and once the mortgage is paid off, the payment you were making is invested each month at your expected return until the original end date. If you invest, a lump sum is invested today, extra monthly amounts are invested each month, and you keep making your regular mortgage payment. Investment returns are assumed to be a constant annual rate compounded monthly, which real investments do not deliver. Tax is applied once, at the end, to the investment gains only, and no mortgage interest deduction, inflation, fees, or tax on other income is included. The breakeven return is a pre-tax return. This calculator assumes a fixed rate. If you have an adjustable-rate mortgage, your payment could change when your rate resets, and the results may not be accurate. Consult a licensed mortgage professional, a tax professional, and a financial advisor before making this decision.

How Does the Pay Off Mortgage vs. Invest Calculator Work?

It compares two different paths using the same amount of money.

Enter your current mortgage balance, interest rate, and maturity date (all of these details should be on your monthly mortgage statement and/or loan servicer website).

If you’ve already paid extra, tick that box and enter your principal and interest payment instead of maturity date (just the minimum payment without any extra amount of taxes/insurance).

Next, enter a lump sum or monthly amount you wish to allocate to prepay the mortgage, along with your expected investment return and tax rate.

In the first scenario, you invest your lump sum or extra monthly amount, and keep making your regular mortgage payments.

In the second scenario, you put that lump sum or extra monthly payment toward your mortgage instead, which results in it being paid off early.

Once it’s paid off in full, the mortgage payment you used to make (plus any extra) goes exclusively into investments instead for the remainder of the original loan term.

For example, if you decide to prepay a 30-year fixed mortgage and pay it off in 20 years, you allocate the mortgage payment plus extra payment for the remaining 10 years to ensure it’s an apples-to-apples comparison.

The calculator then checks both paths on the date your mortgage would have ended without prepayment, which is your maturity date, and shows where you’d stand investment-wise under each scenario.

Is Paying Off Your Mortgage Early a Good Investment?

Every extra dollar you put toward your mortgage earns a return equal to your mortgage rate.

That’s because you stop paying interest on that dollar for the rest of the loan.

And it’s a guaranteed return that you know upfront with zero surprises.

So if your mortgage rate is say 7%, paying it down early is like finding an investment that pays you 7% with zero risk.

That might sound pretty good, but you have to compare it to what the market might return instead, which could even best 7%.

If your mortgage rate is closer to 3%, which is the case for millions of homeowners today, the math looks a lot different.

Investing instead of prepaying only has to clear a much lower bar, though the returns aren’t guaranteed, which is the major catch.

Still, historical returns tend to be a lot higher than 3%, or even 4-5% annually, so you definitely need to think twice when prepaying a low-rate mortgage.

This is especially true because money put into your home isn’t so easy to get out (without a sale, refinance, etc.)

The takeaway though is the higher your mortgage rate, the more paying it down early starts to look like a win. And vice versa.

What Is a Breakeven Investment Return?

The breakeven investment return is the annual investment return where both paths end up in the same place.

For example, prepaying a mortgage with a 3.75% rate is similar to a pre-tax 4.6% investment return.

If you think your investments will earn more than that, investing generally comes out ahead.

If you think they’ll earn less, paying down the mortgage ahead of time tends to win.

Chances are the number will be higher than your mortgage rate because taxes take a share of your investment gains.

The calculator also shows what happens if returns come in higher or lower than you assumed.

Because nobody knows what the market will do, and you might not want to rely on a single assumption.

What This Calculator Leaves Out

I kept the calculator somewhat simple because this stuff gets convoluted fast.

For taxes, it uses one rate for your investment gains, so add your state rate (if it applies) to your federal rate.

It also leaves out the mortgage interest deduction.

If you itemize, that deduction lowers the true cost of your mortgage, which can make paying down the loan early less valuable than shown.

In addition, your monthly payment is an estimate of principal and interest only, based on your inputted balance, interest rate, and maturity date.

That means it may differ from your actual statement, which could include escrow for property taxes and insurance.

Lastly, it assumes a steady investment return every year, which the market never delivers. But it should still provide a good ballpark to answer the pay off vs. invest question.

Pay Off Mortgage vs. Invest FAQ

Is it better to pay off my mortgage early or invest?

It depends mostly on your mortgage rate and how much risk you’re comfortable with.

Paying down your mortgage early earns a guaranteed return equal to your interest rate (e.g. 5%).

Investing could earn more, but there’s no guarantee, and it could just as easily earn less if the market underperforms.

The calculator shows the breakeven return so you can decide if the potential gap is worth the risk.

Should I pay off a low-rate mortgage?

With a very low rate, say around 3%, the math often favors investing since the bar to beat it is so low.

But it’s about more than just math. Some people simply prefer not having a mortgage, and that’s a perfectly reasonable thing to weigh when making the decision.

Personally, I don’t buy into that, but many like the “peace of mind” of not having a monthly mortgage payment.

Just keep in mind you must still pay property taxes and often homeowners insurance as well…

What if my mortgage rate is high?

The higher your rate, the harder it is for investments to keep up with a guaranteed return from paying down the loan early.

In that case, the breakeven return the calculator shows will likely be pretty hard to beat.

The rule of thumb though is it makes more sense to prepay a high-rate loan than a low-rate loan.

For example, it’s a lot more compelling to “earn” 7% via mortgage prepayment (7% mortgage rate) than it is 3% (3% mortgage rate).

Another consideration though is if you think rates might come down, you could also look into a rate and term refinance down the road.

And keep your money liquid until then.

Does paying extra on my mortgage lower my monthly payment?

No. Extra payments pay down the principal faster and shorten the loan term (and total interest expense) in the process, but your required minimum monthly payment stays the same.

Some lenders may offer a loan recast, which lowers the payment after a big principal payment, but that also slows repayment and won’t result in your loan being paid off ahead of schedule.

Can I do both? Invest and prepay the mortgage?

Sure, plenty of people split any extra money between the two options.

So you can prepay the mortgage AND invest some money each month in the stock market or a different investment.

That actually might give you better diversification and avoid being overly exposed to one type of investment.

In addition, it means more of your money will be liquid instead of being trapped in your home.

You can run the calculator with different amounts to see how each split might play out.

Should I take my 401(k) match first?

If your employer matches contributions, that match is usually an instant return worth capturing before putting extra money anywhere else.

So that’s another consideration that could make investing even more beneficial than prepaying a relatively cheap mortgage.

Just be sure to check your plan details since matching rules vary.

Does the pay off vs. invest calculator include taxes?

It includes tax on your investment gains, using the single rate you enter. So that’s up to you to decide what to enter, and if you enter both federal and state (if applicable) taxes.

If you’re investing in a Roth IRA or Roth 401(k), you can enter 0 there.

Note that traditional retirement accounts are taxed on withdrawal, so entering 0 for those won’t be accurate.

Do I get a tax deduction on mortgage interest?

Maybe, but only if you actually itemize your deductions, which many do not.

The calculator doesn’t include it, which can make paying down the mortgage early look better than it really is.

A tax professional can tell you how it applies to your situation if you want to get a really detailed accurate look at both paths.

Why is the calculated payment different from my mortgage statement?

The calculator above estimates principal and interest only.

Your statement may include escrow for property taxes and homeowners insurance, which adds to the monthly total.

The estimate also depends on the balance, rate, and maturity date you enter, so it may be a little off from your lender’s numbers.

But you should be able to get a decent ballpark if you enter your numbers correctly.

Should I keep cash on hand instead of doing either?

That’s a good question and the answer is probably some, yes.

Most financial planners recommend having at least a little bit of cash set aside from emergencies and unexpected costs.

So allocating every dollar you have to investments and/or mortgage repayment might not be wise.

Any extra funds you put toward your mortgage are the hardest to access later, requiring a new loan or a home sale.

Conversely, investments are usually much easier to liquidate (such as a stock), though it might not always be a great time to sell. Or you might not want to pay taxes on gains right away.

Having an emergency fund first gives you some breathing room either way.

Colin Robertson