Why trust this guide: the comparisons below use standard interest math calculated at write time, with rates checked against current Federal Reserve data and long-run market averages from primary sources. No affiliate pitches, no invented numbers. Our editorial standards are public.
Paying off debt gives you a guaranteed return equal to your interest rate — wipe out a 21% credit card and you've locked in a risk-free 21%. Investing gives you a hoped-for return that has averaged about 10% a year over the long run but swings hard from year to year. That single contrast — guaranteed versus hoped-for — is the whole decision in one line. When your debt costs more than investing is likely to earn, paying it off wins. When it costs less, investing can pull ahead.
Most people don't have to pick one side and abandon the other, though. There's an order that captures the easy wins first — including free money you'd be foolish to skip — and this guide walks through it, with the math behind each step.
Should you pay off debt or invest first?
Compare the numbers. Paying off a debt earns you a guaranteed return equal to that debt's interest rate, tax-free. Investing earns a long-run average of roughly 10% a year, but it isn't guaranteed and some years lose money. So if your debt's rate is higher than what you'd realistically earn investing — for most people, anything above about 6–8% — clearing the debt is the better "investment." Below that, investing usually wins.
There's one move that beats both, and it comes first: an employer retirement match. If your job matches your 401(k) contributions, that's an instant 50–100% return — more than double any credit card rate — so you grab it before anything else. We'll come back to it.
Why paying off high-interest debt is a guaranteed return
Here's what makes credit card debt special. Interest on the average U.S. credit card runs about 21%, and it's charged whether the market goes up, down, or sideways. When you pay that balance off, you stop that 21% cost cold. The saving is certain — no market swing can take it away.
Compare it head-to-head on a $5,000 balance:
| Pay off the $5,000 card | Invest the $5,000 instead | |
|---|---|---|
| Return / cost rate | Saves ~21%, guaranteed | Earns ~10% average, not guaranteed |
| First-year result | Avoid roughly $1,050 in interest | Gain roughly $500 — in an average year |
| Downside risk | None — the saving is certain | Market can fall (the S&P 500 dropped ~18% in 2022) |
| Net position | About $550 ahead | About $550 behind, and only if the market cooperates |
Even in a good year for stocks, investing the $5,000 at the market's average leaves you roughly $550 worse off than just killing the card — because the card's 21% outruns the market's 10%. In a bad year you'd lose on both ends. That's why nearly every advisor says the same thing: wipe out high-rate debt before you invest a spare dollar beyond your employer match.
When does investing first actually win?
When your debt is cheap. Low-interest debt — many mortgages, subsidized federal student loans, a sub-6% car loan — often costs less than the market's long-run return, so money sent to investments can grow faster than the interest you'd save. That gap is your gain, especially inside a tax-advantaged account like a 401(k) or Roth IRA. The lower the rate, the stronger the case for investing.
Two things sharpen this. First, tax-advantaged growth: a dollar in a Roth IRA compounds tax-free, which effectively raises your investing return versus prepaying a low-rate loan. Second, time: the longer money stays invested, the more the long-run averages work in your favor, so a young investor paying 4% student loans usually comes out ahead investing. If you want to see how a low rate stacks up against decades of compounding, run both sides through the compound interest calculator.
The order that captures the easy wins first
Most people shouldn't go all-in on one side. This sequence — a simplified "financial order of operations" — grabs the highest guaranteed returns before the optional ones, so you never leave free money or a 21% saving on the table.
- Make every minimum payment. Non-negotiable. Missing one triggers late fees and credit damage that dwarf any investing gain.
- Save a small starter emergency fund (about $1,000, or one month of expenses). Without it, the next surprise lands straight back on a credit card — see how to build an emergency fund for the fast version.
- Capture your full employer 401(k) match. This is the free money — an instant 50–100% return. Contribute exactly enough to get all of it, even while you carry debt.
- Attack high-interest debt (roughly 8%+ — credit cards, payday loans, high-rate personal loans) aggressively. This is your guaranteed 21%-ish return.
- Build a fuller emergency fund (3–6 months of expenses) once the expensive debt is gone.
- Invest for the long term — fund a Roth or traditional IRA, then add more to the 401(k). Not sure which account? See 401(k) vs. IRA: which to fund first.
- Low-interest debt is optional to rush. Pay the minimums and invest the rest, or split extra dollars between payoff and investing based on what helps you sleep.
Don't skip the 401(k) match to pay off debt
Getting your employer match is the one place investing beats even credit card payoff. Say your employer matches 100% of the first 3% of pay you contribute. On a $50,000 salary, contributing $1,500 gets you another $1,500 free — a 100% return before the money grows a cent. Even a 50% match is a 50% return. Passing that up to send an extra $1,500 to a 21% card trades a guaranteed 50–100% for a guaranteed 21%. Always take the bigger number.
The catch: contribute just enough to get the full match — not more — while you still have high-rate debt. Beyond the match, your extra dollars earn more by killing the 21% card than by buying investments that average 10%.
Common mistakes people make
- Skipping the employer match to pay off low-rate debt. The match is the highest guaranteed return you'll ever get. Grab it first, every time.
- Investing aggressively while carrying 20%+ card debt. Chasing a 10% average while a 21% balance grows is running up a down escalator.
- Emptying all savings to hit zero debt. Keep a small buffer so the next surprise doesn't restart the debt cycle.
- Treating all debt the same. A 4% mortgage and a 24% card are opposite problems; the rate decides the priority, not the balance.
- "Investing the difference" that never gets invested. If it isn't automatic, it isn't a plan.
Who should skip this decision (for now)
If you have no emergency fund at all, neither aggressive payoff nor investing comes first — a small cash buffer does, because without one you'll borrow against the next flat tire and undo your progress. Start there.
If your income is irregular — freelance, commission, seasonal — lean toward more cash on hand and guaranteed debt payoff over market investing, since you can't count on a steady surplus to ride out a downturn.
And if debt genuinely keeps you up at night, paying it off faster than the math strictly requires is a legitimate choice. A guaranteed return plus real peace of mind can beat an extra percentage point you'll never feel. The "optimal" answer is the one you'll actually stick to.
Quick answers
Should I pay off debt or invest first? Compare rates. Paying off debt is a guaranteed return equal to its interest rate; investing averages about 10% a year but isn't guaranteed. If your debt costs more than roughly 6–8%, pay it off first. Below that, investing usually wins. The one exception that beats both: always capture a full employer 401(k) match first.
Should I stop investing to pay off my credit cards? Beyond your employer match, usually yes. A typical card charges about 21%, and eliminating it is a guaranteed 21% return that almost no investment reliably beats. Keep contributing just enough to get any 401(k) match, then pour everything else into the cards until they're gone.
Should I pay off my mortgage or invest? Most mortgages carry a low enough rate that investing the extra money — especially in a tax-advantaged account — is likely to out-earn the interest you'd save. Prepaying a mortgage is a guaranteed but modest return; many people split the difference, and some prepay simply for the security of owning their home outright.
Should I contribute to my 401(k) if I have debt? Contribute at least enough to get the full employer match, even with debt — it's an instant 50–100% return you can't get anywhere else. Past the match, redirect extra dollars to high-interest debt first, then come back to investing once it's cleared.
Is it ever smart to invest while still in debt? Yes — in two cases. Always invest enough to capture an employer match, and it's usually fine to invest alongside low-rate debt (mortgages, sub-6% loans) because the market is likely to out-earn that cheap interest over time. The debt to clear before investing is the high-rate kind.