*The federal and state tax systems operate independently. Understanding the difference between them -- and timing your asset sales around that difference -- is one of the most consequential planning decisions an expat can make.*

There is a version of the “moving abroad saves you taxes” story that is mostly true. And there is a version of it that gets people into five-figure trouble. The difference between the two comes down to timing, documentation, and an understanding of which tax system you are actually dealing with when you sell something.

The short version: the IRS follows your citizenship, so the federal tax on a sale travels with you no matter what. The state tax does not have to. California, New York, Virginia, and a handful of other states will keep claiming it anyway unless your exit is documented and sequenced correctly.

That gap between how federal and state tax systems treat departing residents is the mechanism behind some of the most expensive mistakes in expat financial planning. And it is consistently underexplained, which is why it keeps happening.

The Federal Side: What Actually Changes When You Leave

When you establish genuine foreign tax residency -- not just a mailing address change, but actual residency in another country -- your US federal tax picture changes in meaningful ways.

For earned income, the Foreign Earned Income Exclusion allows you to exclude up to $132,900 in 2026 from US federal taxation, provided you meet either the Bona Fide Residence test or the Physical Presence test (330 days outside the US in any rolling 12-month period). That is a significant exclusion, and it is one of the primary financial reasons people structure their moves carefully.

For investment income, the honest answer is that very little changes. The United States taxes its citizens on worldwide income, including capital gains, no matter where they live. The FEIE covers earned income only; it does not touch a stock sale. Moving to a country that charges zero capital gains tax does not remove the US federal claim on the gain. The real federal levers are the ones available to everyone: your bracket in the year of sale (including the 0% long-term rate at lower incomes), timing across tax years, and the Foreign Tax Credit if your new country also taxes the gain.

Which is exactly why the state layer matters so much. The federal bill on a sale is largely fixed by citizenship. The state bill is not. It follows your domicile, and it is the one component of the total that a well-sequenced exit can actually take to zero. Some states are specifically designed to retain that jurisdiction over you even after you leave.

Why “I Moved” Is Not the Same as “I Left”

California is the most aggressive state in the country when it comes to departing residents. The California Franchise Tax Board operates an active program to identify people who left the state, realized gains or income, and then claimed they were no longer California residents at the time. The program is not subtle. It has a budget. It runs audits.

The FTB’s residency determination is based on domicile, not just physical presence. Domicile means your primary, fixed, and permanent home -- the place you intend to return to when you are not somewhere else. You can be physically out of California for months and still be a California domiciliary if the supporting facts point that direction.

What the FTB looks at in an audit: - Your California driver’s license (did you surrender it?) - Your California voter registration (did you cancel it?) - Where you maintain a “permanent place of abode” (do you own property in California, even if you are renting it out?) - Where your spouse and children live - Where your professional licenses are registered - Where your banking and financial accounts are held - The timing between your stated departure date and any major asset transactions

That last item -- timing -- is where the most common and most expensive mistakes happen.

The Timing Problem

Here is what actually happens. Someone in California decides to move abroad. They tell their friends and family. They book a flight. They find an apartment in their target city. They change their mailing address. And then, sometime in the same calendar year as their departure, they sell a significant stock position, close a business interest, or exercise vested options -- thinking that because they “moved,” they are no longer subject to California tax.

They are wrong.

California taxes capital gains as ordinary income. The rate ranges from 1% at the lowest income levels up to 9.3% for most professionals, and reaches 13.3% for income above $1 million (the base 12.3% plus a 1% Mental Health Services Tax surcharge). There is no preferential rate for long-term capital gains the way there is at the federal level. A gain is a gain, and California wants its percentage.

If the FTB determines that you were still a California domiciliary on the date you realized the gain -- even if you were physically sitting in another country when you clicked “sell” -- California will assess tax on that gain, plus interest, plus potentially penalties.

The professional cost to contest a California residency audit ranges from $10,000 to $50,000 or more in legal and accounting fees, depending on the complexity. That is entirely separate from the tax itself.

What “Formally Severing Domicile” Actually Means

This is where the planning opportunity exists. Formal domicile severance is a documented process, not just a feeling or an intention.

The actions that matter, in rough order of importance:

Change your driver’s license. Surrender your California license and obtain a license in a no-income-tax state (Nevada, Texas, Florida, Wyoming, South Dakota, and a few others) before you leave the country, or as early in the process as possible. This is one of the strongest domicile indicators the FTB uses.

Change your voter registration. Reregister in your new state of domicile or use the Federal Voting Assistance Program to vote from abroad. California voter registration while abroad is a residency flag.

Establish a physical address in a no-income-tax state. This does not require buying a house. A virtual mailbox service in a no-income-tax state -- used as your official address for banking, financial accounts, and government correspondence -- accomplishes this. The key is consistency: all mail, all accounts, all official records should point to the same address.

