Skip to main content
My ETF

Invest While Paying Student Loans: The Math

Last updated: March 2026

Audience Profile

Age Range

22-35

Situation

Carrying student loan debt while wanting to start investing for the future

Main Concern

Making the mathematically optimal decision between paying off loans faster and investing in ETFs

The student loans versus investing question has a clear mathematical answer that depends on your interest rate. For most borrowers, investing while making minimum loan payments is the optimal strategy. The math shows that starting to invest early, even with debt, builds significantly more long-term wealth.

The Interest Rate Decision Framework

The decision framework is simple. If your student loan interest rate is below 5%, invest every spare dollar in ETFs. The stock market's historical average return of 8-10% significantly exceeds your loan cost. Paying off a 4% loan early is equivalent to earning a guaranteed 4% return, but investing in VTI has historically returned more than double that over any 20-year period.

If your rate is between 5% and 7%, the decision is closer. A reasonable approach is to split extra money 50/50 between extra loan payments and investing. This captures some of the investment upside while reducing your debt burden. The psychological benefit of paying down debt is real even when the math slightly favors investing.

If your rate exceeds 7%, prioritize paying off the loans. Earning a guaranteed 7-8% by eliminating high-interest debt is competitive with expected stock returns and carries zero risk. However, always contribute enough to your 401(k) to capture the full employer match first, since a 50-100% match return exceeds any loan interest rate.

Running the Numbers: A Real Comparison

Consider a young professional with $50,000 in student loans at 5% interest and $500 per month in extra cash after minimum payments. Option A: put all $500 toward extra loan payments. Option B: invest all $500 in VTI. Option C: split $250 to each.

With Option A, the loans are paid off in about 6 years, saving approximately $5,000 in interest. Then the full $500 per month goes to investing. After 20 years total, the estimated portfolio value is roughly $180,000. With Option B, the loans are paid off on the standard 10-year schedule while the portfolio grows for the full 20 years. The estimated portfolio value is roughly $245,000, even after accounting for the extra interest paid on loans.

Option B wins by approximately $65,000 because those early investment years are the most powerful for compounding. The first $500 invested in year one has 20 years to grow, potentially becoming $2,300. The first $500 of extra loan payments saves about $125 in total interest. The math overwhelmingly favors investing at a 5% loan rate.

Strategies for Both Goals

If the math says invest but your gut says pay off debt, honor both instincts. Use the avalanche method for loans: make minimum payments on all loans but target any extra payments at the highest-interest loan first. This minimizes total interest paid while keeping your investment plan intact.

Income-driven repayment plans can free up cash for investing. If you qualify, plans like PAYE or REPAYE cap payments at 10% of discretionary income. The lower payment frees cash for investing, and after 20-25 years of qualifying payments, remaining balances are forgiven. For those pursuing Public Service Loan Forgiveness, minimum payments plus aggressive investing is clearly optimal.

Consider refinancing high-interest loans to lower rates. Refinancing from 7% to 4% shifts the math firmly in favor of investing. However, only refinance federal loans to private lenders if you are sure you do not need income-driven repayment options or federal forgiveness programs. The flexibility of federal loans has value beyond the interest rate.

Suggested Portfolio Allocation

Projected Growth of $10,000

Recommended ETFs

Action Steps

1

Categorize Your Loans by Interest Rate

List all student loans with their interest rates. Any loan below 5% is low priority for extra payments. Between 5-7% is moderate priority. Above 7% is high priority. This tells you exactly how to allocate your extra cash between debt payoff and investing.

2

Capture Free Money First

Before directing extra money to loans, ensure you are getting your full 401(k) match. A 50% match is a guaranteed 50% return that dwarfs any loan interest rate. Then consider maxing a Roth IRA before making extra loan payments on loans below 5%.

3

Set Up Your Split Contribution System

For loans in the 5-7% range, split extra cash between investing and extra loan payments. Automate both: set up automatic ETF purchases and automatic extra loan payments on the same schedule. Increase both proportionally with raises.

Frequently Asked Questions

My parents say to pay off all debt before investing. Are they wrong?
They are well-intentioned but often mathematically incorrect for low-interest student loans. The advice to avoid debt made more sense when student loan rates were 8-12%. At today's rates of 3-6% for many borrowers, the opportunity cost of not investing is enormous. Show them the numbers: investing $500 monthly at 8% returns for 10 years produces $91,000, while paying off a 4.5% loan saves roughly $6,000 in interest. The investing advantage is overwhelming.
What about the psychological benefit of being debt-free?
This is valid and personal. Some people sleep better debt-free even if the math favors investing. A compromise approach works well: direct 70% of extra money to investing and 30% to extra loan payments. You build wealth while making visible progress on loans. Once the highest-rate loans are gone, the psychological burden decreases and you can invest more aggressively.
Should I invest in taxable accounts or just use retirement accounts while I have loans?
Max tax-advantaged accounts first: 401(k) match, then Roth IRA, then additional 401(k). Only invest in taxable accounts if you have already maximized these and your remaining loan rates are below 5%. The tax advantages of retirement accounts boost your effective return, making the comparison with loan interest even more favorable.

Related Guides

Ready to start investing in ETFs? We use and recommend Interactive Brokers (IBKR) for its low fees, global market access, and professional-grade tools. New accounts can earn free IBKR stock depending on your deposit amount.

Explore More Topics

Recommended: This beginner-friendly ETF course on Udemy covers everything from ETF fundamentals to building a recession-proof portfolio in 7 days.