Rulebook / Tax residency / Spain
Become Spain tax resident
- Day threshold
- 183 days
- Window
- Calendar year (1 Jan β 31 Dec)
- Direction
- Floor β reach at least
- Counts
- Days in Spain; arrival and departure days both count
- Authority
- Agencia Tributaria
Become Spain tax resident requires at least 183 days in Spain per calendar year. You are trying to reach the number, not stay under it. Reaching 183 days in a tax year triggers residence under the day-count test.
Who it applies to
This matters most if you are:
- A remote worker, digital nomad or frequent traveller spending long stretches in Spain.
- An expat arriving in or leaving Spain mid-year, where the days straddle a boundary.
- Anyone keeping a home in more than one country who needs a defensible day count for a tax return.
The rule β and why it exists
Spain day count. At least 183 days in Spain per calendar year β written as >=183 / YEAR.
Why it exists: countries use time spent as a measurable proxy for where your economic life really is. A day count gives a clear threshold; the surrounding tests stop a long holiday from making a genuine non-resident taxable.
Counting the days
- Add up every day you were physically in Spain between 1 January and 31 December.
- Days need not be continuous β several visits in the same year add together.
- Any day of presence generally counts, including arrival and departure days.
- The tally resets to zero on 1 January; it is not a rolling window. Reaching 183 days meets the requirement.
The free calculator below counts this rule with the same engine the Dwelltime app ships.
Check it with the free tool
Examples
Example 1 β 109 days in the year
Stays: Spain 2026-02-01 β 2026-05-20. Checked on 2026-12-31.
Result: Spain day count: 74 more days needed (109 of 183 in Spain), earliest 2027-07-02.
Example 2 β 193 days in the year
Stays: Spain 2026-01-15 β 2026-07-26. Checked on 2026-12-31.
Result: Spain day count: reached β 193 of 183 days in Spain.
Example 3 β Days split across two calendar years
Stays: Spain 2025-10-01 β 2025-12-31; Spain 2026-01-01 β 2026-04-19. Checked on 2026-12-31.
Result: Spain day count: 74 more days needed (109 of 183 in Spain), earliest 2027-07-02.
Exceptions & edge cases
- Other residency tests. Most countries also apply a domicile, home or centre-of-interests test; you can be resident under one of those with fewer days.
- Double-tax agreements. If two countries both claim you, the treaty tie-breaker (permanent home β centre of vital interests β habitual abode β nationality) decides.
- Split years. Arriving or leaving mid-year may be treated under special rules; the day count is only one input.
Common misconceptions
- "Hitting 183 days is automatic." Not quite β the count meets the day test; the remaining conditions still apply.
- "It follows a rolling year." No β the tally resets on 1 January.
- "Arrival day doesn't count." Any part of a day inside is a day inside.
Frequently asked questions
Is the 183-day count per calendar year or rolling?
Calendar year (1 Jan β 31 Dec). The count resets on 1 January.
Do arrival and departure days count?
Yes β any part of a day counts as a day.
Where does this rule come from?
Agencia Tributaria: Residencia fiscal en EspaΓ±a. The link is verified on every build; if it stops resolving the build fails.
This rule is tracked in
Dwelltime
- Counts your days for this rule from the trips you record
- Shows the last safe day, or the days still needed, before you book
- Explains every counted day and every uncounted one
- Runs alongside your other visa, tax and residency rules
Sources
Related rules
- πͺπΈAvoid Spain tax residencyResidence is triggered at 183 days in a tax year, so the safe ceiling is 182. Day count is one test among several in most systems β ties, home and centre of interests can make you resident on fewer days.
<=182 / YEAR - πͺπΈSpain residence β continuityRenewals and the ten-year nationality route both need continuity of residence; absences beyond six months in a year are what break it. Long-term residence is lost after twelve consecutive months outside the EU.
<=182 AWAY / 365
For information only. This page is a plain-English summary of publicly available rules, not tax, legal or immigration advice. Rules change and depend on your personal circumstances β always confirm with the official source above and a qualified professional before acting.