Should I realize long-term capital gains before moving from Arizona to California?

Moving from Arizona to California in about four months for a new job. I have a taxable brokerage account with some positions that have been sitting there for two or three years, all well past the one-year mark for long-term treatment. Arizona taxes capital gains as ordinary income but the rate is relatively low compared to what California charges. I know California doesn't have a separate long-term rate — it taxes everything as ordinary income at the state level. So I'm wondering: should I realize long-term capital gains before moving from Arizona to California, or does it not matter as much as I think? I haven't sold anything yet. The positions are mostly index ETFs, nothing exotic. I've looked at the Schedule D side of things but I'm stuck on the state tax piece and whether timing the sale to my Arizona address actually helps.

32 comments

Sold a bunch of shares before my own Arizona-to-California move a few years back for exactly this reason. The core issue is that California taxes long-term capital gains at your ordinary income rate — there's no preferential state rate like you get at the federal level. Arizona's rate is much lower. So if you sell while you're still an Arizona resident, that gain goes on your Arizona return, not your California return. That alone can be a meaningful difference depending on the size of the gain.

Beth P.

Author

That's what I suspected. So the federal side stays the same either way since the long-term federal rate doesn't change based on which state I'm in, but the state piece is entirely about where I'm domiciled when I sell?

Exactly. Federal is federal regardless of state. The state piece is what changes. And California will want to know your move date precisely, so keep documentation — lease start date, driver's license, voter registration, that kind of thing.

Went through this move two years ago and spent a lot of time pulling together my brokerage statements and trying to figure out which gains would hit my California part-year return. I uploaded everything to taxr.ai and it went through each lot, matched the acquisition dates against my move date, and listed out which ones were unrealized Arizona-sourced gains versus what would already be California income if I waited. Saved me from making an assumption that turned out to be wrong on two of my positions. Worth doing that kind of audit before you sell anything.

Beth P.

Author

Did it flag anything unexpected? I have a couple of positions I bought in tranches so the lots have different dates and I wasn't sure how to think about those.

Lot-by-lot tracking was actually where it was most useful for me. It read each acquisition date separately and flagged which specific lots would flip to California-sourced if I waited past my move date. With tranched positions you really can't treat them as one block.

Residency date is everything here. California determines sourcing for a part-year resident based on when you were a California resident, not when the security was originally purchased. So a gain realized on the day after you establish California domicile is 100% California income even if you've held the stock for ten years.

Worth adding: California considers you a resident from the date you establish domicile there, which can be earlier than you think — like the day you sign a lease or move furniture in, not necessarily the day your job starts.

Correct. And Arizona will consider you a nonresident from that same date. The two states don't overlap on the same day but you want clean documentation of exactly which day your domicile shifted.

The federal math doesn't change either way on the long-term rate since you've held more than a year. But California's rate on the same gain could add a significant amount depending on your income level. The difference between realizing in Arizona vs California can be substantial on a large position. Only you know the size of the gain but it's worth running the numbers before the move.

Moved from a low-tax state to California a few years back and had a similar question about timing. I pasted my 1099-B from the prior year and my projected gain estimates into Taxr and it estimated what the California ordinary income tax hit would be on the unrealized positions versus what Arizona would take on the same amount. Helped me decide which lots to sell before the move and which to hold. It drafted a simple comparison worksheet I could check against my own numbers before I did anything.

Beth P.

Author

That comparison worksheet idea is exactly what I need. I've been doing it manually in a spreadsheet but I keep second-guessing the California rate since it depends on total income.

California rate does depend on total income, yes. The comparison only works if you use your realistic projected income for the year, not just the gain in isolation. That's the part I kept getting wrong when I tried to do it manually.

One thing people sometimes get wrong: the holding period for federal purposes isn't affected by any of this. Long-term is still long-term as long as you held more than one year counting from the day after the trade date you bought to the trade date you sell. Moving states doesn't reset that clock.

