Pay off debt or invest first? A simple rule
Compare the interest rate on your debt to the return you expect from investing. Here is the line that usually decides it.
You have an extra $300 this month. You can throw it at a debt or put it into the market. The decision comes down to one comparison: a guaranteed return against an uncertain one. Paying off a debt earns you a return equal to its interest rate, locked in, no luck involved. Every dollar you knock off a 22% credit card saves you 22% you would have paid. Investing instead earns about 7% a year on average over long stretches, but that number is a long-run average, not a promise for any single year.
So the line that decides it is roughly your debt's rate versus 7%. Debt that charges more than the market is likely to pay you should go first. Debt that charges less can sit while you invest. One move jumps the queue ahead of both, and we will get to it, because it pays better than either choice.
Why paying off debt is a guaranteed return
When you carry a balance at 22%, that debt grows by 22% a year whether the stock market booms or crashes. Pay $1,000 of it off and you have permanently stopped paying 22% on that $1,000. That is a 22% return, and it shows up every year, recession or not. No investment hands you a sure 22% with zero risk. The closest thing to a guaranteed return most people will ever touch is clearing a high-rate debt.
The market is the opposite. The S&P 500 has returned about 7% a year after inflation over the long run, but it has also dropped more than 30% in a single year and stayed down for stretches. Your 7% is an average you only collect by staying invested through the bad years. It is real, and it is worth a lot, but it is not the same kind of certain that paying down a loan is. You can check how that 7% compounds in our compound interest calculator, and you can read the case for the debt side in the credit and debt guide.
The worked example: a 22% card vs a 4% loan
Say you have $5,000 sitting in your budget for the year and two things you could aim it at: a credit card at 22% and a student loan at 4%. The market is expected to return 7%. Here is what one year of that $5,000 does in each spot.
| Where the $5,000 goes | Return type | One-year value | Vs investing at 7% |
|---|---|---|---|
| Pay off 22% card | Guaranteed 22% | $1,100 saved | Beats investing by $750 |
| Pay off 4% loan | Guaranteed 4% | $200 saved | Behind investing by $150 |
| Invest in the market | Expected 7% | $350 (on average) | Baseline |
The card is easy. Clearing it saves you $1,100 in interest you would otherwise owe, a guaranteed 22%. Investing the same $5,000 would earn about $350 on average and might earn nothing, or lose money, in a bad year. Paying the 22% card wins by roughly $750 and it wins for sure. There is no version of this where carrying a 22% balance to chase a 7% average makes sense.
The 4% loan flips it. Clearing that loan saves you $200 for the year. The same $5,000 invested earns about $350 on average, $150 more. Here the math favors investing. The catch is the word average: the $200 from the loan is locked, the $350 from the market is a hope. If you would lose sleep over a down year, paying the 4% loan is a fine, slightly more expensive way to buy peace of mind.
Where the cutoff sits
The break-even is the rate where paying debt and investing earn you the same thing. Set that at the return you actually expect from the market, around 7% after inflation, and you get a clean rule of thumb:
- Above about 7% to 8%:pay it off before you invest extra. This covers nearly every credit card (often 20% or more in 2025), most personal loans, and a lot of private student debt. The guaranteed return beats the market's expected return.
- Below about 4% to 5%: let it ride and invest instead. This is where some fixed mortgages and subsidized federal student loans land. The market is likely to out-earn the rate, and you keep your money working longer.
- In the gray zone, 5% to 7%: it is close enough that your own comfort breaks the tie. Splitting the extra between the two is a perfectly good answer.
Notice the cutoff is not a single magic number. It tracks what you assume the market returns. Assume a cautious 6% and the line drops. Assume an optimistic 8% and more debt becomes worth keeping. The 7% to 8% range is a sensible default, not a law.
Note
Tax can nudge the line. Some mortgage and student-loan interest is tax deductible, which lowers the real rate you pay. A 5% loan you can deduct might cost you closer to 4% after tax, which pushes it further into invest-first territory. Run your own number rather than the sticker rate when the debt is deductible.
The one move that comes first no matter what
Before you pay a dollar of extra debt or invest a dollar on your own, capture your full employer 401(k) match. If your company matches 50% of what you put in, every dollar you contribute instantly becomes $1.50. That is a 50% return the moment the money lands, before the market does anything. A dollar-for-dollar match is a 100% return. Nothing else on this page comes close.
Compare it to the 22% card, the best guaranteed return we found above. The match beats even that, and it beats it instantly rather than over a year. So the order is: grab the full match first, then attack high-rate debt, then decide between low-rate debt and investing the rest. Skipping the match to pay down a 22% card means turning down a 50% to 100% return to capture a 22% one. We walk through exactly why in the piece on the 401(k) match.
One honest caveat: the match assumes you can spare the contribution without falling deeper into high-rate debt. If putting money in your 401(k) means you cannot cover the card and the balance grows, the guaranteed 22% drag can swamp the math. For most people with a steady paycheck, though, the match comes first.
A simple order to follow
- Contribute enough to your 401(k) to get the full employer match. Stop there for now.
- Build a small starter emergency fund so a surprise does not push you back onto the card.
- Throw every spare dollar at debt above roughly 7% to 8%, highest rate first. If you want a method, see snowball vs avalanche.
- Once the high-rate debt is gone, invest the surplus. Let low-rate debt (4% to 5%) ride on its schedule while your investments compound.
This is one rule applied twice. Compare the guaranteed return from paying a debt to the expected return from investing, and send the money to whichever number is bigger. The match is the same rule with a return so high it always wins.
FAQ
Where exactly is the cutoff rate?
Around 7% to 8%, because that is roughly what the stock market has returned on average after inflation over the long run. Debt charging more than that costs you more than investing is likely to make, so you pay it off first. Debt charging less than about 4% to 5% is cheap enough that the market should out-earn it, so you invest instead. The 5% to 7% middle is a coin flip the math will not settle for you, and either choice is defensible. The exact line moves with whatever return you assume, so treat 7% to 8% as a starting point, not gospel.
What about the 401(k) match?
It comes first, ahead of paying any debt and ahead of investing on your own. A 50% match turns your dollar into $1.50 the instant it lands, a 50% return. A full dollar-for-dollar match is a 100% return. Even a 22% credit card cannot beat that, so you grab the entire match before you do anything else with spare cash. The only time to pause is if contributing would force you deeper into high-rate debt you cannot otherwise cover.
Does my comfort with risk matter?
Yes, especially in the gray zone. The return from paying off a debt is guaranteed, while the 7% from investing is an average you only get by riding out down years. If a 30% market drop would make you sell at the bottom or stop investing, you would not actually capture that 7%, and paying down even a low-rate debt becomes the smarter play for you. The math sets the default; your stomach sets the tie-breaker when the rates are close.
Should I keep an emergency fund before doing either?
Keep a small one, yes. If you pour every dollar into debt or investments and then your car dies, you end up right back on a 22% card, which undoes the progress. A starter cushion of a few hundred to a thousand dollars, held in cash, keeps a surprise from turning into new high-rate debt. Build that buffer after you capture the match and before you go all-in on either paying down low-rate debt or investing.
Go deeper
