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.

Your Debt
Credit card avg: 24%, student loan: 5–7%, mortgage: 7%
Investment Assumptions
S&P 500 historical real return ~7% per SEC
Comparing…
Strategy A: Pay Off Debt First
Months to debt-free
Total interest paid
Then invest after debt-free
Net worth at end
Strategy B: Invest Instead
Months to debt-free (min only)
Total interest paid
Investment value (after tax)
Net worth at end
Ad Space

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:

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.