When a US citizen buys a villa in Marbella and starts spending seven months a year there, a deceptively simple question arises: where is this person a tax resident? The answer determines which country can tax worldwide income, which treaty benefits are available, and what compliance obligations must be met on both sides of the Atlantic. Article 4 of the 1990 Spain-US Convention for the Avoidance of Double Taxation provides the framework for resolving exactly that question.
This article walks through every element of Article 4 in depth: Spain's domestic residency tests, the US Green Card and Substantial Presence Tests, the five-step tie-breaker cascade that resolves dual-residency conflicts, the critical saving clause that limits treaty relief for US citizens, and the practical forms and audit exposure that follow.
What Article 4 Actually Does
Article 4(1) defines a "resident of a Contracting State" as any person who, under the laws of that state, is liable to tax by reason of domicile, residence, place of incorporation, place of management, or any other criterion of a similar nature. This definition matters because treaty benefits — reduced withholding rates, exemptions, pension protections — are only available to persons who qualify as residents of one or both Contracting States.
The provision serves two functions. First, it limits treaty access to genuine residents, preventing third-country nationals from funnelling income through Spain or the US to claim benefits they are not entitled to. Second, it establishes the machinery for resolving cases of dual residency — situations where a person qualifies as a resident of both Spain and the United States simultaneously under each country's domestic law.
Without Article 4, dual residents would face the worst of both worlds: full taxation in both countries with no clear framework for coordination. The tie-breaker in Article 4(2) prevents this by designating a single treaty residence for most purposes, though — as we will see — the saving clause substantially limits this protection for US citizens.
Spain's Domestic Residency Tests
Spain's personal income tax law (Ley 35/2006, LIRPF) sets out three independent grounds for tax residency in Article 9.
The 183-Day Rule
A physical presence of 183 days or more in Spain during the calendar year makes an individual tax resident in Spain for that year. Crucially, "temporary absences" do not break the count unless the individual can prove tax residence in another territory. This means a person who spends 170 days in Spain and 30 days in France, 20 days in Morocco, and 15 days in the US will likely meet the 183-day threshold once temporary-absence days are factored back in, unless residence elsewhere is demonstrated.
The AEAT can use entry and exit records, credit card data, utility consumption patterns, and mobile phone location data obtained through international information exchange to reconstruct actual presence. The burden of disproving Spanish residency in any audit rests on the taxpayer once AEAT has established prima facie 183-day presence.
Centre of Vital Interests
Even a person who spends fewer than 183 days in Spain may be deemed resident if Spain is the "main nucleus or base of their activities or economic interests." This is a catch-all that looks beyond mere physical presence. Courts and the DGT have applied it to people whose family home, minor children's school, primary business activity, or investment portfolio is centred in Spain, regardless of whether the individual personally crosses the 183-day threshold.
Family Presumption
Article 9(1)(b) LIRPF creates a rebuttable presumption of Spanish residency where a taxpayer's non-legally-separated spouse and underage children habitually reside in Spain. This presumption can be rebutted with proof of residence elsewhere, but it places the evidential burden firmly on the taxpayer.
US Residency Tests
The United States taxes on the basis of citizenship as well as residence, which creates unique complexity for US citizens living abroad. For non-citizens, two domestic tests determine US residency.
The Green Card Test
Any individual who holds a US permanent resident card (green card) is a US resident for tax purposes for the entire calendar year, regardless of how many days they actually spend in the United States. There is no physical presence requirement. A green card holder who moves permanently to Spain on 1 January is still a US tax resident for the full year unless they take affirmative steps to abandon lawful permanent resident status (Form I-407) and meet other conditions.
The Substantial Presence Test
Non-citizens without a green card are US residents if they meet the Substantial Presence Test under IRC § 7701(b). The formula is:
- All days present in the US in the current year, plus
- 1/3 of days present in the US in the first preceding year, plus
- 1/6 of days present in the US in the second preceding year
If this weighted total equals or exceeds 183, the individual is a US resident for the current year — provided they were present in the US for at least 31 days in the current year. A Spanish national who spent 120 days in the US this year, 90 days last year, and 60 days the year before would have a weighted count of 120 + 30 + 10 = 160 days: just below the threshold. Spending even 25 additional days in the US would push them over.
The Closer Connection Exception
An individual who meets the Substantial Presence Test but was present for fewer than 183 days in the current year can escape US residency by establishing a "closer connection" to a foreign country under IRC § 7701(b)(3)(B). The taxpayer must file Form 8840 (Closer Connection Exception Statement for Aliens) by the regular tax return due date. The form requires evidence that the individual's tax home is in a foreign country and that they have closer personal and economic connections there than in the US — looking at factors such as habitual abode, family, business activities, and location of personal belongings.
Form 8840 is not available to individuals who held a green card at any time during the year. It also cannot be used to avoid US tax if the individual had 183 or more days of US presence in the current year — only when days fall between 31 and 182.
The Dual-Residency Problem
It is entirely possible — and in practice quite common — for an individual to satisfy both Spain's and the US's domestic residency tests simultaneously. A Spanish national with a US green card who maintains a home in Barcelona and spends 120 days per year in New York for business would be a US resident under the green card test and a Spanish resident under the centre-of-vital-interests test. Without a tie-breaker, both countries would assert the right to tax that person's worldwide income.
This is precisely the scenario Article 4(2) addresses.
The Article 4(2) Tie-Breaker Cascade
When a natural person is a resident of both Contracting States under their domestic laws, Article 4(2) resolves the conflict through a sequential five-step cascade. The steps are applied in order; the first step that produces a definitive result determines treaty residence. Only if a step is inconclusive does the analysis proceed to the next.
Permanent Home
The individual is deemed a resident of the state in which they have a permanent home available. "Permanent home" means any form of dwelling the individual has arranged for their use on a continuing basis — owned or rented, house or apartment. If the person has a permanent home in both states (which is common for wealthy US expats with property in both countries), Step 1 is inconclusive and the analysis moves to Step 2.
Centre of Vital Interests
Where personal and economic relations are closer determines treaty residence. This considers family location, social activities, occupation, political and cultural activities, and where business is conducted. The OECD Commentary — which Spanish courts and the DGT use as guidance — emphasises that when economic and personal factors point in different directions, personal relations (family) take precedence. If neither state has clearly closer ties, Step 3 applies.
Habitual Abode
The state in which the individual habitually resides — as opposed to merely being present — determines residency. This is distinct from the 183-day count; it looks at the regular pattern of life over time, not just raw days. Courts have held that quality and regularity of presence matters, not just quantity. If the individual habitually resides in both states equally (unusual but possible), Step 4 applies.
Nationality / Citizenship
If both or neither state is the habitual abode, the individual is deemed a resident of the state of which they are a national (in Spanish terminology, ciudadano). For US citizens who are also Spanish nationals, Step 4 is again inconclusive, and the analysis moves to the final step.
Mutual Agreement Between Competent Authorities
Spain's AEAT and the US IRS resolve the case by agreement. In practice, this is rarely reached — the prior steps almost always produce a result. When it does arise, both competent authorities must agree on the taxpayer's treaty residence, and the resolution can take years.
Practical Example: US Citizen Buying a Home in Marbella
Consider Alex, a US citizen (not a Spanish national) who has lived his entire adult life in Miami. In March 2024 he purchases a four-bedroom villa in Marbella and begins spending approximately six months per year there — roughly 183 days — while maintaining his Miami condominium. He works remotely for a US company. His wife and two children move with him to Marbella; the children enrol in a Spanish school.
Spain's position: Alex has a permanent home available in Spain (the villa). His family is in Spain. His children attend school in Spain. Spain will find him tax resident under Article 9 LIRPF — both the 183-day count and the centre-of-vital-interests test are met.
US position: Alex is a US citizen. The United States taxes its citizens on worldwide income regardless of where they live, under IRC § 61 read with § 7701(a)(30)(A). The US does not need the Substantial Presence Test or the green card test for citizens — citizenship alone is sufficient.
Step 1 of the tie-breaker: Alex has a permanent home available in both Spain (the Marbella villa) and the US (the Miami condominium). Step 1 is inconclusive.
Step 2 — Centre of vital interests: Alex's family is in Marbella. His children's school is in Marbella. His social life has shifted to Spain. His economic activity (remote work for a US employer) could point to either country, but personal relations — particularly minor children — weigh heavily toward Spain. Under the OECD Commentary, personal relations typically tip the scale when economic ties are split. Result: Spain wins the tie-breaker under Step 2.
What does this mean? For treaty purposes, Alex is a Spanish resident. In theory, Spain has primary taxing rights on his worldwide income, and the US should eliminate double taxation through the foreign tax credit mechanism. However — and this is the critical caveat — the saving clause applies.
The Saving Clause (Article 1(4))
Article 1(4) of the Spain-US Convention contains a "saving clause" — sometimes called a "citizenship clause" — that provides: notwithstanding any other provision of the Convention, a Contracting State may tax its citizens and residents as if the Convention had not come into force.
For US citizens, this means the United States retains the right to tax Alex on his worldwide income even though the Article 4 tie-breaker has placed him in Spain. The treaty's residency determination does not shield a US citizen from US taxation. Alex must still file a US Form 1040, report all Spanish-source and worldwide income, and pay US tax — taking credit for Spanish taxes paid under the foreign tax credit provisions.
The saving clause applies to US citizens and US green card holders. It does not apply to Spanish nationals who are not US citizens or green card holders — such a person, if the tie-breaker places them in Spain, can rely on the treaty to avoid US tax on Spanish-source income.
Form 8840: Closer Connection to a Foreign Country
Form 8840 is filed by non-citizen aliens who meet the Substantial Presence Test but can demonstrate a closer connection to a foreign country and wish to claim the closer connection exception to avoid US resident status under IRC § 7701(b)(3)(B). It is not a treaty-based form — it operates entirely within US domestic law.
The form asks the taxpayer to identify their tax home, list the factors demonstrating closer connection to the foreign country, and certify that they have not taken steps to become a US permanent resident. Filed annually with the taxpayer's US income tax return (or, for non-residents, by the due date for Form 1040NR), it must be submitted even if the taxpayer ultimately owes no US tax.
Form 8840 is relevant for non-US-citizen clients — for example, a Spanish national who works for a US company and travels extensively to the US, accumulating days that could trigger the Substantial Presence Test, but whose primary life and tax home remain in Spain. Properly filed, Form 8840 keeps that individual outside the US resident tax net.
Form 8833: Treaty-Based Return Position
Where a taxpayer takes a position on their US tax return that is based on a tax treaty — for example, claiming that treaty Article 4 makes them a resident of Spain rather than the US for purposes of a specific income item — IRC § 6114 requires disclosure on Form 8833 (Treaty-Based Return Position Disclosure Under Section 6114 or 7701(b)).
Failure to file Form 8833 when required can result in a penalty of USD 1,000 per failure for individuals (USD 10,000 for C-corporations), independent of any underlying tax. The form identifies the treaty article being relied upon, the type of income affected, and the amount of income to which the treaty position applies.
In the context of Article 4, Form 8833 would typically be filed when a dual-resident individual is claiming that the tie-breaker places them in Spain rather than the US, so as to treat certain income as exempt from US tax or subject to Spanish taxation only. Given the saving clause, US citizens rarely have occasion to file Form 8833 in connection with Article 4 — but green card holders seeking to be treated as Spanish residents under the tie-breaker rules must do so.
Spain's AEAT Audit of Residency
Modelo 30: Change of Tax Domicile
When an individual establishes or changes their Spanish tax domicile, they must notify the AEAT using Modelo 30 (Declaración censal de alta, modificación y baja en el Censo de Obligados Tributarios). Leaving Spain — that is, ceasing to be a Spanish tax resident — equally requires a Modelo 30 notification, combined with proof of new tax residence elsewhere (typically a certificate of fiscal residence from the new country's tax authority).
Failure to file Modelo 30 when changing domicile or ceasing residency is a formal infraction under LGT Article 198, carrying fines of EUR 200 per omission. More significantly, not filing creates an evidential problem: if the AEAT opens a residency audit, the absence of a formal exit notification will be taken as evidence of continued Spanish residency.
Census and Padron Registration
Registration on the Padrón Municipal (municipal census) is a separate administrative obligation from tax residency, but the AEAT uses it as evidence. Foreign nationals living in Spain for more than three months are legally required to register. Paradoxically, some clients try to de-register prematurely as part of an exit strategy — this can create inconsistencies that the AEAT will use to challenge the claimed non-residency.
AEAT Residency Audits in Practice
The AEAT has substantially increased residency audits targeting high-income individuals, digital nomads, and remote workers who claim non-residency while maintaining significant connections to Spain. Audit triggers include: owning property in Spain, having children enrolled in Spanish schools, holding a Spanish bank account with regular transactions, social media presence showing Spanish location, and discrepancies between self-declared non-residency and third-party information received through the Common Reporting Standard (CRS) and FATCA.
An AEAT residency audit typically begins with a comprobación limitada (limited verification) by the inspector's office, requesting documentation of days spent outside Spain, proof of foreign tax residency, and economic activity records. If unresolved, it escalates to an inspección completa that can reach back four tax years. The potential exposure for an individual earning EUR 200,000 per year who was incorrectly classified as a non-resident for three years can easily exceed EUR 150,000 in back taxes and penalties.
DGT Binding Ruling on Tie-Breaker Application (2020)
The Dirección General de Tributos (DGT) issued DGT binding ruling from 2020 in February 2020, addressing the application of the tie-breaker rules in the context of a US citizen who maintained a home in Spain and another in the United States and spent time in both countries. The DGT confirmed that the tie-breaker in Article 4(2) of the Spain-US Convention follows the sequential analysis set out in the treaty, that the permanent-home step must be exhausted before proceeding to centre of vital interests, and that the OECD Commentary is relevant interpretive guidance.
The consulta also reiterated that the saving clause in Article 1(4) prevents US citizens from relying on the treaty to fully escape US worldwide taxation, confirming that even a tie-breaker result in Spain's favour does not eliminate the US's right to tax its citizens. This is a binding interpretation by Spain's tax authority and is directly relevant to US citizens structuring their Spanish residency.
Corporate Residency Tie-Breaker (Article 4(3))
Article 4(3) addresses companies and other legal entities that might be considered resident in both Contracting States. Where an entity is a resident of both Spain and the US, it is deemed a resident only of the state where its place of effective management is situated.
"Place of effective management" is where the key management and commercial decisions necessary for the conduct of the entity's business are in substance made — typically where the board meets and where senior executives make decisions, not necessarily where the entity is incorporated or registered. A Delaware LLC whose sole managing member lives in Barcelona and runs the business entirely from Spain will be treated as Spanish-resident for treaty purposes under Article 4(3), regardless of its US incorporation.
This has significant practical consequences for US entrepreneurs who move to Spain while retaining US business structures. The LLC may be treated as a Spanish tax resident entity, triggering Spanish corporate tax obligations and potentially disrupting US pass-through tax treatment.
Common Mistake: The 183-Day Trap
Perhaps the single most common error made by US clients — and by some advisers unfamiliar with Spanish tax law — is the belief that spending fewer than 183 days in Spain automatically means non-residency. This is incorrect. The 183-day test is a sufficient condition for Spanish residency, not a necessary one. A person can become Spanish tax resident with 120 days of presence if their centre of vital interests (family, business, property) is in Spain.
The DGT has consistently held that the centre-of-vital-interests test operates independently of the day count. Several Tax Court decisions have upheld AEAT assessments against individuals who spent 150 days in Spain and 215 days outside Spain but whose families, homes, businesses, and social networks were entirely in Spain.
The lesson: day-counting is a starting point, not the answer. A comprehensive residency analysis must examine all Article 9 LIRPF grounds, and — if dual residency arises — must work through the Article 4(2) cascade in full.
Frequently Asked Questions
Navigating Dual Residency Requires Expert Guidance
Article 4 analysis is fact-intensive and unforgiving. A wrong residency classification can result in years of back taxes, penalties, and surcharges in two countries simultaneously. Jacob Salama advises US citizens and Spanish residents on treaty-based residency planning, AEAT audit defence, and US-Spain cross-border tax compliance.
Book a Consultation