Stack Math

Learn · Debt

Should I pay off debt or invest?

By Stack Math team · Updated

8 min read7 sources

The short answer

Compare rates. Paying off a debt earns you a guaranteed return equal to its interest rate, so a credit card at 22% should almost always be paid off before investing. Low-rate debt, like a mortgage or low-rate student loan, is a closer call where investing can make sense, but first contribute enough to get any 401(k) match, which is part of your pay.

Key points

Try it with your numbersDebt payoff calculatorFree, no sign-up

This question gets argued endlessly online, but most of it comes down to one comparison. Once you see it, the answer for your own debts is usually obvious.

The simple rule: compare rates

Every dollar you put toward a debt saves you that debt’s interest rate, guaranteed. Every dollar you invest might earn more or less, with no guarantee. So the question is: is your debt’s rate higher than what you can reliably earn?

Where your money could goRate (latest data)Guaranteed?
Pay off a credit card22.36% average on accounts charged interestYes
Pay off a personal loan11.90% average, 24-month bank loansYes
Pay off a new federal student loan6.52% to 9.07% (2026-27)Yes
Average savings account0.38% national rateYes (FDIC-insured up to limits)
Invest in stocksVaries year to year, can be negativeNo

The order most people should follow

  1. 1
    Pay minimums on everything

    Never miss a payment; late payments cost fees and credit score points.

  2. 2
    Build a starter emergency fund

    A small cushion keeps the next surprise off a credit card.

  3. 3
    Get the full 401(k) match

    An employer match is part of your pay. Not taking it is turning down money.

  4. 4
    Pay off high-interest debt

    Credit cards, store cards, high-rate personal loans.

  5. 5
    Finish the emergency fund

    Build toward a few months of expenses.

  6. 6
    Then split

    Invest for retirement and pay down low-rate debt at the same time, in a mix you are comfortable with.

How to treat each type of debt

Quick answer for your situation

Credit cards and payday loans
Pay off first, after the match and a starter cushion. No reliable investment beats these rates.
Personal and car loans around 7% to 12%
Usually worth paying down faster, especially if variable or high relative to savings rates.
Federal student loans
Depends on the rate and your plan. High-rate loans lean toward payoff; if you may use forgiveness programs, extra payments may not make sense.
Low fixed-rate mortgage
Often reasonable to invest instead, if you have the cushion and patience for market swings.

The math: card debt vs investing

22.36%avg APR, card accounts charged interestFed G.19
0.38%national average savings rateFDIC
$24,5002026 employee 401(k) contribution limit ($25,500 in 2027)IRS

Low-rate debt is where the decision gets personal. Paying off a 4% loan is a guaranteed 4%; investing might earn more over long periods, or less. Many people split the difference, and that is a perfectly reasonable answer.

What research says

Debt vs investing myths

Myth vs fact

Myth You should never invest until you are debt-free.

Fact Skipping a 401(k) match to pay low-rate debt usually costs you money.

Myth The stock market averages more than your card rate, so invest.

Fact Market returns are not guaranteed and vary a lot. Card interest is guaranteed to cost you.

Myth All debt is bad.

Fact Low-rate debt for something lasting, like a home or education, can be reasonable. High-rate consumer debt is the problem.

See exactly how much interest each extra payment saves in the debt payoff calculator, and read how credit card interest works to see what that debt really costs.

The bottom line

Grab the 401(k) match, build a small cushion, then wipe out high-interest debt before investing more. Once only low-rate debt is left, it is reasonable to split extra money between paying it down and investing for the long term.

Common questions

Should I invest while I have credit card debt?

Generally only enough to get a 401(k) match. Beyond that, paying off a card charging over 20% is a better guaranteed return than investing.

Should I pay off my mortgage early or invest?

A low fixed-rate mortgage is a common case where many people invest instead, since long-term investments have historically had a chance to earn more. It depends on your rate, your risk tolerance and your peace of mind.

What interest rate is “high” debt?

There is no official line. Credit cards (often over 20%) are clearly high. Many people treat anything well above what safe savings pay as worth paying down first.

Sources

  1. Federal Reserve G.19 Consumer Credit release (card and personal loan rates) (checked November 11, 2026)
  2. Federal Student Aid: Interest rates for federal student loans (2026-27) (checked November 11, 2026)
  3. FDIC National Rates and Rate Caps (savings national rate 0.38%, Oct 2026) (checked November 11, 2026)
  4. IRS IR-2025-111: 2026 401(k) and IRA limits (checked November 5, 2026)
  5. IRS IR-2026-136: 401(k) limit increases to $25,500 for 2027, IRA limit remains $7,500 (Nov 12, 2026) (checked November 15, 2026)
  6. Madrian, B. and Shea, D. (2001). The Power of Suggestion: Inertia in 401(k) Participation and Savings Behavior. Quarterly Journal of Economics, 116(4), 1149-1187 (checked November 5, 2026)
  7. Stango, V. and Zinman, J. (2009). Exponential Growth Bias and Household Finance. Journal of Finance, 64(6), 2807-2849 (checked November 11, 2026)

Keep reading

Also worth knowing

General education, not financial, tax or legal advice. Rates and rules change, so check the sources above before you act. Disclaimers