Should I do tax-gain harvesting with zero taxable income in California?

Trying to figure out if tax-gain harvesting makes sense for my situation. I have zero federal taxable income this year after deductions, so I think I'd be in the 0% federal capital gains bracket. But I live in California and I keep reading that CA doesn't have a preferential rate for long-term gains — it taxes them as ordinary income regardless. I have about two years of appreciated index fund lots sitting in a taxable brokerage. My thought was to sell and immediately repurchase to step up my cost basis, since there's no wash sale issue on gains. But if California taxes the gain at my ordinary rate even when federal is zero, does the harvesting still make sense, or does the CA tax eat up the benefit? I haven't pulled the trigger yet. Anyone done this in CA specifically?

34 comments

What does your California taxable income look like after the state's own adjustments? CA starts from federal AGI but has its own additions and subtractions, so your state taxable income might not be zero even if your federal taxable income is.

Elena S.

Author

Good catch — my CA income is definitely not zero. State has its own adjustments and I don't think I get the same deductions. So yeah, CA would hit the gain at ordinary income rates.

You are right that there is no wash sale problem when you harvest a gain instead of a loss. You sell, book the gain, and buy right back the same day if you want. The new cost basis is higher, which is the whole point. The question is just whether the CA tax cost now is worth the future savings.

This is the key trade-off. You're paying CA tax today in cash, real money, in exchange for a higher basis that reduces a future gain. Whether that works depends on what rate you expect CA to tax you at in the future versus now, and how long until you'd sell anyway.

Elena S.

Author

That framing helps a lot. If I expect to still be in CA when I eventually sell, the rate today vs later comparison might actually be flat, which makes the harvesting less compelling.

Uploaded my brokerage year-end summary and my draft state return to taxr.ai and it mapped out exactly which lots would generate CA ordinary income versus what my federal picture looked like — made it really clear the two were decoupled. Worth doing before you sell anything. But to answer your question: the federal 0% rate on long-term gains is real, confirmed on Schedule D and the Qualified Dividends and Capital Gain Tax Worksheet. CA ignores all of that and taxes long-term gains at your marginal ordinary rate. So yes, you would owe CA tax even with zero federal tax.

Elena S.

Author

Didn't realize the two were so completely decoupled. So I'd actually owe CA tax on the gain even though my federal bill is zero. That changes the math significantly.

Worth adding: the CA rate on the gain depends on your total CA taxable income including the gain itself. So a large harvest could push you into a higher CA bracket than you expect. Worth modeling the number before you sell.

Does it matter how long you've held the lots? For federal you need more than 1 year to get long-term treatment — the holding period starts the day after you acquired and ends on the trade date you sell. But for CA it's academic since the rate is the same either way.

Correct on both counts. Federal holding period determines which rate bracket applies on Schedule D. CA rate is ordinary either way, so the CA hit is the same whether the gain is short-term or long-term.

Elena S.

Author

All my lots are over two years old so they're long-term federally. The CA piece is still ordinary either way as everyone's confirming.

Are you planning to stay in California long term? Because if there's any chance you move to a no-income-tax state before you eventually sell, skipping the harvest now and selling later from a lower-tax state could be a lot better than stepping up basis while still in CA.

Elena S.

Author

Genuinely haven't thought about that angle. No plans to move right now but it's worth keeping in the back of my mind. If I were to leave CA before selling, the whole calculus flips.

I ran into almost this exact question last year. Gave Taxr my brokerage 1099-B and the lot detail report and it built a side-by-side showing the federal gain, the CA ordinary income hit, and what my new basis would be after the harvest — helped me see the net cost clearly before I did anything. One thing it flagged: if your CA ordinary income including the harvested gain stays low enough, the actual CA rate might be lower than you assume. The rate depends on total CA taxable income, so the incremental tax on a small harvest can be modest.

Elena S.

Author

That side-by-side approach is exactly what I need. I've been trying to work this out in a spreadsheet but I keep second-guessing the CA numbers.

