Should You Pay Off Debt or Invest? A Simple Decision Framework
Deciding whether to pay off debt or invest comes down to a simple comparison: your debt's interest rate versus the return you can expect from investing. Paying off debt gives you a guaranteed, risk-free return equal to the interest rate.
Investing might beat that return, but it's never guaranteed. This guide walks through the priority order most planners agree on, with each step linking to a free ModernWallet calculator so you can run the numbers yourself.
If you haven't sized up your debt yet or picked a payoff method, start with our how to pay off debt guide first.
Paying off debt is a guaranteed return
Paying off debt gives you a guaranteed, risk-free return equal to the loan's interest rate. Wipe out a card charging 21%, and you effectively earn 21% -- with zero risk. No investment can promise that.
The U.S. stock market has historically returned roughly 10% a year before inflation. But that long-run average hides big swings, and some years it drops 20% or more. Your future return is uncertain; the debt payoff is not.
So the real question is simple. Does your debt cost more than you can reliably earn? If yes, paying off the debt wins. Credit cards recently averaged about 21% APR, far above any safe return (Federal Reserve, May 2026).
Step 1: Grab your employer 401(k) match first
Always contribute enough to capture your full employer 401(k) match before anything else. A match is free money and an instant return no debt payoff can beat.
Many plans add 50 cents for every dollar you contribute (IRS). That is an immediate 50% return. A dollar-for-dollar match doubles your money on the spot -- a 100% return. Even with credit card debt, grab the match first, then attack the debt.
One catch: matching money may vest over a few years, so check your plan rules. After you secure the match, you can compare a 401(k) vs a Roth IRA for the rest of your savings.
Step 2: Build a starter emergency fund
Build a small starter emergency fund before you throw every dollar at debt. Without cash on hand, one surprise bill lands right back on a credit card. That traps you in the cycle you are trying to escape.
A starter fund of about $1,000, or one month of expenses, is enough at this stage. Keep it in a separate savings account you do not touch.
You can build the full three-to-six-month cushion later, after your high-rate debt is gone. See how much emergency fund you need for your own situation.
Step 3: Kill high-interest debt before taxable investing
Pay off high-interest debt before you invest in a regular taxable account. High-interest usually means anything above roughly 7% to 8%. Credit cards, at about 21%, are the clearest example.
No safe investment reliably beats those rates, so clearing the debt wins. The CFPB suggests targeting your highest-rate balance first to save the most (CFPB).
Not sure which debt to hit first? See debt snowball vs avalanche to pick a method. To map your timeline, read how long it takes to pay off a credit card.
Step 4: With low-rate debt, investing often wins
With low-rate debt, investing your extra cash often beats paying the loan down early. A sub-4% mortgage is the classic example. If your loan costs 3.5% and investments may earn more over time, the math favors investing.
That gap is your likely reward for taking some risk. It is not guaranteed, though, so weigh your comfort with risk.
Student loans and auto loans fall in a gray zone. Compare each loan's rate to your expected return, and split extra cash if you are unsure. Federal student loans also carry protections you give up by paying them off fast.
The behavioral factor: guaranteed vs uncertain
The math is only half the decision -- how you feel about debt matters too. A return from debt payoff is certain, while investment gains are not.
Some people sleep better with zero debt, even when investing might earn a bit more. That peace of mind has real value. If debt stresses you out, paying it down faster is a reasonable choice.
The best plan is the one you will actually stick with. You can also split the difference: invest part of your cash and pay down debt with the rest.
Mortgage payoff vs. investing: a real numbers comparison
A mortgage is the one debt most people ask about by name, because the rate is usually low enough that the answer isn't obvious the way it is with a 21% credit card. Take the worked example from our mortgage payoff calculator: a $300,000 loan at 6.5% with an extra $200 a month toward principal pays off in 277 months (about 23 years) instead of 360, saving $103,449 in interest, guaranteed, with zero market risk.
Now run that same $200 a month through an investment calculator instead of the mortgage. Invested for the full 360 months (30 years) rather than paid toward principal, $200 a month grows to about $221,236 at a 6.5% return, matching the mortgage rate exactly, or about $243,994 at a more typical 7% long-run stock-market assumption -- both figures include your own $72,000 in contributions, so the growth on top is $149,236 and $171,994 respectively.
The rate-comparison rule from earlier in this guide still applies: prepaying a 6.5% mortgage is a guaranteed 6.5% return, no different in kind from any other debt payoff. Investing at a 7% assumption is a real edge on paper, but only if the market actually delivers something close to its long-run average over your full 30-year window, and only if you do not sell during a downturn. The mortgage payoff calculator and the investment calculator use the same $200-a-month input, so you can run your own loan balance and rate through both and compare the guaranteed number to the projected one side by side.
Frequently asked questions
Should I pay off debt or invest first?
First grab any employer 401(k) match, since it is free money. Next build a small emergency fund. Then pay off high-interest debt, roughly 7% APR or more, before investing in a taxable account. Low-rate debt, like a sub-4% mortgage, can wait while you invest.
Is it better to pay off debt or invest?
It depends on your debt's interest rate versus your expected return. Paying off debt earns a guaranteed return equal to the rate. Investing may earn more but is never guaranteed. If your debt costs more than you can safely earn, paying it off usually wins.
What interest rate is high enough to pay off before investing?
Roughly 7% to 8% APR or higher is the common cutoff. Credit cards, which recently averaged about 21%, sit well above that. No safe investment reliably beats those rates, so clearing high-rate debt first is the stronger move.
Should I pay off my mortgage or invest?
With a low-rate mortgage, investing often wins over paying it off early. A sub-4% loan likely costs less than long-run investment returns. But those returns are uncertain, while paying down the loan is guaranteed. Choose based on the rate gap and your comfort with risk — see the full tax implications of paying off your mortgage early before you decide.
How much more could investing earn than paying off my mortgage early?
On a $300,000 mortgage at 6.5% with an extra $200 a month, prepaying saves $103,449 in guaranteed interest and pays the loan off about 7 years early. Investing that same $200 a month for the full 30 years instead grows to roughly $221,236 to $243,994 at a 6.5% to 7% return, before taxes -- a similar or larger number on paper, but market-dependent rather than guaranteed. Run the mortgage payoff calculator against the investment calculator with your own balance and rate to compare both paths.
Why should I get the 401(k) match before paying off debt?
An employer match is an instant return no debt payoff can beat. A 50-cent match per dollar is an immediate 50% gain, and a dollar-for-dollar match is 100%. Contribute enough to capture the full match, then return to your debt.
Should I invest while I still have credit card debt?
Generally no, aside from capturing your employer 401(k) match. Credit cards near 21% cost far more than a safe investment can earn. Pay off the card balance first, then invest with the money you free up.
Sources
We prioritize primary sources for rules, formulas, rates, limits, and definitions. See our calculator methodology and editorial policy.