US State Taxes After Moving to Spain: How to Break State Residency

By Aurelio Maurici

Co-founder, legal, tax and cross-border financeMaster of Business Law, Aix-Marseille Université

Published Updated Last verified

A person writing on a sheet of paper at a desk

Federal income tax follows a U.S. citizen anywhere, and most people planning a move know as much. State income tax after moving to Spain is the layer they miss, because it attaches to something less visible, namely domicile; a state that still considers you domiciled there goes on taxing your worldwide income, Spanish salary included, with no credit for Spanish tax and no room for the treaty. California and New York publish detailed tests, and they audit against them. This article is for informational purposes only and is not immigration, tax or medical advice; verify current requirements with the relevant Spanish authority or a licensed professional.

Why does a move to Spain not end your state tax by itself?

Because both states define residency around intent, and intent is presumed to continue until you prove otherwise. In its residency guidelines, the California Franchise Tax Board states that a resident of California remains a resident while absent from the state for a temporary or transitory purpose, and that a domicile, once acquired, is retained until another is acquired. New York’s income tax definitions say the same in other words: your New York domicile does not change until you can demonstrate that you have abandoned it and established a new domicile outside New York State.

Two features of the California rules make the state layer dearer than people expect. The Franchise Tax Board allows neither a foreign tax credit nor a foreign earned income exclusion, so the Spanish income tax you pay does nothing for the California return; it also states that tax treaties between the United States and other countries which expressly limit their application to federal income taxes do not apply to California. If you are a Spanish tax resident and a California resident in the same year, you pay both, on the same salary, without relief.

The Spanish test is a different one and runs on its own. The Agencia Tributaria treats you as a Spanish tax resident for any calendar year in which you spend more than 183 days in Spain, or in which the main base of your economic interests lies there, and it presumes residence where your spouse and dependent minor children live in Spain. Nothing in that test refers to a U.S. state, and nothing in the state tests refers to Spain; closing the overlap is left to you.

The two tests, state by state

Each state runs two tests, a domicile test built on intent and facts and a mechanical test built on days and a dwelling, and passing only one of them is not enough.

State Test Figure that decides it What is weighed
California Domicile and closest connections No fixed count: the strength of ties, not their number Time in and out of the state, location of spouse and children, principal residence, driver’s license, vehicle registration, professional licenses, voter registration, banks, healthcare providers, accountants, social ties, real property
California Presumption of residency More than 9 months in the state in a taxable year Presence alone, before the connections are examined
California Safe harbor 546 consecutive days outside California under an employment-related contract Intangible income above $200,000 in a year, return visits above 45 days a year, or a principal purpose of avoiding tax each break the safe harbor
New York Domicile No fixed count: the permanent home you intend to return to Whether you can demonstrate abandonment of the New York domicile and a new one elsewhere
New York Statutory residency A permanent place of abode for substantially all of the year and 184 days or more in New York Any part of a day counts as a day; a residence your spouse owns or leases usually counts as your abode
New York The 548-day rule 450 days in a foreign country within any 548 consecutive days, and 90 days or fewer in New York Days of the spouse and minor children count toward the 90; the partial years at each end are prorated

California: closest connections, and the Spain example the FTB itself gives

The Franchise Tax Board’s Publication 1031 states the theory in a single sentence: you are a resident of the place where you have the closest connections. It then lists the factors it applies, from the time you spend in and out of the state to the location of your spouse and children, your principal residence, the state that issued your driver’s license and registered your vehicles, where you hold professional licenses and vote, where your banks, doctors, accountants and attorneys are, and where your real property and investments sit. According to the publication, it is the strength of the ties, not merely their number, that determines residency, and no one factor is determinative.

The same publication offers an example that might have been written for this site. Example 5 of its section on leaving California concerns a person who accepts a permanent job offer in Spain, sells the California home, packs everything, moves to Spain with spouse and children on May 5, 2025, leases an apartment, enrolls the children in school, obtains a Spanish driver’s license and has no intention of returning. The determination is a part-year resident: a California resident through May 4 and a nonresident from May 5, taxed by California on all income while resident and only on California-source income afterward.

