Rulebook / Residence & citizenship / Spain
Spain residence — continuity
- Day threshold
- 182 days
- Window
- Rolling 365 days
- Direction
- Ceiling — stay at or below
- Counts
- Days outside Spain
- Authority
- Ministerio de Inclusión, Seguridad Social y Migraciones
Spain residence — continuity caps your time outside Spain at 182 days in any rolling 365-day period. The statute attaches its consequence at 183 days or more, so 182 is the last safe count. Renewals 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.
Who it applies to
This matters most if you are:
- A permanent resident who travels often and must protect the status they already hold.
- An applicant counting physical presence toward residence or a passport.
- Anyone who will have to evidence their days to an immigration authority at renewal or application.
The rule — and why it exists
Days outside Spain. At most 182 days outside Spain in any rolling 365-day period — written as <=182 AWAY / 365.
Why it exists: residence and citizenship are granted to people who actually live in the country. Presence requirements and absence caps are how that is measured rather than asserted.
Counting the days
- On any given day, look back over the 365 days ending on that day (that day included).
- Count every day you were physically outside Spain in that span. Partial days count as full days.
- The total must stay at or below 182. Repeat for every day — there is no reset date.
- A day only stops counting once it is more than 365 days old. Leaving and returning changes nothing.
- A day with no record might have been a qualifying day abroad, so the calculator reports unknown days separately and treats the total as a floor, never a guess.
The free calculator below counts this rule with the same engine the Dwelltime app ships.
Check it with the free tool
Examples
Example 1 — 120 days recorded abroad in the last 365 days
Stays: United States 2026-01-01 → 2026-04-30. Checked on 2026-12-31.
Result: Days outside Spain: 62 of 182 days left (120 used in Spain).
Example 2 — 202 days recorded abroad in the last 365 days
Stays: United States 2026-01-01 → 2026-07-21. Checked on 2026-12-31.
Result: Days outside Spain: over the limit — 202 of 182 days, first exceeded 2026-07-02.
Exceptions & edge cases
- Absences with permission. Some regimes disregard absences approved in advance or forced by illness; record them and check the source.
- Continuity vs. totals. Some rules require both a total and no single absence over a limit; both must hold.
- Evidence. Authorities may ask for stamps, boarding passes or statements — keep the source of every day.
Common misconceptions
- "Under 182 days means I'm safe." False — other tests can apply, and the count is only one input.
- "It resets when I leave." No. Days age out one at a time, 365 days after they happened.
- "Arrival day doesn't count." Any part of a day inside is a day inside.
Frequently asked questions
Is the 182-day count per calendar year or rolling?
Rolling 365 days. The window rolls forward one day at a time.
Do arrival and departure days count?
Yes — any part of a day counts as a day.
Where does this rule come from?
Ministerio de Inclusión, Seguridad Social y Migraciones: Residencia temporal y de larga duración. 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 - 🇪🇸Become Spain tax residentReaching 183 days in a tax year triggers residence under the day-count test.
>=183 / YEAR
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.