Should I sell appreciated stock to pay off credit card or car loan?

Trying to decide whether to sell appreciated stock to pay off credit card or car loan and I keep going back and forth. I have about $18k in a taxable brokerage account, all of it in a single ETF I bought three years ago. The position has gained a lot. I also have a credit card balance and a car loan I'd love to wipe out. My thinking was: sell the stock, pay off the debt, feel relief. But then I realized I'd owe capital gains tax on the sale and I'm not sure how much of the proceeds would actually survive. I've looked at Schedule D and Form 8949 but I don't know what rate I'd be paying or whether the math works in my favor. Is there a framework for thinking through this? Does the type of debt matter?

34 comments

The debt type matters a lot here. Credit card interest is not tax-deductible for most people, so every dollar of interest you pay is a pure after-tax cost. Car loan interest is also generally not deductible unless the car is used for business. The stock gain, though, will be taxed at long-term capital gains rates since you've held it more than a year — the exact rate depends on your taxable income for the year, and the instructions for Schedule D walk through the Qualified Dividends and Capital Gain Tax Worksheet that determines it. So the real question is: what rate do you pay on the gain versus what rate is your debt costing you after tax?

Nina V.

Author

That framing helps. So if my marginal rate on the gain ends up being lower than the effective interest rate on the card, selling could still make sense even after tax?

Yes, that's the core of it. If your credit card is running at a high rate and your gains are taxed at a lower long-term rate, the math can favor selling. The issue is you have to actually run the numbers with your income, not just guess at the rate.

Don't forget state income tax. Long-term capital gains are taxed as ordinary income in some states, which can close the gap between what you owe on the gain and what the debt is costing you. Your brokerage should send a 1099-B showing your proceeds and your cost basis, and you'll report the sale on Form 8949 Part II (box D if basis was reported to the IRS) then carry it to Schedule D. The tax hit is real and needs to be part of the calculation before you sell anything.

Nina V.

Author

I forgot about state tax completely. I'm in a state that taxes gains as ordinary income so this changes the total cost of selling.

Ran into the same decision last year with an appreciated index fund. I uploaded my 1099-B and my draft return to taxr.ai and it compared the actual gain on the 1099-B against what I'd entered on Form 8949, flagged that I had the holding period wrong for a small lot, and laid out what the net proceeds would look like after the tax hit. Really useful before making the call. Worth doing that kind of dry run before you commit to selling, because once the trade settles the tax event exists whether you like the number or not.

Nina V.

Author

That's exactly the kind of dry run I should do. I didn't realize you could model it before pulling the trigger.

Yes, knowing the after-tax number before you sell is the whole game. A lot of people are surprised when the proceeds land and they realize they owe more than expected come April.

One structural point: credit card debt and car loan debt are fundamentally different from an interest-rate-risk standpoint. Credit cards are variable and can climb; car loans are typically fixed for the life of the loan. If your card rate is high and variable, the case for eliminating it is stronger because the cost of carrying it can increase. The capital gain tax rate won't change based on that, but the urgency of paying off the debt does.

Nina V.

Author

The card is variable, yeah. That's a good reason to weight it more heavily in the calculation.