The examples around it show what fails. A person who declares Nevada residency but keeps the California home, spends six or seven months a year in it and retains the social club and business connections remains a California resident, since the declaration establishes nothing and the connections do. A person on a 15-month assignment abroad who keeps a California driver’s license, voter registration and bank accounts, and lives in an employer’s compound, also remains a resident, because the ties established abroad are thinner than those kept in California.

What a change of domicile requires

The publication defines domicile as the place where you voluntarily establish yourself and your family, not for a special or limited purpose but with a present intention of making it your true, fixed, permanent home, the place you intend to return to whenever you are absent. It treats the maintenance of a marital abode in California as a significant factor in establishing California domicile, and it requires all three of the following for a change of domicile: abandonment of the prior domicile, physically moving to and residing in the new locality, and intent to remain there permanently or indefinitely, as demonstrated by your actions.

Actions, then, not declarations. That is why the Spain example lists a sold home, a leased apartment, a school enrollment and a Spanish driver’s license, and no signed statement.

The safe harbor, and who it leaves out

The safe harbor is narrower than its reputation. It covers a person domiciled in California who is outside the state under an employment-related contract for an uninterrupted period of at least 546 consecutive days, and return visits totaling 45 days or fewer in a taxable year are treated as temporary. It is lost if intangible income exceeds $200,000 in any taxable year the contract covers, or if the principal purpose of the absence is to avoid personal income tax. A spouse who accompanies the employee for at least 546 consecutive days is likewise treated as a nonresident.

Two consequences follow. The days of two separate contracts cannot be added together; the publication’s own example of a one-year contract, three months back in California and a second one-year contract fails the test. And a retiree, a remote worker without a contract, or anyone moving on a non-lucrative visa falls outside the safe harbor entirely, and is judged on the closest connections facts instead.

New York: the permanent place of abode trap

New York’s definitions make you a resident on either of two grounds. The first is domicile, meaning the place you intend to have as your permanent home and to return to after being away. The second requires no intent at all: if you maintain a permanent place of abode in New York State for substantially all of the taxable year and spend 184 days or more in the state during that year, you are a resident whether or not you are domiciled there for any part of it, and any part of a day counts as a day.

A permanent place of abode is a residence you permanently maintain, owned or not, that is suitable for year-round use, and it usually includes a residence your spouse owns or leases. A vacation structure not suitable for year-round use does not qualify, and neither does a barracks or a place kept only during a temporary duty assignment. An apartment kept in the city for visits home, by contrast, does.

The two exceptions for a New York domiciliary

New York also sets out two groups of conditions under which a person still domiciled in New York is not treated as a resident, and both are designed for people abroad. Group A requires no permanent place of abode in New York during the year, a permanent place of abode outside New York for the entire year, and 30 days or fewer in New York. Group B requires at least 450 days in a foreign country during any period of 548 consecutive days; 90 days or fewer in New York during that 548-day period for you, your spouse (unless legally separated) and your minor children together; and a prorated limit for the partial tax years in which the 548-day period begins and ends, computed as the number of days in the nonresident portion divided by 548 and multiplied by 90.

Group B is the one that fits a move to Spain with a kept apartment, and it is pure arithmetic: ninety days across a year and a half, counting the family, with a day log to prove it.

What the state still taxes after you leave

Breaking residency ends tax on your worldwide income; it does not end tax on income the state regards as its own. Publication 1031 states that nonresidents of California are taxed only on income from California sources, and it sources income by type.

  • Wages have their source where the services are performed, so remote work done from Spain for a California employer is not California-source, whereas days worked in California on a visit are.
  • Gain on real estate has its source where the property lies, which means a California home sold after you move to Spain is taxable by California even though you are a nonresident. The federal exclusion and the Spanish treatment are covered in selling your U.S. home after moving to Spain.
  • Pensions and retirement accounts run the other way. The publication states that California does not tax nonresidents on pensions received after December 31, 1995, and that IRA, Roth IRA, SIMPLE IRA, SEP and Keogh distributions received after becoming a nonresident are likewise not taxable if received after that date. Whether a withdrawal falls before or after the departure date is therefore a state tax decision as well as a federal one.
  • Interest, dividends and gains on stocks and bonds generally have their source where you are a resident, so they leave the state with you, except for accounts used in a California trade or business.

