Pay Off Debt or Invest? The Real Answer

Almost every financial situation has both debt and investment opportunities. The right answer isn't the same for everyone β€” here's the decision framework.

Illustration of a balance scale

The 30-Second Answer

Pay off any debt with an interest rate above 7-8%. Invest the rest.

Why? Long-term stock market returns average 7-10% annually. Debt above 8% beats that guaranteed. Debt under 6% is being inflated away while your investments grow faster. Between 6-8% is a judgment call.

The Proper Priority Order (Almost Everyone)

  1. Build a 1-month emergency fund first. Otherwise any setback puts you back in debt.
  2. Capture the full 401(k) employer match. This is a 100% instant return β€” ignore it and you're leaving free money.
  3. Crush all debt above 8% APR. Credit cards, payday loans, personal loans. These are financial emergencies.
  4. Build 3-6 months of expenses in a high-yield savings account.
  5. Max tax-advantaged accounts: HSA > Roth IRA > 401(k) to limit.
  6. Pay down mid-rate debt (6-8% APR) while investing simultaneously.
  7. Invest everything else. Taxable brokerage, index funds.
  8. Low-rate debt (under 5%, e.g., mortgage, student loan) β€” let inflation eat it. Don't accelerate.

Why the 8% Threshold?

Historical S&P 500 return: ~10% nominal, ~7% real. After tax on capital gains and accounting for volatility, the reliable expected return is closer to 6-7% real. Paying off debt is a guaranteed return equal to the interest rate. So:

  • Debt at 8%+ = pay it off (beats likely investment return)
  • Debt at 5-8% = either path is reasonable
  • Debt under 5% = invest instead

The Psychological Override

Math says don't rush to pay off a 4% mortgage. Psychology sometimes says to anyway β€” some people function better debt-free even at a mathematical cost. That's valid. Here's when to override the math:

  • Debt keeps you awake at night
  • You're near retirement and want fixed low expenses
  • The debt's payments crowd out meaningful savings
  • You worry about job loss in your industry

Student Loans: A Special Case

Federal student loans are unlike other debt:

  • Often 4-7% rates (low to moderate)
  • Flexible repayment options (income-based, SAVE plan, PAYE)
  • Potentially forgivable (PSLF for public service, IDR forgiveness at 20-25 years)
  • Discharged upon death in most cases
  • Interest may be tax-deductible up to $2,500/year

Don't rush to pay these off unless your rate is >7%. Invest instead, preserve liquidity, and re-evaluate if rates change.

Credit Card Debt: The Emergency Case

Average credit card APR in 2026: ~22%. This is financial suicide. If you have $10,000 in credit card debt at 22%, paying only the minimum you'll pay $30,000+ over 18+ years and the balance will never actually go down. Stop investing everything except 401k match. Attack credit cards with every extra dollar.

Mortgage: Almost Always Keep

30-year fixed mortgages in 2020-2022 were 3-4%. These are money machines. Inflation is eroding the real value of your payments while your house (hopefully) appreciates. Paying extra on a 3% mortgage is roughly equivalent to earning 3% tax-free β€” worse than almost any investment. Keep the low mortgage, invest elsewhere.

But if you got a mortgage in 2024-2025 at 7%+, paying extra starts to make sense mathematically.

The Order for Someone Starting Fresh

Suppose you're 25, $60k salary, no debt, no savings:

  1. Emergency fund: $1,000 starter, then 3 months expenses
  2. 401(k) to full match (usually 3-6% of salary)
  3. Max Roth IRA ($7,000/yr)
  4. Max HSA (if eligible)
  5. Max 401(k) ($23,500/yr) if you can
  6. Taxable brokerage for the rest
  7. In 30 years you retire with roughly $2-3M

The Order for Someone with Debt

Same 25-year-old, but with $25k in student loans at 6% and $5k credit card at 22%:

  1. $1,000 starter emergency fund
  2. 401(k) to match only (not more)
  3. Attack credit card with everything else β€” pay off in 6 months
  4. Build emergency fund to 3 months
  5. Max Roth IRA + continue paying student loans on schedule (they're at 6%, borderline)
  6. After 3-4 years, debt-free with investments growing

Frequently Asked Questions

Is there a simple way to decide without a spreadsheet?
If debt rate > 8%: pay it off. If < 5%: invest. Between: split 50/50 and sleep easy.
What about a 0% APR credit card or 0% car loan?
Perfect β€” take the free money. Invest what you would have used to pay off early. Just make sure you actually pay before the promo period ends.
Should I cash out my 401(k) to pay off debt?
Almost never. You lose 10% penalty (under 59.5) + pay income tax + destroy compound growth. A $20k 401(k) cashed out at age 35 costs you about $150k of retirement value.
I have $50k in cash. Pay off mortgage or invest?
If your mortgage is under 5% and you can max retirement accounts, invest. If it's over 7%, half and half is reasonable. If you're 5 years from retirement, lean toward paying down the mortgage.
Calculate Your Salary