The standard advice you hear about student loans is to throw every spare dollar at them until they’re gone. That advice sounds responsible. It feels virtuous. It also often backfires by robbing you of decades of compound growth you’ll never get back. If you’re in your twenties or thirties and carrying student debt, you need a retirement plan that runs alongside your loan payments, not one that waits until they’re finished.

Here’s the uncomfortable math that changes everything. If you start investing two hundred dollars a month at twenty-five and earn an average seven percent annual return, you’ll have roughly five hundred thousand dollars by sixty-five. Wait until thirty-five to start, and that same two hundred a month gets you around two hundred forty thousand. Ten years of delay costs you more than a quarter million dollars. Your student loans will eventually be paid off. That lost decade of compounding is gone forever.

This is why the pay-yourself-first approach matters. It means you carve out a small, consistent amount for retirement before you make any extra loan payments. You’re not ignoring your debt. You’re treating your future self as a creditor who also deserves to get paid. The trick is making it automatic so you never see the money sitting in your checking account begging to be spent.

Start with whatever your employer offers. If your job has a 401(k) match, contribute at least enough to capture every dollar of it. This is free money, and skipping it is the single worst financial decision a young worker can make. A typical match might be fifty percent of your contributions up to six percent of your salary. That’s an instant fifty percent return on your money before the market even does anything. No student loan interest rate can compete with that.

If you don’t have a workplace plan, open a Roth IRA. You contribute after-tax money, it grows tax-free, and you can withdraw your contributions penalty-free in a genuine emergency, though you should avoid that if at all possible. For someone early in their career, a Roth is usually the better choice because your tax rate is likely lower now than it will be in retirement.

Now let’s talk about the debt side. You still need to pay your loans, and you should never miss a payment or fall into default. But consider this: not all extra money should go toward debt. Compare your loan’s interest rate to the expected return on your investments. Federal student loans often sit between four and seven percent. The stock market has historically returned around ten percent before inflation. If your loan is at five percent and your investments average seven percent after inflation, you’re actually better off investing than prepaying once you’ve captured your employer match.

That said, high-interest private loans above eight or nine percent deserve aggressive repayment. The guaranteed return of eliminating that interest beats the uncertain return of the market. Run your own numbers and decide what lets you sleep at night. Some people sleep better with less debt. Others sleep better with a growing retirement account. Both instincts are valid.

The real danger is the all-or-nothing mindset. You don’t have to choose between paying off debt and saving for retirement. You can do both at the same time. Even fifty dollars a month into a Roth IRA while you chip away at your loans keeps the habit alive and the compounding clock running.

The most important rule is simple: automate it. Set up a transfer or payroll deduction the day you get paid. If you wait to see what’s left at the end of the month, there will never be anything left. The money that never hits your checking account is money you won’t miss. You’ll adjust your lifestyle around what you actually take home, and within a few months, you won’t even notice the difference.

Retirement feels abstract when you’re thirty and staring down a loan balance with a comma in it. But the version of you at sixty-five is a real person, and they’re counting on the choices you make right now. Your student debt is temporary. Your future is not. Pay yourself first, let time do the heavy lifting, and you’ll retire with dignity whether or not your loans were gone by forty.