Should I sell stock in a low income year for 0% capital gains?

My wife is taking a year off work and our combined income is going to be much lower than usual this year. I've been holding some index fund shares with a pretty big unrealized gain — bought them years ago so they're all long-term. Someone mentioned I should sell stock in a low income year for 0% capital gains since we might qualify for the 0% long-term capital gains rate. I looked at our numbers and I think we might actually be under whatever the threshold is, but I can't tell if the gain itself pushes us over. I've never tried this strategy before. Is the capital gain added on top of my other income when checking if I qualify? And do I need to do anything special on Form 8949 or Schedule D? Already ran the numbers once and got confused.

32 comments

Yes the gain stacks on top of your ordinary income. So your wages, any interest, dividends etc come first, and then the long-term capital gain sits on top. You have to be under the threshold with everything included. The rate that applies to any slice of your gain that falls above the threshold is 15%, not 0%, so it's worth running the exact numbers before you sell.

Marcus W.

Author

Thanks, that's the part that was tripping me up. So I might only get 0% on part of the gain if we're close to the line. Good to know I can still benefit partially.

Went through this a few years back when I went freelance and had a slow year. Sold shares in December just for this reason. The IRS taxes long-term gains at different rates depending on your taxable income and filing status — the Schedule D instructions and Topic 409 on irs.gov lay out exactly where the brackets fall for your filing year. Don't forget to subtract your standard deduction before you check where you land.

Marcus W.

Author

Good reminder on the standard deduction — that's probably why my first estimate was off. I was comparing gross income to the threshold instead of taxable income.

Same trap I fell into. Taxable income after deductions is what actually determines the rate, not AGI.

Worth doing this carefully because the gain amount itself can bump you past the threshold mid-sale. I uploaded my brokerage statement and my prior year return to taxr.ai and had Taxr estimate how much I could realize at 0% before crossing into 15% territory — it laid out the calculation step by step so I could see exactly where the cutoff was. Really helped me decide how many shares to sell. Anyway, the place to check the thresholds is the Schedule D instructions for your filing year; they list the income breakpoints by filing status.

One thing to watch: if you're close to the edge, selling a large gain could also affect other things — like ACA premium tax credits if you're on a marketplace plan, or Medicare IRMAA surcharges if you're older. Capital gains count toward MAGI for those purposes. Might not apply to you but worth knowing before you pull the trigger.

Marcus W.

Author

We're on an ACA plan this year because my wife isn't working. I had not even thought about that. Need to look at how much room we have before the credit starts phasing.

Yeah the ACA interaction catches a lot of people off guard. The gain flows into MAGI and can affect your premium tax credit reconciliation on Form 8962. Keep some buffer.

Don't forget the wash sale rules if you're planning to harvest gains and then rebalance. Wash sales are about losses specifically, so if you're realizing a gain you're fine — but if you simultaneously sell something at a loss to offset, you'd need to watch the 30-day window on the repurchase side of that position.

Good catch. Per Publication 550, the wash sale rule applies when you sell at a loss and buy substantially identical securities within 30 days before or after. Realizing a pure gain isn't a wash sale issue, but offsetting losses in the same transaction could be.

The reporting side is pretty straightforward. Long-term gains from shares held more than one year go in Part II of Form 8949 — box D if your 1099-B shows the basis was reported to the IRS, box E if basis wasn't reported. Then Schedule D line 8a can pick up covered securities with no adjustments directly under Exception 1 without needing every row on Form 8949.

Marcus W.

Author

Thanks — my fund is definitely covered so the 1099-B will have the basis. Sounds like box D in Part II and potentially straight to Schedule D line 8a if there are no adjustments needed.

Holding period matters a lot here. Long-term is more than one year — the IRS counts starting the day after you bought and the sale date itself counts as the last day. For exchange-traded securities the holding period runs from trade date to trade date, not settlement date. If any of your lots are right at the one-year mark double check the trade dates on your brokerage statement.

