When you’re carrying significant debt and you have an investment account sitting with a meaningful balance, the temptation is obvious: sell the investments, wipe out the debt, start fresh. It feels decisive. It feels logical.
Sometimes it is. Often it’s more complicated and more expensive than it first appears. Here’s the full picture.
The Core Question: Rate Comparison
The mathematical foundation of this decision is simple: compare the guaranteed return from eliminating the debt against the expected return from keeping the investment.
- Paying off a 22% credit card with investment proceeds = a guaranteed 22% return on that money
- Long-term stock market expected return = roughly 7–10% annually
- Conclusion: mathematically, using investments to pay off 22% debt is the better move on a pure numbers basis
But that math is before accounting for the tax cost of liquidating — which can be significant enough to change the conclusion.
The Tax Cost of Liquidating
This is the piece that makes the decision more complex than the rate comparison alone.
Taxable Brokerage Accounts
Selling investments in a taxable brokerage account triggers capital gains taxes:
- Short-term capital gains (held less than 1 year): taxed as ordinary income — at a high income level, that’s 32–37% federal plus state
- Long-term capital gains (held more than 1 year): taxed at 0%, 15%, or 20% depending on income. High earners typically pay 20% federal plus the 3.8% Net Investment Income Tax, plus state taxes
A $50,000 investment account that’s doubled in value has $25,000 in gains. At a combined 25% rate on long-term gains (federal + state), you’d pay $6,250 in taxes — meaning you net $43,750, not $50,000. The debt payoff capacity is meaningfully less than the account balance suggests.
Retirement Accounts (401k, Traditional IRA)
Early withdrawal (before 59½) from traditional retirement accounts triggers both ordinary income tax on the full withdrawal AND a 10% early withdrawal penalty. At high income levels, the combined rate might be 42–50% or more.
A $30,000 withdrawal from a 401k might net you $15,000–$18,000 after taxes and penalties. This is almost never worth it. The tax cost is too high, and you permanently lose the tax-advantaged compounding space that can never be recaptured.
Roth IRA
Roth IRA contributions (not earnings) can be withdrawn at any time tax and penalty-free. If you’ve contributed $30,000 to a Roth and it’s grown to $45,000, you can withdraw the $30,000 in contributions without tax or penalty — leaving the $15,000 in earnings in the account.
This is a more viable option than early 401k withdrawal, but still comes with the opportunity cost of lost tax-free growth. Withdrawn Roth contributions cannot be re-contributed (beyond your annual contribution limit).
When Liquidating Investments Makes Sense
High-Rate Debt + Taxable Account + Long-Term Gains
If you have credit card debt at 20%+ and a taxable brokerage account with long-term gains, liquidating some or all of it often makes mathematical sense after accounting for taxes. Paying 20–25% in capital gains taxes to eliminate debt costing 22%+ is roughly break-even or better — and the psychological benefit of clearing the debt has real value.
Concentrated Position With Significant Gains
If a significant portion of your taxable investment portfolio is in a single stock that has appreciated substantially (employer RSUs that have vested, for example), the concentration risk argument strengthens the case for selling — even to pay relatively lower-rate debt. Diversifying out of a concentrated position while addressing debt is a two-birds-one-stone move. See RSUs and stock options debt payoff for the detailed framework.
When Keeping the Investments Makes More Sense
Low-Rate Debt
If your remaining debt is a mortgage at 4%, student loans at 3%, or a personal loan at 6%, the expected return from keeping your investments invested (7–10% long-term) may reasonably exceed the guaranteed return from paying off the debt — even accounting for taxes on eventual gains. Low-rate debt is where the “invest rather than pay off” argument has its strongest footing.
Early Retirement Account Withdrawal
Almost never worth it. The 10% penalty alone eliminates much of the benefit, and the tax cost at high income levels makes it worse. A 401k loan (borrowing against your balance and repaying yourself with interest) is significantly better than an early withdrawal if you need the retirement account for debt purposes. Check if your plan allows it.
Short Investment Time Horizon
If you might need the investment funds in the near term (home purchase, business investment, children’s education), keeping them invested and paying debt through income is better than liquidating now and rebuilding later.
The Opportunity Cost of Lost Compounding
Beyond taxes, there’s the long-term opportunity cost of removing money from compound growth. A $50,000 investment account left alone for 20 years at 8% grows to $233,000. That same $50,000 withdrawn today to pay debt is gone from the growth equation permanently.
This doesn’t mean you shouldn’t liquidate — sometimes the debt cost clearly outweighs this — but it should factor into the calculation, especially for younger high earners where the compounding runway is longest.
A Decision Framework
- What’s the after-tax net from liquidating? (Account value minus estimated capital gains taxes)
- What’s the interest rate on the debt being paid off?
- Is the debt rate > after-tax investment return expectation? If yes, liquidating makes mathematical sense.
- Is the account a retirement account? If yes, is there a loan option that avoids the penalty?
- Would you be leaving the market at a loss? (Selling during a market downturn locks in losses permanently)
- What’s the concentration risk situation? Is diversification an additional benefit?
The Bottom Line
Cashing out investments to pay debt isn’t automatically good or bad — it depends on the specific debt rate, the investment account type, and the tax cost of liquidating. For high-rate consumer debt and taxable accounts, it often makes sense. For retirement accounts and low-rate debt, it usually doesn’t.
Always calculate the after-tax net before assuming the account balance equals the available debt payoff capacity. The tax cost is real, and at high income levels, it can be substantial.
———————————————