Jacob Salama Tax Lawyer
Jacob SalamaInternational Tax Lawyer · Spain
Tax Residency · 183 Days

Spain's 183-Day Rule: What It Means and How the AEAT Counts Days

📅 May 2026 ✍️ Jacob Salama 🕐 7 min read

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:

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:

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:

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:

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:

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.

Frequently Asked Questions

Yes. The AEAT counts both the day of arrival in Spain and the day of departure from Spain as full Spanish days. If you fly into Spain on Monday and leave on Friday, that trip counts as five days (Monday through Friday inclusive), not three or four. This is consistent administrative practice confirmed by the DGT in multiple binding rulings and is important for anyone who is counting days carefully near the threshold.
Almost certainly yes, unless you can produce a tax residency certificate from another country. Under Art. 9.1(b) LIRPF, where your non-legally-separated spouse and minor children habitually reside in Spain, there is a strong statutory presumption that you are also tax resident in Spain. The AEAT applies this presumption routinely. Rebutting it requires demonstrating formal tax residency in another country — typically a certificate of fiscal residence from that country's tax authority showing you as a genuine tax resident there.
Yes, increasingly so. The AEAT has access to airline passenger name records (PNR data) shared under the EU PNR Directive, credit and debit card transaction data from Spanish banks, mobile phone location data (with appropriate legal authorisation), social media geolocation evidence, and customs and border crossing records. AEAT inspectors in international cases routinely request travel records and bank statements as the first step in establishing physical presence. Attempting to under-count your Spanish days in a residency dispute is extremely risky given the volume of digital evidence available to the AEAT.
If you genuinely and accidentally exceed 183 days — for example due to illness preventing travel, or an unexpected project extension — you are technically Spanish tax resident for that calendar year and owe IRPF on your worldwide income. Your options are: file a Spanish IRPF return and claim foreign tax credits for tax paid in your country of prior residence; rely on a double tax treaty to limit Spain's taxing rights; or (if the excess was marginal and you have robust ties to another country) make the treaty-residence argument based on vital interests. None of these are simple — which is why monitoring day counts proactively is important.
Not through the 183-day rule — exceeding 183 days triggers the statutory residency test. However, the Beckham Law offers an alternative: qualifying individuals who move to Spain are treated as non-residents for IRPF purposes for up to six years despite being physically present in Spain year-round. This means they are fully present in Spain, but taxed at a flat 24% on Spanish employment income with foreign income generally exempt — rather than at progressive IRPF rates on worldwide income. The Beckham Law is the formal mechanism for long-term presence in Spain without the full IRPF burden.
Ask a question