How to realize long term capital gains at 0 percent tax rate with low income

Trying to figure out how to realize long term capital gains at 0 percent tax rate with low income this year. My situation: I left my job in March, have some contract work trickling in, and my total ordinary income for the year looks like it'll be pretty low. I've been sitting on appreciated index fund shares I bought years ago and I know there's a 0% bracket for long-term capital gains that applies at lower income levels. What I can't work out is how to calculate exactly how much room I have in that bracket before I'd tip into the next rate. Do I look at my AGI, my taxable income after the standard deduction, what? I tried reading Publication 550 but it sent me to Schedule D and the Qualified Dividends and Capital Gain Tax Worksheet and I got lost. What's the actual step-by-step calculation I should be running?

34 comments

The Qualified Dividends and Capital Gain Tax Worksheet is the right place. It lives in the Schedule D instructions, and line 1 of that worksheet starts with your taxable income from Form 1040 line 15—that's after the standard deduction, not AGI. The 0% rate applies to the portion of your long-term gains that fits within a threshold based on that taxable income figure. The exact threshold for your filing status is in the worksheet itself or in the Schedule D instructions; don't go off any number you see on a blog.

Kevin G.

Author

So it's taxable income on 1040 line 15, not AGI. That's the key thing I was missing. The standard deduction actually creates the room, which makes sense now.

Worth knowing: the net investment income tax is a separate question from the 0% capital gains rate. Even if your gains fall in the 0% bracket for regular income tax, the NIIT kicks in based on a different threshold tied to your modified AGI. At the income level you're describing it probably doesn't apply, but check the Form 8960 instructions if your investment income is substantial.

Kevin G.

Author

Good call flagging that separately. My total income is low enough I don't think NIIT is in play but I'll double-check the 8960 instructions to be sure.

Same situation last year, NIIT didn't reach me either, but I hadn't even considered it until someone mentioned it. The Form 8960 instructions lay out the threshold clearly by filing status.

Schedule D and the Qualified Dividends and Capital Gain Tax Worksheet tripped me up the same way last year. I uploaded my draft 1040 and my brokerage's year-end summary to taxr.ai and it walked through the worksheet line by line on my actual numbers, flagged how much headroom I had before the 0% threshold ended, and showed exactly where the gains would start getting taxed. Really helped me decide how many shares to sell. The rule itself comes from the worksheet—Taxr just did the arithmetic on my documents so I wasn't guessing.

Kevin G.

Author

That's exactly the workflow I need. Running the worksheet manually with draft numbers is what's tripping me up. Good to know that's something you can do with actual documents before you sell.

One practical step people miss: your capital gains themselves raise your taxable income. So if you're close to the threshold, selling more shares pushes you over it with those same shares. The worksheet handles this because it stacks your ordinary income first, then layers gains on top. The room you have is the gap between your projected ordinary taxable income and the threshold—the gains fill that gap from the bottom up.

Kevin G.

Author

This is the part that confused me most. The gains stack on top of ordinary income, so the room isn't just "whatever income I have room for" it's specifically the gap above my ordinary income up to the threshold.

The stacking order matters a lot. I sold shares without accounting for it and a portion hit the 15% rate because I didn't realize the gains themselves pushed me over. Run the worksheet with the sale included before you execute.

Form 1040 line 15 is your taxable income after all deductions. If you're taking the standard deduction that number could be meaningfully lower than your AGI. That gap is exactly what creates room for gains at 0%. Long as you hold shares more than a year from the day after purchase to the sale trade date, the gain is long-term per Publication 550's holding period rules.

The holding period question is worth double-checking before you sell. Per Publication 550, counting starts the day after you bought (trade date, not settlement date for exchange-traded securities) and ends on the trade date you sell. So if you bought shares on July 10 last year, you need to sell on July 11 this year at the earliest to get long-term treatment. Your brokerage should show the acquisition date in the lot detail.

Kevin G.

Author

My shares are definitely over a year, some I've had for three or four years. But good to flag for anyone reading who isn't sure—it's trade date to trade date, day after purchase counts as day one.

The Qualified Dividends and Capital Gain Tax Worksheet also applies if you have qualified dividends, not just capital gains, so if your brokerage account kicks out dividends those count toward the same 0% space. I had Taxr read through my Schedule B and my 1099-DIV alongside the draft Schedule D and it matched the qualified dividend amount into the worksheet so I could see the total 0% capacity I was actually using across both. Saved me from under-selling because I'd forgotten dividends already occupied part of the bracket.

Dividends taking up bracket space is something a lot of people overlook. If your 1099-DIV has a box 1b amount that's your qualified dividends and they stack the same way.

