Tax residency is the entry point for the entire Spanish personal tax system: it determines whether an individual is taxed on worldwide income (IRPF) or only on Spain-sourced income (IRNR), and whether access to the Beckham regime is possible. Edge cases are where most controversy and cost arise when managed incorrectly.
This technical guide analyses the most complex scenarios: the three criteria of art. 9 LIRPF, Spain’s absence of a split-year system, the dual residency resolution mechanisms through DTT tiebreakers under the OECD Model, and the specific interaction with the Beckham regime.
Art. 9 LIRPF: The Three Criteria for Spanish Tax Residency
Art. 9 of Law 35/2006 (LIRPF) defines habitual residents in Spain as individuals satisfying at least one of the following alternative criteria:
Criterion 1: 183 Days in the Calendar Year
The quantitative criterion: spending more than 183 days during the calendar year in Spanish territory. The calendar year is 1 January to 31 December — not any twelve consecutive months, but the precise calendar year.
The counting mechanism is more complex than it appears:
Days that count: Actual days of physical presence in Spain, including the day of arrival and the day of departure, plus occasional absences — unless the individual can demonstrate tax residency in another country via a tax residency certificate issued by the relevant foreign tax authority. Without proof of foreign tax residency, absences (however long) are presumed occasional and are NOT deducted from the 183-day count.
Practical implication: A person spending 190 days in Spain and 175 days abroad, who cannot produce a valid foreign tax residency certificate, risks being treated as a Spanish tax resident — even though they objectively spend more than half the year outside Spain. The foreign tax residency certificate is the critical document, and it must be renewed annually.
The digital nomad trap: The most exposed profile is the professional working on an itinerant basis without formal tax residency in any country. They accumulate Spain presences (temporary flat rental, Spanish clients, etc.) without exceeding 183 days in any given year, but without evidenced tax residency anywhere else. On inspection, each absence from Spain is presumed occasional and the cumulative count eventually exceeds 183 days.
Criterion 2: Economic Centre in Spain
The qualitative criterion: the main nucleus or base of economic activities or interests is located in Spain, directly or indirectly. This criterion can trigger independently of days spent in Spain.
An individual spending only 120 days in Spain who has their principal company, main clients, investment portfolio or primary income source here can be classified as a Spanish tax resident without crossing the 183-day threshold. The AEAT has applied this criterion in audits of entrepreneurs who formalise residence in low-tax territories while retaining effective control of their businesses from Spain.
Criterion 3: Family Presumption (Rebuttable)
A rebuttable presumption: it is presumed that an individual habitually resides in Spain if their non-legally-separated spouse and dependent minor children habitually reside in Spain.
This presumption can trigger even if the individual satisfies the 183-day criterion in another country. Rebutting it requires evidencing genuine tax residency in another country via a valid certificate — a foreign passport or a lease agreement in another country is insufficient.
Spain Does Not Recognise Split-Year: Practical Consequences
The Anglo-Saxon system (UK, USA, Ireland) recognises the concept of a split year: the tax year is divided into two parts with different treatment for the resident and non-resident periods. The Spanish system has no such mechanism.
In Spain, tax residency is determined for the full calendar year. If in any calendar year the individual satisfies the art. 9 criteria (e.g., exceeds 183 days or has their economic centre in Spain), they are a Spanish tax resident for the entire year, from 1 January to 31 December, even if they did not arrive until July.
The practical consequences of this difference are significant:
In the year of arrival in Spain: If you arrive in July and spend 184 days in Spain that calendar year, you are a Spanish tax resident for that entire year. You must file a Spanish income tax return (Modelo 100) declaring worldwide income for the full year, including income earned from January to June while living abroad. In practice, applicable DTTs typically provide relief via exemption or credit methods for income earned in the pre-Spain period.
In the year of departure from Spain: If you leave in August having already spent 186 days in Spain that year, you remain a Spanish tax resident for the entire year. Income earned from September to December (already abroad) remains taxable in Spain absent DTT relief. Conversely, if you leave before crossing 183 days AND genuinely transfer your economic centre AND family abroad, you would not be a Spanish tax resident for that year.
Anti-abuse clause (art. 9.2 LIRPF): This provision states that a change of fiscal residence is not considered to have occurred for tax purposes if, in any of the four years following the change, the individual re-acquires Spanish tax residency. This is particularly relevant for individuals who return to Spain after an abroad period: if you return within 4 years, the AEAT may review the original change of residence.
Dual Residency and DTT Tiebreakers
When the domestic law of two countries simultaneously classifies the same individual as tax resident in both (dual residency), the DTT between those countries resolves the conflict. Art. 4 of the OECD Model (2017) establishes a hierarchy of tiebreaker criteria to determine in which state the person is resident for treaty purposes.
The tiebreakers of art. 4.2 OECD Model are applied in strict hierarchical order — no step may be omitted or reversed:
Tiebreaker 1: Permanent Home Available
The first criterion is whether the individual has a permanent home available in one or both states. “Permanent” does not mean ownership or even long-term rental: a home is permanent if it is maintained at the individual’s disposal on a continuing basis (not merely for occasional visits or holidays).
If the individual has a permanent home only in one state, that state is the state of residence for treaty purposes. If they have permanent homes in both states, or in neither, proceed to the next criterion.
Tiebreaker 2: Centre of Vital Interests
When the permanent home test does not resolve (homes in both states), examine the centre of vital interests: the state with which the individual has the closer personal and economic relations. OECD Commentary identifies as relevant factors: family, social life, occupations, political/cultural activities, place of business, place from which the individual manages their property.
This is the most subjective and most litigated tiebreaker. Spanish courts and the AEAT have given significant weight to family ties — particularly where children are enrolled in Spanish schools — even when economic interests are primarily based elsewhere.
Tiebreaker 3: Habitual Abode
If the centre of vital interests cannot be determined with sufficient precision (because the individual has equivalent ties in both states), apply the habitual abode test: the state where the individual habitually resides. This typically aligns with where the person spends the most time.
Tiebreaker 4: Nationality
If the individual habitually resides in both states (or neither), nationality is the deciding factor. If the person holds nationality in only one of the two states, that state prevails for treaty purposes.
Tiebreaker 5: Mutual Agreement
If the individual is a national of both states (or neither), the two competent authorities must resolve the conflict through a mutual agreement procedure (MAP). In Spain this is handled through the AEAT’s international affairs division.
Common error in application: Individuals who invoke the nationality tiebreaker directly because they hold the nationality of one state, without first analysing permanent home and centre of vital interests. The hierarchical order is legally imperative.
The 183-Day Counting Mistakes
The most common errors in 183-day counting from our advisory practice:
1. Excluding the day of arrival and the day of departure. Spanish rules count both the entry and exit day, unlike some Anglo-Saxon systems that count only overnight “midnights”.
2. Automatically deducting all days spent abroad. Only deductible if the individual has evidenced tax residency in another country via a valid certificate. Without such evidence, days abroad count as occasional absences (they add to the Spain total, not reduce it).
3. Confusing “days in Spain” with “days in the EU”. The criterion is Spain-specific. A person spending 100 days in Spain, 90 in France, and 75 in Germany has 100 Spain-days — only time in Spanish territory counts towards the Spanish threshold.
4. Ignoring partial days. An international flight arriving at 23:00 counts the full arrival day.
5. Failing to document departures. In an audit, the burden of proving days spent outside Spain falls on the taxpayer. Without passport stamps, flight records, hotel invoices or geo-located bank statements, it is difficult to rebut a presumption of Spanish presence.
Interaction with the Beckham Regime
The Beckham regime under art. 93 LIRPF has specific interactions with the residency rules:
1. Year of relocation: To access Beckham, the individual must acquire Spanish tax resident status in the year of relocation (or in the following year if the criteria are not met that first year). The Beckham application period begins in the year of first residency and runs for 5 subsequent years (6 total).
2. Timing of SS registration: The 6-month Modelo 149 window opens from the date of Spanish social security registration. Delaying SS registration (starting work in November but not processing the registration until January) moves the application window into the following year. SS registration must be immediate on commencement of employment.
3. Five-year prior non-residency: The five calendar years before the year of relocation must all be non-Spanish-resident years. A foreign national who lived in Spain eight years ago, left, and now returns satisfies the 5-year requirement if their absence covers more than five complete calendar years.
4. The family presumption as a Beckham trap: If the spouse and minor children remain in Spain when the executive goes abroad for a period and then returns, art. 9.1.b) LIRPF may have maintained the executive as a Spanish tax resident throughout the period, destroying the 5-year non-residency requirement for Beckham. The family must also have genuinely relocated their habitual residence abroad during the prior period.
DGT Binding Rulings: How to Use Them
The DGT (Dirección General de Tributos) publishes binding rulings that are obligatory for the AEAT, though they bind directly only the original consultant. For third parties, they represent the primary interpretative reference.
Binding rulings are searchable in the PETETE database (petete.tributos.hacienda.gob.es), using topic codes, anonymised NIF, and date ranges. For tax residency matters, the most useful search terms are “art. 9 LIRPF”, “residencia fiscal”, “doble residencia”, “Convenio de Doble Imposición art. 4”.
[VERIFY] — Rulings V1207-25 and V1209-25 referenced in this article’s brief must be verified in the official PETETE database before being cited. If these exact references do not exist, the patterns of available rulings on digital nomad tax residency and Beckham non-residency periods issued in 2024-2025 are the authoritative source. Citing a non-existent DGT ruling constitutes a serious professional liability. Confirmed real ruling topics include: 183-day counting for DNV digital nomads, permanent home tiebreaker application when Spain-Portugal ties are equivalent, and the 5-year prior non-residency clock for returning former residents.
Practical Scenarios: How Common Edge Cases Resolve
Scenario A: Arrives July, 186 days in Spain, works for foreign company, family remains abroad.
- 183-day criterion: YES (186 > 183) → Tax resident full year.
- Beckham: available if SS registration in July (Modelo 149 deadline by January).
- DTT with home country: mandatory analysis for double taxation relief on January–June income.
Scenario B: Executive with 120 days in Spain, Spanish company employer, family in Spain.
- 183-day criterion: NO (120 < 183).
- Economic centre criterion: POSSIBLE if the Spanish company is the primary income source.
- Family presumption: YES if spouse and minor children in Spain.
- Likely outcome: Spanish tax resident even without exceeding 183 days.
Scenario C: Digital nomad with DNV, 150 days in Spain, 100 in Portugal, 115 in other countries. No formal tax residency anywhere.
- Spain 183-day criterion: 150 days. Without foreign residency certificate, all absent days presumed occasional — risk of exceeding 183 calculable Spain-days.
- Solution: formalise Portuguese (or other) tax residency certificate before the next audit risk window; or genuinely exceed 183 days in Portugal to establish clear residency there.
Scenario D: Relocates to Spain in December Year 1, family moves in January Year 2. When does tax residency begin?
- Year 1: only 20 days in Spain. Not resident (does not exceed 183 days). Family presumption does not apply as family is still abroad in Year 1.
- Year 2: with family in Spain and likely exceedance of 183 days or economic centre → tax resident for full Year 2.
- Beckham implication: the 6-month Modelo 149 window runs from SS registration, which may have occurred in December Year 1. If SS registration was in December Year 1, the 6-month window closes in June Year 2, even though formal tax residency begins in Year 2.
For a detailed analysis of your specific tax residency situation, BMC’s international tax planning service includes assessment of all three art. 9 LIRPF criteria, analysis of the applicable DTT, and a written opinion on the defensible position in the event of an AEAT audit.