Mortgage vs. Invest Calculator: Should You Pay Off Your Home or Invest?

Mortgage vs. Invest Calculator: Should You Pay Off Your Home or Invest?

Use this mortgage vs. invest calculator to find out whether paying off your mortgage early or investing extra cash gives you more wealth over time. Just enter your numbers and get a clear, math-based answer in seconds.

Your Numbers

How much you still owe on your home loan
Your current mortgage interest rate
How many years are left on your loan
Extra money you could put toward mortgage or invest each month
Average annual return if you invest (7% is a common long-run estimate)
Used to calculate your mortgage interest deduction benefit
5
This shapes how we frame the recommendation for you
20-Year Wealth Projection (Year by Year)
Year Invest Scenario (Net Wealth) Pay Off Mortgage (Total Wealth)

How the Mortgage vs. Invest Calculator Works

This mortgage vs. invest calculator runs two scenarios at the same time. In the first scenario, you add extra money to your mortgage each month. This pays off your loan faster. Once the mortgage is gone, you take that same payment and invest it. In the second scenario, you keep making normal mortgage payments and invest your extra money right away. The calculator shows you which path grows more wealth over 20 years.

The tax bracket field adjusts the math for your mortgage interest deduction. If you itemize deductions on your taxes, your mortgage interest is cheaper in real terms. A 6.5% mortgage with a 22% tax bracket has an effective cost of about 5.07%. That makes the “keep the mortgage” side a little more attractive.

When Does Investing Beat Paying Off Your Mortgage?

Investing usually wins when your expected market return is well above your mortgage rate. For example, if your mortgage is at 4% and the stock market returns 7% on average, you earn more by investing that extra cash. The gap between those two numbers is what drives the result. A bigger gap means investing wins by a larger amount.

Investing also tends to win when you have many years left on your mortgage. The longer money stays invested, the more it grows through compound interest. If you have 25 or 30 years left, investing early gives that money a lot of time to grow.

Want to dig deeper into investing strategy? Our DRIP Calculator shows how dividend reinvestment compounds over time, and our Coast FIRE Calculator can tell you how much you need invested before you can stop saving forever.

When Does Paying Off Your Mortgage Win?

Paying off the mortgage wins when your mortgage rate is high and your expected investment return is low. Right now, many homeowners have mortgage rates of 6%, 7%, or even higher. If the market returns only 6-7% on average, the gap shrinks a lot. After taxes on your investment gains, paying off the mortgage can easily come out ahead.

It can also win if you are close to paying off the loan already. Once you eliminate the mortgage, you free up a large monthly payment to invest. That redirected cash can catch up fast, especially if you have many working years left.

According to Investopedia, the right choice depends on your specific interest rate, expected returns, tax situation, and personal comfort with risk. There is no one-size-fits-all answer, which is exactly why a calculator like this one is useful.

The Emotional Side: Why Debt-Free Matters

Money decisions are not just about numbers. Owning your home outright changes how you feel about your finances. No mortgage payment means lower monthly expenses. It means you can handle a job loss or health issue without risking your home. For many people, that security is worth more than a few thousand dollars in extra investment gains.

The debt-free slider in the calculator helps you think about this. If being debt-free matters a lot to you (a score of 7 or higher), the calculator will acknowledge that even if the pure math favors investing. Both paths can be the right choice depending on your values and life situation.

There is also a behavioral edge to paying off the mortgage. When you invest extra cash, it can be tempting to spend it during a market crash. A forced “investment” in your home equity stays put no matter how scared the market gets.

How to Act on the Results

The calculator gives you a clear mathematical answer, but that number is the starting point, not the final word. Here is how to act on what you find.

If investing wins by a large margin — more than $25,000 over 20 years — market returns are significantly outpacing your mortgage rate. The financially optimal move is to invest your extra cash. Open or maximize a Roth IRA or 401(k) first. These tax-advantaged accounts can dramatically improve your real after-tax return. If you have already maxed those out, a low-cost index fund in a taxable brokerage account is the next step.

If the result is close — within $10,000 to $25,000 either way — your personal situation should tip the scale. Do you have stable income and a long time horizon? Investing makes sense. Are you within five years of retirement? Being debt-free at retirement dramatically lowers your monthly expenses and reduces sequence-of-returns risk. Do you have an emergency fund covering three to six months of expenses? If not, build that first before adding extra to either strategy.

If paying off the mortgage wins, your high mortgage rate is essentially a guaranteed return on every extra dollar you put toward principal. At 6.5% or 7%, that is a difficult benchmark for the stock market to reliably beat after taxes. Many financial planners in this environment suggest a hybrid approach: split extra cash between mortgage principal payments and index fund contributions. You reduce risk while still building a portfolio.

The Hybrid Strategy: You Do Not Have to Choose One

You do not have to pick a single path and stick with it forever. Some people split their extra monthly cash 50/50 between mortgage principal and investments. This captures some of the investment upside while also accelerating mortgage payoff. It builds the habit of doing both simultaneously.

Run the calculator again with half the extra payment amount to see how a hybrid strategy compares over 20 years. You might find that splitting the difference gets you 80% of the financial upside with far less anxiety. The best financial plan is one you will actually stick to when markets get volatile or life throws surprises at you.

The right answer also changes over time. If you refinance at a lower rate, if the market has an exceptional run, or if your income grows substantially, revisit these numbers. Checking in once a year and re-running the calculator only takes a couple of minutes.

Frequently Asked Questions

Does this calculator account for taxes on investment gains? +
The calculator uses your gross market return rate. In reality, you would owe capital gains tax when you sell investments. Long-term capital gains tax rates are 0%, 15%, or 20% depending on your income. If you invest in a tax-advantaged account like a 401(k) or IRA, you can delay or avoid those taxes entirely. Try lowering your expected return by 1-2% to get a more conservative, after-tax estimate.
What market return rate should I use? +
The US stock market has returned about 10% per year on average over the long run, but that includes inflation. After inflation, the real return is closer to 7%. A 7% return is a common, reasonable estimate for long-term planning. If you want to be more conservative, try 5% or 6%. If you are investing in a mix of stocks and bonds, a lower rate makes sense.
Should I pay off my mortgage before investing in a 401(k)? +
Almost always, no. If your employer offers a 401(k) match, contribute enough to get the full match first. That is an instant 50-100% return on your money, which beats any mortgage payoff math. After capturing the full match, then use this calculator to decide where to put extra cash.
Can I use this calculator if I am not itemizing deductions? +
Yes. Just set the tax bracket to 0%. That removes the mortgage interest deduction benefit from the calculation. Most people no longer itemize after the 2017 Tax Cuts and Jobs Act raised the standard deduction, so 0% is often the right choice.
What if I have a very low mortgage rate, like 3%? +
A low rate almost always makes investing the better financial choice. At 3%, the market only needs to return more than 3% for investing to win. That is a very low bar historically. Most financial advisors would say keep the cheap mortgage and invest the extra cash. The debt-free peace of mind is the main reason you might still choose to pay it off.
Does the calculator include home equity as part of my wealth? +
No. The calculator focuses on liquid financial wealth, meaning money you can access without selling your home. Home equity is real wealth, but it is illiquid. Both scenarios assume you own (or are buying) the same home, so the home value washes out. The comparison is purely about what you do with the extra money each month.