Is tax-gain harvesting worth it in 0 percent bracket with state tax?

So I finally got my income low enough this year that I think I land in the 0% federal long-term capital gains bracket. I've been sitting on some ETF shares with a big unrealized gain and I keep reading that I should "harvest" those gains and reset my cost basis. Makes sense on paper for federal. But I live in a state that taxes capital gains as ordinary income and the rate is not nothing. I already ran some rough numbers on a napkin and the state tax could eat a decent chunk of whatever I'd save federally. My question is whether tax-gain harvesting is worth it in the 0 percent bracket with state tax in the picture, or if I'm basically just generating a state tax bill for no long-term benefit. I haven't sold anything yet. Filing single, all W-2 income plus some dividends.

29 comments

Went through this exact calculation two years ago. The federal side is clean: if your taxable income stays under the threshold for 0% long-term rates, you owe nothing federally on the gain. The reset to a higher cost basis is real and permanent. But your state doesn't care about the federal bracket. You're recognizing income in your state's eyes regardless, so you have to weigh the future federal tax you're avoiding against the state tax you're paying right now.

Naomi F.

Author

That's basically the tradeoff I keep landing on. The question is whether the future federal savings is big enough to justify the state bill today.

The math I always do: estimate the gain you'd realize, multiply by your state rate, that's your upfront cost. Then estimate what you'd owe federally on that same gain if you sold later in a higher bracket, and discount it back roughly. If the discounted future federal savings exceeds the state bill today, you harvest. If not, you wait. It's honestly just a present-value problem.

Naomi F.

Author

This framing helped. I think I've been thinking about it too abstractly.

Yes, that's the right frame. The other variable is whether you expect to stay in the 0% bracket or whether this is a one-time low-income year.

My situation was similar — sabbatical year, income dropped, I was sitting on ETF gains and trying to figure out whether to pull the trigger. I uploaded my brokerage statement and my prior year return to taxr.ai and had it estimate where my income would land relative to the threshold and what the state-side cost would be for each lot I was considering selling. It mapped out which lots had the most favorable ratio of federal savings to state cost. Helped me decide which ones were actually worth harvesting and which ones to leave alone.

Naomi F.

Author

This is useful — I hadn't thought about doing it lot by lot. Some of my lots are much older than others so the gain per lot varies a lot.

One thing people skip: after you sell and rebuy to reset basis, the new shares start a fresh holding period. So you need to make sure you're not accidentally creating a short-term position that could get taxed at ordinary rates later if you sell within a year. For long-term ETFs this usually isn't a problem but it's worth tracking.

State tax is the whole reason this strategy isn't a slam dunk. I'm in a state with a flat income tax and realized gains are just added to my ordinary income. Even in a 0% federal year I ended up paying my full state rate on the harvested gains. For me the break-even was whether I expected to stay in the 0% federal bracket long-term or not. I didn't, so I still harvested but only the oldest, highest-gain lots.

Naomi F.

Author

What state rate did you end up absorbing roughly? Actually don't answer that, I know rates vary. My state's rate is high enough that it stings.

Worth noting that the 0% federal threshold depends on your total taxable income, not just your wage income. Qualified dividends you mentioned count toward it too, so if your dividends are sizable they might push you closer to the threshold than you think. Run your projected taxable income including those before you decide how much gain you can safely realize.

Naomi F.

Author

Good point. My dividends aren't huge but they're not zero. I'll actually total them up before I sell anything.

There's also the question of what account the shares are in. If these are in a taxable brokerage, everything we've said applies. If any of these are in a Roth or traditional IRA, gains are either never taxed or deferred anyway and there's nothing to harvest from a basis standpoint. Just making sure we're all talking about taxable accounts.

I actually did a similar analysis on a low-income year when I went back to school. I pasted my 1099-B and my state's tax worksheet into Taxr and asked it to check whether the federal 0% threshold still held after accounting for my qualified dividends, then show me the net state cost per lot. It flagged two lots where the state tax would have exceeded any realistic future federal savings given my income trajectory. Ended up not harvesting those two.

Yes, lot-by-lot is really the only way to get a precise answer. The aggregate numbers can look fine but individual lots can be losers on the trade.

Don't forget the basis tracking side. If you sell and immediately rebuy, your broker will record the new purchase date and new cost basis. Make sure your software or broker is using specific identification (SpecID) for future sales so you can choose which lot to sell. If you're stuck on FIFO you lose some control later.

Naomi F.

Author

My broker lets me choose SpecID. I already set it up but good reminder to confirm before I place any orders.

Something I always check: does your state conform to the federal long-term / short-term distinction at all? Some states tax all capital gains as ordinary income at regular income rates. Others have a preferential rate. A few have no income tax. Which category your state falls into changes the whole calculus pretty dramatically.

I'll add a timing angle. If this is a low-income year because of a specific event (job change, leave, etc.) and you expect income to be higher next year, harvesting now makes more sense than if this is just your normal income level. The expected bracket increase in future years is what gives the strategy its value.

Naomi F.

Author

This is my situation. This is a one-year gap before a new job starts. Next year I'll definitely be in a higher bracket, which is why I'm even thinking about this at all.

For federal purposes, Publication 550 on the IRS website has the holding period rules laid out clearly — over 1 year from the day after acquisition to the trade date of sale is what qualifies as long-term. Keep that in mind if any of your lots are close to the anniversary date. Selling a day too early flips a lot to short-term.

Yes, this is worth double-checking in your brokerage account before selling. The lot detail view usually shows acquisition date.

My take: in a one-time low-income year with high state taxes, harvest selectively. High-gain lots you'd realistically hold for many years are the best candidates because the future federal savings compounds over time. Low-gain lots barely move the needle and the state bill is proportionally high relative to the benefit.

There's a scenario where it's not worth it at all: if your state rate is high enough and your expected future federal rate is only slightly higher than 0% (say you'd land in the 15% federal bracket later but only on modest gains), the present value of that future savings might not clear your state cost today, especially if your investment horizon is short.

Naomi F.

Author

This is the scenario I'm most worried about being in. I need to actually model the numbers instead of going by feel.

Has anyone checked whether their state offers any kind of capital gains deduction or exclusion? Some states let you exclude a percentage of long-term gains from income. If that applies where you are, it changes the effective state rate significantly and might tip the math in favor of harvesting.

No, that varies completely by state. You'd have to look at your own state's income tax instructions to see if any exclusion applies to long-term gains.

To pull it together for the original poster: you're weighing a certain state tax cost today against an uncertain federal tax reduction in future years. The variables that most affect the answer are your state rate, how long you'd actually hold the shares otherwise, and how much higher your future federal bracket is likely to be. If this is genuinely a one-year dip in income before a higher-bracket job, selective harvesting on your oldest highest-gain lots is likely worth running the numbers on seriously.

Naomi F.

Author

This thread gave me a real framework. I'm going to model the top five lots individually, account for my projected dividends eating into the threshold, and then decide. Appreciate everyone's input.