Update your financial and professional relationships. This includes your bank accounts, investment custodians, professional licensing registrations, and any business filings.

Time asset sales after the domicile change is established. This is the critical piece. If you are holding appreciated stock, a business interest, or any other asset where a sale will generate a large gain, the sale should happen after you have a documented domicile in a new state or country -- not before, not during the same calendar year with no documentation to support the change.

Keep written records. A letter to yourself dated and notarized on the day of departure, describing your intent to change domicile and listing the actions you have taken, is not legally required but adds to the paper trail. Courts and administrative bodies look at intent. If your intent to leave is documented, it strengthens your position significantly.

New York, Virginia, and the “Maintaining a Permanent Place of Abode” Trap

California is not alone. New York has a separate but equally aggressive approach that catches expats in a different way.

New York law provides that if you maintain a “permanent place of abode” in New York -- which can include an apartment, even if you are renting it out to someone else, or even a family member’s home where you have a room -- and you spend more than 183 days in New York in a given year, you are a statutory resident of New York for that year, regardless of your stated domicile.

The day count in New York is strict. Any part of a day spent in New York generally counts as a full day. People who keep a New York apartment and travel internationally have triggered this rule when they did not expect to.

Virginia has domicile rules that, while not quite as aggressive as California’s, are still meaningful. South Carolina, Minnesota, and a few others also have above-average aggressiveness in retaining jurisdiction over departing residents. Before any major asset sale in a year when you are also changing residency, the first question should be: which state or states might have a claim here, and what does the documentation show?

The Federal Layer: What Actually Changes -- and What Does Not

Even after a clean domicile severance and genuine foreign tax residency, your entire worldwide income remains subject to US federal tax, because federal taxation follows citizenship, not residence. The gain on your stock sale, the sale of a business, the sale of foreign real estate -- the IRS taxes all of it wherever you are sitting when you sell.

The Foreign Tax Credit exists partly to address this: if you pay income or capital gains tax to your country of residence on the same income that the US also wants to tax, you can use those foreign taxes as a credit against your US liability. The credit eliminates double taxation in most cases, but the mechanics matter. The credit must be used in the same category of income, and passive income (dividends, interest, certain gains) has its own basket under the foreign tax credit rules.

For people planning a large asset sale -- a business, a significant stock position, real estate -- the right question before the sale is not “am I abroad or not?” but rather: what is my state domicile status, what is my federal residency status, what does the foreign tax credit picture look like, and what is the sequencing that minimizes total tax across all systems?

That sequencing work, done before the sale rather than after, is the planning opportunity. Done after the fact, it is damage control.

Panama Dateline: Working Through This Framework

Writing this from Panama City -- Day 17 -- where the territorial tax system means foreign-source income is not taxed by Panama at all. That territorial architecture is part of why the sequencing question matters even more in a place like this. If you arrive, establish Panamanian residency, and then sell a US business you have held for 10 years, the US will still want to assess tax on that gain. Panama will not. Your total bill depends entirely on how cleanly your US tax residency -- and particularly your state domicile -- was handled before the sale.

The territorial tax countries do not solve the state problem. That is a US-side issue, and it has to be resolved in the US before the exit.

The Practical Sequence

If you are holding appreciated assets and planning a move, the general sequence that works:

- Identify which state or states might have a claim, and how aggressive their residency rules are.

- Change domicile to a no-income-tax state before changing your address to a foreign country. Establish a virtual mailbox, get a new driver’s license, update your voter registration, and move financial accounts to reflect the new state.

- Wait an appropriate period -- ideally at least 183 days -- before realizing large gains. The longer the gap between the documented domicile change and the sale, the cleaner your position.

- Document everything. The date of departure, the domicile change actions, the intent in writing, the consistent paper trail of a new primary residence.

- Coordinate the federal and state pieces. A clean state severance that creates a different problem at the federal level (wrong timing for FEIE qualification, for example) is not a success.

Key Takeaways

State tax systems operate independently of your foreign tax residency. Establishing domicile in a no-income-tax state before leaving the country is a separate step from establishing foreign residency, and it matters for capital-gains timing. California’s Franchise Tax Board has specific audit programs targeting departing residents who realize gains in the year of departure without documented domicile changes. The cost of a state residency audit -- professional fees alone -- routinely exceeds the cost of proper advance planning. New York and several other states have similar, though differently structured, rules. The right sequence is: change state domicile, establish a paper trail, then realize the gain.

*If you are within 12 months of a significant asset sale and are also planning a move abroad, a single planning session can identify the specific sequencing that applies to your situation. The $69 consultation link (http://brightshadow2k.com)-- we go through your timeline, your assets, and the state-level picture specific to where you currently live.*

*~Mr. Shadow*

---

Originally published on Substack (https://brightshadow2k.substack.com/p/your-state-did-not-move-with-you).