Should I pay off debt or invest?
A calculator that compares your debt interest rate against your expected market return so you know whether extra money should pay down debt or be invested.
How this works
The math here is small but the framing matters. Every dollar you put toward debt earns you a guaranteed, tax-free return equal to the debt's interest rate. Every dollar you put into the market earns you an expected return — historically ~7% real for a diversified equity index — but that return is taxed (on dividends + capital gains) and uncertain.
The decision rule
- If debt rate > market return (after tax), pay down debt first.
- If market return (after tax) > debt rate + ~1% risk premium, invest.
- In between, it's close enough that behavior wins — pick whichever you'll actually stick with.
What the numbers show
Both paths use the same extra money for the same stretch of time: the months it takes that monthly amount to clear the balance. Pay it down and you end debt-free with nothing invested. Invest it instead and you end with a portfolio — but the debt has kept compounding at its rate. The invest path wins only if the portfolio is bigger than the debt you'd still owe, which happens exactly when the after-tax return beats the debt rate. If the payment doesn't cover the monthly interest, the balance never pays off and there's no finish line to compare at.
We treat the debt as non-deductible, which fits most credit cards and personal loans. Student loan interest is an above-the-line deduction (up to $2,500 a year, phased out at higher incomes) — no itemizing needed — so if you qualify, its real cost is a bit under the APR; enter a slightly lower rate to reflect that. For mortgage debt, see the refinance calculator. For federal student loans specifically, the student loan calculator compares aggressive payoff against IDR forgiveness — a path this calculator doesn't model.
Common questions
At what interest rate should I prioritize paying off debt?
If your debt rate exceeds your expected after-tax market return (roughly 5-6% for most people), pay off the debt first. Above 7-8%, it's almost always better to pay down debt. Below 4%, investing usually wins.
Should I pay off my mortgage early or invest?
At today's mortgage rates (6-7%), it's close to a toss-up. The guaranteed 'return' on paying off debt is risk-free, while investing carries volatility. If you'd lose sleep over market drops, paying off debt is the right behavioral choice.
Does the type of debt matter?
Yes. Credit card debt (18-25% APR) should almost always be paid off first — no investment reliably beats that. Student loans and mortgages at 4-7% are where the math gets interesting.