I did this exact strategy two years ago. Uploaded my 1099-B and my draft return to Taxr and had it check whether each lot qualified as long-term and flag which ones would be short-term — saved me from accidentally selling a lot I'd held for only 11 months. Ended up realizing a solid gain all at 0%. The holding period details in Publication 550 on irs.gov confirm how the day count works.

Marcus W.

Author

That's a smart move, checking lot by lot. My brokerage shows lot dates but I hadn't thought to verify them against the trade date vs settlement date distinction.

Partial harvesting is a real option people overlook. You don't have to sell the whole position. Sell just enough shares to fill up the 0% bracket, realize that portion tax-free, and hold the rest. Your basis in the shares you keep stays the same but your basis in the sold shares steps up to the sale price if you buy them back (after some waiting period to avoid wash sale concerns on any loss lots).

The step-up in basis on the repurchased shares is the whole point of the strategy long-term. You're essentially resetting basis on appreciated stock tax-free, which reduces future gains.

Marcus W.

Author

This is basically what I want to do — sell enough to stay at 0% and rebuy to reset the cost basis. I'll figure out the exact number of shares after running the full taxable income calc.

Just make sure you're using the right cost basis method. FIFO is the default for most brokers but you can specify shares if your broker allows it. Specifying lets you sell the highest-basis lots first to minimize the gain, or in this case you might want to sell the lowest-basis lots since you're trying to realize gains at 0%.

Right — if you want to maximize the gain realized at 0% you'd pick the lowest-cost lots. If you want to minimize the total gain (maybe you have more room than you thought), pick higher-basis lots. Worth telling your broker which lots before you trade.

Something people miss is that state taxes don't follow the federal 0% rate. If your state has an income tax it probably taxes capital gains as ordinary income regardless of the federal rate. So your federal bill might be zero but you could still owe state tax on the gain.

Marcus W.

Author

We're in a state with no income tax so that one doesn't apply to us, but it's a good point for anyone else reading this.

If you end up doing this every year during low-income years — say you're planning for early retirement — the strategy is sometimes called "gain harvesting" or "tax gain harvesting." Worth reading Publication 550 and Topic 409 on irs.gov to understand how the rates layer, then revisit each year since the bracket amounts are adjusted for inflation.

Wanted to flag: if you have any capital loss carryforwards from prior years, they'll absorb your long-term gains before the 0% rate even applies. So if you're carrying forward losses from a rough year, those offset the gain first and you lose the benefit of intentionally realizing at 0%. Check Schedule D from your last return for any carryforward on line 14.

This is an important point. The carryforward loss reduces your net long-term capital gain on Schedule D and you don't get to "choose" to skip using it. If the carryforward wipes out the gain there's nothing left to harvest at 0%.

Marcus W.

Author

We don't have any carryforwards — been pretty lucky with no loss years recently — but I'll double check last year's Schedule D line 14 just to be sure.

Timing matters if you're close to year-end. The holding period for exchange-traded securities uses trade date, so if you want a December sale to count for this tax year the trade needs to settle before year-end isn't the concern — but the trade itself must execute before midnight on December 31. Settlement can land in January and it still counts for the prior year.

Confirmed — it's the trade date that determines the tax year for gain or loss recognition on market-traded securities, not the settlement date. Publication 550 is clear on that.

Worth mentioning that if you're married filing jointly the threshold for 0% is higher than for single filers, so filing jointly works in your favor here. The Schedule D instructions for the current year will have the exact amounts broken out by filing status — always check the current year instructions because the numbers adjust each year.

Run the numbers in a tax software or worksheet before you trade, not after. Once you sell you're locked into the gain. Estimate your total ordinary income, subtract your standard deduction to get taxable income, then see how much room is left before hitting the 15% bracket. The gap is the most you can harvest at 0%.

Marcus W.

Author

This is exactly the order I'll follow. Taxable income first, then figure the gap to the threshold, then sell that dollar amount worth of shares. Makes sense now that I see it laid out.