Mortgage Payoff vs. Invest Calculator
A paid-off house offers undeniable peace of mind, but what is the actual mathematical cost? Calculate the exact opportunity cost of making extra mortgage payments versus investing that same cash in the market over time.
Inputs
Enter your current mortgage balance, rate, remaining term, and how much extra you could put toward the mortgage or invest each month. We compare guaranteed interest saved versus projected investment yield over the same period.
The amount you could put toward the mortgage or invest each month.
Assumed annual return if you invest the extra (e.g., diversified index).
Results
Guaranteed interest saved by prepaying versus projected investment yield over the same period. The opportunity cost is the net wealth impact of choosing one path over the other.
- Guaranteed interest saved
- $68,041.94
- Projected investment yield
- $130,205.28
- The opportunity cost
- +$62,163.33
The exact amount of interest you avoid paying the bank.
The compound interest earned by investing that same cash instead.
The net wealth difference between the two strategies. A positive number means investing wins. A negative number means paying off the mortgage wins.
By allocating an extra $200.00 per month toward your 6.5% mortgage instead of a 8.0% investment portfolio, you are mathematically losing $62,163.33 over the next 25 years.
The Math of Opportunity Cost
Every extra dollar put toward a mortgage yields a guaranteed, tax-free return equal to the mortgage interest rate. That dollar is not exposed to market risk; it simply eliminates future interest expense at the stated rate. However, that same dollar invested in a diversified index fund historically compounds at a different rate over long horizons. The decision mathematically boils down to a single question: can my invested cash out-earn my mortgage interest rate over the time horizon I care about?
Net Wealth (Conceptual Framework)
Net Wealth = (Investment Compounding) − (Mortgage Interest Amortization)
Maximizing net wealth over your remaining term means choosing where each marginal dollar goes: into principal (reducing future interest) or into investments (compounding at the expected return). The formula is a reminder that both paths are measurable in the same units—dollars—and the higher-yield path wins in pure arithmetic.
The spread between your expected investment return and your mortgage rate is the key variable. If your mortgage is 6% and the market historically returns 9%, your wealth grows by capturing that 3% spread on every dollar you invest instead of prepaying. Over decades, that spread compounds; the gap between the two outcomes widens with time and with the amount of capital you allocate.
The Hidden Risk of "Trapped" Equity
A paid-off house offers undeniable peace of mind, but home equity is highly illiquid. If you experience a job loss or medical emergency, you cannot easily buy groceries with drywall. You would have to take out a HELOC as an example—borrowing your own money back at a higher rate—or sell the house. Both options carry cost, delay, or force lifestyle change. Meanwhile, money in a brokerage account remains liquid and accessible during emergencies. The mathematical advantage of prepaying can be offset by the optionality and security of holding investable assets.
This is not an argument against paying down debt; it is a reminder that the "return" on a paid-off home is not spendable until you sell or borrow against it. For many households, maintaining a buffer of liquid investments while carrying a mortgage is the rational trade-off between return and resilience.
Evaluating the Trade-Offs
The Inflation Hedge
A 30-year fixed mortgage is actually a massive hedge against inflation. Because your payment never changes, you are paying the bank back in the future with "cheaper," inflated dollars. The real value of your debt shrinks over time even if the nominal balance does not. Paying the loan off early destroys this inflationary advantage: you are using today's high-value dollars to retire tomorrow's lower-value obligation. For holders of low-rate, long-term debt, inflation works in the borrower's favor.
The Sequence of Returns
The market's long-term average return is not a straight line; it includes down years and extended drawdowns. Paying off a 7% mortgage is a guaranteed 7% return with zero volatility, which is incredibly valuable for people nearing retirement or those with low risk tolerance. If you cannot stomach a 30% drop in your portfolio, the certainty of eliminating interest may outweigh the higher expected return of equities. The math favors investing when the spread is wide and the horizon is long; the psychology of risk can justify prepayment when certainty matters more.
Frequently Asked Questions
Q: Does the mortgage interest tax deduction matter?
A: Yes. If you itemize your taxes, the effective interest rate of your mortgage is actually lower than the sticker rate. Each dollar of interest reduces your taxable income, so the after-tax cost of the loan is (rate × (1 − marginal tax rate)). That makes the mathematical case for investing even stronger when you itemize, because the "hurdle" your investments must clear is lower than the nominal mortgage rate.
Q: Should I just split the difference and do both?
A: Mathematically, splitting allocates capital inefficiently compared to picking the highest-yield option. Psychologically, however, many homeowners prefer to invest heavily while making one extra mortgage payment a year to shave years off the loan term while still capturing market growth. That compromise is suboptimal in pure arithmetic but can be rational if it keeps you consistent and avoids the stress of an all-or-nothing choice.
Q: What if I have a 3% mortgage from 2021?
A: With a rate that low, making extra payments is almost universally a mathematical loss. You can earn a higher yield simply by putting the cash in a risk-free High-Yield Savings Account (HYSA) or Treasury bills. Prepaying a 3% loan while forgoing 4–5% in a savings vehicle leaves money on the table. The calculator above quantifies this for any rate and return assumption you choose.
Explore Related Calculators
Real Estate: The Math Behind the Market
Real estate is sold on emotion, but wealth is built on math. Bypass the sales pitches and uncover the exact financial mechanics behind every property decision you make.
Your Fixed-Rate Mortgage Gets Cheaper With Inflation—Here's Why Prepaying Can Backfire
A fixed-rate mortgage gets cheaper in real terms as inflation rises. See why paying it off early can mean using today's expensive dollars to retire tomorrow's cheaper debt.
Condo vs Single-Family: Same Payment, Very Different Buying Power
Same approval amount, two choices: a condo with HOA or a house without. We show the math of how much less property you get with HOA dues—and when the tradeoff can still be worth it.
What Happens If You Cancel Homeowners Insurance While You Have a Mortgage?
What happens when you cancel homeowners insurance with a mortgage? Force-placed coverage, higher costs, and default risk. What to do instead.
Rent vs. Buy 2026: Run the Numbers with Rates at 6.06%
Should you rent or buy in 2026? We break down the math with current 6.06% mortgage rates, flattening rent trends, and the 1% maintenance rule.
This calculator/tool is provided for educational and illustrative purposes only and does not constitute financial, legal, tax, or real estate advice. Real estate transactions involve complex variables—including fluctuating market conditions, changing interest rates, and local regulations—that cannot be fully captured in a single calculation. Results are estimates based on your inputs. Always consult with a licensed real estate agent, lender, or financial advisor before making purchasing, selling, or investment decisions.