Spanish Tax Residency Rules: The Complete 2026 Guide

Understand how Spain determines tax residency: the 183-day rule, center of vital interests, family presumption, and how it connects to the Beckham Law.
Knowing whether Spain considers you a tax resident is arguably the single most consequential fiscal question any expatriate will face. The answer determines whether you owe Spanish income tax on every euro you earn worldwide or only on income sourced within Spain. It also governs your eligibility for the Beckham Law, your obligation to declare foreign assets, and the double taxation treaties available to you. This guide walks through each criterion that Spanish law uses to establish residencia fiscal (tax residency), explains how days are actually counted, and highlights the misconceptions that trip up newcomers every year.
The Legal Foundation: Article 9 of Ley 35/2006
Spanish tax residency for individuals is governed by Artículo 9 de la Ley 35/2006, de 28 de noviembre, del Impuesto sobre la Renta de las Personas Físicas (LIRPF — the Personal Income Tax Law). The implementing regulation is Real Decreto 439/2007, de 30 de marzo, which provides additional procedural detail. Together, these texts establish three independent criteria: meeting any one of them is sufficient for Spain to classify you as a tax resident.
Artículo 9.1 de la Ley 35/2006 (LIRPF): "Se entenderá que el contribuyente tiene su residencia habitual en territorio español cuando se dé cualquiera de las siguientes circunstancias: a) Que permanezca más de 183 días, durante el año natural, en territorio español. Para determinar este período de permanencia en territorio español se computarán las ausencias esporádicas, salvo que el contribuyente acredite su residencia fiscal en otro país."
Translation: "A taxpayer shall be deemed habitually resident in Spanish territory when any of the following circumstances apply: (a) That the individual remains in Spanish territory for more than 183 days during the calendar year. To determine this period of stay in Spanish territory, sporadic absences shall be included, unless the taxpayer proves their tax residency in another country."
Criterion 1: The 183-Day Rule
The most commonly cited test is the physical-presence threshold. If you spend more than 183 days in Spain during a single calendar year (1 January to 31 December), you are a Spanish tax resident for that entire year. There is no pro-rata: residency is all-or-nothing for the full fiscal year.
How Days Are Counted
The counting rules contain several subtleties that catch expats off guard:
- Any part of a day counts as a full day. If your flight lands at 23:50 on 1 June, that counts as one day of presence in Spain.
- Days need not be consecutive. A patchwork of short trips spread across the year can push you past 183 days without you ever spending more than a few weeks at a stretch.
- Sporadic absences (ausencias esporádicas) are included. A weekend trip to Lisbon or a fortnight's holiday in the UK is still counted as time in Spain — unless you can demonstrate that you are tax resident in the country you travelled to.
- The calendar year resets on 1 January. Days in December and January of consecutive years are not combined; each year is assessed independently.
Rebutting Sporadic Absences
The inclusion of ausencias esporádicas is one of the most aggressive features of Article 9. In practice, if you spend 150 days physically on Spanish soil but took several short trips abroad, Spain will typically still count those trips toward the 183-day threshold unless you hold a certificado de residencia fiscal (tax residency certificate) from the other country proving you are tax resident there. A holiday in France does not meet this standard; you need an official document issued by the French tax authority.
Critical warning: Many expats assume that simply flying out of Spain before reaching 183 days guarantees non-resident status. This is incorrect. Spain counts sporadic absences toward the total, and the two additional criteria below can independently establish residency even if you spend fewer than 183 days on Spanish soil. Physical absence alone does not protect you.
Criterion 2: Centre of Economic Interests
Even if you spend fewer than 183 days in Spain, you will be considered tax resident if the núcleo principal o la base de sus actividades o intereses económicos (principal base of your activities or economic interests) is located in Spain, whether directly or indirectly.
The Spanish Tax Agency (AEAT) and the courts evaluate this criterion by looking at a broad range of economic connections, including:
- Employment or self-employment income — Where do you perform most of your work? Where is your employer or main client located?
- Business directorships — Do you sit on the board of, or manage, a Spanish company?
- Investments and assets — Is the bulk of your real estate, securities portfolio, or bank deposits in Spain?
- Income-producing property — Do you receive rental income from Spanish property that constitutes a substantial part of your overall income?
The test is qualitative, not purely quantitative. Spanish courts have held that a single very large investment in Spain — for example, being the majority shareholder of a Spanish company — can tip the balance even when the taxpayer has other economic ties elsewhere.
Practical Example
Consider a software consultant who lives in Portugal for 200 days a year but earns 75% of their income from contracts with Spanish companies, holds directorships in two Madrid-based firms, and keeps their primary investment portfolio with a Spanish bank. Despite never exceeding 183 days, Spain could assert residency on the basis of their economic centre.
Criterion 3: The Family Presumption
Article 9.1(b) creates a rebuttable presumption that you are tax resident in Spain if your cónyuge no separado legalmente (non-legally-separated spouse) and hijos menores de edad (minor dependent children) habitually reside in Spain.
This presumption is powerful in tax audits. The AEAT does not need to prove where you spend your days or where your economic interests lie; the mere fact that your family is in Spain shifts the burden of proof to you. To rebut the presumption, you must demonstrate substantial personal and economic ties to another country — typically by producing a certificate of tax residency from the other state, evidence of a permanent home abroad, payslips or contracts showing employment exercised abroad, and utility bills, school enrolments, or medical registrations in the other country.
In practice, rebutting this presumption is difficult. Spanish tax tribunals and courts have consistently held that the standard of proof is high: you need a compelling, documented case that your real life is centred elsewhere despite your family's presence in Spain.
How the Three Criteria Interact
The three criteria are independent and alternative: Spain only needs one to apply. They do not form a hierarchy. This means the AEAT can pursue residency claims on multiple grounds simultaneously. If your 183-day argument fails, they can still invoke your economic centre. If that fails, the family presumption remains.
| Feature | Tax Resident (IRPF) | Non-Resident (IRNR) |
|---|---|---|
| Taxation scope | Worldwide income | Spanish-sourced income only |
| General income tax rates | Progressive: 19%–47% | Flat 24% (19% for EU/EEA residents) |
| Savings income rates | 19%–30% (progressive by bracket) | 19% on dividends and interest (EU); 24% otherwise |
| Capital gains on Spanish assets | 19%–30% | 19% (EU/EEA); 24% (others) |
| Foreign asset reporting (Modelo 720) | Mandatory above thresholds | Not required |
| Wealth tax (Impuesto sobre el Patrimonio) | On worldwide assets | On Spanish assets only |
| Tax return filing | Modelo 100 (annual Renta) | Modelo 210 (per income type) |
| Double taxation treaty benefits | Resident-state credits/exemptions | Source-state treaty rates only |
| Beckham Law eligibility | Optional (if qualifying) | Not applicable |
The Special Case of Tax Havens
Article 9.1 adds a reinforced rule for individuals who claim residency in a jurisdiction classified as a paraíso fiscal (tax haven) under Real Decreto 1080/1991. If you claim to be tax resident in one of these jurisdictions, Spain can require you to prove that you actually stayed there for more than 183 days in the calendar year. The burden of proof is on the taxpayer, and Spanish authorities apply heightened scrutiny.
Since 2023, the list of tax havens has been progressively updated, and certain jurisdictions that previously appeared on the list — such as Panama, the UAE, and several Caribbean nations — have been the subject of bilateral agreements. Always check the current version of the list before relying on a claim of residence in a low-tax jurisdiction.
Tie-Breaker Rules Under Double Taxation Treaties
When two countries both claim you as a tax resident, Spain's extensive network of double taxation treaties (more than 90 in force as of 2026) provides resolution through tie-breaker rules. Most of these treaties follow the OECD Model Tax Convention, specifically Article 4(2), which applies a sequential hierarchy:
Step 1: Permanent Home
You are deemed resident in the country where you have a permanent home available to you. A rented apartment, an owned house, or any dwelling maintained on a long-term basis counts. If you have a permanent home in both countries, the analysis moves to the next step.
Step 2: Centre of Vital Interests
If you have permanent homes in both countries, the treaty looks at where your personal and economic relations are closer. This is broader than Spain's domestic "centre of economic interests" test — it also considers personal ties such as family, social relationships, cultural activities, and political engagement.
Step 3: Habitual Abode
If the centre of vital interests cannot be determined, the treaty assigns residence to the country where you have a habitual abode — essentially, where you spend more of your time.
Step 4: Nationality
If the habitual abode test is inconclusive, you are deemed resident in the country of which you are a national.
Step 5: Mutual Agreement
If none of the above resolves the conflict — or if you are a national of both or neither country — the competent authorities of the two states must settle the matter by mutual agreement.
Important Supreme Court Ruling (2025)
In a significant ruling on 15 July 2025, the Spanish Supreme Court reaffirmed that Spanish administrative and judicial bodies are not competent to disregard a tax residency certificate issued by another treaty partner state. This means that if you hold a valid certificado de residencia fiscal from, say, the UK, Portugal, or France — issued specifically for treaty purposes — Spanish authorities cannot simply ignore it. They must either accept it or pursue resolution through the mutual agreement procedure.
Certificates of Tax Residency: How to Obtain and Use Them
A certificado de residencia fiscal is an official document issued by the AEAT confirming that you are tax resident in Spain (or, from the other country's tax authority, confirming residency there). These certificates serve two critical purposes: claiming treaty benefits and rebutting residency claims from other countries.
Obtaining a Spanish Certificate
You can request a certificate from the AEAT electronic sede through the following channels:
- Online — Via the AEAT electronic headquarters using a digital certificate, electronic DNI, or Cl@ve PIN. Navigate to "All procedures" > "Certificates" > "Census."
- In person — At the AEAT Administration or Delegation corresponding to your tax domicile, using Form 01. You must book an appointment (cita previa) in advance.
- By telephone — Through the AEAT helpline, though online is faster and recommended.
When applying, you must specify the country for which the certificate is intended. If Spain has a double taxation agreement with that country, the certificate will be issued in the applicable treaty format. If there is no agreement, select Sin Convenio (without treaty).
Processing Time and Validity
The AEAT typically issues certificates within 10 to 20 working days. Each certificate is valid for 12 months from the date of issue, provided there are no changes in circumstances. You can verify the authenticity of any AEAT certificate using the Secure Verification Code (CSV) printed on the document, via the AEAT verification portal.
Consequences of Becoming Tax Resident
Once Spain classifies you as a tax resident, the implications are far-reaching:
Worldwide Taxation Under IRPF
You must declare and pay Impuesto sobre la Renta de las Personas Físicas (IRPF — Personal Income Tax) on your global income. This includes salaries earned abroad, foreign rental income, overseas dividends, interest from foreign bank accounts, and capital gains on the sale of assets held outside Spain. The progressive rates for 2026 range from 19% (on income up to EUR 12,450) to 47% (on income above EUR 300,000), though autonomous communities may apply variations.
Foreign Asset Reporting (Modelo 720)
Tax residents who hold assets abroad worth more than EUR 50,000 in any of three categories (bank accounts, securities, or real estate) must file Modelo 720, an informational declaration. Failure to file, or filing with errors, previously carried draconian penalties, though the European Court of Justice struck down the most severe sanctions in its 2022 ruling (Case C-788/19). Penalties now must be proportionate, but the filing obligation remains.
Wealth Tax
Tax residents are subject to Impuesto sobre el Patrimonio (Wealth Tax) on their worldwide net assets, subject to a general exemption of EUR 700,000 and additional allowances for a primary residence (up to EUR 300,000). Rates and thresholds vary by autonomous community. Additionally, the Impuesto Temporal de Solidaridad de las Grandes Fortunas (Solidarity Tax on Large Fortunes), introduced in 2023, applies a complementary levy on net assets exceeding EUR 3 million.
Obligation to File an Annual Tax Return
Residents file Modelo 100 (the annual Renta declaration), typically between April and June for the preceding tax year. Non-residents, by contrast, file Modelo 210 on a transaction-by-transaction basis.
Common Misconceptions About the 183-Day Rule
Misconception 1: "If I leave before 183 days, I am safe"
As discussed above, the 183-day test is only one of three independent criteria. Your economic centre or family situation can make you tax resident regardless of how many days you spend in Spain.
Misconception 2: "Days are only counted when I enter through passport control"
Spain does not track entry stamps the way some countries do. The AEAT can use a wide range of evidence: credit card transactions, utility bills, mobile phone records, padrón registration, social media activity, and even school attendance records for your children. Passport stamps are just one data point among many.
Misconception 3: "Schengen 90/180 rules determine tax residency"
Immigration rules and tax rules are entirely separate legal regimes. You could be legally present under a Schengen visa for only 90 days and still be classified as a tax resident if your economic centre is in Spain. Conversely, you could hold a Spanish residence permit and spend 250 days abroad, potentially qualifying as non-resident for tax purposes (though you would need strong evidence).
Misconception 4: "My home country's tax residency takes priority"
There is no automatic hierarchy between countries' residency claims. If both countries claim you, the double taxation treaty's tie-breaker rules determine where you are resident for treaty purposes. Without a treaty, both countries may tax you as a resident, and you would need to rely on unilateral relief mechanisms.
How Tax Residency Interacts With the Beckham Law
The Beckham Law (formally, the Régimen Especial de Impatriados under Article 93 of Ley 35/2006) is available only to individuals who become tax residents of Spain. You must first meet the residency criteria described in this article. The Beckham Law does not exempt you from being a tax resident — it changes how your income is taxed once you are one.
Key interactions to understand:
- Triggering residency is a prerequisite. You must acquire Spanish tax residency through your relocation. If Spain does not consider you tax resident, you cannot elect the Beckham Law regime.
- Prior non-residency requirement. You must not have been a Spanish tax resident during the five fiscal years preceding your move. This is assessed using the same Article 9 criteria — so if Spain considered you resident (even without your knowledge) during any of those five years, you may be ineligible.
- Family members can benefit too. Under reforms introduced by Ley 28/2022 (the Startup Law), the spouse and children of the main applicant can also access the Beckham Law regime, provided they meet their own non-residency requirements.
- Spanish-source income only. Under the Beckham Law, you are taxed as a non-resident (despite being resident), meaning only Spanish-sourced income is subject to Spanish tax. This eliminates worldwide taxation — the most significant practical benefit.
- Opting in requires a formal application. You must file Modelo 149 with the AEAT within six months of registering with Social Security or starting your activity in Spain. The Beckham Law guide covers the application process in detail.
Steps to Determine and Document Your Tax Residency
If you are an expat arriving in or departing from Spain, here is a practical roadmap:
- Obtain your NIE number — Your Número de Identidad de Extranjero is required for all tax interactions in Spain.
- Register on the padrón — Municipal registration is often the first step that creates a paper trail of your presence in Spain.
- Track your days carefully — Maintain a log of entry and exit dates, supported by boarding passes, passport stamps, and flight records.
- Secure a tax residency certificate from your previous country — If you intend to argue non-residency in Spain, this document is your strongest defence.
- Consult a tax advisor before your move — The interaction between residency criteria, treaty rules, and special regimes such as the Beckham Law is complex enough that professional advice typically pays for itself.
- File your first Spanish tax return on time — Once resident, your declaración de la renta (Modelo 100) is typically due between April and June.
Frequently Asked Questions
Can I be tax resident in two countries at the same time?
Under domestic law, yes — both Spain and your home country may independently consider you a tax resident based on their own criteria. However, if a double taxation treaty exists between the two countries, the tie-breaker rules in Article 4 of the treaty will assign you to one country for treaty purposes. You would then claim relief in the other country (typically through a tax credit or exemption for income already taxed in your country of residence under the treaty). If no treaty exists, you may face genuine double taxation, mitigated only by unilateral foreign tax credits offered by one or both countries.
How does the AEAT know how many days I spent in Spain?
The AEAT has access to a wide range of data sources, including airline passenger records (shared under EU Passenger Name Record directives), border entry/exit records, Social Security registrations, padrón records, banking activity (especially under the Common Reporting Standard for automatic exchange of financial information), utility bills, and property registrations. In audits, the AEAT has also used mobile phone geolocation data, credit card statements, and even gym membership records. Since the introduction of Real Decreto 1155/2024, immigration and tax authorities coordinate more closely to verify residency during migration processes.
If I work remotely from Spain for a foreign employer, does that make me tax resident?
Physical presence in Spain counts toward the 183-day threshold regardless of where your employer is located. If you work remotely from Barcelona for a London-based company for more than 183 days, you are a Spanish tax resident and must declare that income in Spain. Additionally, your economic centre may shift to Spain if that is where you perform most of your work. The good news is that remote workers who become Spanish tax residents may qualify for the Beckham Law, which could significantly reduce their tax burden on Spanish-sourced employment income. If you are considering this route, see our Digital Nomad Visa guide for the full application process.
What happens if I become tax resident in Spain mid-year?
Unlike some countries, Spain does not split the tax year. Tax residency applies to the entire calendar year — if you meet any of the three criteria at any point during the year, you are resident for the full year from 1 January to 31 December. This means your worldwide income for the entire year becomes taxable in Spain, including income earned before your arrival. In practice, you would then use double taxation treaty provisions or foreign tax credits to avoid being taxed twice on the same income.
Can I lose my Spanish tax residency if I leave Spain?
Yes, but the transition requires careful planning. You must ensure that you no longer meet any of the three criteria: you must spend 183 days or fewer in Spain (accounting for sporadic absences), you must relocate your economic centre abroad, and your family must either accompany you or you must be able to rebut the family presumption. You should also obtain a tax residency certificate from your new country and formally update your tax domicile with the AEAT. Importantly, Spain applies exit-tax rules under Article 95 bis of Ley 35/2006 for residents who hold significant unrealised capital gains (above EUR 4 million or a 25% stake in entities worth more than EUR 1 million).
Tags
You Might Also Like

Modelo 100 Spain: How to File Your IRPF Tax Return
Step-by-step guide to filing Modelo 100 via Renta Web. Covers deadlines, deductions, the borrador process, and transitioning from the Beckham Law.

Flying Drones in Spain: Complete Guide to Regulations and Registration
AESA registration, A1/A3 and A2 certificates, flight zones, mandatory insurance, and penalties for drone pilots in Spain in 2026.

Modelo 720: Foreign Asset Declaration Guide (2026)
Complete guide to Spain's Modelo 720 foreign asset declaration: thresholds, deadlines, penalties after the 2022 CJEU ruling, and Beckham Law exemption.

NIE Number Application: Complete Step-by-Step Guide for 2026
Everything you need to know about applying for your NIE number in Spain, including required documents and processing times.