Short answer: state income tax on a crypto sale generally follows where you are resident on the day you sell. Move first, sell after the move is real, and a high-tax state usually has no claim on the gain. The hard part is proving the move. California, New York and other states decide residency on facts, and a sale right after a move is exactly what they audit.
The basic rule: residency on the sale date
California's FTB Pub. 1031 (Guidelines for Determining Resident Status) says gain or loss from selling stocks or bonds "has a source where you are a resident at the time of the sale." Its example: an Oregon resident who sells stock of a California corporation owes California nothing on the gain. A California resident is taxed on all income regardless of source. Crypto held as an investment is intangible property, and Pub. 1031 does not mention it by name, so CPAs generally apply the same residency-at-sale logic. If trading is your trade or business, Pub. 1031 points to separate business-income rules.
New York works the same way at a high level. The NY Department of Taxation and Finance says residents pay tax on all income wherever earned, while nonresidents pay only on New York source income, such as work done in New York and income from New York real property.
Your federal tax does not change when you move. Your cost basis and holding period carry over, the sale still goes on Form 8949, and federal capital gains rates and the 3.8% NIIT apply the same everywhere.
How states test whether you really moved
California
- Nine-month presumption. You are presumed a California resident for any year you spend more than nine months in the state.
- Closest connections. The FTB compares your ties to California with your ties elsewhere: time spent in each place, where your spouse and children live, your principal residence, driver's license, vehicle registration, professional licenses, voter registration, bank accounts, where your financial transactions start, your doctors, accountants and attorneys, social ties, and real property and investments. No single factor decides it.
- Pub. 1031 example. Someone who declared Nevada residency but kept a California home and still spent six or seven months a year there is the kind of case the FTB uses to show a move that did not stick.
- The employment safe harbor does not help most investors. It covers people outside California under a work contract for at least 546 consecutive days, and it does not apply in any year your intangible income, such as investment gains, exceeds $200,000, or if the main purpose of leaving was to avoid tax.
New York
- Domicile sticks. Your New York domicile does not change until you show "clear and convincing evidence" that you abandoned it and set up a new one. Registering to vote or filing a certificate of domicile elsewhere is not enough on its own.
- Statutory residency. Even if you are domiciled elsewhere, you are a resident if you keep a permanent place of abode in New York for substantially all of the year and spend 184 days or more in the state. Any part of a day counts as a day. The same tests apply to New York City and Yonkers.
Washington
Washington has no wage income tax but does tax long-term capital gains. Under RCW 82.87.100, long-term gains from intangible personal property are allocated to Washington if you were domiciled there when the sale happened. Leaving Washington before selling generally removes the gain from that tax, while moving into Washington and then selling brings it in. Thresholds and rates are on our crypto taxes by state page.
The year you move: part-year returns
In the year you change states, you typically file a part-year resident return in each state with an income tax: California Form 540NR or New York Form IT-203, for example. Both states figure tax as if you were a full-year resident, then apply that rate to the share of income they can tax. California's method also counts all prior years for carryovers, deferred income and suspended losses, so a carried-forward crypto capital loss can be treated differently in the new state. If two states both tax the same gain, the resident state usually gives a credit for tax paid to the other, as New York explains for Form IT-112-R.
Crypto situations that complicate a move
- Selling right around the move date. The sale date (in your time zone, on the exchange record) has to fall after residency changes. Keep the records; see Form 1099-DA for what brokers report.
- Staking, mining and airdrop income. These are ordinary income when received. Rewards received while you were still a resident belong to the old state. See staking taxes and airdrop taxes.
- Installment-style payouts. California has specific rules for installment payments received by people who changed residency, laid out in a chart in Pub. 1031.
- Keeping a home in the old state. This is the single fact that most often keeps people resident, especially in New York under the permanent place of abode test.
- Leaving the US instead. See Puerto Rico crypto taxes and crypto taxes for US expats.
Residency also decides which state, if any, taxes your crypto at death: estate taxes generally reach a resident's intangible property wherever it's held. Compare exemptions in state estate and inheritance taxes on crypto.
When to get a CPA
If a planned sale is large enough that state tax matters, have a CPA review the move before you sell: timing, which ties to cut, and how to file the part-year returns. It is far cheaper than defending a residency audit. Browse the crypto tax CPA directory, find a firm in your new state through crypto CPAs by state, or try crypto CPA near me. For gain totals by lot before you decide, compare crypto tax software.
Sources
- California Franchise Tax Board, FTB Pub. 1031: Guidelines for Determining Resident Status (2024)
- New York Department of Taxation and Finance: FAQs on filing requirements, residency and telecommuting (updated Oct. 24, 2025)
- Revised Code of Washington 82.87.100: Allocation of long-term capital gains and losses
General information, not tax advice; sources retrieved 2026-11-11.
FAQ
If I move to a no-income-tax state and then sell crypto, does my old state tax the gain?
Generally not, if you have truly changed residency before the sale. California's FTB Pub. 1031 says gain from selling stocks and bonds has its source where you are a resident at the time of the sale, and New York taxes nonresidents only on New York source income. Neither state has published crypto-specific sourcing guidance that we found, and both look hard at whether the move was real.
How does California decide whether I am still a resident?
FTB Pub. 1031 says residency is a question of fact. You are presumed a resident for any year you spend more than nine months in California, and the FTB compares your ties: time in the state, where your spouse and children live, your principal residence, driver's license, vehicle registration, voter registration, bank accounts, doctors, accountants and attorneys, social ties and real property. It is the strength of the ties that counts, not the number.
How does New York decide residency?
New York's Department of Taxation and Finance says you are a resident if New York is your domicile, or if you keep a permanent place of abode there for substantially all of the year and spend 184 days or more in the state (any part of a day counts). Your New York domicile does not change until you show with clear and convincing evidence that you abandoned it; filing a certificate of domicile or registering to vote elsewhere is not enough.
Does Washington's capital gains tax follow me if I leave?
Washington allocates long-term gains from intangible personal property to the state if you were domiciled in Washington at the time of the sale or exchange (RCW 82.87.100). Selling after a genuine change of domicile generally takes the gain outside that rule. See our state guide for Washington's thresholds and rates.
What return do I file in the year I move?
Usually a part-year resident return in each state that taxes income, such as California Form 540NR or New York Form IT-203. Both states compute tax as if you were a full-year resident and then apply it to the income they can tax.