The short answer
If the debt charges more than about 8% interest, kill it first. Below 8%, split your extra money between the debt and a boring index fund. High-interest debt is a guaranteed loss — nothing in the market is going to reliably outrun a 22% credit card APR.
Why most advice on this is unhelpful
You Google this question and the top result is some glossy article that opens with, "The answer depends on your individual financial situation. Consult a financial advisor." That sentence is a cop-out. It tells you nothing. The person writing it either does not want the legal exposure of giving a real answer, or does not actually know.
Here is the reality: this question has a real answer, and the real answer is driven by one number — the interest rate on your debt compared to the realistic long-term return of an index fund. If the debt rate is higher, the debt wins. If the debt rate is lower, you can reasonably do both. That is the whole framework. Anyone who complicates it beyond that is either trying to sell you something or trying to cover their own tail.
The math that actually matters
A broad US stock index fund has historically returned around 7% per year on average, after inflation. Some years it returns 25%. Some years it loses 18%. On average, over 20-plus years, roughly 7% real is a reasonable planning number. Not a promise — a reasonable expectation.
Now look at a credit card. The average US credit card APR right now is north of 20%. If you carry a $5,000 balance at 22%, that debt is costing you roughly $1,100 a year in interest. Paying that card off is a guaranteed 22% return on your money — with zero risk, zero tax, and no waiting.
Compare that to investing $5,000 in an index fund at an expected 7%. You might make $350 on average. You might lose $900 in a bad year. The credit card is handing you a 22% risk-free return just for making the payment. There is no contest.
At 5-6% interest (think a reasonable car loan or a federal student loan), the math is closer. You could pay the debt early, or you could invest, and the expected outcomes are in the same neighborhood. That is where "doing both" starts to make sense — you get the emotional win of shrinking debt and the long-term win of compounding.
Your specific situation matters
A few places where the rule flexes:
If your employer matches 401(k) contributions, contribute enough to get the full match even while you are knocking out debt. A 50% match is an instant 50% return — that beats almost any debt interest rate on day one. Leaving match money on the table is leaving cash on the table.
If your debt is a low-rate mortgage (say, 3-5%), do not rush to pay it off early at the expense of investing. The math there favors investing the extra money. That loan is arguably cheap capital.
If you have no emergency fund and you are about to throw every extra dollar at a credit card, pause. A flat tire, a truck repair, or a short layoff sends you right back to the credit card — and you have made no progress. Build a small emergency cushion ($500-$1,500) first, then attack the debt.
If your job is unstable or your hours fluctuate (shift work, contract work, overtime-dependent), lean a little more toward liquid savings and less toward both aggressive debt payoff and aggressive investing. Cash flow matters more than optimization when income is bumpy.
What I would actually do if I were starting over
If I had $500 extra per month and a 22% credit card with a $4,000 balance, I would put $450 of that toward the card and $50 into a basic index fund through a brokerage account. That $50 is not going to change my life in year one. But it builds the habit. It means when the card is gone in nine months, I already know how to move money into an investment account — I am not starting from zero.
Once the card is paid off, I flip it. The $450 that was going to the card now goes to investing. I keep the $50 habit. I have gone from paying 22% to earning an expected 7% — that is effectively a 29-percentage-point swing in my favor every year going forward.
This is not glamorous. There is no crypto moonshot, no stock-picking genius. It is just arithmetic and repetition. That is how almost every working person who ends up comfortable did it.
Common mistakes
Mistake one: feeling like you should not invest until every debt is gone. That is only true for high-interest debt. If you have a 4% car loan and a 3% mortgage, there is no reason to wait a decade before you start investing. Your time in the market is the most valuable variable you have, and it is not coming back.
Mistake two: investing aggressively while carrying credit card debt. People sometimes chase a hot stock or a trendy crypto position while paying 24% on a card balance. Mathematically, the card is beating any realistic return they are getting. That is running up a down escalator.
Mistake three: treating "pay off debt" and "invest" as a pure either-or. Almost always the right answer is both, weighted toward whichever one has a worse interest rate. Purity is not the goal. Progress is.
The bottom line
Above roughly 8% interest, pay the debt. Below that, split. Always capture any employer 401(k) match before worrying about either. The feeling that you have to pick one or the other — that is marketing, not math.

