Does moving out of California avoid state capital gains tax on stock?

So I've been in California for about 8 years and I have a significant amount of company RSUs vesting over the next 18 months. I'm seriously considering relocating to Texas or Nevada before the vesting dates because someone told me California taxes capital gains as ordinary income at the full state rate. I already looked at a few articles but they all say different things about whether California will come after you anyway based on when the stock was "earned." I work remotely so the job move is easy. My question is: does moving out of California before my RSUs vest actually avoid the California state capital gains tax on that stock, or will California claim a portion of it based on how long I worked there while the grant was building up?

32 comments

Moved from CA to WA two years ago for exactly this reason. The short answer is: it's complicated. California is very aggressive about sourcing income to California based on where services were performed, not just where you live when the income is paid. For RSUs, California FTB typically apportions the income based on the grant-to-vest period. The portion of days you worked in California during that window gets taxed by California even after you leave.

Dana G.

Author

So even if I'm fully moved out and vesting happens in Texas, California still taxes the fraction of the RSU income that "accrued" while I was living there? That's what I was afraid of.

Yes, exactly. The FTB uses a grant-date to vest-date ratio. The days you were a CA resident during that period are the numerator. Total days in the period is the denominator. That fraction of your RSU income gets sourced to CA.

Went through this myself last year. I uploaded my RSU grant agreements and my FTB nonresident filing to taxr.ai and asked Taxr to work through how the apportionment fraction applied to each tranche. It flagged that two of my grants had different grant dates than I'd assumed, which changed the ratios. Worth doing that kind of check before you assume a clean break from CA.

Dana G.

Author

That's a really useful workflow. I have four separate grants with different grant dates so I can see how the ratios would vary a lot between them.

People forget that actually leaving California is itself a high bar. The FTB looks at a lot of factors: where your car is registered, where your bank accounts are, where your doctors are, your voter registration, your kids' school. If you move to Nevada but your life is still anchored in CA they will argue you never actually changed your domicile. This matters a lot for the non-apportioned gains on stock you sell after leaving.

Yes, the "closest connections" test the FTB applies is genuinely aggressive. I saw someone get hit with a CA tax bill three years after they moved because they kept their CA driver's license too long.

Dana G.

Author

I hadn't thought about domicile vs. just residency. I'd be doing a full move, selling my house here, so I think the domicile argument would be strong. But the apportionment piece still sounds like it applies regardless.

The capital gains piece specifically: California does not have preferential long-term capital gains rates. Whatever gain you recognize is taxed as ordinary income at your marginal CA rate. So the financial stakes of the apportionment fraction are higher than they'd be in a state that gives you a break on long-term gains. Worth modeling what your actual CA-sourced income is under the fraction before deciding whether the move pencils out.

This is true and it's a point a lot of people miss. Federal long-term rates are lower but CA doesn't follow that treatment.

Had a similar question about ISOs rather than RSUs. For ISOs it gets even more complicated because of AMT and because the California sourcing rules interact with when you exercise versus when you sell. If you exercise in California and then move and then sell, California still claims the spread at exercise under its own AMT rules. FTB Publication 1005 covers some of this though it's dense reading.

Dana G.

Author

Mine are all RSUs not ISOs so I think the apportionment logic is more straightforward, but good to know the ISO situation is even messier.

I moved from CA to TX in 2023 and had grants from four different companies. I used Taxr to compare the apportionment fractions across all of them side by side — it read the grant letters and pulled the dates, then laid out what each tranche looked like for CA sourcing purposes. Made it a lot easier to see which grants were mostly CA-sourced and which were mostly post-move. Really useful before I sat down with my CPA to finalize the nonresident return.

Dana G.

Author

How did you handle filing — did you end up doing a CA nonresident return for the year of the move and then nothing after that for the later tranches?

Yes, filed a CA part-year resident return for the year I moved, then CA nonresident returns in the following years for the apportioned income from pre-move grants. The FTB expects you to keep filing until the last pre-move grant vests.

