Both investing and paying off debt build your net worth. The question is which one builds it faster — and that comes down mostly to interest rates.

There’s no universal right answer, but there is a clear framework. Here’s how to use it.

The Core Principle: Compare Rates

When you pay off debt, you get a guaranteed return equal to the interest rate you were being charged. If your credit card charges 22% APR, paying it off is a 22% guaranteed return. No investment reliably beats that.

When you invest, you’re betting on an expected return that isn’t guaranteed. The U.S. stock market has returned roughly 7–10% annually over long historical periods. That’s the benchmark to compare against your debt’s interest rate.

The decision framework, simplified:

Debt Interest RateGeneral Guidance
Above 7%Pay off debt first — guaranteed return likely beats expected investment return
5–7%Either approach works; personal preference and psychology matter
Below 5%Investing likely wins over the long term

This isn’t a perfect science. Expected investment returns vary by time horizon and asset allocation. Tax treatment of debt interest and investment gains adds complexity. But the rate comparison gets you most of the way there.

The Non-Negotiable Exceptions

Before applying the framework above, there are two situations that override everything else.

Always Capture Your Employer’s 401(k) Match First

If your employer matches a percentage of your 401(k) contributions — say, 50 cents per dollar up to 6% of salary — that match is an instant 50% return on those dollars. No debt payoff competes with that.

Contribute enough to capture the full employer match before making extra debt payments. Every dollar of match you leave on the table is free money you’re declining.

See what is a 401(k) for how employer matches work.

Never Carry High-Interest Credit Card Debt Without Paying It Down Aggressively

Credit card interest rates typically run 20–29% APR. No investment strategy meaningfully competes with a guaranteed 25% return. If you’re carrying a balance, paying it off is almost certainly the highest-return action available to you.

The one exception: if you’re making a balance transfer to a 0% promotional rate, you’ve temporarily reduced the effective rate. But the underlying principle still applies — high-rate debt comes before investing.

After the Exceptions: The Full Decision Flow

Once you’ve captured your employer match and don’t have high-interest credit card debt, work through this sequence:

1. Do you have an emergency fund? Before investing or extra debt payments, you need 3 to 6 months of expenses in a liquid account. Without it, the next unexpected expense forces you back into debt. See what is an emergency fund.

2. What are your interest rates? Sort your debts by APR. Any debt above 7% gets paid off before you invest beyond the 401(k) match. Below 5%, investing is probably better long-term. Between 5–7%, either choice is reasonable — use the psychology test (more on this below).

3. Are your tax-advantaged accounts maxed? Even for lower-rate debt, the tax advantages of a Roth IRA or maxing a 401(k) can shift the math toward investing. Tax-free growth in a Roth IRA or tax-deferred growth in a traditional IRA increases the effective return of investing and should be weighed in your comparison.

4. What’s the time horizon? If you’re 35 years from retirement, investing small amounts now compounds for decades. If you’re 5 years from retirement, guaranteed debt payoff may be more reliable. How compound interest works explains why time in the market matters so much.

How Tax-Deductible Interest Changes the Calculation

Some debt comes with a tax benefit that effectively lowers its real cost to you.

Mortgage interest: Homeowners who itemize deductions can deduct mortgage interest. If your mortgage rate is 6.5% and you’re in the 22% tax bracket, your effective after-tax rate is closer to 5.1%. This shifts the math toward investing rather than extra principal payments.

Student loan interest: Up to $2,500 of student loan interest per year is deductible if you meet income requirements. This reduces your effective rate modestly.

Neither deduction changes the math dramatically, but they do lower the effective interest rate you should compare against expected investment returns. When running the numbers, use the after-tax rate if you’re taking the deduction.

The Psychology Dimension

Purely mathematical answers assume you behave rationally in all scenarios. Most people don’t, and that’s not a criticism — it’s just reality.

Some people feel genuine anxiety carrying debt and can’t fully engage with other financial goals until it’s gone. If that’s you, paying off debt faster than the math requires isn’t irrational. Stress has real costs, and feeling financially secure has real value.

