Spain Tax Residency Rules
Spain taxes residents on worldwide income. Residency is triggered after 184+ days in a calendar year — but two additional tests (economic interests and family ties) can make you resident with far fewer days. The Beckham Law offers a flat-rate regime for qualifying relocators.
| Residency threshold | 184 days (more than 183) in the calendar year |
| Counting window | Calendar year (January 1 – December 31) — strict reset each year |
| Rule type | Day-count + centre of economic interests + family ties (3 independent tests) |
| Complexity | Medium — Economic ties may apply |
| Tax year | Jan 1 – Dec 31 |
| Special regimes | Beckham Law (flat 24% on Spanish income, up to 6 years) · Digital nomad visa (modified Beckham) |
| Schengen area | Yes — Schengen 90/180 rule applies in parallel for non-EU nationals |
| Treaty network | Extensive — bilateral treaties with most major economies |
| Official source | Agencia Tributaria (AEAT) ↗ |
The three residency tests
Article 9 of Spain's IRPF law (Ley 35/2006) establishes three independent tests. Passing any one makes you a Spanish tax resident for the full year — they are alternatives, not cumulative.
Test 1 — Day count: more than 183 days. If you spend more than 183 days (184+) in Spanish territory during the calendar year, you are tax resident. The count is calendar-year based — January 1 to December 31 — and resets every year. Both arrival and departure days count as full days. The Canary Islands, Ceuta, and Melilla count as Spanish territory even though they have separate VAT regimes.
Sporadic absences. Spain does not automatically deduct days you spent abroad. Brief trips out of Spain count as Spanish presence unless you can prove tax residency in another country during those absences. Hacienda (Spain's tax authority) applies this doctrine defensively: the burden falls on you to document genuine foreign residency, not just foreign travel.
Test 2 — Centre of economic interests. If the principal nucleus or base of your economic activities or interests is located in Spain, you are tax resident regardless of days spent. This is the test most people don't know about. It covers: receiving most of your employment income from a Spanish entity, running a business with operations primarily in Spain, holding significant Spanish investments, or performing your main professional activity on Spanish soil. There is no formula — Hacienda applies a totality-of-circumstances analysis.
Test 3 — Family ties. If your spouse (not legally separated) and dependent minor children habitually reside in Spain, Spanish law presumes you are a tax resident. This is a rebuttable presumption — you can dispute it with evidence of genuine residency elsewhere — but the burden of proof shifts to you. Legally separated couples and parents of adult children are not affected by this test.
Day-counting mechanics
For the 183-day test, Spain applies these counting rules:
- Both arrival and departure days count as full days of presence. A Friday-to-Sunday trip counts as 3 days.
- Partial days are full days. A flight into Madrid at 11 PM on Monday counts as a full Monday.
- Airport transit in international zones (e.g. Terminal 4S at Barajas without clearing customs) does not count. Once you enter Spanish territory proper, the clock starts.
- Spanish territorial waters and ports: time on a ship docked in a Spanish port generally counts; time at sea does not.
The practical implication: a Spanish weekend trip costs 3 days even with fewer than 48 hours physically in Spain. Frequent travelers near the 183-day line need to track each trip precisely.
Common edge cases
A German freelance designer rents a Barcelona apartment but spends only 90 days there per year. Her clients are all abroad and her income hits a German bank account. On the day-count test: not resident. On economic interests: not resident (no Spanish income or clients). On family ties: not applicable (no spouse/children in Spain). Likely not a Spanish tax resident — but Hacienda could still open an inquiry if she registers on the padrón municipal or makes other locally-rooted decisions.
A UK software engineer works remotely for a UK company and visits his Spanish parents about once a month, accumulating 168 days per year — under the 184-day line. His spouse and dependent children are in the UK. On day count: not resident. On economic interests: not resident (UK employer, UK-paid). On family ties: parents and adult siblings don't trigger the test — only spouse and dependent minor children. He is not a Spanish tax resident. But if his day count edges over 183 in any one year, he flips with no soft transition.
A French executive works remotely for a Paris-based firm but his wife and two school-age children live in Madrid. He commutes to Paris weekly and spends roughly 120 days in Spain. On day count: not resident (under 184). On economic interests: borderline (employer is French; work performed partly in Spain). On family ties: spouse and dependent minor children habitually reside in Spain — the family presumption fires. Spain will presume he is a tax resident. He must actively rebut this with documented French tax residency to avoid double liability.
Calculate your days in Spain
Track your stays against the 183-day threshold and see exactly where you stand.
The Beckham Law
The Beckham Law (Régimen especial para trabajadores desplazados, Article 93 LIRPF) is Spain's concession to internationally mobile high earners. Qualifying individuals are taxed as Spanish tax residents but only on Spanish-sourced income, at a flat 24% rate on the first €600,000 of income, for up to 6 years.
Without the Beckham Law, Spanish tax residents pay progressive rates on worldwide income — up to 47% at the national level, with regional surtaxes adding a further 1–4% depending on the autonomous community.
You must: not have been a Spanish tax resident in the 5 years prior to moving; move to Spain as a result of an employment contract with a Spanish entity, a director appointment at a Spanish company in which you don't hold a majority stake, or (since 2023) as a digital nomad visa holder or qualifying entrepreneur. Apply to the AEAT within 6 months of starting Spanish social security registration.
Under Beckham, worldwide income is not taxed by Spain — only Spanish-source income. Foreign dividends, capital gains from assets abroad, and foreign rental income are outside the Spanish tax base during the regime years. The flat 24% rate applies up to €600,000; income above that is taxed at 47%. The regime lasts up to 6 years (the year of relocation plus 5 more).
Since 2023, holders of the Spanish digital nomad visa who become Spanish tax residents may opt for a modified Beckham-style regime on qualifying terms. This is a narrower version — not all digital nomad visa holders qualify. The standard visa does not itself grant the Beckham benefit; a separate election is required.
What to track
- Entry and exit dates — every arrival and departure in real time. Hacienda reconstructs presence from credit card transactions, mobile roaming logs, utility bills, and employer records. Your contemporaneous record is your primary defense.
- Spanish economic ties — any Spanish-source income, Spanish clients, Spanish bank accounts, or Spanish investments. These feed the economic interests analysis.
- Family location — if your spouse and minor children are in Spain, document your primary residency abroad actively, not retroactively.
- Schengen days (non-EU nationals) — tracked separately. The Schengen 90/180 rule has a different threshold, different window, and different consequences from the Spanish 183-day tax rule.
- Sporadic absence documentation — for any time spent outside Spain, keep evidence of foreign residency (foreign lease, foreign bank activity, foreign tax filings) to rebut Hacienda's sporadic absence doctrine.
Double tax treaty notes
Spain has bilateral tax treaties with most major economies, including the UK, US, Germany, France, Portugal, and most EU member states.
When both Spain and another country claim tax residency, treaty tie-breaker rules resolve it in order: permanent home, centre of vital interests, habitual abode, nationality. The treaty prevents double taxation but does not remove the obligation to file in both countries while the tie-breaker is determined.
The Spain–Portugal tie-breaker is particularly relevant for Iberian cross-border nomads: both countries' rules are aggressive, and dual-residency situations between them are increasingly common.
Frequently asked questions
What is the tax residency threshold in Spain?
More than 183 days — meaning 184 or more — in Spanish territory during the calendar year. This is the primary test. Two additional tests (economic interests and family ties) can also establish residency with fewer days.
Can Spain tax me as a resident if I spent fewer than 183 days there?
Yes. If your centre of economic interests is in Spain, or if your spouse and dependent minor children habitually reside in Spain, you are treated as a tax resident regardless of days spent. Either test alone is sufficient.
What is Spain's Beckham Law?
A special regime (Article 93 LIRPF) for new Spanish tax residents who relocate for qualifying employment. Eligible individuals pay 24% flat tax on Spanish-sourced income only (up to €600,000) for up to 6 years, instead of progressive rates on worldwide income. Requires no Spanish residency in the prior 5 years and application within 6 months of starting social security registration.
Does Spain count both arrival and departure days?
Yes. Both count as full days. A weekend trip from Friday to Sunday counts as 3 Spanish days.
What are sporadic absences?
Spain treats brief trips abroad as Spanish presence unless you prove you were tax resident in another country during those absences. Short trips don't automatically reset your day count — documented foreign residency is required to exclude those days.
Does property ownership in Spain make me a tax resident?
Not automatically. Property alone is not a trigger. It can contribute to the economic interests analysis if it generates income, or if Hacienda argues it constitutes your habitual residence. A vacation home rented out commercially is less vulnerable than one held empty for personal use.
What is Spain's digital nomad visa?
An immigration route introduced in 2023 for remote workers. Holders typically become Spanish tax residents from day one. A modified Beckham Law regime may be available to qualifying holders, but requires a separate election — the visa itself is not a tax concession.
Related guides and tools
Tracking Spain alongside other countries?
Elcano monitors your Spanish day count, the Schengen 90/180 rule, and every other jurisdiction you track — all in one place. Free, no signup required.
Open ElcanoNeed a compliance report for a tax advisor? Learn about the Advisor PDF →
This page is for informational purposes only and does not constitute tax or legal advice. Spanish tax residency rules are applied by Hacienda (AEAT) on a facts-and-circumstances basis. Verify rules with official sources and consult a qualified asesor fiscal or international tax advisor for your specific situation.