Business glossary
Tax Residency in Spain
Tax residency in Spain determines whether an individual or company is subject to Spanish taxes on worldwide income and assets or only on Spanish-source income. For individuals, residence is established primarily by spending more than 183 days per year in Spain or having the main nucleus of economic interests located there. Companies are tax-resident if incorporated under Spanish law, have their registered office in Spain, or have their effective management centre in Spain.
TaxWhat Is Tax Residency in Spain?
Tax residency determines the scope of your tax obligations in Spain. A Spanish tax resident is taxed on worldwide income and assets; a non-resident is taxed only on income and assets sourced in Spain. The difference can be substantial: IRPF (personal income tax) applies progressive rates up to 47% on worldwide income, while IRNR (non-resident income tax) typically applies a flat 19% or 24% rate on Spanish-source income only.
Understanding tax residency is therefore one of the first steps for any individual relocating to Spain, any entrepreneur establishing operations here, or any foreign company considering whether to incorporate locally.
How It Works in Spain
Residency Tests for Individuals
Spanish domestic law (Article 9 of the IRPF Law, Ley 35/2006) establishes that an individual is a tax resident in Spain if any one of the following criteria is met:
1. The 183-day rule An individual who spends more than 183 days in Spain during a calendar year (1 January to 31 December) is tax-resident. Days are counted in aggregate — they do not need to be consecutive. Sporadic absences are included in the Spanish count unless the taxpayer proves habitual residence in another country by presenting a tax residence certificate issued by the foreign tax authority.
2. Centre of economic interests An individual whose main nucleus or base of economic interests is in Spain is tax-resident, even if they spend fewer than 183 days in the country. This test looks at where the majority of investment income, business activities, and assets are located.
3. Presumption based on family An individual is presumed to be a Spanish tax resident if their spouse (not legally separated) and minor dependent children habitually reside in Spain. This is a rebuttable presumption — the taxpayer can present evidence to the contrary.
The Tax Year
Spain’s tax year runs from 1 January to 31 December. Residency is determined on a per-year basis: an individual can be a Spanish tax resident in one year and a non-resident in the next, depending on their circumstances.
Residency Tests for Companies
Under Spanish Corporate Tax law, a company is tax-resident in Spain if it meets any of these criteria:
- Incorporated under Spanish law (regardless of where it actually operates)
- Has its registered office (domicilio social) in Spain
- Has its effective management centre (domicilio fiscal) in Spain — meaning the place where management and control are actually exercised
Foreign companies should be alert to the third criterion: a company incorporated in Ireland or the Netherlands but managed from a Madrid office by Spanish executives may be treated as a Spanish tax resident by the AEAT, even if it has never filed a Spanish return.
Key Regulations
- Ley 35/2006 (Ley del IRPF), Article 9: individual residency criteria
- Ley 27/2014 (Ley del IS), Article 8: corporate residency criteria
- Real Decreto Legislativo 5/2004 (Ley del IRNR): the non-resident income tax framework applicable to non-residents
- OECD Model Tax Convention, Articles 4 and tie-breaker rules: applicable where Spain has a double-tax treaty with the other country
- Spain’s treaty network: Spain has over 100 double-tax treaties, most based on the OECD model, which include residence tie-breaker clauses that take precedence over domestic Spanish law
Practical Implications for Foreign Investors
Moving to Spain: The Transition Year
In the year of arrival, Spain applies the split-year concept informally: you become a Spanish tax resident from the date you establish habitual residence in Spain, but you must still prove your prior non-residence to avoid being taxed on worldwide income for the full calendar year. In practice, the AEAT counts the 183 days from 1 January each year, so timing your move carefully — particularly relative to the midpoint of the year — can affect your first year’s tax status.
The Ley Beckham Regime
Highly qualified employees and entrepreneurs relocating to Spain for work purposes may apply for the Special Regime for Non-Resident Workers (Ley Beckham), which allows them to be taxed as non-residents on Spanish employment income at a flat 24% rate for up to five years, even though they are physically resident in Spain. This is a favourable alternative to IRPF’s progressive rates and is particularly attractive for high earners. The digital nomad visa also provides access to a modified version of this regime.
Wealth Tax and Exit Tax
Spanish tax residents are subject to the Impuesto sobre el Patrimonio (Wealth Tax) on their worldwide net assets above the applicable exemption threshold. Upon ceasing to be a Spanish tax resident, individuals with significant shareholdings in companies may also be subject to an exit tax (impuesto de salida), which treats unrealised gains on shares as realised at the moment of departure if the taxpayer has been resident for at least 10 of the previous 15 years.
Corporate Residency and Substance
Foreign companies that establish a Spanish presence — even informally, through executives who manage the business from Spain — risk being classified as Spanish tax residents. This has significant consequences: Spanish Corporate Tax on worldwide profits, local accounting and filing obligations, and potential transfer-pricing scrutiny. Multinational groups should review their governance and decision-making structures before relocating key personnel to Spain.
How BMC Can Help
Our tax advisory team provides residency analysis for individuals relocating to Spain, entrepreneurs establishing businesses, and multinational groups concerned about corporate tax residency risk. We prepare tax residence certificates, assist with AEAT registrations, advise on the Ley Beckham application, and structure exit arrangements to minimise exit tax exposure for departing residents.
Frequently asked questions
Does spending 183 days in Spain automatically make me a tax resident?
What does 'main nucleus of economic interests in Spain' mean?
My spouse and children live in Spain. Am I a tax resident?
Can a company be tax-resident in two countries?
What taxes do Spanish tax residents pay that non-residents do not?
Related service
Discover our services in this area
Related sectors
Related terms
Request a personalized consultation
Our experts are ready to analyze your situation and provide tailored solutions.