Residency

Spain — Tax Residency Rules

Spanish tax law (Ley del IRPF) treats a person as having their "residencia habitual" — and therefore being a full Spanish tax resident — if they meet any ONE of three independent tests: physical presence of more than 183 days in the calendar year, having their main center of economic interests in Spain, or a rebuttable presumption based on a resident spouse and minor children. Meeting any single test is enough to trigger Spanish tax residency; the tests are not cumulative requirements. This document covers all three tests at a level appropriate for a newcomer; the day-counting mechanics of the 183-day test specifically are covered in more depth in the companion 183-day-rule.md document.

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

Why This Matters

Becoming a Spanish tax resident is a major financial event: it generally means Spain taxes the person's WORLDWIDE income (employment, investments, rental, pensions, capital gains — wherever earned), not just Spanish-source income, and usually also triggers annual wealth-tax and foreign-asset reporting obligations. A newcomer can trip one of these tests without realizing it — for example, by leaving a spouse and children in Spain while traveling for work — so understanding all three tests, not just the day count, is essential before assuming non-resident status.

Key Facts

  • **Test 1 — the 183-day rule (physical presence):** a person is a Spanish tax resident if they spend more than 183 days during the calendar (natural) year in Spanish territory. Sporadic absences count toward this total unless the taxpayer proves tax residency in another country. See the companion 183-day-rule.md document for full day-counting mechanics.
  • **Test 2 — center of economic interests:** independently of day count, a person is a Spanish tax resident if the "núcleo principal" or base of their economic activities or interests is located in Spain, directly or indirectly — for example, the bulk of their business activity, investments, or professional base is in Spain even if they are physically present fewer than 183 days.
  • **Test 3 — family presumption:** Spanish tax residency is presumed, unless proven otherwise, when the taxpayer's non-separated spouse and dependent minor children habitually reside in Spain. This is a rebuttable presumption — the taxpayer can present evidence to overcome it (e.g., proof they and their family unit are actually tax resident elsewhere), but the burden of proof falls on the taxpayer once the presumption is triggered.
  • For countries or territories classified by Spain as tax havens ("paraísos fiscales"), the tax administration may specifically require proof of 183 days of actual, provable presence — a stricter evidentiary standard than the general sporadic-absences rule.
  • Tax residency in Spain is determined for the full calendar year — Spanish law generally does not split a tax year into resident/non-resident periods (unlike some other jurisdictions' "split-year" treatment), so meeting any test at any point that year is generally understood to make the whole year a resident year.
  • Consequence of becoming a tax resident: Spain taxes worldwide income under the IRPF (Impuesto sobre la Renta de las Personas Físicas), the personal income tax, using progressive national-plus-regional rates, and separately imposes obligations such as the annual wealth tax (Impuesto sobre el Patrimonio) and the informational return on assets held abroad (Modelo 720) above certain thresholds.
  • Non-residents, by contrast, are taxed only on Spanish-source income (Impuesto sobre la Renta de no Residentes, IRNR), generally at flat rates and without the personal/family allowances available to residents.
  • Certain qualifying newcomers (including some employer-relocated employees, entrepreneurs, and — since a 1 January 2023 reform — remote workers under the Digital Nomad Visa) may elect the special impatriate regime under Article 93 of the Ley del IRPF (the "Beckham Law"), which lets a person who is legally a Spanish tax resident opt to be taxed similarly to a non-resident (broadly, Spanish-source employment income only, at a flat rate up to a threshold) for up to 6 tax years; this is an election made via Modelo 149, not a change to the underlying residency tests themselves. See visa-types.md for the Digital Nomad Visa angle on this regime.
  • A double tax treaty (Convenio de Doble Imposición, CDI) between Spain and another country can override a purely domestic-law resident/non-resident conflict if both countries claim the person as resident under their own domestic rules — see the tie-breaker discussion in the 183-day-rule.md companion document.

Common Mistakes

  • Assuming that staying under 183 days automatically means "not a Spanish tax resident" — the center-of-economic-interests and family-presumption tests can independently make someone a tax resident even with fewer than 183 days of physical presence.
  • Leaving a spouse and minor children living in Spain while the taxpayer travels frequently, without realizing this alone creates a rebuttable presumption of the taxpayer's own Spanish tax residency.
  • Believing residency status can be split within a calendar year the way some other countries allow — Spanish domestic law generally treats the full calendar year as either resident or non-resident.
  • Confusing "Beckham Law" eligibility with a fourth residency test — it is a tax-rate election available only after someone is already legally a Spanish tax resident and meets separate eligibility conditions; it does not change whether someone is a tax resident in the first place.

Related Topics

taxesresidencyrecent-changesofficial-resources
← Back to Spain guides