For many Americans in their 30s, the math doesn’t add up. You’re finally building a career and earning a steady paycheck — yet a $40,000 student loan balance swallows a big chunk of your income every month.

At the same time, your HR department keeps reminding you about the 401(k) match you’re not taking advantage of. That’s free money, and every year you wait to invest means losing out on compound growth that can make or break your retirement.

Must Read

So, what’s the smarter move: wipe out the debt first or put your cash to work in the market? It’s one of the most common personal finance dilemmas, and the answer depends on both math and mindset.

The case for crushing your student loans

Debt is stressful, and millions of Americans are feeling it. The Education Data Initiative [1] says U.S. borrowers hold $1.8 trillion in student loan debt, with the average balance now topping $39,000. In the second quarter of 2025, more than 10% of that debt was considered more than 90 days delinquent, according to Federal Reserve data.

For many borrowers, watching interest pile up feels like throwing money into a furnace. Paying it off quickly can save thousands over time and create a sense of freedom that no spreadsheet can measure.

Take that $40,000 loan at 6%. Stick with minimum payments and you’ll spend nearly $13,000 on interest over the life of the loan. Ramp up your payments, however, and you could be debt-free years earlier — opening the door to investing more aggressively once the loan is gone.

There’s also a psychological win here. Carrying large student loan balances into your 30s or 40s can make people feel trapped, unable to switch jobs, take entrepreneurial risks or even qualify for a mortgage. Knocking out the debt restores flexibility and peace of mind, which often matter just as much as the math.

It’s also worth noting that student loans are not like a low-interest mortgage that rising property values can offset. For many, the debt doesn’t create wealth as much as it simply lingers. Getting rid of it quickly is appealing for both practical and emotional reasons.

Trending: I’m almost 50 and have nothing saved for retirement — what now? Don’t panic. These 6 easy steps can help you turn things around

The case for investing early

But, there’s a strong argument for not waiting on retirement savings. The earlier you invest, the more you benefit from compound growth.

Let’s say your salary is $75,000, and you put $500 a month into a 401(k) starting at age 30. With a 7% average annual return, and assuming small annual raises and 3% inflation, you could amass more than $800,000 by age 60.

Now, let’s look at what happens when you wait. Starting those same contributions at age 40 cuts your nest egg at age 60 to $320,000.

And if your company offers matching? That’s an immediate, guaranteed return. A dollar-for-dollar match up to 5%, for example, effectively doubles the first slice of your contribution. Skipping it is quite literally rejecting free money.

There’s also inflation to consider. Your $40,000 loan today will eventually shrink in “real” terms as wages rise. But lost years of retirement savings can never be recovered. Once the clock runs out, you can’t buy back that compound growth.

Finding the balance

So which is it? Pay off the debt or invest for the future? For most 30-year-olds, the answer isn’t either/or. It’s both. Here’s how to think about balance:

The mindset factor

Beyond numbers, it’s important to ask: Which approach keeps you motivated? Some people thrive on the psychological boost of watching debt balances shrink to zero. Others are more inspired by seeing their retirement account grow.

Regardless of which camp you fall into, the worst move is inaction. Even small steps in either direction create momentum. Pay an extra $50 toward your loans. Increase your 401(k) contribution by 1%. Tiny moves today can snowball into financial security tomorrow.

What to read next

Join 200,000+ readers and get Moneywise’s best stories and exclusive interviews first — clear insights curated and delivered weekly. Subscribe now.

Article sources

At Moneywise, we consider it our responsibility to produce accurate and trustworthy content people can rely on to inform their financial decisions. We rely on vetted sources such as government data, financial records and expert interviews and highlight credible third-party reporting when appropriate.

We are committed to transparency and accountability, correcting errors openly and adhering to the best practices of the journalism industry. For more details, see our editorial ethics and guidelines.

[1]. Education Data Initiative. “Student loan debt statistics“

This article originally appeared on Moneywise.com under the title: I’m 30 and need to start contributing to my 401(k), but I also have $40K in student loans. What’s my best bet?

This article provides information only and should not be construed as advice. It is provided without warranty of any kind.