The incremental rate point is real. If your CA taxable income is very low, the first dollars of gain might be taxed at a low CA rate. A big harvest is different from a small targeted one.

What's your plan for the proceeds right after you sell? If you buy the same fund immediately you get the stepped-up basis. But if you hold cash even briefly you have market exposure risk. Some people buy a similar-but-not-identical fund for a day or two just to stay invested, though for gains that's not required the way it is for loss harvesting.

Elena S.

Author

Planning to buy back immediately on the same day. No wash sale issue on gains so I can go right back into the identical fund. I just want the new basis, not to change my allocation.

To be precise about the wash sale point: wash sale rules apply to losses, not gains. So selling at a gain and buying back the identical fund the same day is completely fine. No disallowed amount, no code W on Form 8949, nothing like that.

Have you thought about whether you might have capital loss carryovers from prior years? If you have carryforward losses sitting on Schedule D, they'd offset the harvested gain federally before you even get to the rate question.

Elena S.

Author

No carryovers — I've been pretty much buy-and-hold with no prior losses to carry. So the harvested gain is fully exposed both federally and in CA.

If you did have carryovers they'd show up on the Capital Loss Carryover Worksheet from last year's Schedule D instructions. Good to check before harvesting because a big carryover could make the federal gain effectively zero cost.

Does California conform to the federal qualified dividends and capital gain tax worksheet at all? I always assumed CA just had its own rate schedule and ignored all the federal preferential rate logic.

CA does not conform. The state taxes net capital gains as ordinary income at the regular CA rate schedule. There is no CA equivalent of the 0%, 15%, 20% federal structure. That's why the federal and CA pictures are completely separate here.

How big is the gain you're thinking about harvesting? A small harvest at a low CA rate might net out positively even after CA tax, if the future gains would otherwise be taxed at a higher CA rate or in a year where your income is higher.

Elena S.

Author

The unrealized gain across the lots I'm considering is meaningful but not enormous. I'm thinking about harvesting selectively rather than all at once, specifically to try to keep the CA incremental rate lower.

The other thing worth thinking about: if these funds are in a taxable account and you plan to donate appreciated shares someday, harvesting the gain now removes the charity planning angle. You'd lose the ability to donate the low-basis shares and avoid the gain entirely.

Elena S.

Author

Not planning to donate these particular lots but that's a good general point. Donor-advised fund strategy works best with the original low-basis shares, so harvesting first would eliminate that option.

For what it's worth I went through this analysis last spring. The federal math was clean — zero federal tax on the gain because I was in the 0% bracket. The CA piece was the sticking point. I ended up doing a small selective harvest just to test the process and confirmed the CA hit was real on my return. Not a reason not to do it, just a reason to size it carefully.

Is there a scenario where you gift the low-basis shares to a family member in a lower CA bracket before selling? That shifts the gain to them. There are gift basis rules to think through — the recipient's basis would be your adjusted basis if the fair market value at the time of the gift is higher than your basis, which is typically the case with appreciated shares. Worth knowing if you have family members with lower income.

The gift basis rule under Publication 551 is that if the FMV at the gift equals or exceeds the donor's adjusted basis, the recipient's basis is the donor's adjusted basis. So the gain doesn't disappear, it just moves to whoever received the shares. If they're in a lower CA bracket it could reduce the total tax hit.

Elena S.

Author

Interesting angle but I don't have family members with meaningfully lower income where this would work. Good to know the basis rule though — the gain follows the shares.

Bottom line from this thread as I read it: federal 0% rate is real and available to you if your taxable income stays in that bracket; CA taxes the gain at ordinary income rates regardless; the harvest still might make sense depending on how small and targeted it is and what future CA rates look like for you; and you should model the incremental CA rate on the specific harvest size before selling.

Elena S.

Author

Thanks — that summary is exactly where I've landed. Going to model a small selective harvest first, check the CA incremental rate, and then decide. Appreciate all the detail in this thread.