For many Americans, the tax side of moving to Spain starts with the IRS and ends with the US-Spain tax treaty. For Californians, that is not enough. California is one of the most serious state-residency problems in a foreign move because the state taxes residents on worldwide income, does not become bound by the US-Spain treaty, and uses a facts-and-circumstances residency test that is not solved by saying "I moved abroad." The question is not only where you are. It is whether California believes you have left for a purpose that is more than temporary or transitory.
This page is the California-specific companion to our broader guide on cutting US state tax residency before moving to Spain. If your former state is New York rather than California, use the separate guide to New York tax residency when moving to Spain, because the statutory-residency day-count rules are different; there are also companion guides for New Jersey, Virginia, Massachusetts and Connecticut and Minnesota, other states that hold on tightly to domicile. This California page is written for retirees and passive-income applicants using the non-lucrative visa, not for employees on a temporary overseas contract. It is general orientation only, not California tax advice. A clean exit from California should be designed with a California tax adviser before the Spanish residence start date is locked in.
On this page
California's residency rule Why domicile is the hard part What California taxes while you are resident What California can still tax after you leave Why the 546-day safe harbor rarely solves retirement moves Pensions, IRA and 401(k): the PITLA shield A California-to-Spain exit checklist Frequently asked questionsCalifornia's residency rule
The California Franchise Tax Board frames residency around two routes. You are a California resident if you are in California for other than a temporary or transitory purpose. You are also a resident if you are domiciled in California but outside California for a temporary or transitory purpose. A nonresident is simply someone who is not a resident, and a part-year resident is someone who changes status during the year.
That wording is short, but it carries the whole risk. If you leave California for Spain and the move is a permanent relocation, the facts can support nonresidency from the departure date. If you leave California while keeping your California home available, California licence, voter registration, closest family and core financial life there, the FTB has facts to argue the Spain period is only a temporary absence. In that case California may keep taxing worldwide income even while Spain is also taxing you as a Spanish resident.
Why domicile is the hard part
Domicile is your true, fixed home: the place you intend to return to when absences end. You can have several residences, but only one domicile. California residents who go abroad often underestimate this because the Spanish immigration file feels decisive. You have a visa, a lease in Spain, private medical insurance, a TIE appointment and eventually an empadronamiento. Those are strong Spain-side facts. But California looks at both sides of the ledger: what you built in Spain and what you failed to unwind in California.
The weak file is the "I moved, but..." file. I moved, but kept the California house furnished for my own use. I moved, but kept my California driver's licence because it was convenient. I moved, but left my spouse in California for another year. I moved, but still use California doctors, advisers and clubs, and the bank and brokerage addresses still point there. None of those facts is fatal alone. Together they make the FTB's question obvious: did you really establish a new permanent home, or are you a Californian spending time in Spain?
What California taxes while you are resident
While California treats you as resident, it taxes income from all sources. For a retiree, that can include IRA and 401(k) withdrawals, pensions, dividends, capital gains, annuities, rental income and brokerage income wherever located. This is the expensive overlap. Spain taxes residents on worldwide income under Spanish rules; the IRS keeps taxing US citizens under federal rules; and California may still be in the stack if residency was not cut.
The federal-Spanish overlap at least has machinery: treaty articles, foreign tax credits and source rules. California is different. A state is not a party to the US-Spain income tax treaty, and Spanish tax does not automatically give you a California credit. So the California layer is not just another filing chore. It can become unrelieved double taxation unless you have become a California nonresident before the income arises.
| Status | California tax base | Spain-move consequence |
|---|---|---|
| California resident | Worldwide income | Worst overlap with Spanish residence; treaty does not bind California |
| Part-year resident | Worldwide income during resident period, California-source income after exit | Clean departure date matters |
| California nonresident | California-source income only | Retirement income generally outside California if residency is genuinely cut |
What California can still tax after you leave
Becoming a nonresident does not make every California connection irrelevant. It changes the question from "worldwide income" to "California-source income." The FTB's own examples include services performed in California, rent from California real property, the sale or transfer of California real property, and income from a California trade or business. A retiree who sells the primary home and moves cleanly to Spain may have very little left in this bucket. A retiree who keeps a San Diego rental property, a California LLC, or consulting work performed during California visits may still have California filing obligations as a nonresident.
This is why the real-estate decision belongs in the residency plan. Keeping a California house available for your own use is bad for domicile. Converting it into a genuine third-party rental may reduce that domicile problem, but it creates continuing California-source income. Selling before residence in Spain starts may simplify the state file and may also affect Spanish capital-gains timing, so it should be coordinated with the Spanish move. The state question and the Spain tax question are separate, but the calendar is shared.
Why the 546-day safe harbor rarely solves retirement moves
California has a safe harbor for some people domiciled in California who leave under an employment-related contract for at least 546 consecutive days, subject to conditions. It can be powerful for the right employee assignment. It is usually not the central answer for retirees moving to Spain on passive income, because the move is not an employment contract abroad. A non-lucrative visa applicant is normally telling Spain the opposite: I have sufficient passive means and will not work in Spain.
Do not build a retirement exit around a safe harbor that was not designed for your fact pattern. For retirees, the stronger plan is a genuine domicile break: sell or fully repurpose the California home, move the family center to Spain, change the ordinary-life ties, document the Spanish residence, and file the correct California part-year or nonresident return. The safe harbor is a technical exception; domicile is the foundation.
Pensions, IRA and 401(k): the PITLA shield
Retirement income has a special federal protection. Under 4 U.S.C. section 114, a state generally may not tax the retirement income of an individual who is not a resident or domiciliary of that state. California also states that it does not impose tax on retirement income received by a nonresident after 1995. This is why the residency answer is so important: once you are genuinely a California nonresident, California should not tax pension, IRA or 401(k) distributions merely because the pension was earned while you lived in California.
The shield has limits. It does not help if California still treats you as resident or domiciled there. It also does not turn California-source income into non-California income. Rent from a California property, gain from California real estate and California business income can remain taxable to California even when retirement account distributions are protected. For US retirees with a non-lucrative visa file, the practical order is: first cut residency, then rely on the pension shield, and separately manage any California-sited property or business income.
A California-to-Spain exit checklist
A clean California exit is evidence-heavy. The goal is not to perform symbolic acts; it is to make the story coherent. Your California file, federal return, Spanish immigration documents and first Spanish tax year should all say the same thing: your permanent home moved from California to Spain on a specific date.
- Home: sell the California residence, or lease it to an unrelated tenant on real rental terms. Avoid keeping it available for personal use.
- Family center: move spouse, dependents and core household belongings to Spain where possible.
- Licence and vehicle: do not keep California driver's licence and vehicle registration as convenience documents after the move.
- Voting and civic ties: update or cancel California voter registration and memberships that signal ongoing California life.
- Addresses: move IRS, bank, brokerage, pension, insurance and medical records away from California addresses where accurate.
- Daily life: establish doctors, advisers, banking and regular community ties in Spain, and keep the evidence.
- Travel records: keep day counts, flights, leases, hotel records and California visit purposes. Short visits are easier to defend than open-ended stays.
- Tax filing: file the correct California part-year resident or nonresident return and keep the workpapers behind the departure date.
The Spanish side supplies useful evidence too: visa approval, first entry, TIE appointment, TIE card, private health insurance, lease or deed, padrón and health-card steps, Spanish bank account and regular living expenses in Spain. But do not confuse proof of Spanish residence with proof of California nonresidence. You need both: a new life built in Spain and an old life genuinely unwound in California.
This issue also belongs in the broader pre-move sequence. Review the moving-to-Spain-from-USA checklist, the US home-sale timing page, and the US filing obligations guide before deciding whether to sell, rent or keep California property.
Frequently asked questions
Does moving from California to Spain automatically end California tax residency?
No. California looks at whether you are outside California for a temporary or transitory purpose, and whether your domicile has really shifted. A genuine move to Spain helps, but trailing California ties can still create a residency dispute.
What does California tax while I am still a resident?
While you are a California resident, California taxes income from all sources. That includes worldwide retirement and investment income, even if Spain also taxes you as a Spanish resident.
What does California tax after I become a nonresident?
Generally California-source income: California real-estate rent or sale gain, services performed in California, and income from a California trade or business. Retirement income has separate protection if you are genuinely a nonresident.
Can California tax my IRA, 401(k) or pension after I move to Spain?
If you are genuinely a California nonresident, California does not impose tax on retirement income received by a nonresident after 1995, consistent with 4 U.S.C. section 114. If California still treats you as resident, the protection does not solve the problem.
Does the 546-day safe harbor work for non-lucrative visa retirees?
Usually it is not the main route. The safe harbor is for certain employment-related absences of at least 546 consecutive days. Retirees moving to Spain on passive income generally need a real domicile break, not an employment safe harbor.
Sources reviewed July 2026: California Franchise Tax Board residency pages and FTB Publication 1031 (Guidelines for Determining Resident Status), including resident/nonresident/part-year definitions, temporary or transitory purpose, domicile and the employment safe harbor; FTB guidance on part-year residents and nonresidents, including California-source income categories; FTB pension and annuity guidance stating that California does not impose tax on retirement income received by nonresidents after 1995; and 4 U.S.C. section 114 on state taxation of nonresident retirement income. General information only, not legal, tax or immigration advice, and not California state-tax advice.