How long to establish residency in a no-tax state before selling stocks?

Moving from California to Nevada and I have about 400k in unrealized gains across a brokerage account I've been holding for years. My whole plan was to get established in Nevada first and then sell, but I'm getting conflicting information about how long that actually takes. I already updated my driver's license and voter registration but I haven't sold anything yet. California is notorious for going after people who leave and then immediately realize gains. I've read everything from 60 days to a full year. My broker just sends me a 1099-B at year end and I don't think they care which state I live in, so it's really on me to get this right. Is there an actual federal rule on this, or is it purely California's own standard? And does the type of gain (long-term vs short-term) change anything here?

35 comments

There's no federal rule on this. The IRS only cares about ordinary income and capital gains at the federal level, and your 1099-B doesn't have a state tax field that matters here. The question is entirely California's residency rules, and California is aggressive about it.

Victor S.

Author

That tracks with what I've been reading. So I need to satisfy California's standard, not some IRS checklist.

I went through almost this exact move, California to Nevada, two years ago. The short answer is that California uses a "domicile" and "residency" test that looks at the totality of your connections, not a fixed number of days. Driver's license, voter registration, where your car is registered, where your bank accounts are, where your doctors are, where you spend your nights — all of it. I uploaded my lease agreement, utility bills, and bank statements to taxr.ai and asked Taxr to flag which documents actually moved the needle on the domicile question versus which ones were just nice to have. It organized everything into a checklist tied to California's own criteria. Really helped me see the gaps before I sold anything.

Victor S.

Author

This is exactly the kind of thing I was worried about — not knowing which boxes actually matter. What gaps did it find for you?

My gym membership and primary care doctor were still in California. Those seem small but California auditors look for them. Switched both before selling.

Worth knowing that California's Franchise Tax Board is specifically on the lookout for people who move right before a large gain event. There's no bright-line rule that says "180 days and you're safe." They look at your "closest connections" after the move.

Next step I'm on is documenting every expense I make in Nevada with a date on it. Receipts, subscriptions, everything. Building a paper trail from day one.

The federal side of this is straightforward. Your long-term vs short-term question is answered by the holding period under federal rules: if you held the shares more than one year, measuring from the day after you acquired them to the trade date you sell, the gain is long-term. The state you live in when you sell doesn't change that federal classification at all. What does change is California's income tax rate on the gain. California taxes long-term gains the same as ordinary income, so the savings of moving are real.

Victor S.

Author

Good clarification. I've held most of these positions over two years so federal long-term treatment is already locked in. The issue is purely the California state tax on the gain.

My company did a relocation cohort and several coworkers got FTB audit notices after selling stock the same quarter they moved. The ones who had documentation survived, the ones who had only updated their license got hit with assessments going back to California income tax on the full gain.

Victor S.

Author

That's genuinely alarming. How long had the ones who survived been out of California before selling?

Most had been in the new state at least six months AND had a Nevada job or remote work agreement showing Nevada as their worksite. The job piece seemed important.

I moved to Texas a few years back and held off on selling a significant position until I had what a CPA called "clear and convincing" evidence of domicile change. That meant filing a full year as a Texas resident before touching the stock. Before I actually talked to the CPA I ran my situation through Taxr — I pasted in my FTB correspondence and my brokerage statements and it walked me through what a part-year return would look like and where the gain would get allocated between states. Helped me ask smarter questions when I sat down with the CPA.

Victor S.

Author

Part-year return allocation is something I haven't thought through carefully. So if I sold too soon California could still grab a piece?

Yes. If you're a California part-year resident when you sell, California generally taxes the gain during the period you were still a resident. The allocation matters a lot.

One concrete thing: getting a Nevada job or establishing a business presence there is probably the strongest single domicile factor. Pure retirees have a harder case than someone whose paycheck now comes from Nevada.

Fedeal reporting side: when you sell, your broker reports proceeds and cost basis on Form 1099-B. Box 1e is your cost basis, box 1c is the date sold (the trade date). The gain goes on Form 8949 and flows to Schedule D. None of that changes based on what state you're in. The state question is entirely separate.

Next step I'm on is making sure my broker has my Nevada address on file well before I place the sell order. Some brokers issue the 1099-B to the address they have at year-end anyway but I'd rather not leave that ambiguous.

Something I wish someone had told me: California can assert that you were still a resident even after you moved if your spouse or dependents stayed behind in California. They treat that as maintaining a "closer connection" to California. If your household moved together you're in better shape.

Victor S.

Author

Whole household moving together, that's the situation here. Good to know that matters.

The federal capital loss rules don't directly help here but they're worth knowing. If you have any positions with losses you could harvest them in the same tax year to offset the gains on Schedule D. That's a federal benefit available regardless of state. Just don't repurchase substantially identical securities within 30 days before or after the sale or the loss is disallowed as a wash sale under Publication 550.

Victor S.

Author

I do have a few losers in the account. Worth looking at. The wash sale window is 30 days on each side so I'd need to stay out of those positions for a while.

Exactly. 30 days before and 30 days after. And that includes buying the same position in an IRA or Roth IRA, which a lot of people miss.

Spent a lot of time on the domicile question before selling a large position last year. I had Taxr read through my lease, my Nevada DMV record, my utility accounts, and my California part-year return side by side, and it listed out the dates in order so I could see exactly where my Nevada connections started stacking up against my California ones. Gave me a cleaner picture of where I stood than I'd had just reading everything separately.

Next step I'm on is building that same kind of timeline document, with signed leases, subscription start dates, the whole sequence.

Worth pointing out that there's no official IRS safe harbor for "how long" because residency for state income tax purposes is purely a state law question. The IRS page on digital assets or Publication 550 won't answer this. You need to look at California's own FTB publications and potentially a California-licensed CPA or tax attorney if the gain is large enough to justify it.

Victor S.

Author

At this dollar amount I'll probably end up with a CPA who does multi-state returns. I just wanted to understand the landscape first so I'm not walking in blind.

If you sell while you're still a California part-year resident, you'd file a California Form 540NR for the part of the year you were a resident. The gain that accrued while you were a California resident is what they'd tax. The federal Form 8949 and Schedule D don't change but your California return would reflect only the resident-period income.

An enrolled agent who handles California FTB audits told me the audit trigger is usually the combination of a large gain event and an address change in the same calendar year. Even if you're fully in the right, responding to an FTB notice takes time and paperwork. Some people intentionally wait until January of the following year to sell so the move and the sale are in separate tax years.

Victor S.

Author

Waiting until the new calendar year is actually something I've been considering. The gain isn't going anywhere and the tax savings would more than cover waiting another few months.

That's the approach several people I know have used. Two separate tax years makes the timeline argument much cleaner. Still document everything though.

Circling back to the federal piece since someone asked about long vs short-term: the holding period for covered securities under federal rules is tracked by your broker and shows up on your 1099-B. For stocks traded on an established market, the holding period starts the day after the trade date you bought and ends the trade date you sell, not the settlement date. If you've held more than a year you're already long-term federally, the state move doesn't reset that clock.

Correct on the holding period. Settlement date is a common misconception. Trade date in, trade date out.

Talked to a CPA who does a lot of these moves and her rule of thumb was: the more the gain, the longer you should wait and the more documentation you should have. There's no formula but she said she'd be nervous about anything under six months with a gain this size, and more comfortable at twelve months with strong documentation.

Victor S.

Author

Six to twelve months with documentation seems to be the consensus emerging in this thread. I'm going to take this seriously and not rush it.