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
| 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.
