Tax Strategy9 min readLast updated 13 June 2026

Spain's 183-Day Tax Residency Rule: How It Works, What Counts, and How to Prove Non-Residency

How Spain counts the 183 days, what sporadic absences mean, how to prove non-residency if AEAT challenges you, and when other tests override the day count entirely.

GM

By Gerard Martínez, Founder & Cross-Border Relocation Strategist

Business Development Manager - Employer of Record & Umbrella Company · Principles of International Bussiness Taxation by IBFD · Cross-border employment specialist

Spain counts the 183-day residency threshold across a single calendar year — January 1 to December 31. Any presence in Spain, even a partial day, counts toward the total. Sporadic absences abroad are treated as days in Spain unless the taxpayer can prove they held tax residency in another country during that period (Art. 9.1.a, Ley 35/2006 LIRPF).

The rule is one of three independent tests under Spanish domestic law. Meeting any one test — the day count, the economic interests test, or the family presence presumption — makes you a Spanish tax resident liable for IRPF on your worldwide income.

The 183-day test places the burden of proof on the taxpayer, not AEAT. If challenged, you need documentation — a foreign tax residency certificate and supporting evidence — not simply a count of flights.

How Spain Counts the 183 Days

The calendar year is the only window

Spain’s tax residency clock runs on a fixed calendar year. From 1 January to 31 December, AEAT counts the number of days you are physically present in Spanish territory. There is no rolling 12-month window and no reset mid-year.

Any part of a day counts as a full day. A traveller who arrives in Madrid at 11 pm on 15 January and departs at 7 am on 16 January has logged two days of presence. Digital nomads who structure their stays carefully need to count arrival and departure dates as full presence days, not half-days.

The threshold is 183 days in a calendar year. Cross it, and Spain’s domestic law treats you as a Spanish tax resident subject to IRPF on your worldwide income for the entire year.

What “sporadic absences” means — and why it matters

Art. 9.1.a of Ley 35/2006 (LIRPF) establishes that sporadic absences (“ausencias esporadicas”) are counted as days spent in Spain — unless the taxpayer proves tax residency in another country. The law does not define what makes an absence “sporadic,” and AEAT applies the term broadly.

In practice, any trip abroad that does not come with a foreign tax residency certificate is added back to your Spanish day count. A two-week visit to family in London, a month working from Bali, a ski trip to Switzerland — each counts toward your 183 days if you cannot prove you were a tax resident somewhere else during that period.

This creates a hard practical reality: the number of days you physically spent in Spain is not the same as the number of days Spain counts. Without certificates, those foreign trips inflate the Spanish total.

Quick tip

AEAT does not define ‘sporadic’ in statute. In practice, any short trip abroad without a foreign tax residency certificate is added back to your Spain day count.

Source: Ley 35/2006, Art. 9.1.a

The Other Two Residency Triggers You May Not Know About

The 183-day rule is the most-cited test. What many expats miss is that Art. 9.1 of Ley 35/2006 contains two further triggers — and meeting any one of the three is sufficient to make you a Spanish tax resident. You do not need to reach 183 days. For a fuller treatment of how the three tests interact across different scenarios, see the full Spain tax residency guide for expats.

The economic interests test (Art. 9.1.b)

If the nucleus of your economic activity or economic interests is based in Spain — directly or indirectly — AEAT may treat you as resident regardless of how many days you spent in the country. The statute uses the phrase “nucleo principal o la base de sus actividades o intereses economicos.”

This test catches two categories of person. First, those whose work is economically anchored in Spain: founders running a Spanish-incorporated company, freelancers whose main clients are Spanish, remote employees working under a Spanish employer. Second, those whose assets are concentrated in Spain: investors with significant Spanish property or equity portfolios, individuals whose primary bank relationship and investment holdings are in Spanish institutions.

The test operates on substance, not form. Routing contracts through a foreign entity while running the business from Madrid does not necessarily escape it.

The family presence presumption (Art. 9.1.b final clause)

If your non-separated spouse and dependent minor children (under 18) habitually reside in Spain, AEAT presumes you are also a Spanish tax resident. This is a rebuttable (iuris tantum) presumption — you can challenge it with counter-evidence, but the burden falls on you to rebut it.

This catches the common pattern of a person who travels extensively for work but whose family base is in Spain. Even if that person spends 140 days in Spain and 225 days elsewhere, the family presumption can still be invoked.

Quick tip

Your family can trigger residency even if you personally spend under 183 days in Spain. If your spouse and minor children live there full-time, AEAT may presume you are resident — the presumption is rebuttable but puts the burden on you.

Source: Ley 35/2006, Art. 9.1.b

One scope note: Art. 9 LIRPF applies in the common-regime territory. Basque Country (Bizkaia, Gipuzkoa, and Álava) and Navarre operate under separate foral tax systems with their own residency rules.

Source: Ley 35/2006, de 28 de noviembre, LIRPF — Art. 9.1 — Three criteria for Spanish tax residency: 183-day rule (Art. 9.1.a), principal economic interests in Spain (Art. 9.1.b), and family presence presumption (Art. 9.1.b final clause). Meeting any one triggers full IRPF residency.

How to Prove Non-Residency: The Burden of Proof and the Certificate

The 183-day rule does not work symmetrically. AEAT can invoke it against you; you cannot simply assert you did not reach the threshold. The burden of proof falls on the taxpayer, and the standard instrument for discharging it is a foreign tax residency certificate.

The 183-day rule does not reset automatically when you travel abroad. You must be able to prove where you were a tax resident — not just that you left Spain.

ApexTax — Spain Tax Residency Guide