Realized gains before my move and filed a part-year Arizona return and a part-year California return that year. Arizona taxes it as ordinary income at the state level too — there's no special rate — but the brackets are lower than California's. So the difference was real. The part-year returns themselves weren't complicated, just two shorter state returns. TurboTax handled the split but I had to manually enter my move date.

Part-year returns can get complicated if you have income from multiple sources. Capital gains from a brokerage are relatively clean to split by date but W-2 income, retirement distributions, other items all need to be allocated too.

True, my situation was pretty simple that year — just the brokerage and my salary from the new job starting mid-year. If you have a lot of different income types the part-year allocation gets more involved.

Procedurally: when you sell before the move, those gains go on your federal Form 8949 and Schedule D the same as any other sale. The long-term column treatment doesn't change. On the state side, Arizona picks them up on your part-year return and California doesn't see them at all as long as the sale settled while you were still an Arizona resident.

Beth P.

Author

Settlement date vs trade date — does it matter which one Arizona looks at for sourcing?

For federal holding period purposes Publication 550 is clear that for securities on an established market the trade date controls, not settlement. Arizona generally follows the trade date for sourcing as well but confirm in the Arizona instructions for your part-year return since state rules can have their own language.

Moved to California in 2022 and did not sell first. I ended up paying California rates on gains I had been sitting on for years. Not a disaster but in hindsight I would have done the math more carefully. The gain was big enough that the difference was noticeable.

Worth noting that if any of your ETF positions have had distributions reinvested, each reinvestment created a separate lot with its own acquisition date and cost basis. Some of those lots might not have cleared one year yet. You'd want to separate those out rather than assume the whole position is long-term.

Beth P.

Author

Good catch — I do have dividend reinvestment on a couple of them. I'll need to export the full lot detail from my brokerage, not just the position summary.

If the gains are large enough that you're not sure about the state tax impact or the part-year residency rules, an enrolled agent or CPA who handles California part-year returns is worth talking to before you sell. California residency questions can get complicated and the wrong move date documentation is a real audit risk.

Seconding this. California's Franchise Tax Board takes residency questions seriously. If the gain is material, a one-hour consult with someone who handles FTB matters is cheap compared to the downside of getting the residency date wrong.

Ran into this question from a different angle — I moved TO Arizona from California and wondered if any gains I realized in the first weeks after the move would still be taxed by California. The answer was no as long as I was clearly domiciled in Arizona, but the burden of proving that domicile shift was on me.

The IRS doesn't care which state you're in for the federal long-term capital gain rate — that's based on your total taxable income and filing status, not your state. So your federal tax on the sale is the same whether you sell in Arizona or California. The entire planning question here is a state tax question.

Practically speaking: get documentation of your Arizona address locked in now — utility bills, bank statements, insurance — all dated before your move. If you sell while you still have that documentation clearly showing Arizona domicile, the state sourcing question is much cleaner.

The lease termination date in Arizona matters too. If you're keeping an Arizona address for any period after California residency starts, that muddies the picture.

Saw an earlier comment say Arizona has no preferential rate for capital gains — wanted to clarify that Arizona did historically have some capital gains treatment but current law taxes them as ordinary income at the state level. So the comparison is still real, it's just about bracket differences between the two states, not a capital-gains-specific rate in Arizona.

Bottom line from what this thread has covered: the federal tax on a long-term gain is identical regardless of state. The state tax can be very different. Selling before you establish California domicile means that gain lands on your Arizona part-year return. Selling after means California taxes it as ordinary income at California rates. Keep the lot detail handy, pin your move date carefully, and run the actual numbers with your real projected income before deciding.

Beth P.

Author

This is the clearest summary of the whole question I've gotten anywhere. I'm going to pull the full lot detail from my brokerage, nail down my exact move date documentation, and run the numbers. Probably consulting a CPA before I do anything given the size of the positions.