English-language tax analysis in Spain of DGT binding rulings 2023-2026 on Counting the 183 Days. Each cited ruling links to the original Spanish text on the DGT consultation database. The 183-day permanent-presence test (Article 9.1.a LIRPF) is the most common residency trigger. Sporadic absences count toward Spanish residency unless the taxpayer can prove effective tax residence elsewhere.
The 183-day rule sounds like simple arithmetic. The DGT and AEAT have made it anything but: sporadic absences count against you unless you can show effective tax residence elsewhere, which in turn requires a foreign residency certificate, which most clients do not have.
Topics » Tax Residency and Dual-Residence Conflicts » Counting the 183 Days
The 183-day rule is the most-cited residency test in Spanish international taxation. Article 9.1.a) LIRPF declares Spanish tax resident any individual who stays in Spanish territory for more than 183 days during the calendar year, and the second paragraph adds that "sporadic absences are computed in calculating the days of stay, unless the taxpayer accredits tax residence in another country". Two subtleties hide behind this apparently simple rule and they account for most of the 94 DGT rulings 2023-2026 on the topic.
First, the rule of "sporadic absences" is asymmetric: short trips abroad still count as days in Spain unless the taxpayer can show tax residence elsewhere. The famous Spanish Supreme Court judgments of 25 April 2023 (rec. 5071/2021) and 28 November 2017 (rec. 815/2017) clarified that a tax-residence certificate from another State under the relevant tax treaty shifts the analysis to the tie-breaker rule of Article 4(2) of the model convention; without such certificate, the AEAT counts every day of physical absence as a Spanish day.
Second, the day count is physical, not contractual. The DGT looks at boarding cards, hotel records, mobile-phone metadata, credit card transactions, lease agreements, school registrations and visa stamps. International executives moving between Madrid, London and New York routinely underestimate the number of partial days that count as Spanish days (arrivals, departures, weekend stays).
The 94 DGT rulings 2023-2026 of this subtopic resolve the typical international scenarios: split-year situations, transit days, days during medical or family emergencies, the impact of remote work, the effect of holding a Spanish lease while physically absent, and the relevance of the family-nucleus rule in dual-residence claims.
Before turning to doctrine and worked examples, fix the technical terms that recur throughout the topic. Each has a precise meaning in Spanish tax law and EU jurisprudence; mastering the differences between them is the first line of defence vis-à-vis the AEAT:
Calendar-year period
The 183-day count is referred to the calendar year, not to a 12-month rolling window. Each year the count restarts.
Sporadic absences
Short trips abroad without proof of tax residence in another State count as Spanish days under Article 9.1.a) LIRPF, paragraph 2.
Day-presence test
Physical presence is what counts: arrival and departure days each count as one full day under the prevailing DGT criterion.
Tax-residence certificate from another State
Under a DTT, this certificate shifts the analysis to the tie-breaker. Without it, the AEAT defaults to the 183-day rule.
Burden of proof
The taxpayer must prove residence elsewhere. Mere physical absence is not enough; documentary evidence is required.
Theory makes more sense alongside real-world fact patterns. The cases below — built from DGT doctrine — show where the system grants relief and where it denies it:
📌 Case 1: International executive with 170 days in Spain + sporadic trips abroad
Without a foreign tax-residence certificate, the AEAT applies the rule of sporadic absences and adds those days to the Spanish count. Probable Spanish residence.
📌 Case 2: US citizen with 195 days in Spain claiming US residence under the treaty
If the taxpayer obtains a US tax-residence certificate (Form 6166 / IRS Letter), the analysis moves to Article 4(2) of the US-Spain DTT and the tie-breaker (permanent home, centre of vital interests, habitual abode, nationality).
📌 Case 3: UK national splitting time 50/50 between Spain and the UK
Without a clear primary residence, both countries may claim residence. Analysis under the tie-breaker (UK-Spain DTT Article 4) and the UK's own split-year provisions.
📌 Case 4: Digital nomad with 200 days in Spain on a remote-work visa
Spanish residence under the 183-day test. The Beckham regime (Article 93 LIRPF, post-Law 28/2022) may apply if other conditions are met.
📐 Worked example — the 183-day rule with sporadic absences
Mark, a UK citizen, lives in Madrid from January to June 2025 (181 days) and travels for work in July (15 days in Italy), August (10 days in the UK with family), September (5 days in Switzerland) and December (4 days in France). He has no UK tax-residence certificate.
A visual summary of the doctrine. This table does not replace case-by-case analysis, but it allows the reader to identify quickly the general rule applicable to each situation:
| Situation | Rule | Notes |
|---|---|---|
| More than 183 physical days in Spain | ✅ Spanish resident | Domestic law (Art. 9.1.a) |
| Less than 183 days but family nucleus in Spain | Possible Spanish residence | Family-nucleus presumption (Art. 9.1.b) |
| 183+ days but with foreign tax-residence certificate | Apply DTT tie-breaker | Article 4(2) MC OECD |
| Day of arrival and day of departure | Each counts as a full day | DGT criterion |
| Sporadic absences without foreign residence proof | Count as Spanish days | Art. 9.1.a, paragraph 2 |
| Transit through Spain (24h or less) | May count as Spanish day | Case by case; documentary evidence |
The cards below summarise representative DGT binding rulings on this topic in English from a practical tax perspective in Spain. Each card links to the original Spanish text of the consulta on the DGT consultation database.
A taxpayer writes to the DGT as it affects shareholdings.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT consistently treats the 183-day test as a calendar-year, day-by-day computation. Importantly, sporadic absences from Spain count toward Spanish residency unless the taxpayer demonstrates effective tax residence in another country — typically by producing a foreign residency certificate covering the relevant year. The reverse-burden of proof means that an individual present in Spain for an extended block plus subsequent travel may still be deemed Spanish-resident if no foreign residency anchor is available. Day-of-arrival and day-of-departure counting follow inclusive conventions.
A taxpayer writes to the DGT.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT consistently treats the 183-day test as a calendar-year, day-by-day computation. Importantly, sporadic absences from Spain count toward Spanish residency unless the taxpayer demonstrates effective tax residence in another country — typically by producing a foreign residency certificate covering the relevant year. The reverse-burden of proof means that an individual present in Spain for an extended block plus subsequent travel may still be deemed Spanish-resident if no foreign residency anchor is available. Day-of-arrival and day-of-departure counting follow inclusive conventions.
A Dutch national who has settled in the Netherlands writes to the DGT.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT consistently treats the 183-day test as a calendar-year, day-by-day computation. Importantly, sporadic absences from Spain count toward Spanish residency unless the taxpayer demonstrates effective tax residence in another country — typically by producing a foreign residency certificate covering the relevant year. The reverse-burden of proof means that an individual present in Spain for an extended block plus subsequent travel may still be deemed Spanish-resident if no foreign residency anchor is available. Day-of-arrival and day-of-departure counting follow inclusive conventions.
A Spanish national who has settled in the United Kingdom writes to the DGT.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT consistently treats the 183-day test as a calendar-year, day-by-day computation. Importantly, sporadic absences from Spain count toward Spanish residency unless the taxpayer demonstrates effective tax residence in another country — typically by producing a foreign residency certificate covering the relevant year. The reverse-burden of proof means that an individual present in Spain for an extended block plus subsequent travel may still be deemed Spanish-resident if no foreign residency anchor is available. Day-of-arrival and day-of-departure counting follow inclusive conventions.
A Spanish national living in the United Kingdom consults the DGT.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT consistently treats the 183-day test as a calendar-year, day-by-day computation. Importantly, sporadic absences from Spain count toward Spanish residency unless the taxpayer demonstrates effective tax residence in another country — typically by producing a foreign residency certificate covering the relevant year. The reverse-burden of proof means that an individual present in Spain for an extended block plus subsequent travel may still be deemed Spanish-resident if no foreign residency anchor is available. Day-of-arrival and day-of-departure counting follow inclusive conventions.
A German national living in Belgium consults the DGT.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT consistently treats the 183-day test as a calendar-year, day-by-day computation. Importantly, sporadic absences from Spain count toward Spanish residency unless the taxpayer demonstrates effective tax residence in another country — typically by producing a foreign residency certificate covering the relevant year. The reverse-burden of proof means that an individual present in Spain for an extended block plus subsequent travel may still be deemed Spanish-resident if no foreign residency anchor is available. Day-of-arrival and day-of-departure counting follow inclusive conventions.
A taxpayer with a Belgium connection writes to the DGT.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT consistently treats the 183-day test as a calendar-year, day-by-day computation. Importantly, sporadic absences from Spain count toward Spanish residency unless the taxpayer demonstrates effective tax residence in another country — typically by producing a foreign residency certificate covering the relevant year. The reverse-burden of proof means that an individual present in Spain for an extended block plus subsequent travel may still be deemed Spanish-resident if no foreign residency anchor is available. Day-of-arrival and day-of-departure counting follow inclusive conventions.
A Spanish national living in the United States consults the DGT on whether 183-day rule reach their situation.
→ View original (Spanish) on the DGT consultation database
📖 DGT doctrine in plain English
DGT consistently treats the 183-day test as a calendar-year, day-by-day computation. Importantly, sporadic absences from Spain count toward Spanish residency unless the taxpayer demonstrates effective tax residence in another country — typically by producing a foreign residency certificate covering the relevant year. The reverse-burden of proof means that an individual present in Spain for an extended block plus subsequent travel may still be deemed Spanish-resident if no foreign residency anchor is available. Day-of-arrival and day-of-departure counting follow inclusive conventions.
The topic comprises a total of 94 DGT binding rulings 2023-2026. The above are the most representative; the rest follows the same line and can be retrieved from the official DGT search at Petete.
The errors below are those we most often see in practice. Most are avoided with up-front planning and contemporaneous documentation:
❌ Counting only nights spent in Spain, not partial days
Consequence: Underestimating Spanish day count; risk of regularisation if AEAT applies the day-presence test
How to avoid it: Count both arrival and departure days as Spanish days
❌ Assuming sporadic absences automatically reduce the count
Consequence: Wrong residence position; AEAT will add those days back
How to avoid it: Obtain foreign tax-residence certificate to invoke the DTT
❌ Confusing 'tax residence certificate' with proof of residence permit
Consequence: AEAT rejects the document for treaty purposes
How to avoid it: Use the official certificate issued for tax purposes (e.g., IRS Form 6166, HMRC RES1)
❌ Using a calendar-year prorated approach (e.g., 50% of 183 = 91 days)
Consequence: Doctrinally incorrect; Article 9.1.a is binary
How to avoid it: The 183-day test is full-year; partial-year analysis comes only under split-year provisions of certain treaties
❌ Failing to keep evidence of foreign days (boarding passes, leases, etc.)
Consequence: AEAT presumes Spanish residence
How to avoid it: Maintain a contemporaneous travel log with receipts and documentary backup
The 183-day test looks simple but is not. The taxpayer who plans cross-border stays without rigorous day-counting often discovers, on audit, that sporadic absences have been added back and the 183 threshold has been crossed. The recommended discipline is threefold: (1) keep a contemporaneous travel log with documentary evidence (boarding passes, leases, hotel receipts, credit-card statements); (2) if claiming foreign residence, obtain the foreign tax-residence certificate before filing the Spanish return; (3) for borderline situations, plan the calendar year proactively — sometimes 5 days in either direction can change the outcome by tens of thousands of euros in Spanish tax.
For high-income executives moving between countries, the marginal cost of professional residence planning is small compared to the downside of an AEAT regularisation that includes interest and possible penalties.
From the practice
Notes from real cases · Jacob Salama, ICAMálaga 11.294
In real cases the day-count is rarely the decisive number — what matters is what you do with the days. A client present 180 days but with a Spanish home, Spanish bank, Spanish car and Spanish school for the kids will be assessed as resident even if the day count is technically below 183, via the centre-of-interests or family-presumption routes.
Common pitfall: Boarding-pass screenshots and credit-card statements are not enough. AEAT often demands hotel receipts, immigration entry stamps and corroborating contemporaneous evidence — particularly for short trips.
Run the residency analysis annually as part of your tax routine, not only when AEAT writes. By the time the brown envelope arrives the relevant evidence may already be six years stale.
⚠️ Tax disclaimer: This content reflects Spanish DGT doctrine and Spanish/EU jurisprudence in force at the date of publication. DGT binding rulings only bind the Spanish tax authority on facts substantially identical to those of the consultation (Article 89 LGT); their application by analogy requires care. Treaty positions, the MLI, EU case-law and OECD MC Commentary may have evolved. Before filing any return, refund claim, appeal or position paper with the AEAT, please obtain individualised advice from a Spanish-licensed tax lawyer or registered tax adviser. SALAMA LEGAL SLP does not assume responsibility for decisions taken solely on the basis of this content.
Cross-border tax facts in Spain are fact-sensitive. We help US, UK, German, Israeli and other international clients structure operations, file returns and respond to AEAT enquiries.
Book a consultation← Back to topics · ← Tax Residency and Dual-Residence Conflicts