budgeting

Should You Pay Off Debt or Save for Retirement? (The Math That Decides)

A plain-English guide to pay off debt or save for retirement — what it means, how it works, and exactly what to do about it.

By CreditMango Editorial TeamPublished June 1, 2026Updated June 1, 2026

Every dollar you earn can only go one place at a time. So when you're staring down a credit card balance and a 401(k) that's looking thin, you face one of the most common — and genuinely hard — money decisions: do you attack the debt, or do you build the nest egg?

The good news: there's actual math here. It's not just a vibes decision. And once you see the numbers, the answer becomes surprisingly clear — at least for most situations.


The Core Principle: Interest Rates Tell the Story

Here's the framework that drives everything else: compare the guaranteed cost of your debt against the expected return on your investments.

  • Your debt has an interest rate. Paying it off gives you a guaranteed return equal to that rate.
  • Investing in retirement accounts gives you an expected return — historically around 7–10% annually for a diversified stock portfolio.

If your debt costs 22% APR (hello, average credit card rate in 2024), paying it off is like earning a guaranteed 22% return. No investment comes close to that consistently. On the other hand, if your mortgage is at 3.5%, you're probably better off investing — because markets have beaten 3.5% over most 10-year windows.

The pivot point most financial planners use: around 6–7%. Debt above that rate? Pay it off first. Debt below that? Investing likely wins. Right around that range? It's genuinely a coin flip and other factors take over.


The Exception That Changes Everything: Free Money

Before you apply that framework to anything, check one thing first: does your employer match your 401(k) contributions?

If yes, contribute enough to capture every cent of that match before you pay down any debt — period. A 50% match on the first 6% of your salary is a 50% instant return. That beats even 22% credit card interest, because you're getting the match on top of whatever the market does.

Example: You earn $60,000. Your employer matches 50% of contributions up to 6% of salary. That's up to $1,800 in free money per year. Leaving that on the table while paying down a $5,000 card is a math error.

Capture the full match. Then apply the framework to everything else.


High-Interest Debt: Pay It Off First

Credit cards, payday loans, and personal loans typically carry rates from 18% to 30%+. The math is unambiguous here.

Let's say you have $5,000 in credit card debt at 22% APR. If you carry that balance for five years making minimum payments, you'll pay roughly $3,000–$4,000 in interest on top of the original $5,000. Eliminating that debt is like finding a 22% guaranteed investment — something that simply doesn't exist in any market.

Compare that to investing $5,000 in an index fund over five years. Assuming a 9% average return, that grows to about $7,693. But you'd also be paying $3,000+ in credit card interest during those same five years. Net outcome: you're behind.

The rule of thumb: Any debt above 7% APR is likely worth prioritizing over investing beyond your employer match.

Common high-interest debt to pay off aggressively:

  • Credit cards (average ~22%)
  • Payday loans (can exceed 300% APR)
  • Personal loans above 10%
  • Private student loans at high rates

Low-Interest Debt: Invest While Paying Minimums

On the other end of the spectrum, some debt is so cheap that investing almost certainly wins.

Mortgages at 3–5% (especially older ones locked in before 2022), federal student loans at 4–5%, and car loans at 3–4% all fall into this category. The stock market has averaged roughly 10% annually over the past century (about 7% after inflation). Even accounting for bad decades, a diversified portfolio has beaten 4% interest over most 15–20 year windows.

The psychological case for paying these off early is real — there's genuine comfort in being debt-free. But if you're 35 with $10,000 you could throw at a 4% mortgage or invest for 30 years, the math strongly favors investing.

$10,000 invested at 7% average annual return for 30 years = $76,123
$10,000 applied to a 4% mortgage = $10,000 in saved interest (rough estimate, amortization-dependent)

That's a $66,000 difference. Compound interest is playing a long game on your behalf.

General low-interest debt to maintain (pay minimums, invest the rest):

  • Mortgages under 5%
  • Federal student loans under 5%
  • Car loans under 4%

The Middle Ground: 5–7% Interest Rates

This is where it gets genuinely complicated. Debt in the 5–7% range could go either way depending on:

Your age. The younger you are, the more time compound growth has to work. A 28-year-old investing $500/month has a lot more upside than a 52-year-old doing the same thing. Youth tips the scale toward investing even at moderately higher rates.

Your tax situation. Contributions to a traditional 401(k) or IRA reduce your taxable income now. If you're in the 22% or 24% federal bracket, a $6,000 IRA contribution effectively costs you only $4,560–$4,680 after the tax savings. That changes the math.

Your job stability. If you're in a volatile industry or your income isn't predictable, being debt-free has genuine value that doesn't show up in spreadsheets. Less debt = less pressure if income drops.

Your emotional tolerance. Some people make genuinely worse financial decisions when they're carrying debt. If debt stress leads to impulse spending, worse sleep, and paralysis — paying it off has a real psychological ROI that's hard to quantify but very real.

For debt in this range, a reasonable middle path: split the extra money. Put 50% toward the debt and 50% toward retirement investing. You make progress on both fronts and don't have to bet everything on one outcome.


