Calculator
Pay Off Debt or Invest?
Compare paying a debt off early with investing the same money, including an employer match, and see the return investing has to beat.
Example numbers. Replace with yours.
01Your debt
Payment is what you pay now each month. Works for any debt: cards, car, student loans, a mortgage.
02Your extra money
03If you invest it
Yearly returns after fees and taxes. These are guesses, not promises: over a few years, investments can lose money.
Mortgage interest only helps if you itemize. The student loan interest deduction is capped at $2,500 a year and phases out at higher incomes.
Both paths, at your middle return
| Path | Debt gone | Interest | Ends with |
|---|
By return
| Return | Pay off first | Invest first | Ahead |
|---|
Who's ahead, month by month
Above zero, investing first is ahead. Below zero, paying off first is ahead.
Show the chart as a table
| When | Low | Middle | High |
|---|
Assumptions
- Both paths spend the same money every month: your regular payment plus the extra. Only where it goes changes.
- Pay off first: the extra goes to the debt until it's gone, then everything you were paying gets invested.
- Invest first: you keep making the regular payment and invest the extra from day one.
- We compare the two at the month the debt would be paid off on its regular payment, when both paths are debt-free.
- Debt interest is charged monthly at APR ÷ 12. Investments grow monthly at your yearly return, with each month's money added at the end of the month.
- Returns are what you keep after fees and taxes, and they're the same every year. Real returns jump around, and the order of good and bad years matters.
- Employer match is added to whatever you invest that month, up to the limit you enter, on both paths.
- If your interest is deductible, the tax saving is treated as invested each month. Real refunds come once a year and may be capped.
- The rate on the debt stays fixed. No new borrowing.
How we calculate this
Each month, on each path:
- The debt grows by its interest: balance × APR ÷ 12.
- The debt gets its payment: the regular payment, or payment plus extra on the pay-off-first path.
- Everything not spent on the debt is invested, plus any employer match and tax saving. The investment balance first grows by one month of return.
The break-even return is the yearly return at which both paths end up with exactly the same amount. We find it by trying returns until the two paths match to within a fraction of a cent.
Worked example: a debt at 6% APR charges 0.5% a month. Over a year that compounds to 6.17%.
- If your investments also earn 6.17% a year, every dollar does exactly as well in either place, so the two paths tie. That's the break-even.
- Add a 50% employer match and each matched $100 becomes $150 the moment you invest it. The break-even drops a lot, because investing starts with a head start the debt can't match.
What this tool can't see
- Risk. Paying off debt is a guaranteed return. Investing isn't: a bad few years can leave the invest-first path behind even if long-run averages favor it.
- Your emergency fund. Money sent to a debt is hard to get back. Many people keep a cash cushion first, so a surprise bill doesn't land on a card.
- Peace of mind. Being debt-free has value the math doesn't count, and so does the habit of investing early.
- Variable rates. If your debt's rate can rise, paying it off protects you from that.
- Account rules. Retirement accounts have contribution limits and penalties for early withdrawal. Money in them isn't as easy to reach as cash.
- High-interest debt. Few investments reliably beat credit card rates around 20% or more.
If debt feels unmanageable, a nonprofit credit counselor can help, often for free. TheNational Foundation for Credit Counseling lists member agencies.
Related
- Debt Payoff Planner: when you'll be debt-free, and snowball vs. avalanche.
- Balance Transfer or Personal Loan?: lower the rate on card debt before deciding.