Debt Payoff vs Invest Decision Calculator
Should you put your extra cash toward paying off debt or invest it in the stock market? This calculator compares both 10-year outcomes side-by-side, factoring in your tax bracket and expected investment return.
The "Pay Off Debt or Invest" Decision Math
This is one of the most common personal finance questions in 2026. The answer depends on a simple comparison: your debt's after-tax interest rate vs your investment's after-tax expected return. According to the SEC's investor education materials, the S&P 500 has returned roughly 10% annually before inflation and 7% after inflation over the past 90 years. Compare that to your debt rate:
- Credit card debt (20–28% APR): Always pay off first. No legal investment beats a guaranteed 22% return.
- Personal loans (10–15% APR): Usually pay off first. Investment returns rarely beat this consistently.
- Auto loans (6–9% APR): Gray zone. Roughly tied with stock market expected return.
- Student loans (4–7% APR): Often invest, especially if tax-deductible. Federal student loan interest is deductible up to $2,500 per IRS Form 1098-E.
- Mortgage (6–7% APR): Usually invest, especially in tax-advantaged accounts (401k, IRA). Plus mortgage interest may be deductible per IRS Pub 936.
The Math Behind the Decision
If your debt rate (after tax adjustments) is higher than your expected investment return (after tax adjustments), pay off the debt. If lower, invest. The math is:
Pay off if: debt_rate × (1 − debt_tax_deductibility) > investment_return × (1 − investment_tax)
This calculator simulates the actual cash flows month by month. In Strategy A, you throw all your extra cash at the debt until it is gone, then invest. In Strategy B, you make only the minimum debt payment and invest the difference. The strategy with higher net worth at the end wins.
Beyond Math: The Behavioral Case for Paying Off Debt
The CFPB and behavioral finance research note that paying off debt has psychological benefits the math does not capture: reduced anxiety, lower temptation to over-spend, freedom to take career risks, and immunity to job loss. Dave Ramsey's "debt snowball" prioritizes psychology (smallest debt first regardless of rate) — the math favors the "debt avalanche" (highest rate first). For most people, the snowball wins because it keeps them motivated long enough to finish.
The Emergency Fund Comes First
Before either strategy, ensure you have $1,000–$3,000 in emergency savings. Without this buffer, an unexpected expense (car repair, medical bill) will force you to add new debt to a credit card — potentially erasing months of progress. The CFPB recommends 3–6 months of expenses as a full emergency fund, built up after high-interest debt is gone.
Tax-Advantaged Accounts Tilt the Math
If your employer offers a 401k match, take it before paying off any debt below ~10% interest. A 100% match (1:1) is an instant 100% return — no debt rate beats that. The SEC and Department of Labor both prioritize capturing employer matches before other financial goals.
Sources: SEC investor education (investor.gov), Consumer Financial Protection Bureau (consumerfinance.gov), Federal Reserve Survey of Consumer Finances (federalreserve.gov), Department of Labor 401k guidance (dol.gov), IRS Publication 936 and Form 1098-E (irs.gov). Last updated: May 2026.