Skip to content

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.

Tax

What 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?
Spending more than 183 calendar days in Spain in a tax year creates a rebuttable presumption of tax residency. The AEAT adds non-consecutive days together. However, if you can prove your habitual residence is in another country, you may be able to rebut this presumption — particularly if a double-tax treaty applies.
What does 'main nucleus of economic interests in Spain' mean?
If the majority of your economic activities — investments, business income, employment, or assets — are located in Spain, you may be treated as a tax resident regardless of how many days you spend physically present. This test is particularly relevant for entrepreneurs and investors with Spanish-based businesses.
My spouse and children live in Spain. Am I a tax resident?
Yes, unless proven otherwise. Spanish law presumes that an individual is a tax resident if their spouse (not legally separated) and minor dependent children habitually reside in Spain. This presumption can be rebutted, but the burden of proof falls on the taxpayer.
Can a company be tax-resident in two countries?
Under domestic law, potentially yes. However, most double-tax treaties include a tie-breaker clause for companies, typically based on the place of effective management. A company with its registered office in Spain but all real management in another country may be able to claim treaty residence in that other country.
What taxes do Spanish tax residents pay that non-residents do not?
Spanish tax residents pay IRPF (Personal Income Tax) on their worldwide income at progressive rates up to 47%. Non-residents pay IRNR (Non-Resident Income Tax) only on Spanish-source income, generally at a flat 19% or 24% rate depending on the source and applicable treaty.
Back to glossary

Request a personalized consultation

Our experts are ready to analyze your situation and provide tailored solutions.

Call Contact