Mortgage vs. investing

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.

Guaranteed returnLiquidityTax-aware
Y Written and maintained by Ydsxxa Updated December 5, 2026 Sources cited below
Compare the two paths

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.

$
%
yrs
$
%
A range, not a promise.

The investment value is a future-value estimate at a constant return. It ignores taxes, fees, risk, and liquidity.

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

  1. Capture the full employer match. It is free money.
  2. Build an emergency fund. Six months of expenses is a reasonable target.
  3. Pay down high-interest debt. A 24% card beats both mortgage prepayment and investing.
  4. Compare the mortgage rate with a realistic after-tax investment return. Use a range, not a single optimistic number.
  5. Choose based on risk and liquidity, not just the expected return.
Middle path: Split the extra money. Put half toward the mortgage and half into a diversified portfolio. You get some guaranteed return and some liquidity without making a binary bet.

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

Access dates: December 2026. Government and Federal Reserve pages are updated on their own schedules; confirm the current figures before making a decision.

Questions

Frequently asked

Is paying off my mortgage a good investment?
It is a guaranteed return equal to the mortgage rate, before taxes and fees. It is less liquid than a brokerage account. Whether it is better than investing depends on the rate, your risk tolerance, and your emergency fund.
Should I invest or pay extra on a 3% mortgage?
At a low rate, investing may be more attractive over a long horizon, especially in tax-advantaged accounts. The decision depends on your risk tolerance and liquidity needs.
Does the calculator include taxes?
No. It compares interest saved with a pre-tax investment value. Taxes, fees, and risk can change the result.
What about the mortgage-interest deduction?
It may reduce the effective cost of the mortgage if you itemize and the loan qualifies. Many households take the standard deduction, so the benefit may be zero.
Can I do both?
Yes. Splitting the extra money between prepayment and investing is a common compromise. It provides some guaranteed return and some liquidity.
Keep going

Related tools and guides