What discharges the burden — the foreign tax residency certificate

A tax residency certificate issued by the competent authority of another country is the primary document AEAT accepts as evidence that sporadic absences should not be counted as Spanish presence. The certificate must relate to the calendar year under query — a certificate covering only part of the year may not fully discharge the burden for the whole year.

The certificate must come from the foreign country’s tax authority: HMRC for UK residents, the IRS (via Form 6166) for US persons, the Finanzamt for Germany, and equivalent bodies elsewhere. Spain has active double tax treaties with over 99 countries; where a bilateral treaty exists, the treaty’s tie-breaker provisions also become available alongside the certificate.

One note on tax havens: if you relocate to a jurisdiction on Spain’s official list of territorios de baja tributación, the certificate alone may not be sufficient. Spain treats such moves with additional scrutiny — the departed taxpayer may continue to be deemed Spanish resident for the year of departure and the following four calendar years, unless they can demonstrate genuine residence in a non-haven country.

Documentary evidence beyond the certificate

A foreign tax residency certificate is the starting point. In contested cases or where the certificate is incomplete, supporting documentation strengthens your position:

  • Lease agreements or property ownership records in the new country
  • Bank account statements and investment account records showing a foreign primary relationship
  • Utility bills and municipal registration equivalent
  • Employer contracts, invoices to foreign address, or business registration in the new country
  • Travel records: boarding passes, passport stamps, hotel receipts, digital calendar logs

For digital nomads who cycle between countries without a fixed base, building a contemporaneous evidence record — a travel log updated in real time — is particularly important.

Quick tip

A foreign tax residency certificate must cover the calendar year at issue — not just show you lived abroad at some point. Certificates covering only part of the year weaken your case for the whole year.

Source: Ley 35/2006, Art. 9.1.a

What AEAT actually flags

AEAT tends to focus on internal inconsistencies: a person claiming non-residency while maintaining an active empadronamiento in Spain; significant Spanish-sourced income from a person filing as non-resident; or Social Security contributions being made in Spain by someone who has submitted non-resident returns.

Inconsistency between what different databases show is what typically triggers a residency review.

Getting a foreign tax residency certificate

  1. Request from your local tax authority

    Contact HMRC (UK), the IRS via Form 6166 (US), the Finanzamt (Germany), or the equivalent body. Most issue certificates within 2–6 weeks of a written request.

  2. Verify the year and scope

    Confirm the certificate covers the full calendar year Spain is querying. If it only covers part of the year, request a supplementary certificate or a broader-dated one.

  3. Get an apostilled or notarised translation if required

    Spain may require a certified Spanish translation plus an Apostille under the Hague Convention for non-Spanish documents. Your issuing authority or a certified translator can assist.

  4. Submit via AEAT’s electronic registry

    If responding to an AEAT query (a requerimiento), submit through the Sede Electrónica using your digital certificate, Cl@ve PIN, or a representative acting under a power of attorney.

  5. Retain all supporting evidence

    Keep travel records, tenancy agreements, and bank statements from the relevant year. AEAT may request corroborating evidence alongside the certificate.

The OECD Tie-Breaker: When You Are Resident in Two Countries at Once

When another country also claims you as tax resident under its own domestic law and Spain has a bilateral double tax treaty with that country, the treaty takes over the dual-residency analysis. The three domestic tests in Art. 9 LIRPF are Spain’s unilateral rules; the treaty is the second layer.

Spain has active tax treaties with over 99 countries. The United Kingdom (in force since 2014), the United States (in force since 1990), Germany, Switzerland, and the Netherlands are all covered.

Article 4.2 of the OECD Model Tax Convention sets out the standard tie-breaker cascade for individuals:

  1. Permanent home — the country where you maintain a permanent home takes priority
  2. Centre of vital interests — where your personal and economic relations are closer
  3. Habitual abode — where you normally reside
  4. Nationality — citizenship of one of the countries
  5. Mutual agreement — the two tax authorities negotiate directly

The cascade works sequentially. A clear result at step one ends the analysis; you move to step two only if step one is inconclusive.

Quick tip

The OECD tie-breaker only applies if both countries have claimed you as tax resident under their domestic rules. It does not replace the domestic 183-day test — it resolves the conflict that arises after domestic law has been applied.

Source: OECD Model Tax Convention, Art. 4.2

One important exception: US citizens. The US-Spain double tax treaty (in force since 1990) contains a Saving Clause under which the United States reserves the right to tax its own citizens as if the treaty did not exist. The tie-breaker may determine you are a Spanish resident for Spain-side purposes, but it does not extinguish the US’s right to tax its citizens on worldwide income. US citizens in Spain need to analyse both obligations simultaneously.

Frequently Asked Questions

How ApexTax Helps

ApexTax is a tax strategy consultancy specialising in Spain relocation. For clients approaching the 183-day threshold — or already past it and uncertain of their position — we model the residency situation before and after a move: reviewing day counts, mapping economic interests and family ties, and assessing where the burden of proof sits across each of the three Art. 9.1 tests.

Our role as a cross-border relocation strategist and single point of contact is to design the documentation strategy and coordinate the qualified professionals — tax advisors and gestores — who handle the formal filings and, where required, representations before AEAT. We do not file residency-related tax returns ourselves, nor do we represent clients before tax authorities; that work is carried out by the independent qualified professionals we select and oversee.

If you are planning a move to or from Spain and the residency trigger is a live question, a strategy session is the right starting point.

Q&A

Frequently asked questions

Ready to move forward?

Let's design your Spain move.

Strategic guidance for your specific case — a 15-minute call to assess fit, or a full diagnostic if you're ready.