Prepay the mortgage or invest the difference?
Prepaying a mortgage is a guaranteed return equal to the mortgage rate. Investing is a possibility with a range of outcomes. The comparison is not just math; it is a trade between certainty, liquidity, and risk.
Enter your mortgage terms, the extra monthly amount, and an expected investment return. The calculator keeps total monthly cash flow constant: the invest path invests the extra; the prepay path invests the freed payment after payoff.
Enter your mortgage and investment assumptions to see the trade-off.
The guaranteed return of prepayment
If your mortgage rate is 6.5%, every extra dollar of principal saves 6.5% in interest per year, before taxes. That is a risk-free return before taxes, but if you itemize and deduct mortgage interest, the effective after-tax return can be lower—roughly the mortgage rate times one minus your marginal tax rate. A bond yielding 4% still may not beat it on a risk-adjusted basis.
But the return is illiquid. The money is locked in home equity until you sell, refinance, or take a home-equity loan. An investment account can be accessed in a day; home equity cannot.
The case for investing
Over long periods, diversified stock investments have historically returned more than mortgage rates. That is not a guarantee, and the sequence of returns matters. A 20% market drop in the first year of retirement is very different from a 20% drop at age 30.
The calculator keeps the total monthly cash flow constant. In the invest path, you pay the scheduled mortgage and invest the extra. In the prepay path, you send the extra to principal, then invest the entire freed payment after the mortgage is paid off. The ending investment balances are the fair comparison; the interest saved is shown separately because it is already embedded in the prepay path's freed cash.
Tax-advantaged accounts change the comparison. A 401(k) match is an immediate return that usually beats prepayment. An IRA or HSA may also offer tax benefits that make investing more attractive.
The mortgage-interest deduction
The mortgage-interest deduction reduces the effective cost of a mortgage, but only if you itemize and only on qualifying debt. For many households, the standard deduction is larger, so the tax benefit is zero. Do not assume a deduction without running the numbers.
A practical decision framework
- Capture the full employer match. It is free money.
- Build an emergency fund. Six months of expenses is a reasonable target.
- Pay down high-interest debt. A 24% card beats both mortgage prepayment and investing.
- Compare the mortgage rate with a realistic after-tax investment return. Use a range, not a single optimistic number.
- Choose based on risk and liquidity, not just the expected return.
The liquidity premium
Prepaying a mortgage can make sense if you already have a strong emergency fund, stable income, and no high-interest debt. It is riskier if your emergency fund is thin or your income is variable. Home equity is not an emergency fund.
Bottom line
If the mortgage rate is high and the expected investment return is modest, prepaying is attractive. If the rate is low, the tax benefits are real, and you have a long horizon, investing may win. The calculator gives you a starting point; your risk tolerance and liquidity needs make the final call.
Sources
- IRS — Publication 936, Home Mortgage Interest Deduction
- Investor.gov — compound interest
- Consumer Financial Protection Bureau — owning a home
Access dates: December 2026. Government and Federal Reserve pages are updated on their own schedules; confirm the current figures before making a decision.
Frequently asked
Is paying off my mortgage a good investment?
Should I invest or pay extra on a 3% mortgage?
Does the calculator include taxes?
What about the mortgage-interest deduction?
Can I do both?
Related tools and guides
Recast vs. Extra Payment
Compare a mortgage recast with extra principal payments. See the payment reduction, interest saved, and when each option makes sense.
OpenBiweekly Mortgage Payoff Calculator
Compare a monthly mortgage with a biweekly payment plan. See the interest saved, the time saved, and the half-payment amount.
OpenExtra Payment Calculator
See how an extra monthly payment changes your payoff date and total interest. Works for credit cards, personal loans, and other fixed-rate b…
Open