Should I Pay Off Student Loans or Invest? The Honest Math
Every dollar of extra income you have can either pay down student loans (guaranteed return equal to your loan rate) or get invested (probable but uncertain market return). At 2020-era 3% loan rates, investing was an obvious win. At 2026's 6–8% rates, it's a much closer call. Here's the honest math, with three scenarios that capture most borrowers' situations.
The core comparison
When you pay an extra $1,000 toward a student loan at 6.5%, you eliminate $1,000 of debt that was going to cost you 6.5% per year in interest. That's a guaranteed, risk-free, after-tax return of 6.5%.
When you invest $1,000 in a diversified stock portfolio, the long-run real expected return is around 7% before tax, with substantial volatility — actual returns over any 10-year window can range from negative to 15%+. After 15% federal long-term capital gains tax (or 20% for higher earners), the after-tax expected return is closer to 5.7–6.0%.
That's the headline. A guaranteed 6.5% beats a probable 5.7–7% with risk. The investing argument used to be obvious; in 2026 it isn't.
The four exceptions where investing still clearly wins
1. Employer 401(k) match
If your employer offers a 401(k) match — typically 50% on the first 6% of salary, sometimes 100% on the first 4% — that's an instant 50% or 100% return. No loan rate beats that. Always contribute up to the match before extra loan payments.
On a $80,000 salary with a 100%-on-first-4% match, that's $3,200 a year of free money you forfeit if you don't contribute. Over 30 years invested at 7%, that's ~$320,000 of retirement balance you walked away from. No student-loan payoff plan recovers that.
2. Roth IRA contribution room (limited and use-it-or-lose-it)
$7,000/year ($8,000 if 50+) of Roth IRA contribution room expires every December 31 if you don't use it. The tax-free growth on Roth contributions over 30+ years is extremely valuable, and you can't reclaim missed years. Fund the Roth before extra loan payments, even at 6%+ loan rates.
3. PSLF or IDR-forgiveness path
If you're on track for PSLF or 20-year IDR forgiveness, every extra dollar paid toward principal reduces the amount that gets forgiven later — i.e., it's thrown away. Borrowers pursuing forgiveness should pay the IDR minimum and invest everything else. See our PSLF guide for whether you qualify.
4. Very young borrowers with very long horizons
A 24-year-old with 40+ years of compounding ahead has more time to ride out market volatility. Probability of equity outperformance over any 30-year period historically exceeds 95%. The longer your horizon, the more “probable 7%” tilts toward “expected 7%.”
Worked example A: $50k loan at 4.5% (older lower-rate cohort)
Old federal rates (2014-2020 vintage) were around 4.5%. Borrower with $50,000 at 4.5%, 8 years remaining, $625/month minimum payment, $400/month of additional capacity to either prepay or invest.
| Choice | Outcome at year 10 (post-payoff) |
|---|---|
| Pay minimum, invest $400/mo at 7% | ~$66,000 brokerage; loan paid in 8 yrs; net wealth ~$66,000 |
| Prepay $400/mo extra, invest after payoff | Loan paid in 5.4 yrs; invest $1,025/mo for 4.6 yrs at 7% = ~$67,500 |
At 4.5%, investing wins by a hair (~$1,500 over 10 years). The math favors investing more clearly the lower your loan rate.
Worked example B: $50k loan at 7.0% (current grad rate)
Same setup, $50,000 at 7.0%. Same $400/month of extra capacity.
| Choice | Outcome at year 10 |
|---|---|
| Pay minimum, invest $400/mo at 7% | ~$66,000 brokerage; loan paid in 10 yrs; net wealth ~$66,000 |
| Prepay $400/mo extra, then invest | Loan paid in ~5.7 yrs; invest $980/mo for 4.3 yrs at 7% = ~$60,000 |
At 7.0%, investing still nominally wins on the math, but the gap narrows to roughly $6,000 — and you're carrying a balance for 4.3 extra years. Many borrowers reasonably take the certainty over the marginal expected upside.
Worked example C: $100k loan at 7.5% (grad PLUS at current rates)
$100,000 at 7.5%, 10 years remaining, $1,187/month minimum, plus $800/month of additional capacity.
| Choice | Outcome at year 10 |
|---|---|
| Pay minimum, invest $800/mo at 7% | ~$132,000 brokerage; loan paid in 10 yrs; net ~$132,000 |
| Prepay $800/mo, then invest | Loan paid in ~5.9 yrs; invest $1,987/mo for 4.1 yrs at 7% = ~$112,000 |
At 7.5% the math actually flips slightly toward investing again, because the longer compounding window of investing-throughout outweighs the higher guaranteed loan-rate return. But the difference is small relative to the volatility — a single bad sequence of returns can erase the $20,000 expected upside.
The hybrid approach (what most people should actually do)
For borrowers with rates in the 5–7% range, splitting the difference is usually defensible:
- Capture the full 401(k) match (always).
- Max your annual Roth IRA contribution.
- Build a 6-month emergency fund in a high-yield savings account.
- Split remaining cash 50/50 between extra loan payments and a taxable brokerage account.
This sacrifices some expected return for the psychological and practical benefit of seeing the loan balance shrink. It also hedges against sequence-of-returns risk — if the market drops 30% in the next two years, half your extra dollars went to risk-free debt-elimination instead of buying high.
The non-math considerations
Money decisions aren't purely arithmetic. A few things the spreadsheet ignores:
- Sleep value. If carrying student-loan debt actively bothers you, the psychological return on prepaying may exceed the math return on investing. This is a real benefit, not a soft one.
- Cash-flow flexibility. Once you pay off the loan, that minimum payment ($600–$1,200/month for most borrowers) is permanently freed up. Investments aren't flexible the same way — selling stocks during a downturn to cover an emergency is a bad outcome.
- Behavioral risk. The math assumes you'll actually invest the money you didn't use to prepay. If historically you've let “extra cash” drift into discretionary spending, prepaying creates forced savings the math model doesn't capture.
Run the comparison for your numbers
Use the strategy comparator to model side-by-side outcomes for prepay-only, invest-only, and hybrid approaches at your specific loan rate, balance, and contribution capacity. If you're considering a refinance to narrow the spread between your loan rate and expected market return, run the numbers on the refinance calculator first. And if your loan rate is high enough that the math is close, consider whether aggressive payoff strategies change the calculation.
Educational only. Not financial or investment advice. Past market returns don't predict future performance.