Kevin G.

Author

I do get some dividends from the funds. I'll need to factor those in before deciding how many shares to sell. Hadn't thought about that at all.

If your contract income varies, run the worksheet with a few scenarios—low, mid, and high estimate for the year. The threshold is fixed but your ordinary income isn't, so a bigger quarter late in the year could shift how much gain you can realize at 0%. You might want to sell in tranches or wait until November when you have a clearer picture of the full year.

Kevin G.

Author

Tranching the sales is a smart idea. I'll probably have a better read on contract income by October, so doing the worksheet then with an almost-final ordinary income number makes sense.

Schedule D instructions have a flowchart at the beginning that tells you whether you need to use the Qualified Dividends and Capital Gain Tax Worksheet at all, or whether the tax tables suffice. If you have any qualified dividends or net long-term capital gains you'll almost certainly use the worksheet. It's worth reading that flowchart first so you know which path applies.

One thing that doesn't change the 0% rate question but affects your Form 8949: make sure your cost basis on the 1099-B is correct before you sell. If the basis is wrong and you don't catch it, you might report more gain than you actually have. For covered securities with basis reported to the IRS, if the 1099-B basis is incorrect you correct it in column (g) of Form 8949 with a negative adjustment (the instructions call it code B in column (f)).

This is real. Brokers sometimes carry over a split-adjusted basis incorrectly or miss reinvested dividends. Checking the lot detail before you sell is worth a few minutes.

Kevin G.

Author

My index funds are pretty straightforward but I'll verify the lot detail on the brokerage side before I sell. Good to know about the column (g) adjustment on 8949 if something's off.

State taxes are a separate question. Some states don't have a 0% rate on capital gains and tax them as ordinary income regardless of federal treatment. If you're in a state with an income tax, work out the state impact before you decide how much to realize—the federal savings might be partly offset.

Came here to say this. My state taxes capital gains the same as wages, so my apparent federal savings at 0% were reduced once I factored in the state bill.

Form 1040-ES is worth running too if you're doing contract work. Realizing gains mid-year on top of self-employment income can create an underpayment situation if you're not making estimated payments. I gave Taxr my draft return with the projected gain included and it built out a comparison of my quarterly estimated amounts so I could see whether my current payments would cover the year. The gain itself may owe no income tax at 0%, but the self-employment portion of your income still has SE tax running through Schedule SE.

SE tax is a good flag. It doesn't affect the capital gains rate calculation but it does affect your overall liability and your estimated payment requirements for the year.

Kevin G.

Author

I've been making estimated payments but hadn't thought about whether realizing the gains changes the calculation. Good prompt to revisit Form 1040-ES with the gain included in the projection.

The IRS topic page on capital gains and losses (Topic no. 409 at irs.gov) has a plain-language summary of the rate structure. It's not as detailed as running the worksheet, but it's a quick sanity check that you're in the right ballpark on the rate that applies at your income level.

Something to keep in mind if you're thinking about selling a lot: you can only use $3,000 of net capital losses against ordinary income in a year if the sale goes sideways (like if you sell and the market drops and you rebuy something else at a loss—watch the wash sale rules there too). That cap comes from Topic no. 409. For 0% gains harvesting it's usually not relevant but if you're also tax-loss harvesting in the same account it can interact.

The wash sale rule is real: sell at a loss and buy substantially identical securities within 30 days before or after the sale and the loss is disallowed—it gets added to the basis of the new shares instead. Code W in column (f) of Form 8949. Easy to trigger accidentally with automatic dividend reinvestment.

Kevin G.

Author

Not planning to harvest losses this round, just gains. But I'll keep an eye on dividend reinvestment in case it creates an accidental wash sale if I'm selling and reinvesting nearby.

If your income ends up lower than expected, you might qualify to realize more gains than you planned at 0%. Conversely, if something unexpected bumps your income—a large contract payment, a bonus payout from a prior year—you could be over the threshold. Worth setting a calendar reminder to re-run the worksheet in December with updated numbers before year-end.

December re-check is smart. I did a final run the third week of December one year and realized I had more room than I thought because one contract payment slipped to January. Sold a bit more and paid nothing on those gains federally.

Publication 550 at irs.gov is the most complete reference for holding periods and the character of gains (long vs. short). The instructions for Form 8949 at irs.gov cover how the sale actually gets reported. Between those two and the Schedule D instructions, you have everything you need to run this yourself. If the numbers are large enough that a mistake would cost you meaningfully, an enrolled agent or CPA can review your worksheet before you sell.