Spain 90-day rule calculator
Spain’s 90 days are Schengen’s 90 days. There is no separate Spanish allowance: the limit is 90 days in any rolling 180-day period across all 29 Schengen states. Add every Schengen trip below to see days used, days remaining, and the earliest date you could next enter. Everything runs in your browser and nothing is uploaded.
Your Schengen trips
- Trip 1
The rule, and where it is written
Spain has applied the Schengen rules since 26 March 1995, so the limit on a Spanish holiday is not a Spanish rule at all. It is Article 6(1) of the Schengen Borders Code, Regulation (EU) 2016/399, which sets the entry conditions for third-country nationals:
“For intended stays on the territory of the Member States of a duration of no more than 90 days in any 180-day period, which entails considering the 180-day period preceding each day of stay…”
Three things follow from that sentence, and almost every mistake people make comes from missing one of them.
- “The territory of the Member States” is the whole Schengen area, currently 29 countries, not Spain. A day in Lisbon, Paris, Berlin, or Athens spends the same allowance as a day in Seville.
- “Any 180-day period” means the test is applied afresh on every single day of your stay, looking backwards. There is no fixed half-year and no annual reset.
- “No more than 90 days” means 90 is permitted and 91 is an overstay. The cap is on presence, not on the number of trips.
Article 6(2) of the same regulation settles two arguments people routinely have with themselves. It states that the date of entry counts as the first day of stay and the date of exit counts as the last day of stay, so a red-eye arrival and a dawn departure are both whole days. It also states that periods of stay authorised under a residence permit or a long-stay visa are not taken into account in the calculation, which is why Spanish national permits sit outside this arithmetic.
How the rolling window actually moves
The 180-day window is a sliding block of 180 consecutive days that ends on whatever day you are testing. Test 1 June 2026 and the window runs from 4 December 2025 to 1 June 2026 inclusive. Test 2 June and the whole block shifts forward by one day: 5 December 2025 to 2 June 2026.
That is why nothing ever “resets”. Days do not come back in a lump on 1 January or on the day you fly home. Each individual day you spend in Schengen is released exactly 180 days later, one at a time, as it falls off the back of the window. If you burned 30 consecutive days, you get them back over 30 consecutive days, half a year later.
A worked example, with real dates
You are a visa-exempt traveller planning to fly into Málaga on 1 June 2026. Earlier in the year you took two trips:
| Dates | Where | Schengen days |
|---|---|---|
| 1 Feb 2026 to 2 Mar 2026 | Barcelona (Spain) | 30 |
| 1 Apr 2026 to 30 Apr 2026 | Lisbon (Portugal) | 30 |
| Days used before you land | 60 |
On 1 June 2026 the 180-day window covers 4 December 2025 to 1 June 2026. Both trips fall inside it, so you land having already used 60 of your 90 days, and the arrival day itself makes 61. That leaves 29 days after arrival.
Counting forward, 1 June to 30 June is 30 days, which takes you to exactly 90. 30 June 2026 is your last lawful day. Staying into 1 July makes it 91 days in the window, an overstay, and nothing helps you in the meantime because the February days do not begin dropping out of the window until 31 July.
The traveller who believes Spain has its own 90 days reads the same itinerary and books a return flight for 29 August, on the theory that a fresh Spanish allowance starts on arrival. That is a 60-day overstay, and it is the single most common way people get an entry ban.
Now run the recovery. If you do leave on 30 June with 90 days used, the first day one of them ages out is 31 July 2026, when 1 February finally leaves the window. So the earliest date you could legally be present again is 31 July, but only for a single day: the whole February trip is not released until 29 August 2026, 180 days after it ended. This is exactly what the earliest next entry figure in the calculator means. It is the first date you may be present, not the date you regain a useful block of time.
Edge cases and common mistakes
Spanish territory that counts, and territory that does not
The Canary Islands and the Balearics are ordinary Schengen days: a fortnight in Tenerife spends the allowance exactly as a fortnight in Madrid does. Ceuta and Melilla are Spanish territory under special border arrangements because of the land frontier with Morocco, so verify the current position rather than assuming. Andorra and Gibraltar sit outside the Schengen area, as do Ireland (which holds an opt-out and keeps its own border checks) and Cyprus (an EU member still working through Schengen accession as of 2026). Days in those places do not accrue, but they do not pause the rolling window either.
Leaving Schengen only helps if the exit is recorded
A trip from Spain to Morocco, the UK, or Ireland genuinely stops the clock, because those days are not Schengen days. Andorra is the trap: it has no airport and is reachable only through Spain or France, and the border formalities on that crossing are limited, so many travellers cannot evidence having left. If the exit is not on the record, expect the days to be counted against you. The burden of proving you were outside is yours.
A second passport does not buy a second allowance
The 90/180 limit attaches to the person, not to the travel document. The EU Entry/Exit System, which became fully operational on 10 April 2026, replaced manual passport stamping with a biometric record of every entry and exit, including a facial image and fingerprints, so alternating documents no longer produces a clean slate. See whether a second passport resets Schengen days.
Bilateral visa waiver agreements are not a plan
A number of Schengen states signed bilateral visa waiver agreements with individual third countries before Schengen existed, and these are sometimes cited online as a way to extend a stay in one country beyond 90 days. Their status is contested, they are not applied consistently at the border, and the text of Article 6(1) contains no such carve-out. Never plan around one without written confirmation from the authority that would have to honour it.
Some travellers are not on this rule at all
Non-EU family members of an EU, EEA, or Swiss citizen who is exercising free movement rights fall under a separate regime, and holders of a Spanish residence permit or national long-stay visa are excluded from the count by Article 6(2). If either describes you, this calculator is the wrong tool: read the terms of your own permit instead.
The 90-day rule is not the 183-day rule
These are two different tests, in two different bodies of law, with two different consequences, and people conflate them constantly. The 90/180 rule caps how long you may be present. Spanish tax residency is set by Article 9 of Ley 35/2006, the Spanish personal income tax law, and it is met if any one of three alternatives applies: you spend more than 183 days of the calendar year in Spanish territory, the main base or centre of your activities or economic interests is in Spain (directly or indirectly), or your non-separated spouse and dependent minor children habitually reside in Spain, which raises a rebuttable presumption.
| Schengen 90/180 rule | Spanish tax residency | |
|---|---|---|
| What it decides | Whether you may lawfully be present | Whether Spain taxes your worldwide income |
| Where it is written | Article 6, Schengen Borders Code (Regulation (EU) 2016/399) | Article 9, Ley 35/2006 (Spanish personal income tax law) |
| Which days count | Days anywhere in the 29 Schengen states | Days in Spanish territory, including sporadic absences unless tax residency elsewhere is proven |
| Counting period | Rolling 180-day window, recalculated every day | The calendar year, 1 January to 31 December |
| Threshold | No more than 90 days | More than 183 days, or either of two non-day-count tests |
| If you cross it | Overstay: fine, refusal of entry, possible entry ban | Spanish tax residency for the whole year, with worldwide income in scope |
Two features of the Spanish test surprise people. First, two of the three alternatives involve no day count at all, so a person who never comes close to 90 days can still be resident if their economic centre sits in Spain. Second, sporadic absences from Spanish territory are counted toward the 183 days unless you can prove tax residency in another country, which is the reverse of the immigration count, where days outside Schengen simply do not accrue. Spain also generally treats residency as an all-or-nothing status for the whole calendar year rather than splitting the year on arrival or departure.
If you are heading toward the tax side of that line, read Spain’s residency rule page, the Beckham Law regime for inbound workers, or run the 183-day rule calculator.
How this calculator counts
- The window is your reference date plus the 179 days before it, which is the 180-day period preceding each day of stay in Article 6(1).
- Entry and exit days are both counted in full, per Article 6(2).
- Overlapping or duplicated trips are counted once, so a double-entered trip cannot inflate your total.
- Days remaining is 90 minus days used on the reference date. Projected exhaustion is the date you would reach 90 if you stayed continuously from the reference date. Earliest next entry is the first date on which the window holds fewer than 90 of your days.
- It counts calendar days, so it cannot know whether you cleared passport control on an airside transit. If you did not clear immigration, do not enter that day as a trip.
- It runs entirely in your browser. No trip data is uploaded, stored, or logged.
For the mechanics without the Spanish framing, use the general Schengen 90/180 calculator or read the Schengen 90/180 rule explained. For what actually happens after a breach, see Schengen overstay penalties.
Spain 90-day rule FAQ
What is the 90-day rule in Spain?
Spain is a Schengen state, so the '90-day rule' for Spain is the Schengen 90/180 rule. Article 6(1) of the Schengen Borders Code (Regulation (EU) 2016/399) permits a visa-exempt third-country national an intended stay 'of a duration of no more than 90 days in any 180-day period, which entails considering the 180-day period preceding each day of stay'. The 90 days are shared across all 29 Schengen states, so they are not 90 days in Spain specifically.
Is Spain's 90-day allowance separate from the rest of Schengen?
No, and this is the most expensive misunderstanding on this page. There is no separate Spanish allowance. If you spend 60 days in Portugal and then fly to Madrid, you arrive with 30 days left, not 90. The calculator above pools every Schengen day into one count, which is how the Entry/Exit System and a border officer will count them.
How is the 180-day window calculated?
It rolls, one day at a time. On any given day, look back over that day and the 179 days before it, a 180-day block, and add up the days you were physically inside the Schengen area. The total must not exceed 90. The window is not a fixed half-year, it does not reset on 1 January, and it does not reset when you leave. Individual days drop out of the count 180 days after you used them, one by one.
How many days can I stay in Spain in a year?
At most about 180 days in a calendar year, and only if the days are split into two blocks that are far enough apart. Spending 90 days at the start of the year, leaving Schengen entirely for roughly 90 days while the first block ages out of the rolling window, and returning for 90 more is the theoretical maximum. Any tighter spacing breaches the 90-day cap, and staying that long raises a separate Spanish tax question.
Do arrival and departure days count toward the Spanish 90 days?
Yes, both, in full. Article 6(2) of the Schengen Borders Code says the date of entry is the first day of stay and the date of exit is the last day of stay. It makes no difference that you landed in Alicante at 23:50 or left Barcelona at 06:00. A Friday-to-Sunday weekend is three days, not one.
Does leaving Spain reset the 90-day count?
No. Nothing resets the count. Leaving Spain for Morocco, the United Kingdom, or Ireland stops you accruing new days, but the days already used stay in the window until they age out 180 days after they were spent. Travelling from Spain to France or Italy does not even stop the accrual, because those days come out of the same 90.
Does using a second passport reset my Schengen days?
No. The 90/180 limit attaches to the person, not to the document. Since the EU Entry/Exit System became fully operational on 10 April 2026, entries and exits are recorded biometrically with a facial image and fingerprints, so presenting a different passport does not produce a different record.
Do days in Andorra or Gibraltar count against the Spanish 90 days?
Neither Andorra nor Gibraltar is in the Schengen area, so in principle those days are not Schengen days. In practice the difficulty is evidential: Andorra has no airport and is reachable only through Spain or France, and border formalities on that crossing are limited, so travellers often cannot produce a record of having left Schengen. If the exit is not recorded, expect the days to be treated as Schengen days.
Do the Canary Islands and the Balearics count as Schengen days?
Yes. The Canary Islands, the Balearic Islands, Ceuta, and Melilla are Spanish territory and days there count in the ordinary way. Ceuta and Melilla sit under special border arrangements because of their land frontier with Morocco, so confirm the current position with the Spanish authorities before building a plan around them rather than assuming.
Does a Spanish residence permit or long-stay visa change the count?
Generally yes. Article 6(2) of the Schengen Borders Code states that periods of stay authorised under a residence permit or a long-stay visa are not taken into account when calculating the duration of a short stay. So days in Spain under a Spanish national long-stay visa or residence permit, including the non-lucrative visa and the international teleworking (digital nomad) authorisation, generally sit outside the 90/180 count. Days you spend in other Schengen states on that permit can still be limited, so read the specific terms of your permit.
Does the 90-day rule make me a Spanish tax resident?
No. They are separate tests with separate consequences. The 90/180 rule is an immigration limit. Spanish tax residency is set by Article 9 of Ley 35/2006 (the personal income tax law) and is met by any one of three alternatives: more than 183 days in Spanish territory in the calendar year, having the main base or centre of your activities or economic interests in Spain, or a rebuttable presumption where your non-separated spouse and dependent minor children habitually reside in Spain. Two of the three involve no day count at all, so staying under 90 days does not by itself settle your Spanish tax position.
Do short trips out of Spain reduce my 183-day tax count?
Generally not. Under Article 9 of Ley 35/2006, sporadic absences from Spanish territory are counted toward the 183 days unless you can prove tax residency in another country. That is the opposite of how the immigration count works, where days outside Schengen genuinely do not accrue, and it catches people who assume weekend trips out of Spain shave days off the tax test.
What happens if I overstay in Spain?
An overstay in Spain is an overstay against the whole Schengen area. Consequences generally range from a fine to a refusal of entry, an entry ban, and problems on future visa and residence applications. Since the Entry/Exit System became fully operational in April 2026 the record is automatic rather than dependent on a passport stamp, so treat 90 days as a hard limit and leave margin for delays.
Does ETIAS change the 90-day limit?
No. ETIAS is a pre-travel authorisation for visa-exempt travellers, expected to start in the last quarter of 2026, and it is not in operation yet. When it launches it will be a permission to travel, not an allowance of extra days. The 90-in-180 cap in Article 6(1) of the Schengen Borders Code is unchanged by it.
Sources & further reading
Every rule on this page is drawn from primary sources. Verify the current law before making a residency decision.
- [1]Regulation (EU) 2016/399 (Schengen Borders Code), Article 6: entry conditions and the 90/180 calculation (opens in a new tab)EUR-Lex
- [2]The Schengen area, member countries and participation status (opens in a new tab)European Commission
- [3]Entry/Exit System (EES) (opens in a new tab)European Union
- [4]Ley 35/2006, de 28 de noviembre, del Impuesto sobre la Renta de las Personas Físicas (Article 9, habitual residence in Spanish territory) (opens in a new tab)BOE