How to offset taxes from exercising and selling stock options in California

Finally exercised and sold some options this year and the tax hit is brutal. These were NSOs through my employer — I exercised and sold same-day, so I know the spread counts as ordinary income. W-2 already shows it. But I'm also sitting on some losing positions in my brokerage that I haven't touched yet. California doesn't conform to everything federal does and I'm not sure what actually works to bring this down. I already maxed my 401(k) and HSA. Is harvesting those brokerage losses actually worth it? Are there other moves that work at the state level too? I've read conflicting things about whether California follows federal capital loss rules the same way. My situation is single filer, all income from one employer, no real estate. Just trying to figure out how to offset taxes from exercising and selling stock options in California before year-end.

37 comments

Tax-loss harvesting does work for California too. CA follows the same capital loss netting rules federally — short-term against short-term, long-term against long-term, then net against each other. The deduction limit against ordinary income is the same as federal (see Topic 409 on irs.gov for the federal side; CA matches it). Since your NSO spread is ordinary income, the losses only reduce your capital gains directly, not the W-2 income from the spread. But reducing capital gains frees up other room. Harvest what you can, just watch the wash sale window.

Darius L.

Author

So the losses offset capital gains first, not the ordinary income piece from the spread? That part stings the most and I was hoping to use losses against it directly.

Correct. Capital losses go against capital gains under both federal and CA rules. The W-2 spread is ordinary income — losses can only reach that through the annual net loss deduction limit, and that's capped. It's real money but it won't erase the spread tax.

One thing worth knowing: California does NOT have a preferential rate for long-term capital gains. Everything is taxed at ordinary income rates in CA. So on the state return, the distinction between short-term and long-term gains matters less than federally. Your losses still offset gains dollar for dollar either way, but don't expect a lower CA rate on long-term positions the way you'd see federally.

Darius L.

Author

That's actually helpful context. I was thinking long-term gains would save me more on the CA side but sounds like the federal benefit is the main one.

Yes, federally long-term rates are lower. CA taxes it all the same regardless of holding period. So for state purposes, holding an extra few months to get to long-term doesn't change the CA rate, only the federal one.

I went through basically this same situation last year — NSOs, same-day exercise and sale, giant W-2 addition. I uploaded all my documents to taxr.ai and it walked me through Form 8949 and Schedule D line by line, flagged where my broker's 1099-B had the cost basis wrong (the spread was already in my W-2 so basis needed to be adjusted up), and drafted notes showing what adjustments to put in column (g). Saved me from double-paying on the spread. For CA specifically, the same basis adjustment logic applies on your CA return — the state just doesn't give you a rate break on the gains side.

Darius L.

Author

Wait, the 1099-B basis issue is real? My broker shows the original strike price as cost basis but the spread is already on my W-2. So I'd be paying tax on the spread twice if I don't fix it?

Exactly. The correct basis is strike price plus the spread already included as W-2 income. If you just enter what the 1099-B shows, you're double-taxed. On Form 8949, with box B checked (basis not reported to IRS), enter the correct basis in column (e) and -0- in column (g). With box A (basis reported), enter the 1099-B basis in column (e) and put the negative adjustment in column (g).

Don't overlook deferred compensation or mega backdoor Roth if your plan allows it. Those don't directly offset the NSO income but reduce future taxable amounts. For this year's hit, the main levers left after maxing 401(k) and HSA are: capital loss harvesting, any charitable contributions if you itemize, and potentially a donor-advised fund if you want to bunch deductions. CA allows the same charitable deduction as federal if you itemize on the state return.

Donor-advised fund is underrated for a big income year. You get the deduction now even if the charity doesn't get the money for years.

Be very careful with wash sales if you're harvesting losses. If you sell a position at a loss and buy it back — or buy something substantially identical — within 30 days before or after the sale, the loss is disallowed. The disallowed amount gets added to the basis of the new shares instead. CA follows this same rule. So if you harvest a loss in December and rebuy in January within that 30-day window, you lose the deduction for this tax year.

Darius L.

Author

Good reminder. I was thinking of selling and immediately rebuying a similar ETF to stay in the market. Does switching to a different but similar fund count as substantially identical?

Generally no — switching from one S&P 500 ETF to a different issuer's S&P 500 ETF is typically treated as not substantially identical, so the loss would be allowed. But switching between two funds tracking the exact same index from different providers is a gray area some people are comfortable with. Funds tracking different indexes are cleaner. The IRS hasn't ruled definitively on every ETF pair, so the more different the better.

If these were ISOs instead of NSOs the story would be different — ISO exercise doesn't hit your W-2 as ordinary income but it does create an AMT adjustment on Form 6251 line 2i. But you said NSOs so you're right that the spread is W-2 income at exercise. The tax treatment is baked in and there's not much to undo after the fact.

Darius L.

Author

Yeah definitely NSOs. My W-2 already has the amount. The ship has sailed on the income recognition part, I'm just trying to minimize what I can now.

