Most tax efficient way to sell large long-term stock gains with no income

Retired early this year, no W-2, no pension, no Social Security yet. I have a taxable brokerage account with about 15 years of unrealized long-term gains in a handful of index funds. I want to start drawing from it but I keep reading conflicting things about whether I can actually pay zero percent on long-term capital gains if my ordinary income is low enough. I already know the holding period rule — held everything more than a year, so it all qualifies as long-term on Schedule D. What I'm not sure about is how much I can realize in a single year before I cross into the next rate bracket, whether Roth conversions I'm also planning count against that threshold, and whether there's a smarter order to sell lots. Already tried reading Publication 550 but it just points me to the rate tables without spelling out the interaction. What's the approach here?

32 comments

Schedule D and your Form 1040 work together here in a way that trips a lot of people up. Your long-term capital gains don't just get taxed at their own rate in isolation — they stack on top of your ordinary income. So if your only income is the gains themselves, you start from zero and climb through the brackets. The 0% long-term rate applies to the portion of gains that falls within the lower ordinary income brackets. The exact threshold changes each year with inflation adjustments, so check the current Schedule D Tax Worksheet in the Schedule D instructions rather than any number you read online.

Rachel G.

Author

That stacking piece is exactly what I was missing. So my Roth conversion income would push the gains higher up the stack even if the conversion itself isn't a capital gain?

Yes, Roth conversions are ordinary income and they fill up the lower brackets first. That can push your long-term gains into the 15% zone even if the gains alone would have fit in the 0% band. If you're doing both in the same year you have to model the total together, not separately.

Rachel G.

Author

Good to know — I was treating them as two separate decisions and they're clearly not.

Lot selection matters a lot when you have multiple tax lots. Most brokers let you specify lots at the time of sale. If you have lots with smaller gains, selling those first keeps you under the threshold. Lots with larger embedded gains you can defer to later years when you might have more room. The 1099-B will reflect whatever lot method you tell the broker to use, and that feeds into Form 8949 column (e) for your cost basis. Make sure the broker confirms the lot selection in writing before the trade settles.

Seconding this — I always screenshot the lot selection confirmation from my broker. Had a year where the default method would have triggered way more gain than I wanted.

Rachel G.

Author

Thanks, didn't realize I needed to confirm it actively. Will check my broker's default method before I sell anything.

Form 8949 is where every lot you sell gets reported individually — proceeds in column (d), basis in column (e), and your holding period determines whether it goes in Part I (short-term) or Part II (long-term). Since you said everything is long-term you'll be in Part II, box D if your broker reports basis to the IRS. The Schedule D Tax Worksheet then figures the actual rate. I uploaded my brokerage statements and draft 8949 to taxr.ai last year and it walked through the worksheet line by line, flagging where my projected Roth conversion was going to spill gains into the 15% band — helped me decide to split the conversion across two years.

Rachel G.

Author

That's exactly the kind of interaction I need to map out. Good to know you can see it at the worksheet level before committing.

Something worth checking: state taxes. The 0% federal rate doesn't mean 0% overall. Several states tax long-term gains as ordinary income with no preferential rate. If you're in one of those, the state bite can be meaningful even when your federal bill is zero.

Rachel G.

Author

In a no-income-tax state so federal is my only concern, but good flag for anyone else reading this.

Topic no. 409 on the IRS site covers the capital loss deduction limit and carryover rather than the rate structure, so for the current year's rate thresholds go to the Schedule D instructions and the worksheet in them. Bookmark those so you're always looking at the current year's figures rather than something from a blog that might be a year or two old.

One scenario people overlook: if you sell so much that some gains spill into the 15% bracket, it's not all-or-nothing. Only the portion above the threshold gets taxed at 15%, not the whole amount. So it might still make sense to sell more than the exact 0% threshold if you need the cash, you're just paying 15% on the slice above. Run the numbers both ways.

This is correct and important. The brackets are marginal, same as ordinary income. People sometimes leave money on the table by being too conservative about hitting the threshold.

