Pay Off Student Loans or Invest? The Real Math, Worked Out

⚖️ 8 min read📊 $30k @ 6.52% worked end to end

Every personal-finance podcast gives the same two-word answer to this question — "it depends" — and then changes the subject. Here's what it depends on, in dollars. The short version: prepaying a loan earns your APR, guaranteed. Investing earns an expected return that isn't. The whole decision reduces to one number — your break-even return — and everything else is commentary about risk and flexibility.

Advertisement

The setup: one loan, two futures

Take the standard case. You owe $30,000 at 6.52% — the 2026-27 federal undergraduate rate — on the 10-year standard plan, so the minimum is $340.95 a month. You find $250 a month beyond the minimum. Route it to the loan ("pay off first") or to a brokerage ("invest instead")?

Expected returnPay off first — wealth at year 10Invest instead — wealth at year 10Winner
5%$40,356$38,982Pay off by $1,373
6%$41,437$41,175Pay off by $262
7%$42,555$43,524Invest by $969
8%$43,711$46,041Invest by $2,331

Both columns measure wealth at month 120 — the moment the minimum-only loan would finally die. The pay-off-first column kills the loan at month 60, then invests the freed-up $590.95 a month for the next five years. The invest column runs minimums the whole way while the $250 compounds. Between a 6% and 7% expected return, the answer flips — that's how thin the margin is at today's federal rates.

Plug in your own balance, rate, and numbers with the pay off student loans or invest calculator — it solves your break-even return, not just the two endings.

Find your break-even return

Balance, APR, minimum, and your extra monthly amount in — both futures computed to the same finish line, and the exact return where the strategies tie.

Payoff vs Invest Calculator →

The number that decides it: 6.22%

For this loan, the break-even return is 6.22% — a quarter-point below the loan's own 6.52% APR. That surprises people. Why doesn't investing need to match the full APR? Timing. Prepaying kills interest in the loan's early years, which are the most expensive ones, and the freed-up cash flow compounds for the second half of the horizon. Investment contributions dollar-cost in evenly instead. So prepaying has a built-in head start, and the market has to clear slightly less than your APR for a tie.

The practical rule this produces: invest only if your realistic expected return clears your break-even by a point or more. A quarter-point edge is noise — one bad year erases a decade of $969 wins. A two-point edge compounds into real money. If you're not confident you'll beat ~6-7% after-tax with your actual portfolio, the guaranteed side deserves the tiebreaker.

What prepaying buys you besides the spread

What investing buys besides (sometimes) the spread

The order of operations (before either)

  1. Emergency fund, 3-6 months. Debt plus zero cushion means the next surprise goes on a credit card.
  2. Employer match, always. 50-100% instant return. Non-negotiable, beats everything here.
  3. APR above ~8%? Private loans and older Grad PLUS rates: prepay, no ceremony.
  4. Moderate federal rates (6-7%): the genuine choice — run the calculator, weight your answer by how you'd feel in a 2022.
  5. Below ~5%: old subsidized-era or aggressively refinanced fixed debt; invest the extra.

For the adjacent questions: the student loan payoff calculator maps extra-payment schedules without the investing comparison, the compound interest calculator shows the market side in isolation, and if refinancing to a lower fixed rate would change the math, the refinance calculator prices it — with the reminder that refinancing federal loans surrenders every protection listed above.

Frequently Asked Questions

Is it better to pay off student loans or invest?

It depends on your loan's APR versus the return you realistically expect. Prepaying a 6.52% loan earns a guaranteed 6.52%; investing earns a variable return that historically averages around 7% after inflation for a balanced portfolio but can lose money for years at a stretch. On $30,000 at 6.52% with $250 a month to deploy, investing at 7% wins by $969 over the loan's ten-year horizon, prepaying wins at a 6% return by $262, and the break-even return is 6.22%. Thin edges favor the guaranteed side.

Why is the break-even return lower than my loan's APR?

Timing. Extra payments kill interest in the loan's early years — the most expensive ones — and the freed-up cash flow then compounds for the rest of the horizon. Investment contributions, by contrast, dollar-cost in evenly. So prepaying doesn't need to match your APR point-for-point; on the worked example it only needs the market to return 6.22% for the two strategies to tie.

What should come before both paying extra and investing?

Three things: an emergency fund of three to six months of expenses (debt with no cushion forces borrowing at worse rates when life happens), any employer 401(k) match (a 50-100% instant return neither strategy can touch), and high-APR debt above roughly 8%. Only then is the loans-versus-market choice the binding decision.

Does it change things if my loans are federal?

Yes. Federal loans carry RAP income-based payments, deferment and forbearance, PSLF eligibility, and discharge options that private loans lack. Money prepaid into a federal loan is unrecoverable if you later need flexibility. Many borrowers keep federal minimums and invest the extra, directing aggressive prepayment at private or high-rate debt instead.

Related Tools