The risk of the psychological argument is using it to avoid investing indefinitely. “I’ll invest once the debt is gone” can become a reason to delay retirement savings for years, especially if the debt is low-rate and slow to pay off.

A reasonable middle ground for the 5–7% gray zone: split extra dollars between debt payoff and investing. You reduce the debt and build the investing habit simultaneously. It’s slightly less mathematically optimal in either direction but sustainable for more people.

Applying the Framework to Common Debt Types

Credit Cards (15–29% APR)

Pay these off before any discretionary investing beyond your 401(k) match. This is not close. The guaranteed return from eliminating 22% APR debt is exceptional.

Personal Loans (8–20% APR)

Above 7%, pay off before investing. If you’re paying 15% on a personal loan, that’s a 15% guaranteed return. It’s worth more than most investments.

Student Loans (4–8% APR)

This is squarely in the gray zone for many borrowers. If your rate is 4–5%, investing in diversified index funds and making minimum loan payments is mathematically reasonable. At 7–8%, paying off loans gets more compelling. For the full breakdown of student loan strategies, see student loan repayment strategies.

There’s also an IDR consideration: if you’re pursuing income-driven repayment forgiveness or PSLF, you don’t want to pay off federal loans early. In that case, the framework shifts entirely toward investing.

Car Loans (4–10% APR)

Typical car loan rates vary widely by credit. At current rates, many car loans are in the 6–9% range. Apply the threshold: above 7%, pay it down ahead of investing; below 5%, invest instead.

Mortgage (5–8% APR)

This is the most complex case. Add the tax deduction on mortgage interest, the long amortization period, and the fact that paying down a mortgage isn’t liquid (you can’t easily access that equity in an emergency). For most people with a 6–7% mortgage rate, splitting between extra payments and investing makes sense — but the math is close and depends on your full financial picture. Explore the true cost of owning a home for the full context.

A Simple Decision Table

SituationAction
Employer 401(k) match available, not fully capturedIncrease contributions to capture full match first
Credit card balance at 15%+ APRPay off aggressively before any extra investing
No emergency fundBuild 3–6 months expenses before extra debt payoff or investing
Debt at 7%+ APR (after tax adjustments)Pay off before investing beyond tax-advantaged accounts
Debt at 5–7% APRYour call — consider splitting, or decide based on psychology
Debt below 5% APRInvest in tax-advantaged accounts; make minimum debt payments
Tax-advantaged accounts not yet maxedMax before extra debt payoff on low-rate debt

Frequently Asked Questions

Q: Is it ever smart to invest while carrying credit card debt?

Only if the credit card balance has been transferred to a 0% promotional rate and you have a clear plan to pay off the full balance before the promotional period ends. Otherwise, carrying any revolving credit card balance while putting money into investments is almost always counterproductive — the interest you’re paying exceeds what you’re earning.

Q: What if I have both high-rate debt and no retirement savings in my 40s?

Prioritize the high-rate debt first while capturing any employer match (the match is an instant return that’s hard to replicate). Then pivot hard to retirement accounts once the debt is clear. The years you have until retirement still matter — money invested at 45 has 20 years to grow. Don’t give up on retirement savings entirely, but eliminate expensive debt as fast as possible.

Q: Does it make sense to take money out of savings to pay off debt?

If the debt rate is significantly higher than what your savings are earning, yes — with one important exception. Don’t deplete your emergency fund to pay off debt. Keep 3–6 months of expenses in liquid savings no matter what. Beyond that, using a high-yield savings account earning 4–5% to pay off debt at 8–10% is usually the right move.

Q: How do I know if I’m on the right track overall?

The financial order of operations gives a structured priority order for all the major financial decisions — emergency fund, employer match, high-rate debt, retirement accounts, and beyond. It’s a useful reality check if you’re not sure how the pieces fit together.

Learn More

Note: This guide is for general education, not individualized financial, legal, tax, insurance, investment, or career advice. Read our editorial standards.