Agreed, and the Schedule D Tax Worksheet does this automatically — it applies 0% to the portion in the lower band and 15% to the rest. You can fill it in with different sale amounts to see the marginal cost of selling more.

Net Investment Income Tax is another layer to be aware of. It applies to net investment income above certain thresholds based on modified AGI and filing status — the thresholds are in the Form 8960 instructions. If your total income including gains stays low because you have no other income, you may be under it, but model it in if you're selling a large amount.

Rachel G.

Author

Hadn't thought about Form 8960 at all. Adding it to the checklist.

Publication 550 at irs.gov does have the holding period rules and the wash sale rules but you're right that it doesn't spell out the rate interaction — that's really in the Schedule D instructions and the Tax Worksheet embedded in them. I had a similar question last year about which lots to sell and in what order, and I gave Taxr my actual brokerage year-end statement and my projected income numbers and it built out the Schedule D Tax Worksheet with different lot combinations so I could see exactly which scenario kept me in the 0% band. Saved me from a sale I was about to make that would have pushed me over.

Rachel G.

Author

Really helpful to hear that played out at the lot level. That's what I need to do before I make any moves.

If your gains are genuinely large — say enough that even multi-year spreading still leaves you with big taxable events — it may be worth talking to a CPA or enrolled agent who does tax planning, not just return prep. The lot selection, Roth conversion sizing, and NIIT interaction together can get complex enough that a planning session pays for itself.

Rachel G.

Author

The numbers are big enough that I'm leaning that way anyway. This thread has given me enough to ask smarter questions in that meeting.

Gifting is another option people with no income sometimes use. If you gift appreciated shares to a donor-advised fund, you get a charitable deduction at fair market value and the fund sells without triggering gains to you. Only relevant if you have charitable intent, but worth knowing it exists as a tool alongside the sell-and-pay-0% approach.

Qualified dividends, if you have any from the funds, are also taxed at long-term capital gains rates and they go through the same worksheet. They'll appear on your 1099-DIV in box 1b and go on Form 1040 line 3a, where the worksheet picks them up. So if you have both dividends and gains, the worksheet handles them together — the dividends effectively use up some of the 0% space before your sale gains do.

The box D vs E distinction trips people up constantly. The broker's 1099-B should say whether it's covered or noncovered — covered goes in box D, noncovered in box E.

Qualified dividends, if you have any from the funds, are also taxed at long-term capital gains rates and they go through the same worksheet. They'll appear on your 1099-DIV in box 1b and flow to Schedule D's qualified dividends line. So if you have both dividends and gains, the worksheet handles them together — the dividends effectively use up some of the 0% space before your sale gains do.

Rachel G.

Author

The funds do throw off some qualified dividends. Good to factor that in — they're not free space.

Timing across December and January matters too. A sale on December 31 and one on January 1 land in different tax years. If you're close to the threshold it can make sense to straddle the year — sell enough to fill the 0% band this December and do the next lot in January. Two years of room instead of one.

Assuming your situation is the same in both years. If income changes — Social Security starts, you take a part-time job — the threshold calculation shifts and you'd need to rerun the worksheet for year two.

Step back and look at what you're actually building: a multi-year drawdown plan where each year you're trying to fill the 0% long-term capital gains band without spilling into 15%, while also sizing Roth conversions to use whatever ordinary income room remains. The Schedule D Tax Worksheet is the right tool to run each scenario. Do it in pencil before any sale.

Well put. The worksheet is designed for exactly this — you can run it with hypothetical numbers before the year closes to see where you land.

Rachel G.

Author

This is how I'm going to approach it. Run the worksheet with different combinations, then confirm lot selection with the broker before anything settles. Thanks everyone.

Publication 551 on basis of assets is worth a read if any of these lots have unusual histories — gifts, inheritances, spinoffs. Inherited shares get a stepped-up basis to fair market value at the date of death, which can wipe out decades of embedded gain. If any of your lots came to you that way, your gain might be much smaller than you think.