Should You Pay Off Debt or Invest? The Math-Based Answer

This is one of the most common personal finance dilemmas: you have extra money each month. Should you use it to pay down debt or put it in the market?

The answer isn't emotional — it's mathematical.

The Core Logic: Compare Rates

Paying off debt earns you a guaranteed return equal to the interest rate. Investing earns a variable return.

  • Paying off a 20% APR credit card = guaranteed 20% return
  • S&P 500 historical average = ~10% per year (not guaranteed)

Rule of thumb:

  • Debt above 7% APR → pay it off first
  • Debt below 4% APR → invest instead
  • Debt between 4–7% → split, or follow the priority order below

The Priority Order

Follow this sequence regardless of feelings:

  1. Emergency fund ($1,000 minimum, then 3 months) — nothing else matters if you don't have this
  2. 401(k) to employer match — instant 50–100% return, always wins
  3. High-interest debt (credit cards, personal loans > 8%) — guaranteed high return
  4. Max Roth IRA ($7,000/year) — tax-free growth for decades
  5. Medium-interest debt (student loans 5–7%) — personal preference
  6. Max 401(k) ($23,500/year)
  7. Low-interest debt (mortgage, student loans < 4%)
  8. Taxable investing

The Employer Match Always Wins

Even with 20% credit card debt, contribute enough to your 401(k) to get the full employer match first. Here's why:

Employer contributes $2,000 (100% match on $2,000). Even after paying 20% APR on $2,000 of credit card debt for 1 year ($400 interest), you're up $1,600 net — a 60% return.

The match beats even high-interest debt. Always get it first.

Real Numbers: High-Interest Debt vs Investing

Scenario: $5,000 credit card at 22% APR vs investing $5,000 in index funds

After 5 years:

  • Pay off debt immediately: save $5,500 in interest (guaranteed)
  • Invest instead: $8,053 in portfolio (at 10%) — but still paying $5,500 in interest = net loss of ~$447

Conclusion: Pay off 22% debt first. Every time.

Real Numbers: Low-Interest Debt vs Investing

Scenario: $50,000 student loan at 3.5% vs investing in index funds

After 10 years:

  • Extra $500/month to loan payoff: save $9,200 in interest
  • Extra $500/month invested at 7% average: $82,898 portfolio value

Conclusion: Invest instead of paying extra on 3.5% debt. The market beats it by a wide margin over time.

The Psychological Factor

Math says invest when debt rates are below ~7%. But math doesn't account for:

  • Stress from carrying debt (real cost to wellbeing)
  • Risk tolerance — investing with debt feels like gambling to some
  • Behavior risk — will you actually invest, or spend it?

If debt keeps you up at night, pay it off even if the math says invest. Peace of mind has value.

The Hybrid Approach (Best for Most People)

When debt rate is in the 4–7% gray zone:

  • Pay minimums on all debt
  • Get full employer match
  • Put 50% extra cash toward debt, 50% toward investing

This reduces debt anxiety while still building wealth.

What to Do With Each Debt Type

Debt type Typical APR Action
Credit cards 18–28% Pay aggressively first
Personal loans 8–15% Pay before investing
Auto loans 5–8% Borderline; get match first
Student loans 3–7% Pay minimums; invest
Mortgages 6–8% Get match + max IRA first

The Bottom Line

  • Always get the full employer 401(k) match first
  • Always maintain a $1,000+ emergency fund
  • Debt above 8% APR → pay first, invest second
  • Debt below 5% APR → invest first, pay minimums only
  • 5–8% range → split 50/50 or follow the priority order

Use our Compound Interest Calculator to model what your money grows to if invested vs the interest saved by paying off debt.

Disclosure: This article contains affiliate links. If you click and purchase, I may earn a small commission at no extra cost to you.

Get free finance tips

Join our newsletter — practical guides, no spam.