Official sources
Spain tax residency day rules
Official source 1Official source 2CheckedInformational only, not legal or tax advice. Verify with official sources.
Day tests
More than 183 days in the calendar year can establish residence. Sporadic absences normally count unless foreign tax residence is proved.
Official source 1Official source 2CheckedHow days count
Count a proven day of physical presence in full, with no minimum number of hours. Thus a documented arrival or departure day can count. Reasonably inferred intervening days and sporadic absences can also count, subject to the foreign-residence evidence rules.
Official sourceCheckedOther factors and exceptions
The main base of activities or economic interests in Spain is an independent residence test. Residence is presumed, subject to contrary proof, where the legally unseparated spouse and dependent minor children habitually reside in Spain.
Official sourceCheckedOfficial sources
Official source 1Official source 2CheckedFor visits subject to the Schengen 90/180 rule.

VisaWise for iPhone
Free Schengen day counter for iPhone. Upgrade to Pro for automatic day tracking and alerts before your limit.
- Crossing receipts: attach a photo of your stamp or EES slip to a trip. It stays on your phone.
- Share a profile: send a file with its trips and plans to another phone. No account needed.
- Destination results say how border days are counted: both the arrival day and the departure day count.