Country rules

Spain tax residency: the 183-day rule

How many days you can spend in Spain before you may become tax resident, how a day is counted, and where the rule comes from — with the date we last checked it.

ThresholdMore than 183 days (maximum)
PeriodA calendar year (1 January to 31 December)
How a day countsAny day you are present for any part of it counts as a whole day, including the days you arrive and leave.
Last reviewed1 May 2026

Source: the tax authority's published guidance · last reviewed 1 May 2026

Count your daysHow Sojourn keeps the count

Sojourn is a record-keeping tool, not tax advice. This page summarises public guidance and does not cover every case. Confirm your position with a qualified tax advisor in Spain.

How Spain counts your days

Any day on which you were physically present in Spain for any portion counts as one full day. Arrival and departure days both count. Spain also applies a second alternative test based on your main economic or professional interests being located in Spain — crossing that threshold alone is sufficient for Spanish tax residency regardless of day count.

What the day count does not tell you

Spain's 183-day rule is the most commonly invoked test, but it is not the only one. Spain also presumes residency if your spouse and dependent children reside habitually in Spain, unless you can prove a different tax domicile. Spain's 'Beckham law' (Régimen especial de trabajadores desplazados) offers an optional special regime for inbound workers that can limit Spanish tax liability on foreign income for up to 6 years even after crossing the 183-day threshold. Confirm with a Spanish tax advisor.

Resident in two countries

Spain has tax treaties with over 90 countries. Spanish treaties follow the OECD model: permanent home, centre of vital interests, habitual abode, nationality, mutual agreement. Spain is known for robust enforcement of its exit-tax rules (Impuesto de Salida), which can apply when you move away and hold significant assets — the exit-tax position is separate from but related to the residency tie-breaker.

Proving residency

Spain issues a Tax Residency Certificate through its tax authority. Request it from the official service.

Other day-count rules for Spain

Common questions

How many days can I spend in Spain before I become tax resident?

More than 183 days per calendar year, counted over a calendar year (1 January to 31 December). The day count is not the whole test: Spain also looks at your ties, so you can be resident below it.

How does Spain count a day?

Any day you are present for any part of it counts as a whole day, including the days you arrive and leave.

What if I am resident in Spain and another country?

Spain has tax treaties with over 90 countries. Spanish treaties follow the OECD model: permanent home, centre of vital interests, habitual abode, nationality, mutual agreement. Spain is known for robust enforcement of its exit-tax rules (Impuesto de Salida), which can apply when you move away and hold significant assets — the exit-tax position is separate from but related to the residency tie-breaker.