Worth separating two questions: (1) does moving avoid tax on stock you sell after leaving and (2) does it avoid tax on RSU income that vests after leaving. For stock sales after you leave, if you bought the stock post-move, California shouldn't have a claim as long as your domicile change is clean. The RSU vesting question is where the apportionment follows you.

Good distinction. Open market stock purchased after a valid domicile change and sold later — CA shouldn't touch the gain. It's the equity compensation with a pre-move grant period that creates the ongoing CA exposure.

Practically speaking the FTB gets notified through your federal return and W-2. RSU income shows up on your W-2 from the year of vest. If you file a CA nonresident return and report the apportioned income, that's the right approach. Where people get in trouble is assuming they owe zero to CA once they've moved and not filing at all.

I'd add that the timing of your move matters not just for the apportionment fraction but for the year you change residency. California taxes you as a resident on all income from January 1 through your move date in the year you leave. So if you move in November you're a CA resident for most of the year on everything, not just RSU income. Moving earlier in the year obviously reduces that exposure.

Dana G.

Author

This is really useful — I've been thinking about timing it around a vest date but maybe I should think about it in terms of the calendar year as a whole.

Exactly. A vest that happens the week after you move still gets partially apportioned using the grant-to-vest window, but all your salary and other income up to the move date is fully CA resident income. Both things matter.

Don't overlook that California also requires you to pay estimated taxes on CA-sourced income even as a nonresident. If you have a big vest in the year after your move and a chunk of it is CA-sourced under the apportionment rules, you may need to make CA estimated payments to avoid an underpayment penalty.

Dealt with RSU apportionment across a move from CA to CO. I uploaded my grant agreements, my CA Schedule S, and the apportionment worksheet I'd drafted to Taxr and had it check whether I'd applied the grant-to-vest day count correctly for each tranche. It caught that I'd used calendar days for one grant and work days for another, which was inconsistent. That kind of detail matters when the FTB reviews a nonresident return.

Dana G.

Author

Calendar days vs. work days — I didn't even know that was a variable. I'll have to check what method my employer used on the W-2 supplemental statement.

One thing that genuinely surprised me: California's statute of limitations for auditing nonresident returns related to equity compensation can extend longer than the standard period if the FTB determines income was not properly reported. So keeping your grant agreements, pay stubs showing vest-date FMV, and your move documentation for several years after the last pre-move grant vests is important.

Yes, the documentation burden for a CA nonresident equity situation is real. I keep a folder with my lease termination, my new state driver's license date, every RSU grant letter, and the employer's apportionment calculations.

To answer the original question directly: moving out of California before your RSUs vest does not fully avoid California tax on those RSUs if they were granted while you were a CA resident. It reduces it — the post-move days in the grant-to-vest window won't be CA-sourced — but it doesn't eliminate it. It can completely avoid CA tax on stock you buy and sell entirely after a clean domicile change.

If your RSU grants are large enough to materially change your tax picture, this is worth running by a CPA or enrolled agent who specifically handles California nonresident equity issues. The apportionment calculation itself isn't that hard once you know the dates, but the domicile change documentation and the interaction with FTB audit risk is the kind of thing where professional advice pays for itself.

Dana G.

Author

Agreed — I'm planning to work with a CPA for the actual filings. This thread has helped me understand the right questions to bring to that conversation.

Also worth checking: some employers issue a supplemental wage statement breaking out the CA-sourced portion of each RSU vest. If yours does, that number is their calculation of the apportionment and it's what gets reported on the W-2. It doesn't mean they're right — employers sometimes use the wrong dates — but it gives you a starting point to check against your own calculation of the grant-to-vest fraction.

Pulling this together for anyone reading later: (1) the apportionment fraction is CA-resident days in the grant-to-vest window divided by total days in that window; (2) each grant has its own fraction; (3) you still owe CA on that fraction even after you move; (4) a clean domicile change cuts off future exposure on new stock purchases; (5) you'll likely need to file CA nonresident returns until the last pre-move grant vests.

Dana G.

Author

This is the clearest summary of everything in this thread. Bookmarking this.