Loan vs Invest Decision Helper
Compare paying off debt vs investing with after-tax analysis. Enter values for instant results with step-by-step formulas.
Formula
Net Benefit = After-Tax Investment Gain - After-Tax Loan Interest; Spread = Investment Return - Effective Loan Rate
## Core Formulas **Monthly Loan Payment**: Payment = Principal × [r(1+r)^n] / [(1+r)^n - 1] Where r = monthly rate, n = number of payments **Total Loan Interest**: Total Interest = (Monthly Payment × n) - Principal **Effective Loan Rate (if deductible)**: Effective Rate = Stated Rate × (1 - Tax Bracket) **Investment Growth**: Future Value = Present Value × (1 + Return Rate)^Years **After-Tax Investment Gain**: After-Tax = Gain × (1 - Capital Gains Rate) **Spread**: Spread = Investment Return - Effective Loan Rate **Net Benefit of Investing**: Net = After-Tax Investment Gain - After-Tax Loan Interest ## Why This Framework Works The framework reduces a complex decision to comparable units: after-tax dollars at a future point. Both strategies have the same starting point (lump sum + loan) and end at the same time (loan term). The difference in ending wealth is the net benefit. The spread simplifies by comparing rates directly. A positive spread means each dollar invested earns more than the same dollar would save in interest. Risk premium accounts for the uncertainty of investment returns versus the certainty of debt payoff. Tax adjustment is critical because interest deductibility and capital gains rates differ. The framework applies appropriate tax treatment to each side, enabling apples-to-apples comparison of after-tax outcomes.
Worked Examples
Example 1: Student Loan vs S&P 500
Problem:$50K student loan at 5%, 10-year term. Have $50K inheritance. Expected market return 8%. 24% tax bracket. Interest is tax-deductible.
Solution:Loan Analysis: Monthly payment: $530 Total interest: $13,639 After-tax interest (24% bracket): $10,366 Effective rate: 5% × (1-0.24) = 3.8% Invest Analysis: $50K at 8% for 10 years: $107,946 Gain: $57,946 Capital gains tax (15%): $8,692 After-tax gain: $49,254 Comparison: Investing net: $49,254 - $10,366 = $38,888 ahead Spread: 8% - 3.8% = 4.2% (strong) Recommendation: Invest. Strong positive spread, and deductibility reduces effective loan cost significantly.
Result:Invest | $38,888 net benefit | 4.2% spread | Deductibility helps
Example 2: Car Loan - High Rate
Problem:$30K car loan at 9%, 5-year term. Have $30K savings. Expected return 7%. Not tax-deductible. 22% bracket.
Solution:Loan Analysis: Monthly payment: $623 Total interest: $7,376 No tax benefit (consumer debt) Effective rate: 9% Invest Analysis: $30K at 7% for 5 years: $42,077 Gain: $12,077 After-tax gain: $10,265 Comparison: Investing net: $10,265 - $7,376 = $2,889 ahead BUT spread is only 7% - 9% = -2%! Mathematically, investing still ahead due to compounding, but the negative spread means risk is not rewarded. Recommendation: Pay off loan. Guaranteed 9% return beats uncertain 7%.
Result:Pay Off Loan | Guaranteed 9% > uncertain 7% | Negative spread
Example 3: Mortgage - Low Rate
Problem:$300K mortgage at 3.5%, 30 years. Have $100K to either invest or pay toward principal. Expected return 8%. 32% tax bracket. Mortgage interest deductible.
Solution:Mortgage effective rate: 3.5% × (1-0.32) = 2.38% Invest $100K at 8% for 10 years: $215,892 | After-tax gain: $98,508 Pay down mortgage: Saves ~$50K interest over 10 years (complex calc) Guaranteed 2.38% effective return Spread: 8% - 2.38% = 5.62% (very strong) Over 10 years, investing likely adds ~$48K more wealth than paydown. Recommendation: Invest, especially in tax-advantaged accounts. Mortgage is cheapest debt most people have. Maintain liquidity for opportunities.
Result:Invest | 5.62% spread | Mortgage is cheap debt | Maximize tax-advantaged accounts first
Frequently Asked Questions
Should I pay off debt or invest?
Compare after-tax interest rate on debt vs expected after-tax investment return. If investment return > debt rate + 1-2% risk premium, investing may be better mathematically. But consider: debt payoff is guaranteed return; investments are uncertain. Risk tolerance matters.
What's the guaranteed return of paying off debt?
Paying off debt at X% interest rate = guaranteed X% return (after-tax if deductible). No investment matches this certainty. A 6% loan payoff equals a guaranteed 6% return—compare to volatile 8% expected stock returns.
How does tax deductibility affect the decision?
Deductible interest (mortgage, student loans, business) reduces effective rate. 6% mortgage at 24% tax bracket = 4.56% effective rate. Compare this lower effective rate to after-tax investment returns. Deductibility favors investing over payoff.
What investment return should I assume?
Historical stock market: ~10% nominal, ~7% real. Conservative estimate: 7-8% for planning. Aggressive: 10%+. Use lower estimates for important decisions. Actual returns vary wildly year-to-year; averages smooth volatility.
What about peace of mind from being debt-free?
Psychological value of no debt is real but unquantifiable. Some people sleep better debt-free even if mathematically suboptimal. Others are comfortable leveraging low-rate debt to invest. Know yourself.
Does loan term affect the decision?
Longer terms mean more interest paid but also more time for investments to compound. Short-term loans favor payoff (less time for investment gains). Long-term low-rate loans favor investing (more compounding time).
What about liquidity considerations?
Paying off loan ties up capital—you can't easily access it. Investing maintains liquidity (can sell if needed, albeit potentially at loss). For emergency funds and flexibility, liquidity argues for investing over payoff.
How do I account for investment risk?
Add 1-2% risk premium to required investment return. If loan is 6%, require 7-8% expected return before investing. Higher for volatile investments, lower for bonds. Debt payoff is the risk-free alternative.
Should I pay off mortgage early?
Mortgage is often lowest-rate, tax-deductible debt. Mathematical case for investing is strong. But paid-off home provides security. Common approach: invest for retirement accounts (tax advantages), then accelerate mortgage with remaining funds.