This is one of the most argued questions in personal finance, and most of the argument is unnecessary. There is a clean mathematical answer, plus a short list of human exceptions. Here is both.

The mathematical answer: compare rates

It comes down to one comparison: your debt's interest rate versus your expected investment return.

  • Debt above ~7–8%? Pay it off first. Credit cards at 20%+ are an emergency, not a debate. No investment reliably beats a guaranteed 22% return, which is exactly what paying off a 22% card gives you.
  • Debt below ~4–5%? Invest first. A mortgage at 6% or a student loan at 4% costs less than the stock market's long-run average return (roughly 7–10% before inflation, 7% after, depending on the period you measure). Investing the extra dollars usually wins mathematically.
  • Debt at 5–7%? The gray zone. The math is close enough that either choice is defensible. This is where the human factors below decide.

The key word is expected. Investment returns are uncertain; debt payoff returns are guaranteed. A guaranteed 6% (paying off a 6% loan) beats an expected 8% with real risk of being 2% for a stretch of years. Adjust the framework for your risk tolerance: conservative people should use a lower threshold, maybe 5–6%, before investing wins.

The non-negotiable order of operations

Before the debt-vs-invest debate even starts, handle these in order:

  1. Minimum payments on everything. Never miss minimums, late fees and credit damage cost more than any optimization.
  2. A small emergency buffer. $1,000–$2,000 in savings, so one car repair does not become new credit card debt.
  3. Employer 401(k) match. If your job matches contributions, contribute enough to get the full match even while paying off high-interest debt. A 50–100% instant return beats everything.
  4. High-interest debt (credit cards, payday loans, anything over ~8%).
  5. Then the debt-vs-invest decision for the remaining moderate-rate debt.

The human exceptions

Math is not the whole story:

  • Sleep-at-night factor. Some people cannot stand any debt. If being debt-free is worth a slightly lower net worth to you, that is a valid preference, not a mistake.
  • Cash flow freedom. Paying off a $300/month car loan frees $300/month of flexibility even if investing would have earned slightly more. Flexibility has real value.
  • Upcoming mortgage application. Lenders care about your debt-to-income ratio. Paying down debts before applying can get you approved or get you a better rate, which dwarfs investment returns.
  • Tax nuances. Mortgage interest may be deductible; 401(k) contributions reduce taxable income. These tilt the math modestly toward investing in tax-advantaged accounts.

What about "doing both"?

Splitting extra money between debt payoff and investing is the most popular answer and usually the worst of both worlds in the gray zone: you get neither the guaranteed return of aggressive payoff nor the full compounding of aggressive investing. Pick a lane based on the rate comparison above, with one exception: always keep getting the employer match.

The bottom line

Above 8%: kill the debt. Below 5%: invest. Between: follow your gut, but never skip the employer match. Use our debt payoff calculator to see your debt-free date, and our compound interest calculator to see what investing those same dollars could grow into.

Estimates for planning only, not financial advice.