Pay Off Student Loans or Invest? How to Decide

M

Written by Morgan Reed, Founder of MyStudentLoanPayoffCalculator

Last updated: 7/2026 · Reviewed for accuracy against current federal student loan guidelines · 5 min read

You have some extra money each month. Should it go toward crushing your student loans or toward building wealth in the market? It is one of the most common personal finance dilemmas, and the honest answer is: it depends. But it does not depend on guesswork — there is a clear framework that combines cold math with human psychology. Here is how to decide with confidence.

The Interest Rate vs. Expected Return Framework

The core of the decision is a simple comparison. Paying down a loan gives you a guaranteed return equal to the loan's interest rate. If your loan charges 7%, every extra dollar you pay "earns" you a risk-free 7% by avoiding future interest. Investing, on the other hand, offers a potential return that is historically higher over the long run but far from guaranteed in any given year.

So the question becomes: is your loan's interest rate higher or lower than the return you could reasonably expect from investing after accounting for risk? A reasonable long-run assumption for a diversified stock portfolio is roughly 7–9% average annual return before inflation, with wide year-to-year swings. After inflation and taxes in a taxable account, the real, after-tax return most investors can count on is closer to 5–6%. That is the number to compare against your loan rate.

A simple rule of thumb

  • Loan rate above ~6–7%: lean toward paying off the loan — the guaranteed return beats the realistic after-tax investment return.
  • Loan rate below ~4–5%: lean toward investing — the expected return comfortably clears the cheap debt.
  • Loan rate in the 5–6% band: a genuine toss-up; let your time horizon, tax situation, and comfort with risk decide.

When Payoff Wins

Paying down the loan is usually the smarter move when:

  • Your interest rate is high — say, 7% or above. Beating a guaranteed 7% return by investing is difficult and requires taking on real risk.
  • You value certainty and would lose sleep watching investment values swing.
  • Your loans are private with no forgiveness or income-driven safety net.
  • You are close to being debt-free and want the psychological finish line.

When Investing Wins

Investing often comes out ahead when:

  • Your interest rate is low — commonly under about 5%. Over decades, a diversified portfolio has historically outpaced low single-digit interest.
  • You have a long time horizon, which smooths out market volatility.
  • You are pursuing forgiveness like PSLF or IDR forgiveness, where aggressively paying extra would only reduce the amount ultimately forgiven.
  • You want compounding to start early, since time in the market is the biggest driver of long-term returns.

The Emotional Value of Being Debt-Free

Math is only half the equation. For many people, the weight of student debt causes genuine stress that no spreadsheet can capture. If eliminating your loans would let you breathe easier, take career risks, or simply feel free, that peace of mind has real value — even if investing might edge out payoff by a percentage point. Never dismiss the psychological return of a zero balance.

Behavioral finance research consistently shows that debt carries a mental burden out of proportion to its dollar cost. Borrowers report lost sleep, career decisions shaped around loan payments, and a reluctance to take entrepreneurial or family steps until the debt is gone. If paying off a 4% loan a few years early costs you a small theoretical return but unlocks the confidence to start a business or move for a better job, the real-world payoff can dwarf the missed investment gains. The best plan is the one you will actually stick with — and for many people, that is the plan that gets them to debt-free fastest.

The Hybrid Approach

You do not have to choose all or nothing. A balanced strategy splits your extra money — for example, directing 60% toward loans and 40% toward investments. This lets you steadily reduce debt while still getting compounding started early. As you pay off higher-interest loans, you can shift more of the split toward investing.

Employer 401(k) Match Comes First

Before you do anything else, capture any employer 401(k) match. A typical match is an instant 50% to 100% return on your contribution — that beats paying off even a high-interest loan. Contribute at least enough to get the full match, then apply this framework to whatever money remains.

The math is stark. If your employer matches 50% of your contributions up to 6% of salary, every dollar you put in up to that cap instantly becomes $1.50. That is a guaranteed 50% return in the same year — dwarfing even a 9% loan. Skipping the match to throw extra at student loans is one of the most expensive mistakes in personal finance. Capture the match first, then decide where the rest of your surplus goes.

The full priority order

  1. Build a small emergency fund (at least one month of expenses) so a surprise bill does not push you back into debt.
  2. Capture the full employer 401(k) match — it is free money with an instant return.
  3. Pay off any debt above ~6–7%, especially private loans with no safety net.
  4. Split between moderate-rate loans and investing for debt in the 5–6% band.
  5. Invest aggressively once remaining debt is below ~4–5% and you have a solid emergency fund.

Real Examples at Different Rates

To make the framework concrete, imagine three borrowers who each have $300 a month of extra cash and a 10-year horizon. We compare putting that $300 toward early loan payoff versus investing it in a diversified portfolio averaging a 7% annual return.

3% loan — investing wins. Paying extra earns a guaranteed 3%. Investing the same $300/month at an average 7% return over 10 years grows to roughly $51,000, while the interest saved by early payoff on a 3% loan is modest. The roughly 4-percentage-point spread, compounded over a decade, makes investing the clear mathematical winner.
6% loan — roughly a tie. The guaranteed 6% from payoff is close to the 7% expected investment return, and once you factor in investment risk, taxes on gains, and the fact that the loan return is risk-free, the two strategies land within a few thousand dollars of each other over 10 years. This is the band where personal preference and the 401(k) match should tip the decision.
9% loan — payoff wins. No diversified portfolio reliably returns a guaranteed 9% after taxes and inflation. Throwing the $300/month at a 9% loan is a risk-free 9% return that beats almost any realistic investment scenario. Pay it off aggressively, then redirect the freed-up cash to investing once the loan is gone.

The crossover point sits around 5–6%. Below it, invest. Above it, pay off. At it, do both.

Sources: StudentAid.gov, U.S. Department of Education

See the payoff side of the equation

Use our calculator to find exactly how much interest extra payments save, so you can weigh payoff against investing with real numbers.

Calculate Your Payoff Date — Free