This is the question that paralyzes a lot of people. They have a loan payment, they have a little money left over each month, and they feel like they have to choose one or the other. The good news is that the answer is not actually that complicated. It comes down almost entirely to one number: your interest rate.

The framework is this: paying off debt is a guaranteed return equal to your interest rate. Investing is an expected return based on historical market performance. When the expected return from investing exceeds the guaranteed return from paying off debt, investing wins. When it does not, debt payoff wins.

📐
The decision rule: Compare your loan interest rate to the long-run stock market return of roughly 10% annually, or 7% after inflation. If your rate is above 7%, debt payoff is the higher guaranteed return. Below 7%, investing gives you a better expected outcome over time.

What the stock market actually returns

The S&P 500 has returned approximately 10% annually over the past 30 years in nominal terms, and about 7% annually after adjusting for inflation. This is not a guarantee of future performance, but it is the best long-run baseline we have for what a diversified index fund investment is likely to do over a decade or more.

That 7% real return figure is the one most financial planners use as the hurdle rate when comparing debt payoff to investing. If your debt costs you more than 7% per year, you are almost certainly better off eliminating it before investing beyond the basics. If it costs you less, the math typically favors investing.

Where federal student loans actually land

Interactive Calculator

Should you pay off your loan or invest?

Enter your loan rate and monthly surplus. We show the 10-year outcome of each path.

Federal undergraduate student loans disbursed in the 2025 to 2026 academic year carry a fixed rate of 6.39%. Graduate direct loans run at 7.94%. PLUS loans for parents and graduate students are at 8.94%.

This means that for most people with standard undergraduate federal loans, the rate sits just below the 7% threshold, placing them in the gray zone where the right answer depends on your specific situation. For graduate loan borrowers and PLUS loan holders, the math more clearly favors aggressive paydown.

Loan type 2025-26 rate Verdict
Federal undergraduate (Stafford) 6.39% Gray zone: split approach
Federal graduate (Stafford) 7.94% Lean toward payoff
PLUS loans (parent or grad) 8.94% Pay off aggressively
Private loans (typical range) varies widely Check your rate
Federal loans below 5% older fixed rates Invest first

The two things you do regardless of your rate

Before you run any math on your loan rate versus the market, two steps come first no matter what:

Always do this first
Capture your full employer 401(k) match
Even if your loan rate is 9%, capturing an employer match that gives you a 50% guaranteed return on that contribution is always the right move first. No debt payoff strategy beats free money. Contribute enough to your 401(k) to unlock every dollar of the match, then apply the rest of this framework to remaining funds.
Always do this second
Build a 3-month emergency fund
Without a cash buffer, an unexpected expense forces you to either take on more debt or sell investments at a bad time. Three months of essential expenses in a high-yield savings account is the structural foundation that makes every other financial decision more stable. Build this before aggressively attacking loans or maxing investment accounts.

The three scenarios

Loan rate above 7%
Pay down debt aggressively before investing beyond the match
A 8% or 9% loan is a guaranteed negative 8% or 9% return on every dollar you leave outstanding. The stock market might return 10% in a given year or it might return negative 15%. The loan is certain. After capturing your employer match and building your emergency fund, direct extra money at the highest-rate debt first. Once the high-rate loans are gone, shift to the investing steps in the order of operations article.
Loan rate in the 5% to 7% range
Split the difference: invest and pay down simultaneously
At 6.39%, your undergraduate loan sits close enough to the 7% line that the mathematically correct answer is genuinely unclear. A reasonable approach: after the employer match and emergency fund, max your Roth IRA for the tax-free compounding advantage, then put any remaining extra money toward the loan principal. You are not making a significant mistake either way. The Roth IRA has annual contribution limits that you can never recapture once the year passes, which tilts the decision slightly toward funding it first even in the gray zone.
Loan rate below 5%
Make minimum payments and invest the rest
A 3% or 4% federal loan is cheap debt. The long-run return differential between paying it off early and investing in a diversified index fund is meaningful over 20 to 30 years. Pay the minimum, follow the account funding order, and let compounding do the work.

The non-mathematical argument for paying off loans faster

The math favors investing for low-rate borrowers. But math is not the only variable. Some people find that carrying debt affects their ability to take career risks, make geographic moves, or simply sleep at night. If your student loans create genuine psychological drag that limits your decisions, there is real value in eliminating them faster even if the pure return calculation does not support it.

This is a legitimate reason to deviate from the optimal mathematical path. The best financial plan is the one you will actually stick to, and peace of mind has value that does not show up in a spreadsheet.

What about student loan forgiveness programs?

If you work in public service or for a qualifying nonprofit, Public Service Loan Forgiveness (PSLF) is worth researching before you make any aggressive payoff decisions. Under PSLF, federal loan balances are forgiven after 10 years of qualifying payments. If you are on track for forgiveness, paying extra toward your principal can actually work against you by reducing the amount that gets forgiven. Confirm your eligibility and payment status at studentaid.gov before changing your loan payment strategy.

The quick version

  • Always capture your full employer 401(k) match first, regardless of loan rate
  • Build a 3-month emergency fund before aggressive debt payoff or investing
  • Loan rate above 7%: pay down aggressively before maxing investment accounts
  • Loan rate between 5% and 7%: max your Roth IRA, then put extra toward the loan
  • Loan rate below 5%: make minimum payments and invest the rest
  • Check PSLF eligibility before making extra loan payments