Part-year California resident tax on capital gains realized while living elsewhere
Moved from California to Texas in March last year. Sold a chunk of index fund shares in September, well after I'd established residency in Texas. Broker sent a 1099-B showing all the gains, and now I'm staring at TurboTax asking me to allocate income to California for the part-year return. The shares were purchased years ago when I lived in CA, but the sale happened entirely while I was a Texas resident. I've been reading about sourcing rules but I keep finding conflicting things — some say CA taxes gains based on where you lived when you sold, others suggest they look at where you lived when you accrued the gain. Which state actually gets to tax this, and what does the CA 540NR part-year form actually want me to put on the income allocation schedule?