Pay Off Student Loans or Invest? Run the Numbers
Deciding between paying off student loans and investing comes down to your interest rate. Here is the 10-year math on which path builds more wealth.
What this means for beginners
- Student loans under 5% interest should be paid on their standard minimum schedule while redirecting surplus cash into broad index funds.
- Student loans charging above 6.5% should be paid off aggressively because avoiding that interest locks in a high guaranteed return.
- Always capture an employer 401(k) match before putting any extra money toward student loan principal.
If you are trying to decide whether to pay off student loans or invest, the answer comes down to one number: the fixed interest rate on your loan.
Plenty of financial commentary treats all debt as an identical moral failing. It tells you to live on rice and beans until every balance sits at zero. I look at debt as a math problem, not an emotional crisis. When debt carries a brutal interest rate, paying it off is the only logical move. When debt carries a modest rate, aggressively paying it down early can cost you tens of thousands of dollars in foregone market growth.
Why a 4% loan is not the same as credit card debt
Before running any calculations, we need to separate predatory debt from manageable fixed-rate loans. According to the Federal Reserve, the average interest rate on US credit card accounts that pay interest was 22.36% in August 2026. A balance at 22% is an emergency that will drain your net worth faster than almost any investment can grow it. If you have credit card balances, personal loans, or high-interest car notes, paying off high-interest debt comes before any extra investments.
Student loans are usually a different species. Federal undergraduate loans often sit between 3.5% and 6.5%, depending on the year they were disbursed. At those levels, the debt does not threaten your solvency month to month. Understanding good debt vs bad debt means recognizing that borrowing at a low, fixed rate while deploying spare cash into productive assets is one of the classic ways people build long-term wealth.
Paying down a loan offers a guaranteed return equal to the interest rate on the debt. If your student loan charges 4.5%, putting an extra dollar toward that principal produces a guaranteed 4.5% annualized savings. That is safe, but it also caps your upside at 4.5% forever.
Running the 10-year math: debt payoff vs index funds
Let’s put real numbers to work. Assume you have paid off any credit cards, you hold three months of expenses parked in a high-yield savings account or Treasury bills, and you have an extra $300 a month to deploy over the next 10 years (120 months). That is $36,000 coming out of your pocket in total.
We will compare three paths for that extra $300 each month:
- Prepaying a 4.5% student loan: You eliminate principal early, saving 4.5% compounded annually on that money.
- Prepaying a 7.5% student loan: You eliminate higher-cost principal, locking in a guaranteed 7.5% annual return in saved interest.
- Investing in a broad market index fund: You make the regular minimum loan payments and redirect the extra $300 into a low-cost ETF like Vanguard’s VTI or VOO. Historically, from 1928 to 2025, the S&P 500 returned about 10% a year on average, according to NYU Stern Professor Aswath Damodaran’s dataset. Because past returns do not guarantee future returns, we will test a more conservative hypothetical 7% and 8% annual return over a 10-year window.
| Strategy (Extra $300/mo over 10 Years) | Cash Out of Pocket | Total Value Created or Saved | Net Wealth Advantage vs Cash |
|---|---|---|---|
| Pay down 4.5% student loan | $36,000 | ~$45,300 (debt eliminated + interest saved) | +$9,300 |
| Pay down 7.5% student loan | $36,000 | ~$53,500 (debt eliminated + interest saved) | +$17,500 |
| Invest at 7% hypothetical return | $36,000 | ~$51,900 (investment portfolio value) | +$15,900 |
| Invest at 8% hypothetical return | $36,000 | ~$54,900 (investment portfolio value) | +$18,900 |
The math reveals the dividing line. When your student loan rate is 4.5%, dumping an extra $36,000 into the debt produces about $45,300 in combined debt reduction and interest savings. Putting that same $36,000 into an index fund returning a hypothetical 8% produces roughly $54,900. By investing, you come out roughly $9,600 ahead after a decade.
However, when the loan rate hits 7.5%, the calculation flips. A guaranteed 7.5% return from paying off the debt yields about $53,500 in total savings. That essentially ties an 8% market return, but without any market volatility. Choosing a guaranteed 7.5% savings over an uncertain 8% stock return is a sensible trade-off every single day.
Taxes and employer matches change the equation
There are two wrinkles that tilt the numbers even further toward investing early, particularly for young earners.
The first is an employer 401(k) match. If your employer offers a 50% or 100% match on the first 4% or 5% of salary you contribute, that is an immediate 50% to 100% return on your money out of the gate. No student loan in the country carries an interest rate high enough to justify skipping a 401(k) match. You take the match first, no matter what your loan rate says.
The second is tax-sheltered accounts. Contributing extra cash to a Roth IRA or traditional 401(k) allows your money to grow tax-deferred or tax-free. For 2026, the IRS contribution limit is $24,500 for a 401(k) and $7,500 for an IRA (source: IRS Notice 2025-67). If you run the comparison using a Roth IRA vs 401(k), shielding investment gains from future taxes gives market investing an extra margin over paying down low-rate debt.
There is also the student loan interest deduction. If your income qualifies, you may be able to deduct up to $2,500 in student loan interest each year on your federal tax return, which lowers the effective interest rate of your debt even further.
My rule of thumb for student debt
I break student loans into three simple brackets:
- Under 5% interest: Make the scheduled minimum monthly payment. Do not send an extra nickel to the loan servicer. Take your surplus cash and direct it into broad low-cost index funds through tax-advantaged retirement accounts. The historical spread between a 4% borrowing cost and long-term equity growth makes investing the mathematically superior choice.
- Between 5% and 6.5% interest: This is the gray zone. The math still slightly favors investing, but the gap narrows. If debt stresses you out, split your surplus cash 50/50: put half toward the principal balance and invest the other half.
- Above 6.5% interest: Treat this as urgent debt. Pay it off aggressively. A guaranteed, risk-free 7% or 8% return from wiping out private or high-rate graduate loans is impossible to beat on a risk-adjusted basis.
Do not let the psychological desire to be completely debt-free rob you of 10 years of compounding stock returns. If your student loan rate is comfortably below 5%, make your minimum payments on time and let the market do what it has historically done best.
FAQ
Should I invest while having federal student loans?
Yes, as long as you have built a basic cash cushion and your loans carry low to moderate interest rates. If you have an employer 401(k) match available, capture that match immediately before sending any extra principal payments to your loan servicer.
What if my student loan rate is right around 6%?
A 6% interest rate sits right on the borderline between debt payoff and stock market investing. In that scenario, paying off the loan gives you a guaranteed 6% return with zero volatility, while broad stock index funds have historically returned more over long periods but come with market downturns. Splitting extra monthly savings equally between prepaying the loan and investing in an index fund is a balanced approach.
Does it make sense to pay off student loans just to feel unburdened?
Peace of mind has personal value, but it carries a measurable opportunity cost. If you aggressively pay down a 3.5% loan over five years instead of investing that money in broad market index funds, you trade potential tens of thousands in future investment gains for an emotional milestone. For low-rate loans, setting up automated minimum payments usually removes the stress while preserving your portfolio’s growth.
Your next steps
- 1.Log into your student loan servicer and list out each loan balance alongside its exact interest rate.
- 2.Check your employer retirement plan to confirm you are contributing enough to receive the full 401(k) matching contribution.
- 3.Automate regular monthly investments into a broad market index fund or IRA for any surplus cash if your loan rates sit below 5%.
Educational content, not financial advice. Do your own research and consider a licensed professional before making investment decisions. Editorial policy.