Section 1: Debt Payoff Opportunity Costs
Home loan prepayments represent a highly stable, guaranteed, tax-free return on capital by eliminating outstanding debt interest. However, systematically paying off low-rate debt comes at a significant opportunity cost: **foregone equity market compounding**. Wealth advisory desks continuously model this trade-off for clients:
- **Guaranteed Return:** Paying down a 6% mortgage yield is a guaranteed, tax-free return of exactly 6% on your cash.
- **Opportunity Yields:** Investing that same cash into diversified index funds historically yields 10% to 12% annually over a long horizon.
- **Tax Write-off Deflators:** Home loan interest payments frequently qualify for tax write-offs, reducing the actual net rate of the debt.
Section 2: Mathematical Modeling of Opportunity Cost Spreads
To model the net yield advantage of investing cash over paying down debt, we calculate the **Net Arbitrage Spread** after accounting for marginal tax write-offs:
If your mortgage rate is 6%, your marginal tax rate is 30%, and the expected market return is 10%:
By choosing to invest extra cash in the market instead of prepaying the mortgage, the investor captures a **5.8% net annual compounding advantage** on that capital.
Section 3: Technical Python Prepayment vs Market Investment Modeler
Below is a Python quantitative simulator designed to compare net worth outcomes over 20 years when choosing between paying down a home loan or investing in market index funds:
def simulate_mortgage_vs_investment(extra_cash, mortgage_rate, market_rate, tenure_years):
balance_prepayment = 0.0
balance_investment = 0.0
# Monthly rates
r_mortgage = mortgage_rate / 12 / 100
r_market = market_rate / 12 / 100
months = tenure_years * 12
for month in range(1, months + 1):
# prepayment compounds by saving interest
balance_prepayment = (balance_prepayment + extra_cash) * (1 + r_mortgage)
# Market compounding
balance_investment = (balance_investment + extra_cash) * (1 + r_market)
print(f"Prepayment Value: ${balance_prepayment:,.2f} | Market Value: ${balance_investment:,.2f}")
return balance_prepayment, balance_investmentSection 4: 20-Year Net Worth Projection ($500 Monthly Allocation)
The table below models net worth outcomes comparing a 6.0% debt pay-down vs a 10.0% market investment:
| Allocation Choice | Monthly Payment | Compounding Rate | Terminal Capital Asset Value (20Y) | Net Arbitrage Spread |
|---|---|---|---|---|
| **prepay Mortgage** | $500 | 6.0% (Guaranteed) | $232,175 | $0 (Base Case) |
| **Invest in Market Index** | $500 | **10.0% (Historical Avg)** | **$377,910** | **+$145,735 (Net Wealth Gain)** |
**Psychological Risk Variance**: While market index investing is mathematically optimal, it comes with high volatility. During major bear markets, equity values can drop by 30%, which can lead to panic selling. If you have low risk tolerance, paying off debt offers guaranteed peace of mind that market returns cannot match.