The Roth IRA Wildcard

There's one account that deserves special mention: the Roth IRA.

Roth contributions are made with after-tax dollars, but the growth and withdrawals in retirement are completely tax-free. In 2024, you can contribute up to $7,000/year ($8,000 if you're 50+), as long as your income is below $146,000 (single) or $230,000 (married, filing jointly).

Here's the thing: Roth IRA contributions (not earnings) can be withdrawn at any time without penalty. This makes it a hybrid tool — part retirement account, part emergency buffer. If you fund a Roth while paying off moderate-rate debt and your situation changes, you can access those contributions without a penalty.

This flexibility makes Roths particularly useful for people who are uncomfortable leaving money "locked up" while still carrying debt.


Practical Decision Framework

Here's how to actually prioritize when you have limited dollars:

Step 1: Contribute enough to your 401(k) to capture every dollar of employer match.

Step 2: Build a small emergency fund ($1,000–$2,000) if you don't have one. Debt payoff and investing both fail if a car repair forces you back onto a credit card.

Step 3: Eliminate high-interest debt (7%+ APR) aggressively. Use the avalanche method (highest interest first) to minimize total interest paid, or the snowball method (smallest balance first) if you need motivational wins.

Step 4: Once high-interest debt is gone, max out tax-advantaged accounts — Roth IRA, then 401(k) beyond the match.

Step 5: Apply any remaining surplus to low-interest debt (optional) or taxable investment accounts.


A Real-World Example

Meet Jordan, 31, earning $65,000:

  • 401(k) match: 4% of salary ($2,600/year in free money)
  • Credit card debt: $8,000 at 19.99%
  • Student loans: $18,000 at 5.5% federal rate
  • Monthly surplus after expenses: $600

Wrong approach: Throwing all $600 at the student loans while leaving the 401(k) match uncaptured and the credit card accruing interest.

Right approach:

  1. Contribute 4% ($216/month) to 401(k) to capture full match — that's $432 in total monthly contributions counting the match
  2. Pay $384/month extra toward the credit card (gone in about 23 months)
  3. After credit card is paid off, redirect that $384 toward the student loans or max the Roth IRA, depending on interest rates and tax situation

Net effect over 5 years versus the wrong approach: tens of thousands of dollars better off.


Key Takeaways

  • Capture your full employer 401(k) match first — it's a guaranteed 50–100% return that beats any debt payoff
  • High-interest debt (7%+) almost always beats investing — paying it off is a guaranteed return equal to the interest rate
  • Low-interest debt (under 5%) — investing in a diversified portfolio likely outperforms over a long horizon
  • Rates in the 5–7% range are a genuine toss-up; consider age, taxes, and emotional factors
  • Roth IRAs offer flexibility — contributions can be withdrawn penalty-free, making them useful even while carrying moderate debt
  • An emergency fund is non-negotiable — without one, any debt-payoff plan gets derailed by the first unexpected expense
  • There's no single right answer — the math gives you a framework; your specific situation determines the optimal path

Frequently Asked Questions

Should I stop investing completely to pay off debt faster?

Only if that debt is high-interest (above 7–8%) and you've already captured your employer's 401(k) match. Stopping all investing to pay off a 4% car loan, for example, likely costs you more in lost compound growth than you save in interest. Use the interest rate as your guide.

What if I have both high-interest credit card debt and no retirement savings at 45?

Tackle both simultaneously, but not equally. Capture the full employer match (if available), then direct the rest toward the credit card. Once the card is gone, redirect aggressively to catch-up contributions — people 50+ can contribute an extra $7,500/year to a 401(k) beyond the standard limit. A few years of maximum contributions in your 50s can move the needle significantly.

Does it ever make sense to take a 401(k) loan to pay off debt?

Rarely. You repay a 401(k) loan with after-tax dollars, then those same dollars get taxed again at withdrawal — that's double taxation. You also lose the market growth on the borrowed funds during repayment. There are narrow exceptions (avoiding bankruptcy, preventing foreclosure), but as a debt-payoff strategy, it typically makes things worse.

How does the mortgage interest tax deduction change the math?

Less than it used to. Since the 2017 tax law changes, only about 13% of taxpayers itemize deductions, which is required to benefit from the mortgage interest deduction. If you're in the majority who take the standard deduction, your effective mortgage rate is what's on your statement — no discount. If you do itemize and you're in the 22% bracket, a 6% mortgage effectively costs you about 4.68% after the deduction. That still probably favors investing over early payoff, but it's closer.

I have student loans at 7% — pay them off or invest?

At exactly 7%, you're right at the crossover point. A few factors to consider: federal student loans come with income-based repayment options and potential forgiveness programs (PSLF, SAVE plan) that have real value. Private student loans don't. If your federal loans have any forgiveness potential, maintaining minimum payments while investing often makes sense. If they're private loans at 7%+, treat them like any other high-interest debt and prioritize payoff.

Get more plain English guides

New articles every week. Unsubscribe anytime.