Accelerating deductions into this year can help. If you have any margin interest, investment expenses that are deductible under CA rules, or even property tax payments you could pay before December 31, those reduce your CA taxable income. CA itemized deductions don't perfectly mirror federal after the TCJA changes, so it's worth comparing your CA Schedule CA to the federal Schedule A.

California also has estimated tax rules — if you had a big income event mid-year from the exercise/sale you may already owe a CA underpayment penalty even if you pay in full by April. Check your CA withholding from the employer against what was actually due. CA's underpayment rules are separate from federal.

Darius L.

Author

I hadn't thought about estimated payments. My employer withheld supplemental rate on the NSO spread but I'm not sure it was enough. Worth checking before year-end.

Yes, CA withholds at a flat supplemental rate on stock comp but that often isn't enough to cover the actual marginal rate for a high-income year. If there's a gap, making a CA estimated payment before January 15 can avoid the penalty.

For the Form 8949 basis issue the earlier comment mentioned — I had the same problem with a mix of NSOs and RSUs on one 1099-B. I uploaded the 1099-B and my W-2 to Taxr and it compared the two, identified which lots had basis that was already included as wages, and put together a worksheet showing the corrected column (e) and column (g) entries for each row. I just copied those onto my 8949. That's the kind of thing that's easy to mess up manually when you have multiple vest or exercise dates.

The multi-lot problem is real. Each lot can have a different spread amount included in wages if the stock price moved between exercises. Getting that right for every row is tedious.

Exactly, and if you used different exercise dates through the year the spread per share was different each time. The 1099-B just shows one number per lot, and your W-2 lumps it all together. You have to reconcile them yourself.

Worth saying plainly: the offset strategies only matter at the margin. The NSO spread is already ordinary income — maximizing pre-tax retirement contributions, harvesting capital losses up to what you have available, and ensuring basis is correctly stated on Form 8949 are the real moves. There's no magic deduction that makes the spread disappear. If the number is very large, talking to a CPA or enrolled agent who handles California equity comp specifically is worth the fee.

Darius L.

Author

That's a fair reality check. I think I was hoping for more than what's available. The basis fix alone might be significant though given the size of the sale.

Qualified Opportunity Zone investments are sometimes mentioned for big income years but they defer and potentially reduce capital gains, not ordinary income. Since your spread is ordinary income, a QOZ investment wouldn't help with that piece. It could help if you have large capital gains from the sale portion above basis, but verify with an enrolled agent before going down that road — the rules are specific.

I had NSO income two years in a row and the basis problem on 1099-B caught me the second time. I uploaded the forms to Taxr and it flagged that one of my lots still had the uncorrected basis from the prior year filing sitting in the broker's records, and laid out what the corrected entries should look like across both Part I and Part II of Form 8949 depending on holding period. Really useful for seeing exactly where the adjustment lands.

Darius L.

Author

Part I vs Part II matters for holding period — did you hold any shares after exercise before selling, or was it same-day? If same-day it's all short-term regardless.

Mine were a mix. Some same-day so short-term in Part I, some I held a few months. The ones held over a year would go long-term in Part II. For CA it doesn't change the rate but it still has to be reported in the right part on the federal 8949.

The 83(b) election comes up in these conversations but it's only relevant at grant for restricted stock, and you can't make it for NSOs at all — Publication 525 says explicitly the choice can't be made for a statutory or nonstatutory stock option. So that's not a tool for your situation.

Darius L.

Author

Good to know, I had seen that mentioned somewhere and wasn't sure if it applied to NSOs.

Something that gets missed: if you had capital loss carryforwards from prior years, those apply this year too. Check last year's Schedule D for the carryover amount — it goes on Schedule D line 6 (short-term) or line 14 (long-term) this year. CA has its own carryover tracked separately on the CA Schedule D, so check both.

Darius L.

Author

I do have some carryforward from 2022. Didn't even think to factor that in. So that would reduce this year's capital gains before I even get to new harvesting?

Yes, prior year carryforward offsets gains first. Run your Schedule D with the carryforward applied before deciding how much new loss harvesting you actually need. You might need less than you think.

Net investment income tax is federal-only — California doesn't have an equivalent surtax on investment income. So the NIIT calculation on Form 8960 only matters for your federal return. Worth knowing so you're not trying to offset something on the CA return that isn't there.

To summarize what actually works: correct your 8949 basis so you're not double-taxed on the spread, apply any prior-year loss carryforwards, harvest available capital losses watching the wash sale window, max deductible accounts, and consider bunching charitable deductions if you itemize. CA follows the federal loss rules but taxes all capital gains at ordinary rates, so the federal long-term rate benefit doesn't carry over to the state return. If the income event is large, a CPA who handles CA equity compensation is worth consulting.

Darius L.

Author

Seeing it all laid out in one list finally makes the whole picture click for me. The basis fix and the carryforward I already have are the two biggest items I was underweighting. Thanks everyone.