Country guideTax residency

Tax residency in Spain: how the day count works

Quick answer

Spain treats you as tax resident once you spend more than 183 days there in a single calendar year, from 1 January to 31 December. Sporadic absences count toward the total unless you can prove tax residence in another country. Crossing the line makes your worldwide income taxable in Spain for the whole year.

What is the day threshold in Spain?

Spanish law makes you tax resident if you spend more than 183 days in Spanish territory during the calendar year. The rule sits in article 9 of the personal income tax law, and the Agencia Tributaria applies it strictly: 184 days of presence in one year is enough, and it does not matter why you were there or what visa you held.

The count has a feature that surprises people: sporadic absences count as days in Spain. If your base is in Spain and you take a two-week trip to Morocco, those 14 days are added back to your Spanish total unless you can prove tax residence in another country, normally with a residence certificate issued by that country's tax authority. PwC's summary of the Spanish rules confirms the same reading.

Spain tax residency at a glance
Day thresholdMore than 183 days
Counting windowCalendar year, 1 January to 31 December
Partial daysA day with any physical presence is generally counted in full
Other triggersCentre of economic interests in Spain; presumption if spouse and minor children live there
SourceAgencia Tributaria

Calendar year or rolling window?

Calendar year. Spain counts your days between 1 January and 31 December, and the count resets to zero each new year. That makes the Spanish rule more forgiving than a rolling window: six months at the end of one year plus five months at the start of the next never reaches 184 in either year. Neighboring Portugal counts any 12-month period, so the same travel pattern can produce opposite results on the two sides of the border.

There is no split year either. If you cross the threshold, Spain treats you as resident for the entire calendar year, including the months before you arrived.

Do partial days count?

Assume yes. Spanish practice counts a day with any physical presence as a full day, so the day you land in Malaga and the day you fly out both go on the tally. There is no statutory carve-out for airport transit, and the burden of showing you were elsewhere falls on you. If your plan for the year lands anywhere near 170 days, arrival and departure days are exactly where the margin disappears.

What else can make you resident besides days?

Two things. First, the economic test: you are resident if the main base of your business, professional activities or economic interests is in Spain, directly or indirectly. A person who runs a Spanish company or holds most of their assets there can be claimed with far fewer than 183 days.

Second, the family presumption: if your spouse (not legally separated) and minor children habitually live in Spain, the law presumes you are resident too. The presumption can be rebutted, but you carry the burden of proof, typically with a foreign residence certificate and evidence of a life elsewhere.

A worked example with 2026 dates

Worked example

Two long stays and a trip that did not help

A remote worker rents a flat in Valencia and spends 10 February to 15 May 2026 there, then returns for 1 September to 30 November. In October she takes a 12-day break in Lisbon.

Spain 2026 day arithmetic
StayDatesDays
Spring10 Feb to 15 May 202695 (19 + 31 + 30 + 15)
Autumn1 Sep to 30 Nov 202691 (30 + 31 + 30)
Total in 2026186 of 183

Her physical presence is 186 days, already over the line. The Lisbon trip does not subtract 12 days: it is a sporadic absence while her base stayed in Valencia, so it counts as Spanish presence unless she can produce a Portuguese residence certificate. Spain can treat her as tax resident for all of 2026.

How do I track my days for Spain?

Count every day with any presence in Spain, per calendar year, and keep evidence: boarding passes, card statements, a day log. The margin between 180 and 184 days is a weekend, so a running total beats a year-end reconstruction.

Check your Spanish day count

The free 183-day calculator totals your 2026 presence days and shows how close you are to the threshold.

Open the 183-day calculator

Your day log, kept automatically

Staydays counts your days in Spain in the background and warns you before you cross the 183-day line.

Download on theApp Store

Frequently asked questions

Do days in Spain count if I never registered as resident?

Yes. The Spanish test is physical presence, not paperwork. Days count whether or not you registered on the padron, hold a residence permit, or have a Spanish address. Registration matters for other purposes, but the 183-day count runs on where your body was.

What are sporadic absences and why do they count?

Sporadic absences are trips abroad taken while your base remains in Spain: a holiday in France, a work trip to London. Spanish law adds those days back into your Spanish total unless you can prove tax residence in another country, normally with a residence certificate from that country's tax authority.

Can Spain claim me with fewer than 183 days?

Yes. You are also resident if the main base of your economic activities or interests is in Spain. And if your spouse and minor children habitually live in Spain, the law presumes you are resident too, although you can rebut that presumption with evidence.

Does Spain split the year when I arrive mid-year?

No. Spain has no split-year rules in domestic law. You are either resident or non-resident for the entire calendar year, so crossing 183 days in November makes the whole of that year resident, back to 1 January.

This guide is general information, not legal or tax advice. Rules change and individual circumstances differ. Confirm details with official sources or a qualified advisor.

Last updated: 2026-07-14