These guides are available in English.
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.

Track every border day on iPhone
Save trips, correct travel days and export a private travel-day ledger when you need it.
US$39.99/year ยท Annual subscription. No free trial.