Selling stock and then move out of state
Let’s say I would like to sell stock for a capital gain and I currently live in California. Later this year I plan to move to North Carolina. Does it matter when I sell the stock? I’d like the gains to be taxed at the NC tax rate and not the CA tax rate. Does the capital gain get taxed at the level of the state you live in on Dec 31 or the state you resided in when you sold? Or, do I have to split the gain based on the amount of time I lived in each state?
Thanks