Mortgage Payoff vs. Invest Calculator
Deciding between debt freedom and market growth is one of the most significant financial choices a homeowner can make. While a paid-off home provides psychological security, it often comes with a significant opportunity cost. This calculator helps you compare the "guaranteed return" of mortgage prepayment against the historical compounding power of the stock market to reveal the most efficient path for your next dollar.
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 Arbitrage Spread Matrix
Projected wealth impact of a 2% "Spread" (e.g., 6% mortgage vs. 8% market return) over time.
| Extra Monthly Capital | 10-Year Wealth Difference | 20-Year Wealth Difference | 30-Year Wealth Difference |
|---|---|---|---|
| $200 | approx. $5,124 | approx. $20,410 | approx. $58,940 |
| $500 | approx. $12,810 | approx. $51,025 | approx. $147,350 |
| $1,000 | approx. $25,620 | approx. $102,050 | approx. $294,700 |
| $2,000 | approx. $51,240 | approx. $204,100 | approx. $589,400 |
Principle 1: The Liquidity Premium
Home equity is "trapped" capital. Unlike a brokerage account, you cannot easily withdraw equity for groceries or emergencies without taking on new debt (HELOC). Maintaining a mortgage often provides a "Liquidity Premium" that protects you during job losses.
Principle 2: The Arbitrage Spread
The math of investing vs. prepaying is a simple game of arbitrage. If your post-tax investment return is higher than your mortgage interest rate, you are capturing a "spread" that compounds into massive wealth over decades.
Principle 3: Tax-Adjusted Hurdle Rate
Mortgage interest is often tax-deductible, which lowers the "effective" cost of your debt. This means your investments don't actually need to beat your mortgage rate—they only need to beat your after-tax debt cost.
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)
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.
AFFO and the Quality of Income: How to Judge REIT Payout Strength with Precision
Use AFFO as a practical lens for evaluating REIT dividend durability, payout risk, and income quality through real-world cash flow adjustments and scenario thinking.
What Is Amortization in Mortgage and Auto Loans?
Understand how amortization really works in mortgages and auto loans, why early payments are interest-heavy, and which actions reduce total borrowing cost fastest.
Mortgage vs. Tax vs. Mechanic's Liens: Key Differences and Risks
Learn the difference between mortgage, tax, and mechanic's liens in clear language. See what each lien can block, how they affect sales and refinances, and what to check before closing.
Lienholder vs. Loan Servicer vs. Owner: Key Differences That Affect You
Confused about who controls your loan and property? Learn the difference between lienholder, loan servicer, and owner in plain English with practical examples for mortgages and auto loans.
20% Down Isn’t a Rule: Understanding the 80% LTV Cliff (and PMI)
Learn what LTV is, why 80% is the PMI cliff, and how it differs from DTI. Compare the true cost of buying now with PMI vs. waiting for 20% down.
The Hidden Geography of Burnout: How Your Zip Code Drives Exhaustion
Where you live quietly shapes your stress, sleep, and bank account. Learn how commute times, HOAs, and mortgage choices combine to drive burnout—and how to reshape your geography to protect your energy.
How Much House Can You Really Afford? What DTI and Sticker Price Leave Out
Lenders cap your debt ratios, but your real affordability also depends on your commute, long-term HOA fees, and the safety margin you need when life changes.
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.