What the Schengen 90/180 rule says
The rule sits in Article 6 of the Schengen Borders Code, the EU regulation on crossing the area's external borders. It sets the entry conditions for third-country nationals on stays of no more than 90 days in any 180-day period, and it says that means looking at the 180 days before each day of the stay (Regulation (EU) 2016/399, Article 6).
Visa-free travelers and holders of a multiple-entry visa may enter as often as they like, but their stays may add up to no more than 90 days in every 180 (European Commission, visa policy). The 90/180 cap is the same whether you enter visa-free, as US citizens do, or on a short-stay Schengen visa. A Schengen visa can also be issued for 1 or 2 entries, or with an authorized stay shorter than 90 days, and then the visa's own limits apply (Visa Code, Article 24).
Brazilian citizens are the exception the European Commission names. Their visa waiver agreement with the EU keeps the older definition: 3 months during a 6-month period following the date of first entry (European Commission, border crossing).
Schengen countries: the 29 that share the 90 days
The 90 days are 1 allowance for all 29 countries together, not 90 per country. The Schengen area has 29 members: 25 EU countries (Austria, Belgium, Bulgaria, Croatia, Czechia, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Italy, Latvia, Lithuania, Luxembourg, Malta, the Netherlands, Poland, Portugal, Romania, Slovakia, Slovenia, Spain and Sweden) plus Iceland, Liechtenstein, Norway and Switzerland (Your Europe).
Cyprus and Ireland are in the EU but not in Schengen, so days there do not use up the allowance, and neither do days in the UK or in Albania, Montenegro and Serbia. Time spent in those countries is time in which your old Schengen days can age out of the window.
How to count your 90 days
The 180 days are not a fixed half-year that resets. They are a window that moves with you: for any day you want to check, count back 180 days including that day and add up every day you spent anywhere in Schengen.
- Arrival and departure days both count. The date of entry is the first day of stay and the date of exit the last (Article 6(2)), so a Friday-to-Monday trip uses 4 days, however late you land or early you fly out.
- The days need not be in a row. 3 trips of 30 days use the same allowance as 1 trip of 90.
- Leaving does not reset anything. A day stops counting only when it falls more than 180 days behind the day you check.
- Every day of the stay is checked. A stay that is legal on the day you enter can run out partway through, so the number you need is your last legal day, not the days left on arrival.
| Stay 1: Portugal, January 10 to February 28 | 50 days |
|---|---|
| Stay 2: Italy, April 1 to April 20 | 20 days |
| Window checked on June 1: December 4, 2026 to June 1, 2027Both stays sit inside it | 70 days used |
| Arrive June 1January 10 only leaves the window on July 9 | 20 days, to June 20 |
| Arrive July 9 insteadJanuary and February days drop out 1 a day as you stay | 70 days, to September 16 |
The same 70 used days give a 20-day trip or a 70-day trip, depending only on the arrival date. Each date was checked day by day against the 180 days before it.
The 90 days are shared, not per country
Right
You spend 60 days in France and 30 in Greece within the same 180 days. That is 90 Schengen days, so you leave the area and come back only when enough of those days have dropped out of the window.
Wrong
You treat each country as a fresh 90 and add 45 days in Spain. Under the 90/180 rule France, Greece and Spain all count together, so the Spanish stay is an overstay from its first day.
The EU's official Schengen calculator
You do not have to count by hand. The European Commission's free short-stay calculator has 2 modes: a check mode that totals past and ongoing stays and returns a "possible stay until" date, and a planning mode that gives the longest stay allowed from a future entry date. You type dates as dd/mm/yy, and its passport stamp option takes a list of entry and exit dates in any order.
The calculator covers short stays only, and the Commission says days on an EU residence permit or long-stay visa are not entered in it (European Commission, short-stay calculator). Those days do not count in the country that issued the document, but in other Schengen countries the holder is still limited to 90 days in any 180-day period (Regulation (EU) No 610/2013, Article 2).
The Entry/Exit System (EES) replaces passport stamps
The Entry/Exit System (EES) started on October 12, 2025 and became fully operational on April 10, 2026, replacing passport stamps. It records each non-EU short-stay traveler's name, travel document, fingerprints and facial image, with the date and place of every entry and exit, and it detects overstayers automatically (European Commission, Entry/Exit System).
Before you book the next Schengen trip
- List every Schengen entry and exit date in the 180 days before your planned arrival, from boarding passes or your own log.
- Count each arrival day and each departure day as a full day.
- Leave out days in Cyprus, Ireland, the UK and other countries outside Schengen.
- Leave out days spent on a long-stay visa or residence permit in the country that issued it.
- Run the dates through the Commission's calculator in planning mode and note the last legal day.
- Book the flight out with a few days to spare before that date.
Residence permits, long-stay visas and EU citizens
Article 6 sets the entry conditions for third-country nationals, so EU citizens, citizens of Iceland, Liechtenstein, Norway and Switzerland, and the non-EU family members of EU citizens exercising free movement are outside it (Schengen Borders Code, Article 2(5) and (6)). The other exception that matters to long-term travelers is a national permit:
- Long-stay visa and residence permit holders, in the issuing country. Periods of stay under a residence permit or a long-stay visa are left out of the calculation (Article 6(2)). A national permit such as Spain's digital nomad visa is that kind of document, so a year in Spain on it uses none of the 90 days.
- Residence permit and long-stay visa holders, in other Schengen countries. The permit lets you travel to the rest of the area, but there you are back on up to 90 days within a 180-day period (IND, Netherlands), and the Schengen Convention gives holders of a valid long-stay visa the same right of movement (Regulation (EU) No 265/2010, Article 1). A Spanish permit holder who spends a summer in France and Italy counts those days like any visitor.
A permit takes your days out of the Schengen count, but every day you live in Spain on it still counts toward Spain's tax test, and whether a digital nomad visa makes you tax resident depends on that test, not on the permit.
What happens if you overstay
Day 91 in any 180-day window is an overstay, even if you leave the next morning.
What follows is decided by the country that finds the overstay, under EU return rules. The Return Directive says a return decision must come with an entry ban when no period for voluntary departure was granted or the person did not leave as required (Directive 2008/115/EC, Article 11). The EU has since adopted a Return Regulation that repeals the Directive. It was signed on October 7, 2026 and was still awaiting publication in the Official Journal on October 12, 2026 (European Parliament, Legislative Observatory), and it enters into force the day after publication (European Commission).
A canceled flight does not stop the count
The rule has no grace period. A flight canceled on your last legal day still leaves you in Schengen on day 91, and the EES records it as an overstay. If something will keep you past your last legal day, contact the immigration authority of the country you are in before that day passes, not after.
Schengen days vs tax residency days
The 90/180 rule decides whether you may be in the Schengen area. Tax residency decides which country taxes you as a resident, often on your worldwide income, and each country tests it under its own law. The 2 counts differ on nearly every point:
The Schengen count and the tax count side by side. Sources: Schengen Borders Code, Article 6; the European Commission; each country's tax law, cited in the text.
| Schengen 90/180 rule | Tax residency day tests | |
|---|---|---|
| What it decides | Whether you may stay in the Schengen area | Which country taxes you as a resident |
| Where days add up | All 29 Schengen countries together | Each country on its own |
| Period | A rolling 180 days, checked on every day of stay | Calendar year, tax year or a 12-month window, by country |
| The line | No more than 90 days | Often 183 days; in Switzerland, 30 days while working |
| Days on a permit | Not counted in the issuing country | Counted like any other day |
| Who counts | The border, through the EES | The tax authority, from your records and returns |
| Getting it wrong | An overstay, a return decision, possibly an entry ban | Residence for that year and tax as a resident |
So a Schengen-legal year does not keep you under a tax test, and a short stay is not always tax-free.
Spain: 185 days without breaking the 90/180 rule
The rule caps every 180-day window, not the calendar year, and a 365-day year holds 2 full windows plus 5 days. Spend January 1 to March 31, June 30 to September 27 and December 27 to 31, 2027, in Spain, with no Schengen days in the 180 days before, and no window ever holds more than 90 days, yet the year holds 185.
Spain makes you tax resident with more than 183 days in the calendar year (LIRPF, article 9), so this traveler never overstayed and is still a Spanish tax resident for 2027.
- Days in Spain in 2027, running total
- Days in the Schengen 180-day window
Source: Schengen Borders Code, Article 6, and Spain's LIRPF, article 9, applied to 1 itinerary (both under Sources) A worked example of the 2 rules, not data about real travelers. The Schengen count never passes 90, while the Spanish total reaches 185 on December 31.
Show the numbers
| Jan 31 | Feb 28 | Mar 31 | Apr 30 | May 31 | Jun 30 | Jul 31 | Aug 31 | Sep 30 | Oct 31 | Nov 30 | Dec 31 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Days in Spain in 2027, running total | 31 days | 59 days | 90 days | 90 days | 90 days | 91 days | 122 days | 153 days | 180 days | 180 days | 180 days | 185 days |
| Days in the Schengen 180-day window | 31 days | 59 days | 90 days | 90 days | 90 days | 90 days | 90 days | 90 days | 90 days | 90 days | 90 days | 90 days |
Most Schengen countries draw their day line near 183, but the 183-day rule differs by country in whether it means 183 or 184 days and which period it counts, so the same itinerary can pass one country's test and miss another's.
Switzerland and Cyprus: tax resident on far fewer days
A stay well inside the Schengen allowance can still make you tax resident. Switzerland's federal tax law creates a tax stay after at least 30 days in the country while working (DBG, article 3), so a working month there leaves 60 Schengen days unused and still makes you taxable in Switzerland as a resident. Cyprus is outside Schengen, so its days save your allowance, but after 60 of them you are resident if you also keep a permanent home there, have a business or job in Cyprus or a directorship of a Cyprus tax-resident company not ended during the year, and spend no more than 183 days in any other single country (PwC, Cyprus residence), which is how Cyprus tax residency fits a year spent mostly elsewhere.
Which country you are tax resident in while you travel
A traveler who keeps every country under its day test can still owe tax somewhere, usually in the country they left, because leaving is a separate test from arriving. The paper that settles where you are resident is a tax residency certificate from your country of residence, not an EES record or a Schengen log.
A year split between Schengen stays and time outside the area still needs a country of tax residence, and comparing what 2 or 3 candidate bases would tax at your income shows which one should hold it.
David's note
I would keep 2 separate logs: one for the Schengen window, checked before every trip, and one per country for its tax test, checked every quarter. The Schengen log keeps you legal at the border and says nothing about where you owe tax; only the country logs show you nearing a tax line.
