Start with a hypothetical $1,000 you could put toward either goal. Send it to a student loan charging 7% and you avoid about $70 of interest over the next year. That return is certain: it happens whether the stock market rises or crashes. Invest it in a broad stock index fund instead, and the result might be $1,100 a year later, or $850, or $1,200. Over long periods, stocks have historically returned more than 7% on average, but no single year is guaranteed and the averages hide very bad stretches.
Now change one number. If the loan charges 3% instead, paying it down “earns” a guaranteed $30. The case for investing gets a lot stronger. That comparison, a guaranteed return from debt payoff against an uncertain but historically higher return from investing, is the whole decision in miniature. The rest is deciding where your own loans fall.
Checklist before you choose
- Do I have at least a small emergency fund, so a surprise bill doesn’t go on a credit card?
- Am I contributing enough to my 401(k) to get the full employer match?
- Do I know the interest rate on each of my loans, not just the total balance?
- Are any of my loans private, variable-rate, or above 8%?
- Am I pursuing Public Service Loan Forgiveness or an income-driven plan where extra payments may not help?
- How much does carrying this debt bother me, honestly?
Step one is the same for almost everyone
Before comparing rates, two things usually come first. One is a starter emergency fund, enough to cover a car repair or a month of short pay, so you don’t add credit card debt at 20% or more while you’re trying to save 6%. The other is the employer 401(k) match. A match of 50 cents per dollar is an immediate 50% return on that money, more than any loan rate. Skipping it to pay down a loan rarely makes sense. If you haven’t set up your plan yet, the guide to your first 401(k) enrollment form walks through it.
After that, the rule kicks in for every extra dollar.
The rate-based rule
Sort each loan by its interest rate and use these rough bands:
- Above about 8%: extra payments to the loan usually win. Beating that rate reliably by investing requires taking real risk.
- About 5% to 8%: a gray zone. Splitting extra money between investing and the loan is a reasonable compromise.
- Below about 5%: investing extra money usually has the edge over the long run, as long as you’re comfortable with market swings.
These are not hard lines. They are a way to make a fuzzy question concrete. Someone with a short time horizon or a low tolerance for market drops might move the bands lower. Someone with decades ahead and a strong stomach might move them higher.
For reference, federal Direct loans for undergraduates first disbursed for the 2025–26 school year carry a fixed 6.39%, with higher rates for graduate and PLUS loans. Rates are reset each July for new loans, so check the current table on StudentAid.gov and your own loan records, since many grads hold loans from several years at several rates.
Three hypothetical borrowers
Borrower A: low fixed rates
Say a new grad has $20,000 in federal loans from earlier years at around 4% to 5%, a $50,000 salary and a 401(k) match up to 4% of pay. Under the rule, after the emergency fund and the match, extra money leans toward investing, possibly in a Roth IRA or a higher 401(k) contribution. The loans get their regular payment on time and no more. The guaranteed savings from prepaying a 4% loan are modest compared with what long-term investing has historically offered.
Borrower B: middle-of-the-road
Take another hypothetical grad with $27,000 in federal loans, mostly at 6.4% to 7%. This one sits in the gray zone. A sensible split might be half of any extra money to the highest-rate loan and half to retirement savings beyond the match. Both goals move forward, and if markets do well or poorly, neither outcome is a full regret.
Borrower C: one expensive loan
Now imagine a borrower with $15,000 in federal loans at 5% plus a $9,000 private loan at a variable 11%. The private loan is the clear priority for extra money after the match. An 11% rate is hard to beat by investing, and a variable rate can rise further. Once it’s gone, this borrower’s situation looks a lot like Borrower A’s or B’s, and the rule shifts accordingly. Some people in this position look at refinancing the private loan; refinancing federal loans into private ones is a different decision with real tradeoffs, covered in refinancing federal student loans.
Things that tilt the rule
Forgiveness programs. If you’re working toward Public Service Loan Forgiveness, paying extra on federal loans can reduce the amount that would eventually be forgiven. Investing usually makes more sense in that case.
The student loan interest deduction. Federal tax law lets eligible borrowers deduct up to $2,500 a year of student loan interest, subject to income limits. That lowers the effective rate a bit for borrowers who qualify.
Taxes on investing. Money in a 401(k) or Roth IRA grows without yearly taxes. Money in a regular brokerage account may owe taxes on dividends and gains, which lowers its effective return.
Time horizon. If you’ll need the money in a few years for a down payment or grad school, stocks are a poor fit regardless of the loan rate. Short-term money belongs somewhere stable.
The peace-of-mind factor
Math isn’t the only thing that counts. Some people sleep better with no debt at all and would gladly give up some expected return to get there. That’s a legitimate preference, not a mistake, especially when the gap is small, as it is in the 5% to 8% zone. The reverse also matters: if watching investments fall would push you to sell in a panic, a guaranteed debt payoff may produce a better real-world result than a theoretically higher return you can’t stick with.
If you want to see what different choices look like over time, the SEC’s compound interest calculator on Investor.gov lets you plug in amounts and rates. Treat its outputs as illustrations, not forecasts.
Putting it into practice
Log into your loan servicer and write down every loan with its balance and rate. Confirm you’re getting the full 401(k) match and have at least a small cash cushion. Then sort the loans into the three bands. Anything above 8% gets extra payments first. Anything below 5% gets its normal payment while extra money goes to investing. Anything in between gets a split you can live with. Revisit the plan whenever a loan is paid off or your salary changes, since the answer shifts as your balances do.



