Getting Started
Paying Off Student Loans vs. Investing: Which Comes First?
6 min read ยท Updated August 2026
Quick answer: If your student loan's interest rate is higher than your expected investment return, paying it down faster tends to win mathematically; if it's lower, investing tends to win long-term. The employer 401(k) match is an exception โ capture that first regardless of your loan rate.
Extra cash at the end of the month, and two decent uses for it: pay down student loans faster, or start investing. Both are reasonable choices โ the right split usually comes down to interest rates, and a little bit of personal risk tolerance.
The math, roughly speaking
The simplest way to frame it: if your loan's interest rate is higher than the return you'd reasonably expect from investing, paying the loan down faster tends to win mathematically. If the rate is lower, investing tends to win over the long run โ though with more year-to-year uncertainty than a guaranteed debt payoff gives you.
| Loan interest rate | General lean |
|---|---|
| 7%+ (many private loans) | Prioritize paying it down faster |
| 4โ6% (many federal loans) | Closer call โ reasonable to split between both |
| Under 4% | Investing has historically had good odds of outperforming over long periods |
The sticker rate isn't quite the real rate
Two things push the actual comparison a bit further in investing's favor than the sticker numbers above suggest, and both are easy to miss.
First, if your income is under a certain threshold, you can deduct student loan interest paid during the year (up to a capped amount), which lowers your taxable income. That effectively shaves your real interest cost below the stated rate โ a 6% loan might behave more like 5% after the deduction, depending on your bracket. The deduction phases out at higher incomes, so it matters most earlier in your career, which happens to be exactly when this decision usually comes up.
Second, "expected investment return" isn't a single number โ it depends heavily on which account the money lands in. Investing inside a Roth IRA or 401(k) instead of a plain taxable brokerage account means that growth compounds tax-free or tax-deferred, which meaningfully raises the after-tax return you're actually comparing against the loan. Putting the investing side of this decision into a tax-advantaged account, rather than a regular brokerage account, tilts the math further toward investing than the raw numbers in the table above let on.
Why "the math" isn't the whole answer
- The employer match is the exception to everything. If your employer matches 401(k) contributions, capturing that match usually comes before extra loan payments, regardless of the loan's rate โ it's an immediate, guaranteed return that's genuinely hard for anything else to beat.
- Peace of mind has real value the math doesn't capture. Some people strongly prefer being debt-free sooner, even when the numbers slightly favor investing instead. That preference isn't irrational โ it's a legitimate part of the decision, not a rounding error.
- Loan forgiveness programs change the math entirely for some federal borrowers โ if you're on a forgiveness track, aggressively prepaying the loan can actually work against you.
A reasonable default order
- Make minimum payments on all debt โ never miss these, it damages your credit score (see our credit score guide).
- Capture any employer 401(k) match in full.
- Build a small starter emergency fund.
- Aggressively pay down any debt at 7%+ interest.
- Split additional cash between lower-rate debt payoff and investing, in whatever ratio feels right to you.
Step 3 is easy to skip past when you're eager to attack the loan balance, but skipping it is what tends to backfire. Without that cushion, the first unexpected expense while you're mid-payoff often just goes straight onto a credit card โ and a 20%+ credit card rate undoes a lot of the progress you were making at 5-7%. See our full breakdown on sizing one properly and where to actually keep it.
It doesn't have to be all-or-nothing
Splitting extra money โ say, half to extra loan payments, half to a Roth IRA โ is a completely reasonable middle path if neither option clearly wins for your situation. Honestly, that's what most people I'd talk to end up doing in the 4-6% range anyway.
If you do split it, automate both sides
Once you've picked a ratio, set it and forget it. Set up an automatic extra payment to your loan servicer and an automatic transfer into your investment account, both timed to hit right after payday. The point isn't just convenience โ money that's automatically gone before you see it never becomes a "should I skip this month" decision. Manually splitting it every payday is exactly the kind of thing that quietly stops happening after a few months.
This article is for educational purposes only and is not financial or tax advice. Student loan interest deduction eligibility, income phase-outs, and loan forgiveness rules change and vary by situation โ confirm current details at irs.gov, studentaid.gov, or with a licensed advisor.
Quick Answers
Should I pay off student loans or invest first?
If your loan's interest rate is above roughly 7%, prioritize paying it down faster. If it's under about 4%, investing tends to have good odds of outperforming over the long run. Rates in between are more of a personal judgment call.
Does the employer 401(k) match change this decision?
Yes. Capturing a full employer 401(k) match usually comes before extra loan payments, regardless of the loan's interest rate, since it's an immediate, guaranteed return.
Can I split extra money between student loans and investing?
Yes, splitting extra cash โ for example, half to extra loan payments and half to a Roth IRA โ is a reasonable middle path when neither option clearly wins.