How much stock can I sell at 0% long-term capital gains rate?

Trying to figure out how much stock can I sell at 0% long-term capital gains rate this year before I tip into the 15% bracket. I've got a mix of positions I've held over a year, all in a regular taxable brokerage account. My income is lower than usual this year because I took a few months off between jobs, so I'm thinking this is the window to harvest some gains. I looked at Schedule D and the Qualified Dividends and Capital Gain Tax Worksheet in the 1040 instructions but honestly got turned around trying to figure out how my ordinary income interacts with the thresholds. Does the 0% rate apply to the first chunk of long-term gains no matter what, or does my ordinary income eat into that bracket first?

32 comments

Your ordinary income eats into the bracket first, yes. The 0% rate applies to long-term gains that fall within the 0% threshold, but that threshold isn't measured from zero — it's measured from the top of your taxable income including wages and everything else. So if your ordinary taxable income already fills most of the bracket, you have very little room left for 0% gains. The worksheet in the 1040 instructions walks through it line by line and that's honestly the clearest way to see it.

Isaac N.

Author

That's the part I kept getting stuck on. So I need to know my total taxable income before I can figure out how much headroom I have for the 0% rate on the long-term gains?

Exactly. Run the Qualified Dividends and Capital Gain Tax Worksheet first with your estimated ordinary income, then see what's left under the threshold. That gap is your 0% room.

Went through this same calculation last spring when I had a low-income year. I uploaded my prior-year return and my brokerage statements to taxr.ai and had Taxr estimate how much room I had under the 0% threshold given my projected ordinary income. It flagged that my Roth conversion was going to push me over before I even added the gains, which I'd completely missed. Really changed how I sequenced things. For the actual threshold amounts you need to check the current year's Schedule D instructions or the 1040 instructions — they adjust annually and I won't quote a number here.

Isaac N.

Author

Wait, a Roth conversion counts as ordinary income for this purpose? That could be an issue for me too, I was planning one this year.

Yes, it counts as ordinary income and fills the bracket just like wages do. It directly reduces your 0% headroom for long-term gains. Worth modeling both together before you do either one.

The holding period question trips people up too. Make sure every lot you're planning to sell actually qualifies as long-term. Per Publication 550, you start counting the day after you acquired the shares, and the day you sell counts as the last day. For exchange-traded securities the holding period runs trade date to trade date, not settlement date. If any lot is exactly 12 months or under, it's short-term and taxed at ordinary rates regardless of the 0% bracket.

Isaac N.

Author

Good catch — I was loosely thinking "over a year" but I should pull the actual acquisition dates from my 1099-B history to be sure.

I sold a bunch of appreciated stock in a gap year a few years ago and this strategy worked well for me. The thing nobody tells you until after is that the gains themselves become part of your adjusted gross income, which can also affect other things like ACA premium tax credits if you're on a marketplace plan during your time off. Something to check if that applies to you.

Isaac N.

Author

I am actually on marketplace coverage right now so this is very relevant, thank you. I'll need to look at that side of it too.

Yes, that interaction catches a lot of people. The gain increases MAGI which can claw back the premium credit even if the gain itself was taxed at 0%. Two separate calculations.

Filing jointly vs. single makes a huge difference in how much room you have. The 0% threshold for joint filers is roughly double that for single filers. I had Taxr go through my actual brokerage lot detail and map out which lots to sell in which order to stay under the line — it laid out the sequence on a worksheet I could just hand to my broker as a sell list. Worth doing before you place any trades because once you sell you can't unsell.

Isaac N.

Author

Filing single this year, so the threshold is tighter. Definitely going to map it out before I do anything.

Worth knowing: the 0% rate is a federal rate. Your state may still tax those gains at ordinary income rates. So even if you owe nothing federally on a lot, you might still have a state bill coming.

No state income tax here so I always forget people have to think about this. Good point.

One thing that helped me was running the Qualified Dividends and Capital Gain Tax Worksheet twice — once with zero extra gains and once with the gains I was considering — and comparing the tax on line 25 (the worksheet's last line, where the tax lands). That shows you exactly what the marginal rate on those particular gains actually is for your situation. Sometimes it's not cleanly 0% if you're right at the boundary.

Isaac N.

Author

Running it twice is a smart way to sanity check the result. I'm going to do that with my projected numbers.

Qualified dividends count the same way gains do in the worksheet — they also sit in the preferential rate buckets. So if you have a lot of qualified dividends coming in through the year those eat into your 0% room too before you even sell a share.

Be careful with wash sales if you're doing any tax-loss harvesting at the same time. If you sell a losing position and buy it back within 30 days before or after the sale, the loss is disallowed under the wash sale rules — that disallowed loss gets added to the cost basis of the replacement shares instead. It's the flip side of gain harvesting that people sometimes do in the same account simultaneously without realizing they're canceling out the planning.

Yes, and it's also a wash sale if your spouse or an IRA you control buys substantially identical shares in that same window. A lot of people don't realize the IRA leg creates a wash sale.

Isaac N.

Author

I wasn't planning to harvest losses at the same time but good to have in mind. The IRA wash sale rule is news to me.

Does this work the same way with crypto gains? I keep seeing people say crypto doesn't get the 0% rate but I'm not sure if that's still true.

No, that's not right. Long-term capital gains on crypto are taxed the same way as long-term gains on stock — the same brackets, the same 0% rate if your income qualifies. What's different is the reporting: for 2025 digital asset transactions go in the new boxes G through L on Form 8949, not the standard Part I or Part II boxes. But the rate structure is the same.

Good to know, I had heard conflicting things about this.

I'd also factor in estimated taxes. Realizing a bunch of gains, even at 0% federal, can still affect your state estimated payments. And if you're not withholding enough federally through a paycheck because you're between jobs, the gain might not cause a tax bill but you'd want to be sure the safe harbor is covered.

The threshold amounts themselves change every year with inflation adjustments, so whatever number you find for a prior year doesn't apply now. The current year's 1040 instructions and Schedule D instructions are where you get the right figures. I'd double check those before finalizing any sell order.

Isaac N.

Author

Yeah I made the mistake of googling a number and it was from two years ago. Using the current instructions now.

If your income situation is complicated — like self-employment income, a partial year of wages, plus a Roth conversion, plus planned gains — honestly a CPA or enrolled agent can run the projection in a few minutes in their software and tell you exactly what your threshold is. The math isn't hard once you know the inputs but getting the inputs wrong is easy to do.

Isaac N.

Author

Between the Roth conversion and the marketplace coverage it's getting complicated enough that I might do exactly that.

To put it plainly: there is no fixed dollar amount of stock you can sell at the 0% rate that applies to everyone. The number is different for every taxpayer because it depends on your filing status, your taxable ordinary income, your qualified dividends, and what year it is. You have to run your own numbers through the Qualified Dividends and Capital Gain Tax Worksheet to find your specific ceiling.

Publication 550 at irs.gov has a good overview of the holding period rules and how gains are categorized if you want to read the underlying rules before you do the worksheet. Topic 409 on the IRS site covers the limit on deducting capital losses and the loss carryover, and the current-year rate thresholds are in the 1040 and Schedule D instructions.

Isaac N.

Author

I'll read through the current 1040 and Schedule D instructions for the thresholds and the Publication 550 section on holding periods before I finalize anything. Thanks everyone — this thread gave me a much clearer picture of what I actually need to calculate.