FinMathHub
Opportunity Cost Engine

Mortgage Prepayment vs. Investing Calculator

Compare allocating surplus cash toward mortgage principal versus investing in index funds. Accounts for compound interest divergence, tax drags, and the post-debt investment pivot.

Outcome: Investing Yields Higher Net Worth
Net Worth Advantage+$136,033in favor of invest
Strategy A (Invest Extra)$701,809Portfolio: $701,809
Strategy B (Prepay Then Invest)$565,776Debt free in 15.2 yrs

Parameters

Investment Assumptions

Long-Term Wealth Projection

Base Monthly Payment$2,456/moTotal Monthly Budget: $3,256
After-Tax Investment Return7.50% / yearSpread vs. Mortgage: 2.00%
Model Pure Investment Compounding?Analyze dividend reinvestment, multi-decade timelines, and inflation-discounted real dollars.
Compound Calculator
Opportunity Cost Analysis

The Math of Prepaying Debt vs. Investing in Index Funds

Evaluating the mathematical trade-off between guaranteed risk-free returns and long-term market equity premiums.

1. Guaranteed Risk-Free Yield vs. Equity Risk Premium

Prepaying a mortgage delivers a guaranteed, after-tax rate of return precisely equal to your mortgage interest rate. For example, prepaying a 5.5% loan produces an effective risk-free return of 5.5% with zero market volatility.

In contrast, allocating capital into broad-market index funds (such as the S&P 500 or total global indices) historically yields nominal annualized returns of approximately 9.5%–10% over multi-decade periods, but introduces price volatility and sequence-of-returns risk.

2. Tax Drag & The Post-Payoff Pivot

To compare the two paths fairly, taxable account investments must account for tax drag on dividends and capital gains:

After-Tax Return = Nominal Return × (1 - Marginal Tax Rate)

The Strategic Pivot: When a homeowner eliminates their mortgage debt early, they unlock their entire scheduled monthly payment (principal + interest). Reinvesting that total freed-up cash flow into index portfolios can rapidly narrow the wealth gap against pure investing strategies.

Curated Decision Models

Common Mortgage vs. Investing Scenarios

Explore side-by-side math simulations comparing guaranteed mortgage interest savings against equity index returns.