How I Paid Off $22,000 in Student Loans While Still Investing
My strategy for paying off student debt and investing at the same time. The exact split, timeline, and what I'd do differently.
In 2020, I had $22,000 in student loans at 5.8% interest and exactly $0 invested for retirement. I was 28. Every personal finance article I read gave me the same conflicting advice: “Pay off your debt first!” vs. “Start investing early — compound interest waits for no one!”
Both sides had compelling math. Neither side acknowledged that following their advice meant completely ignoring the other. So I decided to do both — and figured out a system that let me pay off my student loans in four years while building a $42,000 investment portfolio.
Here’s exactly how I split the difference.
The Great Debate: Pay Off Debt or Invest?
This is the most common question in personal finance, and the “correct” answer depends on one number: your debt’s interest rate compared to expected investment returns.
The Pure Math
| Scenario | What the math says |
|---|---|
| Debt at 20% (credit cards) | Pay debt first. No investment reliably returns 20%. |
| Debt at 2-4% (low-rate loans) | Invest first. Markets historically return 8-10%. |
| Debt at 5-7% (student loans) | It’s a toss-up. This is where most people get stuck. |
My student loans were at 5.8%. The S&P 500 averages about 10% annually. Pure math says: invest, because 10% > 5.8%.
But pure math ignores something critical: the psychological weight of debt.
The Psychological Reality
Having $22,000 in debt hanging over my head affected my decision-making in ways I didn’t initially recognize. I was risk-averse in my career because I couldn’t afford a gap in income. I was stressed about money even when my budget technically worked. I avoided thinking about long-term goals because the debt felt like a wall I had to climb first.
The math might say investing is optimal at 5.8% interest. My mental health said the debt needed to go.
My Strategy: The 60/40 Split
I couldn’t commit to one extreme. Throwing everything at debt meant losing years of compound growth. Throwing everything at investing meant carrying debt for a decade. So I split my available money:
- 60% toward debt repayment (above the minimums)
- 40% toward investing (index funds in a Roth IRA and brokerage account)
Why 60/40 and Not 50/50?
I tilted toward debt because of the guaranteed return. Paying off a 5.8% loan is a risk-free 5.8% return. Investing might return 10%, but it might also return -20% in any given year. The 60/40 split gave me faster debt payoff while still capturing most of the compound growth.
The Monthly Breakdown
After covering all essential expenses, I had about $1,100/month available for debt and investing. Here’s how it split:
| Allocation | Amount | Destination |
|---|---|---|
| Extra debt payment | $660 | Student loan principal |
| Roth IRA | $290 | VTI index fund |
| Taxable brokerage | $150 | VTI index fund |
| Total | $1,100 |
Combined with my minimum loan payment of $280/month, I was putting $940/month toward the loans and $440/month toward investments.
The Four-Year Timeline
Year 1 (2021): Building Momentum
- Starting loan balance: $22,000
- Year-end loan balance: $15,200
- Investment portfolio: $5,800
- Key move: Got my employer’s 401(k) match (free money I’d been leaving on the table)
The first year was the grind. Progress felt slow because the loan balance was still large and my investment portfolio was too small to show meaningful compound growth. I nearly quit the split approach twice and almost threw everything at the debt.
Year 2 (2022): The Bear Market Test
- Starting loan balance: $15,200
- Year-end loan balance: $8,100
- Investment portfolio: $9,200 (despite market dropping ~20%)
- Key move: Kept investing through the 2022 bear market — these purchases became my best-performing shares
This was the hardest year psychologically. The stock market fell 20%, and my investment portfolio actually decreased in value despite adding $5,280 in new contributions. Meanwhile, my debt was steadily declining. Part of me wished I’d put everything toward debt.
But I kept investing. The shares I bought during the 2022 lows ended up being the highest-returning purchases in my entire portfolio. You can’t benefit from buying the dip if you’re not investing during the dip.
Year 3 (2023): The Crossover
- Starting loan balance: $8,100
- Year-end loan balance: $1,400
- Investment portfolio: $21,500
- Key move: Got a raise and applied 100% of the increase to debt payments
This was the year everything clicked. My loan balance fell below $10K — a psychological milestone that made the finish line feel real. My investment portfolio crossed $20K, and I could actually see compound growth working in real time. Monthly investment gains started exceeding $200, which felt like free money.
Year 4 (2024): Freedom
- Final loan payment: March 2024
- Year-end investment portfolio: $32,000
- Key move: Redirected all former loan payments to investing
The day I made my last student loan payment, I felt lighter. Not just financially — emotionally. The weight I’d been carrying for six years lifted. I immediately redirected the full $940/month to investing, which turbocharged my portfolio growth.
What the Numbers Actually Show
Let me compare my 60/40 approach to the two extremes:
Scenario Comparison (4-year projection)
| Strategy | Debt-Free Date | Investment Value at Year 4 | Net Worth at Year 4 |
|---|---|---|---|
| 100% debt first, then invest | Month 24 | $16,000 | $16,000 |
| 100% invest, minimum debt payments | Month 84+ | $38,500 | $27,200 (minus $11,300 remaining debt) |
| My 60/40 split | Month 44 | $32,000 | $32,000 |
The pure-debt approach gets you debt-free fastest but sacrifices significant investment growth. The pure-invest approach maximizes portfolio value but leaves you carrying debt for seven years. My 60/40 approach landed in the middle — debt-free in under four years with a strong portfolio.
The net worth differences between strategies are actually smaller than most people expect. The real advantage of the split approach isn’t mathematical — it’s behavioral. I stayed motivated because I was making visible progress on both goals simultaneously.
The Strategies That Accelerated Everything
The Debt Avalanche (Highest Interest First)
I had loans at different rates — some at 5.8%, one at 4.2%, and a small one at 3.4%. I directed extra payments to the highest-rate loan first (the avalanche method). This saves the most money mathematically. If you need psychological wins instead, the snowball method (smallest balance first) works too — the best method is the one you’ll stick with.
Automatic Biweekly Payments
Instead of paying $940/month toward loans, I paid $470 every two weeks. Because there are 26 biweekly periods in a year (not 24), this effectively added one extra monthly payment per year — without feeling like it.
Windfall Rules
Any unexpected income — tax refunds, bonuses, cash gifts, rebates — followed the same 60/40 split. My tax refund averaged about $1,800/year. That’s an extra $1,080 toward debt and $720 toward investments annually that I barely noticed.
Rate Refinancing
In 2021, I refinanced my highest-rate loans from 5.8% to 4.9%. That 0.9% reduction saved roughly $600 over the remaining life of the loans. Refinancing isn’t always the right move — especially for federal loans where you’d lose income-driven repayment options — but for my private loans, it was a clear win.
What I’d Do Differently
Start the Employer Match Immediately
I didn’t contribute to my 401(k) for my first two years of employment because I was focused on debt. That was a mistake. My employer matched 50% up to 6% of salary — that’s a guaranteed 50% return on every dollar contributed. No debt interest rate justifies leaving that on the table.
Don’t Obsess Over the “Optimal” Split
I spent too many hours running spreadsheets to find the mathematically perfect debt-to-investing ratio. The difference between 60/40 and 55/45 over four years was negligible. What mattered was picking a reasonable split and being consistent with it.
Track Net Worth, Not Just Debt
For the first two years, I fixated on my loan balance going down. This made me feel like I was barely making progress because the number decreased slowly. When I started tracking net worth (investments minus debt), the picture was much more motivating — my net worth was increasing by $1,100/month from the very start.
Frequently Asked Questions
Should I Pay Off Student Loans or Invest?
If your loans are above 7% interest, prioritize paying them off. If below 4%, prioritize investing. Between 4-7%, consider splitting your available money — 60% toward debt and 40% toward investing. Always contribute enough to your 401(k) to get the full employer match regardless of debt level.
How Much Should I Invest While Paying Off Debt?
At minimum, invest enough to capture your employer’s full 401(k) match. Beyond that, a common approach is directing 60% of extra cash to debt and 40% to investing. Adjust based on your interest rate, risk tolerance, and psychological needs.
Is It Worth Investing While in Debt?
For high-interest debt (credit cards), no — pay the debt first. For moderate-interest debt (student loans, car loans), investing simultaneously makes sense if you can earn higher returns than your interest rate. The historical stock market return of roughly 10% exceeds most student loan rates.
How Long Does It Take to Pay Off $20,000 in Student Loans?
At $500/month in total payments (minimum plus extra), you’d pay off $20,000 at 5.8% interest in approximately 3.5 years. At $1,000/month, it takes about 1.8 years. The timeline depends on your payment amount, interest rate, and whether you refinance.
Bottom Line
The debt-vs-investing debate has a simple answer for most people: do both. The perfect split doesn’t exist, and spending weeks calculating it is time better spent increasing your income or cutting expenses. Pick a reasonable ratio, automate it, and let consistency do the heavy lifting. I paid off $22,000 in debt while building a $32,000 portfolio in four years. It wasn’t optimal by any single metric, but it was optimal for my life.
This article reflects my personal experience and is for informational purposes only. It does not constitute investment advice. Consider consulting a financial advisor for guidance specific to your situation.