For the year of the move, the publication describes a part-year return on Form 540NR, reporting all income while resident and California-source income afterward, with the tax computed at the effective rate that would apply to your income from all sources. Everything else on that return hangs on one fact, the departure date.

The Spanish side: two residencies can overlap in the year you move

Spain does not split a year. If you exceed 183 days in Spain during the calendar year of your arrival, the Agencia Tributaria treats you as a Spanish tax resident for the whole of that year, and it presumes residence where your spouse, not legally separated, and your dependent minor children live in Spain, unless you prove otherwise. Someone who leaves California on May 5 and stays in Spain is therefore a California resident through May 4 and a Spanish resident for all of that year.

That overlap cannot be avoided in the arrival year, but it can be managed, because once the domicile change holds the two systems tax different periods: California up to the departure date, Spain for the year, with the U.S.-Spain treaty and the foreign tax credit sorting out the federal layer. Within Spain, the region where you spend the most days of the year sets its own income tax scale, which the guide to where to live in Spain compares city by city. What cannot be managed is an overlap that recurs every year because the state never accepted the departure. The practical consequences of Spanish residency, from Modelo 720 to the FBAR that follows you, are in the mistakes Americans make when moving to Spain, and the federal layer lasts as long as your U.S. citizenship does, a Spanish naturalization included, as the dual citizenship guide explains. The federal return itself is covered in U.S. taxes when you live in Spain.

The steps that hold up, in the order to take them

  1. Fix a departure date and build the file around it. Every test above turns on when the ties were cut, so the lease, the sale documents and the flight belong in one folder.
  2. Deal with the home first. A retained California residence is on the FTB’s list of factors, and a kept New York apartment is a permanent place of abode. Selling it, or leasing it out on terms that show you cannot use it, belongs before departure rather than after.
  3. Move the civic ties. Driver’s license, vehicle registration, voter registration and professional licenses are four of the FTB’s factors, and a Spanish driver’s license appears in the FTB’s own Spain example.
  4. Move the financial and professional ties. The location of your banks, the origination point of your transactions, and the location of your accountants and attorneys sit on the same list.
  5. Keep a day log from the day you leave. New York counts any part of a day, and California weighs time in and out of the state; a calendar with boarding passes attached is the cheapest audit defense available. Once Spain treats you as its tax resident, the Agencia Tributaria’s certificate goes in the folder too, although neither state’s pages name it as proof, as the tax residence certificate guide explains.
  6. File a clean part-year return for the year of the move. In California, that means Form 540NR with the departure date, reporting income through that date only, plus California-source income afterward.
  7. Check what still flows from the old state. Rental income from a kept property, or a sale of real estate, remains taxable there on a nonresident basis, in which case a nonresident return belongs in the plan for later years.

Book the domicile change before you book the flight

The useful exercise is to write down the date you will leave and to list every tie you still hold in your state on that date: home, license, registration, accounts, advisers, memberships. Each item on the list is a fact the state can weigh against you, and each one closed before the departure date becomes a fact in your favor.

Someone leaving a state with no personal income tax, or leaving a cooperative state with no home kept, no business interest and no plan to return, can usually manage alone with the state’s own residency page and a part-year return. Someone leaving California or New York with a home kept, a business or professional license, high investment income or family staying behind is in the territory the audit programs were built for, and a state tax professional who handles residency cases should read the file before the move, not after the first notice.

The Spain Navigator, the app that puts every step of your move to Spain in order, holds the departure date, the state file and the Spanish registrations of your first month in one plan, so that the ties you cut on one side line up with those you create on the other.