Practically speaking: get your 1099-B from last year (or project this year's) and find your cost basis and proceeds. That's column (e) and column (d) on Form 8949. The difference is your gain. Then look at the Qualified Dividends and Capital Gain Tax Worksheet inside the Schedule D instructions — it determines whether you're in the 0%, 15%, or 20% bracket for long-term gains based on your total taxable income. Add state tax. That's your actual tax cost of selling. Compare it to the debt interest you'd eliminate. That's the whole decision.

Worth mentioning: if you sell and immediately rebuy the same ETF there's no wash sale issue because wash sales only apply to losses, not gains. So if you want to reset your cost basis higher after paying off debt but keep the same position, you can sell, use proceeds to pay the debt, and buy back in. You just owe tax on the gain regardless.

Good clarification. I've seen people assume the wash sale rules somehow shelter a gain realization situation and they don't — wash sales are only triggered when you sell at a loss and repurchase substantially identical securities within the 30-day window before or after.

If you hold the ETF in a taxable account and also contribute to an IRA or Roth IRA, check whether selling the stock could affect anything else — like whether the gain bumps you into a phase-out for a deduction or credit. I'm not saying it will, but a large realized gain in a single year can have ripple effects beyond just the Schedule D line.

Nina V.

Author

Hadn't thought about ripple effects on other parts of the return. Worth checking before I do anything.

The car loan question is a bit easier to analyze because car loan rates are fixed, so you know exactly what you'd save. With the card, the future interest cost is uncertain. If the card rate is well above what your capital gains tax rate will be, paying off the card is probably the right call even after tax. If the car loan rate is low, the case for selling to pay it off is weaker — you might be better off staying invested.

I had a similar setup and was second-guessing myself about which lots to sell. I gave Taxr my brokerage statement and it identified which specific lots had the lowest embedded gain per share, so I could minimize the tax hit by choosing which shares to sell rather than just selling the whole position at once. The 1099-B your broker sends will reflect whichever shares you designate; if you don't designate, brokers often default to FIFO. Worth knowing before you place the order.

Nina V.

Author

I didn't know I could designate specific lots. That could make a real difference if some lots have smaller gains.

Yes, specific identification is legitimate and can lower your taxable gain. You need to tell your broker which lots you're selling before the sale, not after. And keep the confirmation that shows which lots were sold so your records match the 1099-B.

Something people underestimate: the psychological relief of paying off a credit card is real but it's not a tax event. The capital gains tax is. So sometimes the emotional pull to eliminate the debt leads people to realize more gain than they need to in a single year. Consider whether you could sell a portion — enough to knock down the high-rate debt — and leave the rest invested.

Nina V.

Author

Partial sale is a good middle path I hadn't considered. I was thinking all or nothing.

If your income is low enough, your long-term capital gains rate might actually be 0% at the federal level. That bracket exists and is determined by your total taxable income for the year — the Schedule D instructions have the worksheet. If you're close to that threshold it could be worth timing the sale to a year where your income is lower. That changes the entire calculation.

This is a real possibility worth checking. The 0% rate isn't a myth — it applies at certain income levels and is figured on the Qualified Dividends and Capital Gain Tax Worksheet. If you qualify, selling appreciated stock is essentially free from federal capital gains tax that year.

Before I sold a large lot of appreciated shares last spring I ran my brokerage statement and the draft 8949 through Taxr and it mapped each lot to the right Part II box, confirmed which ones were covered securities with basis reported to the IRS, and drafted a summary showing my projected Schedule D outcome. Made it easy to see what the actual after-tax proceeds would look like before I placed the order rather than being surprised later. Main thing to watch on the form: Part II box D is for long-term covered securities where basis was reported to the IRS, box E if basis wasn't reported.

Nina V.

Author

The Part II box distinction is something I would have gotten wrong. Good to know covered vs. not covered changes which box you check.

Correct, and it matters because the IRS matches what it receives from your broker against what you report. If your broker reported basis to the IRS (covered security) and you check the wrong box, it can create a mismatch that triggers a notice.

To bring the debt comparison back to basics: credit card interest has no tax benefit for a typical W-2 employee. Car loan interest also has none unless it's a business vehicle. So the after-tax cost of both debts equals their stated interest rate. The after-tax proceeds from selling the stock equal the total sale proceeds minus the federal and state capital gains tax owed on the gain. If the after-tax proceeds are enough to cover the debt and the savings from eliminating the interest exceed what you'd expect the investment to return, selling wins.

Don't overlook the net investment income tax if your modified adjusted gross income is above certain thresholds — it applies on top of the regular long-term capital gains rate on investment income including capital gains. The instructions for Form 8960 cover it. This can push your effective rate higher than you expect from the Schedule D worksheet alone.

Nina V.

Author

Form 8960 is new to me. I'll check whether that threshold is relevant for my income level.

It's worth checking. The threshold depends on your filing status and MAGI. If you're near it, a large realized gain in one year could push you over. The Form 8960 instructions on irs.gov lay out the MAGI calculation.

Late to this but one practical step before you do anything: call your broker and ask them to confirm which of your lots are covered securities and what their recorded cost basis is. That's the number that will go on the 1099-B in box 1e and flow to column (e) of Form 8949. If the basis looks wrong — for example if you reinvested dividends and those lots aren't all reflected — you need to sort that out before you sell, not after.

Nina V.

Author

Reinvested dividends adding to basis is something I definitely need to check. Those lots could have a higher basis than I think.

Final thing worth saying: if you do sell, set aside the tax before you spend the proceeds. A lot of people pay off the debt, feel great, then get a surprise bill when they file. The gain goes on Form 8949 and Schedule D, and if you don't have withholding covering it you may owe a penalty for underpayment of estimated taxes. Consider making a Q4 estimated payment if the sale is large enough.

Nina V.

Author

Setting aside the tax portion before spending the rest — that's the discipline I need. I didn't even think about estimated payments.