Residency

Spain — The 183-Day Rule

Spain's core physical-presence test for tax residency asks whether an individual spends more than 183 days during the calendar (natural) year in Spanish territory. The mechanics of how those days are counted — including sporadic absences and presumed days between two confirmed presences — are more expansive than a simple headcount of nights spent in the country, and are a frequent source of costly miscounting by newcomers. This document is the narrow, mechanical companion to tax-residency.md, which covers Spain's other residency tests (economic interests, family presumption) at a higher level.

Agencia Tributaria (Agencia Estatal de Administración Tributaria) · Last verified 2026-07-11

Why This Matters

Getting the day count wrong in either direction has real financial consequences: undercounting can mean unknowingly triggering full Spanish tax residency and worldwide-income taxation, while overcounting can mean incorrectly filing as a non-resident and facing penalties and back taxes later. Because sporadic absences generally count IN FAVOR of Spanish residency rather than against it, casual assumptions like "I was only physically in Spain 170 nights so I'm safe" are often wrong.

Key Facts

  • The statutory threshold is "más de 183 días" — MORE than 183 days — during the calendar year in Spanish territory; 183 days exactly is not sufficient to trigger residency under this test, 184+ is.
  • The count runs by calendar (natural) year, 1 January to 31 December, not a rolling 12-month period.
  • **Certified presence:** any single day for which there is reliable evidence the person was physically in Spain counts as a full day of presence — there is no minimum-hours or overnight-stay requirement for that day to count.
  • **Presumed days:** days that fall between two independently certified/proven days of presence in Spain are presumed to also count as days of presence, unless the taxpayer produces evidence showing they were actually outside Spain during that gap.
  • **Sporadic absences ("ausencias esporádicas"):** short trips abroad are added back into the Spain presence count rather than subtracted from it — i.e., a temporary absence from Spain does not, by itself, break the residency count — UNLESS the taxpayer can prove tax residency in another country for that period. This is the single most counter-intuitive part of the rule: leaving Spain for a vacation or business trip does not automatically reduce the day count against the 183-day threshold.
  • Once a taxpayer has already accumulated 184 days of Spain presence in the year, further sporadic absences become largely irrelevant to the test, since the threshold is already met.
  • **Tax havens:** for stays connected to jurisdictions Spain classifies as tax havens ("paraísos fiscales"), the tax authority may specifically demand proof of actual, documented presence for the 183 days claimed abroad — a higher evidentiary bar than the general rule.
  • **Excluded stays:** temporary stays in Spain that result from cultural or humanitarian collaboration agreements with Spanish public administrations are excluded from the day count.
  • The determination of "permanence" is explicitly stated by the tax authority to be an objective matter — it does not depend on the taxpayer's subjective intent or stated future plans about where they intend to live.
  • **Interaction with double tax treaties (Convenios de Doble Imposición, CDI):** if applying Spain's domestic 183-day (and other) tests results in a person being considered tax resident in Spain AND another country simultaneously claims them as resident under its own domestic law, the applicable bilateral tax treaty's tie-breaker rules (typically following the OECD Model, Article 4.2) resolve the conflict in sequence: (1) where the person has a permanent home available; if available in both, (2) the state with which the person's personal and economic relations are closer ("centro de intereses vitales" / center of vital interests); if that is not determinative, (3) the state of habitual abode; and if still unresolved, (4) nationality, with mutual agreement between the two tax authorities as a last resort. This treaty tie-break can override the outcome of Spain's purely domestic day-count test in genuine dual-residency situations, but only where a treaty exists and applies.

Common Mistakes

  • Treating vacations or short trips out of Spain as days that reduce the Spain day-count — under the sporadic-absences rule they typically still count toward Spanish presence unless the taxpayer can prove tax residency elsewhere for that period.
  • Assuming residency is decided by counting "overnights" or a fixed hours-per-day rule — a single verified day of presence counts in full regardless of hours spent that day.
  • Ignoring the "presumed days" concept — gaps between two proven days of Spanish presence are assumed to be spent in Spain unless the taxpayer has specific evidence (boarding passes, entry/exit stamps, foreign employment records) to the contrary.
  • Relying solely on the 183-day count while ignoring that Spain's OTHER residency tests (center of economic interests, family presumption — see tax-residency.md) can independently trigger residency even when the day count stays under 183.
  • Assuming a double tax treaty automatically overrides Spain's domestic day count — the treaty tie-break only applies where a genuine dual-residency conflict exists under both countries' domestic laws and a treaty is in force between Spain and that specific country.
  • Not keeping contemporaneous travel evidence (flight tickets, boarding passes, stamps, foreign work records) — the burden of proving days spent outside Spain generally falls on the taxpayer, not the tax authority.

Related Topics

taxesresidencyrecent-changes
← Back to Spain guides