Jacob Salama Tax Lawyer
Jacob SalamaInternational Tax Lawyer · Spain
Legal disclaimer: This article is for information only and does not constitute legal or tax advice. Spanish DGT consultations bind the Spanish tax authority only on identical facts (Art. 89 LGT). Always consult a qualified tax professional before acting.
Topic 1 · DGT 2023-2026

Counting the 183 Days

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.

By Jacob Salama · International Tax Lawyer · ICAMálaga 11.294 10 May 2026

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

1. Why this topic matters

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.

2. Key concepts

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.

3. Typical scenarios

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.

4. Decision matrix

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:

SituationRuleNotes
More than 183 physical days in Spain✅ Spanish residentDomestic law (Art. 9.1.a)
Less than 183 days but family nucleus in SpainPossible Spanish residenceFamily-nucleus presumption (Art. 9.1.b)
183+ days but with foreign tax-residence certificateApply DTT tie-breakerArticle 4(2) MC OECD
Day of arrival and day of departureEach counts as a full dayDGT criterion
Sporadic absences without foreign residence proofCount as Spanish daysArt. 9.1.a, paragraph 2
Transit through Spain (24h or less)May count as Spanish dayCase by case; documentary evidence

5. DGT doctrine — literal text and plain-English commentary

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.

📚 DGT binding ruling V0027-24 13/02/2024

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.

📚 DGT binding ruling V0047-26 13/01/2026

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.

Further DGT rulings on this topic (literal text)

📚 DGT binding ruling V0037-23 16/01/2023

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.

📚 DGT binding ruling V0352-23 20/02/2023

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.

📚 DGT binding ruling V0382-23 21/02/2023

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.

📚 DGT binding ruling V0567-23 10/03/2023

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.

📚 DGT binding ruling V0613-23 15/03/2023

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.

📚 DGT binding ruling V0698-23 23/03/2023

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.

6. Common mistakes

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

7. Strategic conclusion

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.

Disclaimer and limitations

⚠️ 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.

Does this topic apply to your situation?

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