Debt vs investing

Should I Cash Out Investments to Pay Off Credit Card Debt?

The answer is not yes or no. It is "which account are we talking about?"

By Jack Novak7 min read

Quick answer: selling taxable brokerage investments to kill 24% card debt is often smart. Cashing out retirement accounts almost never is, because taxes and penalties take their cut before the debt sees a dollar.

Same question, opposite answers, and the difference is worth thousands. Here is the account-by-account breakdown.

The account type decides

AccountVerdict
Taxable brokerageOften yes
Roth IRA contributionsMaybe
401(k) / traditional IRAAlmost never
Emergency fundNo

The rest of this page walks through the math behind each verdict.

The math that says yes

Paying off a 24% credit card is a 24% guaranteed, tax-free return. No investment offers that. Stocks average roughly 7 to 10 percent a year over long periods, and that is an average, not a promise.

$10,000 in a taxable account vs $10,000 of card debt at 24%

Leave it invested and the market returns a strong 8%: you earn about $800 this year. Meanwhile the card charges about $2,400. You went backward $1,600 while doing everything "right."

Before you sell, check two things: what capital gains tax you would owe on the profit, and whether the spending that maxed the cards is already fixed. Selling without both answers can leave you with no investments and new debt six months later.

The retirement trap

A 401(k) or traditional IRA withdrawal before age 59½ gets hit twice before it ever touches your debt:

The $10,000 401(k) withdrawal

  • Federal income tax (24% bracket): -$2,400
  • State income tax (5% example): -$500
  • Early withdrawal penalty (10%): -$1,000
  • Reaches your debt: about $6,100

You gave up $10,000 to pay off $6,100 of debt. And the hidden cost is bigger: left alone at 7% average growth, that $10,000 becomes about $54,000 in 25 years. Cashing out retirement money to pay cards is trading $54,000 tomorrow for $6,100 today. If retirement money feels like your only option, a 401(k) loan or a hardship conversation with your issuers (or both) almost always beats a withdrawal.

Taxes on taxable accounts

Selling in a brokerage account is far gentler, but not free. Three things to know:

  • You are taxed on the gain, not the sale. Sell $10,000 of stock you bought for $7,000 and only the $3,000 profit is taxable.
  • Holding period matters. Positions held over a year get long-term rates (0, 15, or 20 percent for most people). Under a year, gains are taxed like regular income. If a position goes long-term next month, waiting can be worth real money.
  • Losses can help. Selling a losing position harvests a capital loss that offsets other gains and up to $3,000 of regular income. If you must sell something, selling the losers first is often the tax-smart order.

When cashing out makes sense

The money is in a taxable account

No penalties, no lost retirement space, just capital gains tax on the profit portion.

The debt APR is 15% or higher

At card rates, the guaranteed savings beat any realistic expected return. Below about 8%, the math flips toward staying invested.

The spending leak is fixed

Cashing out only works once. If the cards recharge over the next year, you end up with no investments and new debt.

Your emergency fund survives the move

Keep at least one month of expenses in cash. The emergency fund is what keeps the next surprise off the cards.

When to leave it invested

The money is in a 401(k) or traditional IRA

The 30 to 40 percent haircut from taxes and penalties makes this the most expensive money you own.

The debt is small relative to your cash flow

If your budget can clear the balance within 6 to 12 months, a payoff plan beats touching investments at all.

You would be selling your only safety net

If those investments are effectively your emergency fund, draining them to zero converts every future surprise into new card debt.

The middle path

Most people do not need to sell anything. The stronger move is usually to redirect, not raid:

  • Keep contributing enough to get your full employer match. That is an instant 50 to 100 percent return.
  • Pause investing beyond the match and send that money at the cards instead.
  • Once the high-APR debt is gone, flip the same dollars back to investing without ever having sold a share.

The full breakdown of that strategy is in should I pause 401(k) contributions to pay off credit card debt.

Run your own numbers

Before selling anything, see what your current budget can do on its own. Enter your balance, APR, and monthly payment:

Credit Card Payoff Calculator

Enter your balance, APR, and monthly payment to see your payoff date and total interest. Results update instantly.

$
%
$

Enter your balance, APR, and a monthly payment to see your payoff timeline, debt-free date, and total interest.

Have more than one card? See the smartest payoff order across all of them.

See My Personalized Debt-Free Date →

Make the call with a plan

Debt Driver shows what your budget alone can do to your cards, so you know whether selling investments is necessary or just tempting. Setup takes about 2 minutes.

Get My Personalized Plan →

FAQs

Is it worth selling stocks to pay off credit card debt?

Often yes, if the stocks are in a regular taxable brokerage account. Card debt at 22 to 26 percent costs more than stocks are expected to earn (roughly 7 to 10 percent a year, not guaranteed). Paying off a 24% card is a 24% guaranteed return. Just account for capital gains taxes on the sale and keep your emergency fund intact.

Should I cash out my 401(k) to pay off credit card debt?

Almost never. A $10,000 early withdrawal can lose $3,000 to $4,000 immediately to income taxes plus the 10% penalty, so only $6,000 to $7,000 reaches the debt. And that $10,000 left invested could be worth $54,000 in 25 years at 7% average growth. You give up both ends of the trade.

Can I withdraw Roth IRA contributions to pay off debt?

Yes, contributions (not earnings) come out tax-free and penalty-free at any time. It is legal and sometimes reasonable for high-APR debt, but be honest about the cost: Roth space is use-it-or-lose-it. Once withdrawn, you cannot put those years of contributions back.

What about a 401(k) loan instead of a withdrawal?

A 401(k) loan avoids the taxes and penalty, and you pay interest back to yourself, which makes it far better than a withdrawal. The risks: the borrowed money misses market growth, and if you leave your job, the balance can come due quickly, with the unpaid portion treated as a withdrawal. Reasonable for some people, but understand the exit rules first.

Do I owe taxes when I sell investments to pay off debt?

In a taxable account, you owe capital gains tax only on the profit, not the whole sale. Positions held over a year get long-term rates (0, 15, or 20 percent for most people). Held under a year, gains are taxed as ordinary income, so waiting for a holding to go long-term can be worth real money.

Should I stop investing while paying off credit card debt?

Keep contributing enough to get your full employer 401(k) match (that is an instant 50 to 100 percent return), and consider pausing investing beyond the match until the high-APR debt is gone. A 24% guaranteed cost beats a 7 to 10 percent expected return every time.

What if the market is down right now?

Selling in a downturn locks in losses, which makes the trade worse but not automatically wrong: 24% card interest compounds regardless of what the market does. One silver lining: selling at a loss in a taxable account can harvest a capital loss that reduces your taxes. If the decision feels close, the market being down tilts it toward the middle path of pausing contributions instead of selling.

Debt Driver is a debt payoff planning app. We are not a lender, investment advisor, or tax professional. All content on this page is for educational purposes only and is not financial, tax, investment, or legal advice. The examples, tables, and calculators shown are illustrative and use standard amortization math; your actual results depend on your real balances, APRs, payment timing, fees, and behavior. Tax rates, penalty rules, and capital gains treatment vary by income, state, and holding period; the figures shown are illustrative examples. Investment returns are not guaranteed. Before making significant financial decisions, consider consulting a qualified professional. See our full disclaimer.

Get My Free Personalized Plan →