FAQ

Does becoming a Spanish tax resident end my California residency automatically?

No. Spain applies its own test, more than 183 days in a calendar year, whereas California asks where your closest connections lie and whether your absence is temporary or transitory. The two tests are independent, so a single year can be a Spanish tax year and a California tax year at once; only a documented change of domicile, or the safe harbor, ends the California side.

Can I keep my New York apartment and still be a nonresident?

Only within narrow limits. A permanent place of abode maintained for substantially all of the year, plus 184 days or more in New York, makes you a resident regardless of domicile, and any part of a day counts. A New York domiciliary abroad escapes only under the 548-day rule, which allows 90 days in the state and counts a spouse and minor children.

Does the U.S.-Spain tax treaty protect me from state income tax?

Not in California. According to the Franchise Tax Board, tax treaties that limit their application to federal income taxes do not apply to California, and the state allows neither a foreign tax credit nor the foreign earned income exclusion. Whether another state honors a treaty is a question for that state's own guidance rather than for the treaty.

Will California tax my 401(k) or IRA withdrawals once I live in Spain?

Not if you are a nonresident when they arrive. The Franchise Tax Board states that pension distributions, and IRA, Roth IRA, SIMPLE IRA, SEP and Keogh distributions, received by a nonresident after December 31, 1995 are not taxable by California. The distribution must therefore arrive after your residency ends, which is why the date carries so much weight.

What happens if I sell my California house after the move?

California taxes it. Under the Franchise Tax Board's rules, gain from the sale of real estate has its source where the property is located, so a California home sold after you move to Spain produces California-source income even though you are a nonresident. The federal home-sale exclusion and the Spanish side are covered in the guide on selling a U.S. home after moving to Spain.

Does California's safe harbor cover retirees?

No. The safe harbor applies to a person domiciled in California who is outside the state under an employment-related contract for at least 546 consecutive days, with intangible income under $200,000 a year and return visits of 45 days or fewer per year. A retiree, or anyone else without an employment contract, is judged instead on all the facts and circumstances.

Sources

Official pages this article was checked against, with the date we last read them.

  1. FTB Publication 1031, 2025 Guidelines for Determining Resident Status California Franchise Tax Board, English, retrieved
  2. Income tax definitions (domicile, permanent place of abode, resident) New York State Department of Taxation and Finance, English, retrieved
  3. Contribuyentes por el IRPF (residencia habitual en territorio español), manual IRPF 2025 Agencia Tributaria, Spanish, retrieved

About the author

See author page

Aurelio Maurici is the co-founder of EasyFranceNow and EasySpainNow and the author behind the tax guidance for U.S. and UK nationals in Europe.

He holds a Master's degree in Business Law from Aix-Marseille Université, where his work centered on legal structures, institutional systems and administrative frameworks. Based in Aix-en-Provence, he has spent years working inside the European legal and administrative system on behalf of international clients, handling real files every week: bank account openings and the FATCA-driven restrictions Americans run into, public healthcare onboarding, tax residency and cross-border reporting questions, and the documentary standards institutions apply in practice rather than in theory.

That hands-on work is the foundation of the Spanish guides on this site. He focuses on the points where Spanish administrative logic diverges from what Americans expect: the weight of sequencing, documentary consistency, and how banks, the Agencia Tributaria and the Seguridad Social interpret rules operationally. His guidance is built from primary sources (BOE, agenciatributaria.es, seg-social.es, exteriores.gob.es and the IRS) and updated when procedures change. He writes the tax guides on this site and reviews the money and tax passages of the other writers' guides.

His work is procedural and operational, not a substitute for regulated advice. When a situation calls for a licensed tax or legal professional, he says so plainly and helps coordinate the right one.

Related articles

Guides for Americans

More articles by Aurelio Maurici

View all

Sourced guides for Americans and Britons planning their move to Spain.

Maxime and Aurelio, EasySpainNow's co-founders

Where are you in the move?