How Spain actually counts your days
Spanish tax residency under Article 9.1 of the Personal Income Tax Law (LIRPF) is triggered when you spend more than 183 days in Spanish territory during a calendar year. The key counting rules:
- Both arrival and departure days count as days in Spain
- The calendar year is the unit (January to December), not any rolling 12-month window
- You don't have to spend 183 consecutive days — they aggregate
- Days where you happen to fly through Spain in transit do not count
The day-counting bar is set at 184+, not 183 exactly. Many people quote the rule imprecisely. The legal threshold is "more than 183", so 184 days triggers residency.