The 183-Day Rule: The Most Misunderstood Rule in Spanish Tax Law
The 183-day rule is one of the most widely cited — and most widely misunderstood — provisions in Spanish tax law. Many people believe that if they spend fewer than 183 days in Spain in a year, they cannot be Spanish tax resident. This is partially correct but dangerously incomplete. There is a second test (centre of vital interests), a family presumption, and significant complexity in how the AEAT actually counts days — all of which can catch individuals out who thought they were safely within the rule.
This guide explains precisely how the 183-day rule works, how the AEAT establishes Spanish presence, and what practical steps you can take to manage your day count — while being honest about the limitations of day counting as a tax planning strategy.
The Statutory Rule: Article 9.1(a) LIRPF
Article 9.1(a) of the LIRPF (Ley 35/2006) provides that a natural person is habitually resident in Spanish territory when they remain in that territory for more than 183 days during the calendar year. The calendar year runs from 1 January to 31 December — it is not a rolling 12-month period.
Key aspects of this rule:
- "More than 183 days" — the threshold is 184 days. 183 days exactly does not trigger residency. This is the source of the "182-day safe harbour" commonly discussed in planning conversations — staying at or below 182 days definitively avoids the first test (though not the second test).
- Calendar year basis: The count resets on 1 January each year. If you spent 180 days in Spain in 2025 (January to December) and 180 days in 2026, you were not resident in either year under the 183-day test — even though you spent 360 days in Spain over a 12-month period spanning year-end.
- "In Spanish territory": Presence anywhere in Spain — including the Canary Islands, Ceuta, and Melilla — counts. These are all Spanish territory for IRPF purposes.
How the AEAT Counts Days: The Inclusion of Arrival and Departure Days
The AEAT counts the day of arrival in Spain and the day of departure from Spain as Spanish days. Both the day you enter Spain and the day you leave count towards the 183-day total. This is not stated explicitly in the LIRPF but has been confirmed by the Dirección General de Tributos in multiple binding rulings and is the AEAT's consistent administrative practice.
Practical example: if you fly into Madrid on Monday morning and fly out of Barcelona on Friday evening, that trip counts as five Spanish days (Monday, Tuesday, Wednesday, Thursday, Friday) — not three or four as some people assume by counting only "full days" in Spain.
Transit Does Not Count — But Under a Strict Condition
Transit through Spain (for example, a connecting flight through Madrid Barajas without leaving the international transit zone) does not count as a Spanish day — but only if you spend less than 24 hours in Spain and remain within the international transit area. If you leave the transit zone to enter Spanish territory (even to a hotel in the airport vicinity), or if your transit exceeds 24 hours, the day(s) count.
Sporadic Absences: The AEAT's Tool to Challenge Non-Residency
One of the most important and least understood aspects of the 183-day rule is the treatment of "sporadic absences" (ausencias esporádicas) under Art. 9.1(a) LIRPF. The provision states that sporadic absences shall be included in the count unless the taxpayer proves habitual residence in another country during those absences.
What this means in practice:
- If you spend significant time in Spain and take periodic trips abroad, the AEAT can add those abroad-days back into your Spanish count as "sporadic absences" — unless you can prove you were tax resident in another country during those trips.
- "Proving habitual residence" in another country requires either a tax residency certificate from that country's tax authority, or demonstrable evidence of genuine ties to another country during the absence periods.
- Simply spending time in another country does not constitute habitual residence there — you need formal tax residency in that country, which typically requires meeting that country's own residency tests.
The sporadic absence rule is the AEAT's main tool for challenging individuals who structure their affairs to stay just below 183 days while treating Spain as their primary base. If you spend 150 days in Spain, 60 days travelling to multiple countries, and 60 days in Dubai without being formally registered as a Dubai tax resident — the AEAT may add back some or all of the 60 travelling days as sporadic absences, pushing your Spanish count above 183 days.
Critical point: The sporadic absence rule means that the answer to "how many days can I spend in Spain?" is not simply "182". If you do not have formal tax residency in another country with a tax residency certificate to show, the AEAT has discretion to add back travel days. The rule is therefore best understood as: you need to be below 183 actual Spanish days AND have genuine tax residency elsewhere with documentation.
The Second Test: Centre of Vital Interests (Art. 9.1(b))
Even if you stay below 183 days in Spain in every calendar year, you can still be Spanish tax resident under the second test in Art. 9.1(b) LIRPF — if your main economic activities or interests are based in Spain.
The "centre of vital interests" is assessed holistically, looking at where:
- Your primary business or professional activity is conducted
- Your investment portfolio is managed and decisions are made
- You spend the plurality of your time (even if not a majority)
- Your primary income is generated
- Your most significant financial relationships are located
A person who has a property in Spain, manages their investment portfolio from Spain, receives most of their income from Spanish sources, and spends 140 days per year in Spain — while technically below 183 days — is at significant risk of being assessed as resident under the vital interests test.
The Family Presumption: The Rule That Catches Most People
Article 9.1(b) LIRPF contains an irrebuttable presumption (in practice, a strong statutory presumption): where the taxpayer's non-legally-separated spouse and minor children habitually reside in Spain, the taxpayer is presumed to be tax resident in Spain — regardless of how many days the taxpayer personally spends in the country.
This presumption is rebuttable — the taxpayer can challenge it by producing a certificate of fiscal residence in another country — but the burden of proof falls on the taxpayer, not the AEAT. The AEAT simply needs to establish that your spouse and children are in Spain; you then need to prove you are resident elsewhere.
This provision catches many high-income individuals who attempt to maintain non-Spanish residency (for example, in Monaco or the UAE) while their family lives in Spain. The AEAT is well aware of this pattern and regularly challenges it — particularly where the taxpayer's travel patterns show extensive time in Spain during school terms and trips abroad during school holidays.
What Data Does the AEAT Have Access To?
The AEAT's ability to establish how many days you spent in Spain has increased dramatically over the past decade. Data sources available to the AEAT include:
- Passenger Name Record (PNR) data: Airline passenger data is shared with Spanish authorities under EU PNR Directive (2016/681). The AEAT can access records of flights to and from Spain showing your name, travel dates, and routing.
- Credit and debit card transactions: Spanish banks are required to report transactions to the AEAT. Card usage in Spain on specific dates is strong evidence of physical presence.
- Mobile phone data: With appropriate legal authority, the AEAT can request mobile network data showing which cell towers your phone connected to — and therefore where you were on specific dates.
- Customs and border agency data: Schengen internal border data from other EU member states' crossings, where recorded.
- Social media and digital footprints: Geolocation data in social media posts and check-ins — increasingly used by AEAT inspectors as corroborating evidence in residency disputes.
- CRS/FATCA financial data: Foreign account reporting shows where you were transacting financially.
The practical message is clear: if you are spending significant time in Spain, the AEAT has the tools to establish this. Day counting strategies that rely on the AEAT not being able to prove your presence are not reliable in 2026.
The 182-Day Safe Harbour: What It Does and Does Not Protect You From
Staying at or below 182 days in Spain in a given calendar year means you definitively cannot trigger the 183-day test in that year. However, 182 days is not an absolute guarantee of non-residency because:
- The vital interests test can still apply
- The family presumption can still apply
- Sporadic absences may be added back, particularly if you do not have formal residency elsewhere
For the 182-day approach to work robustly, it needs to be combined with formal tax residency in another country with a valid tax residency certificate, and genuine vital interests and family life in that other country.
| Scenario | Days in Spain | Family in Spain? | Tax Resident in Spain? |
|---|---|---|---|
| Business traveller | 60 | No | Very unlikely |
| Frequent visitor | 140 | No | Possible (vital interests) |
| Day counter (no foreign residency) | 182 | No | Risk (sporadic absences) |
| Day counter (foreign tax cert) | 182 | No | Unlikely |
| Family in Spain, owner abroad | 100 | Yes | Yes (family presumption) |
| Over 183 days, any situation | 184+ | Any | Yes |
Managing Your Days in Spain? Get a Residency Risk Assessment
Jacob Salama advises internationally mobile individuals on Spanish residency risk management, including the sporadic absence issue and how to document non-residency correctly.
Book a Consultation →Disclaimer: This article is for general informational purposes only and does not constitute legal or tax advice. Spanish tax law changes frequently and its application depends on individual circumstances. Always consult a qualified tax lawyer before making decisions. SALAMA LEGAL SLP — Colegiado nº 11.294 ICAMálaga.