Spain: how residence and citizenship work

Residence tests, reporting duties, social security, living base and citizenship for Spain, with the official source for each.

Short answer

Spain treats a person as habitually resident for a whole calendar year if they stay in Spain more than 183 days in that year, counting sporadic absences unless tax residence in another country is proven, or if the main base of their activities or economic interests is in Spain; residence is also presumed if a spouse and dependent minor children live in Spain. A special regime under article 93 of the IRPF Law lets some people who move to Spain for work opt to be taxed under non-resident income tax rules, with specific features, for the year of the move and the five following years.

Key facts

Tax basisResidence-based
Tax year1 January to 31 December
Taxes citizens abroadNot as a general rule
Residence tests recorded4
RegionEurope

How Spain decides tax residence

Each test is recorded separately with its own ID. Meeting or missing one test does not settle residence on its own.

ES-RES-01Day count183 days · Calendar yearNot professionally reviewed

More than 183 days in the calendar year

A person is habitually resident if they stay in Spain more than 183 days during the calendar year. Sporadic absences are counted as days in Spain unless the person proves tax residence in another country, and for listed tax havens the tax authority may require proof of presence there for 183 days in the year.

Source: Residencia habitual en territorio español (Manual práctico IRPF 2025)Day method: Set in official guidanceChecked: November 8, 2026
ES-RES-02Ties testNot professionally reviewed

Main base of activities or economic interests

A person is also habitually resident if the main base of their activities or economic interests is in Spain, directly or indirectly. This test applies even when the day count is not met.

ES-RES-03PresumptionNot professionally reviewed

Family presumption

Residence is presumed, unless proven otherwise, when the spouse who is not legally separated and the dependent minor children habitually reside in Spain. It is a rebuttable presumption, not a day count.

Source: Residencia habitual en territorio español (Manual práctico IRPF 2025)Day method: not recordedChecked: November 8, 2026
ES-RES-04CitizenshipNot professionally reviewed

Spanish nationals moving to a non-cooperative jurisdiction

Spanish nationals who prove a new residence in a tax haven remain IRPF taxpayers in the tax period of the change and in the four following tax periods. Since 11 July 2021, references to tax havens mean non-cooperative jurisdictions.

Source: Persona física residente en EspañaChecked: November 8, 2026

Arriving, leaving and part years

Spain sets residence for the whole calendar year, and a change of residence does not split the tax period (ES-RES-01 to ES-RES-03). On departure, article 95 bis of the IRPF Law can tax unrealized gains on shares for people resident in at least 10 of the 15 prior tax periods, where the shares exceed €4,000,000 in total market value, or where a stake above 25% in one entity exceeds €1,000,000; a deferral option exists for moves to EU or EEA states with tax information exchange.

Reporting duties to check

  • Special regime for workers moving to Spain (article 93 IRPF Law). People who were not resident in Spain in the five tax periods before the move can opt for the regime with form 149, which is also used to renounce it or report exclusion; the annual return is form 151. Employment income obtained during the regime is treated as obtained in Spain. Source
  • Form 720: assets and rights located abroad. An information return on foreign bank accounts, securities and real estate held by Spanish tax residents. The tax authority applies its €50,000 limit to each category separately. Source
  • Exit tax return on unrealized gains. Gains under article 95 bis are included in the taxable base of the last tax period that must be declared, through a supplementary self-assessment. Source

Social security

Within the EU, a person is covered by one country's social security system at a time, and which one depends on work situation and residence, not nationality. Check the EU coordination rules and any bilateral agreement for work involving non-EU countries.

Living base

EU citizens can move to Spain under EU free movement rules, with permanent residence after a continuous 5-year period of legal residence. Others generally need a visa or residence authorization under Spanish immigration law. A residence authorization does not decide tax residence, which follows article 9 of the IRPF Law.

How visas, permits and tax residence differ

Citizenship

Under article 22 of the Civil Code, nationality by residence generally requires 10 years of legal, continuous residence immediately before the application, five years for refugees, two years for nationals of origin of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea or Portugal and for Sephardic Jews, and one year in listed cases such as one year of marriage to a Spanish national. Article 23 requires the applicant to declare renunciation of their previous nationality, except nationals of the countries listed in article 24.1 and Sephardic Jews originating from Spain.

Read the citizenship guide

Questions to take to a professional

  1. How are my days in Spain counted, and would my absences be treated as sporadic?
  2. Where is the main base of my activities or economic interests for Spanish purposes?
  3. Does the family presumption apply to me, and what evidence could rebut it?
  4. Do I meet the conditions of the article 93 special regime, and what deadline applies to form 149?
  5. Do I need to file form 720 for any category of foreign assets?
  6. Could the article 95 bis exit tax apply if I leave, and is the EU or EEA deferral option relevant?
  7. If another country also treats me as resident, how does the relevant tax treaty tie-breaker apply?

Official authorities

Sources

Guides that mention Spain

Other countries in Europe

Countries covered
Spain
Sources
8 sources listed above
Tax year
Current rules as checked
Review
Not professionally reviewed
Sources checked November 8, 2026