How the Schengen days are counted
A 90-day stay in Portugal that begins on 1 April 2027 has to end on 29 June 2027. Subtract one date from the other on a calendar and you get 89, which is how a plan ends up a day over.
The rule is a maximum of 90 days within any 180-day period, counting back 180 days from each day of your stay. The word "any" is the catch. The window moves, so on every day of a stay the last 180 days are checked again. An uninterrupted absence of 90 days allows a new stay of up to 90.
Here is a worked example, our own arithmetic rather than the Commission's. Say you spend 1 April to 30 May 2027 in Portugal, which is 60 days, and return on 1 August. Staying to 30 August brings the 180-day total to exactly 90, and 31 August makes it 91.
Checking a plan against the rule
Count both end days
The day you enter counts as the first day of stay and the day you leave counts as the last, so both are full days.
Look back from every day
For each day of the stay, count back 180 days and add up the days you spent inside the area. The total must not pass 90.
Count the whole area, not one country
There are 29 countries in it, and Cyprus and Ireland are not among them. Days in Italy and days in France are added to days in Portugal.
Leave out permit time
Time spent under a residence permit or a long-stay visa does not count towards the 90. Do not give those dates to the Commission's short-stay calculator.
Test the plan with your real dates
Run the short-stay calculator with the dates you will actually travel, and again if they change.
What the Entry/Exit System and ETIAS change
Since 10 April 2026 a border system has your dates. The Entry/Exit System (EES) is the automated register of non-EU nationals on short stays. It records your name, travel document data, fingerprints and a facial image, plus the date and place of each entry and exit. It also records refusals of entry. Its progressive start began on 12 October 2025, and it became fully operational on 10 April 2026, replacing the stamping of passports and letting overstayers be detected automatically.
ETIAS has not started. The system is not in operation and no applications are being collected, and the EU says it will announce the start date several months before launch. It is a travel authorisation for visa-exempt travellers entering 30 European countries for up to 90 days, with a listed fee of EUR 20. Plan around what is in force today.
Mexico and Costa Rica: up to 180 days, set at the border
Six months is the ceiling in Mexico, not the promise. The migration law gives a visitor without permission for paid work a stay of no more than 180 days from entry. Canada's advice is that the maximum is not granted automatically: the immigration officer decides the exact length and may ask for the purpose of the trip, where you are staying, your funds and your return or onward flight. You can't extend beyond the number of days you told the officer on arrival, so plan around the number on your stamp or receipt.
Costa Rica puts the US, Canada, Australia and New Zealand in the group that enters without a visa, with a maximum of 180 calendar days (guidelines of November 2025). An extension is granted only to people given fewer than 90 days, and then for up to 90. Entry needs proof of funds of at least US$100 for each month of stay and a ticket out. Australia's travel advice gives a shorter figure for its own citizens: no visa for a tourist visit of less than 90 days. The two differ, so ask the officer how many days you have been given.
The Costa Rica against Mexico page sets the two side by side.
Thailand and Malaysia: shorter by default
Thailand ended its 60-day visa exemption on 15 September 2026. Sixty countries and territories, including Australia, Canada, New Zealand and the United States, now get up to 30 days. The stay can be extended by up to 30 days, solely at the discretion of the immigration officer, and visitors must carry cash or the equivalent of 20,000 baht per person or 40,000 baht per family. To be safe, carry more than 20,000 baht for each adult. Entry through land borders under the exemption is generally limited to twice a calendar year. Limits on air arrivals, and whether repeated entries get questioned: not published; ask the embassy.
Malaysia is longer. As of February 2026, Canadians and Americans can stay 90 days for tourism or business without a visa in advance, and Australians can usually get a 90-day tourism visa on arrival, with a visa to arrange beforehand for business, volunteer work, study or research. For New Zealand passports the stay length is not published; ask the Malaysian mission. The short-term social visit pass is given on arrival for purposes such as tourism and meetings, and an extension comes only on special consideration, for example illness or an accident.
The Malaysia against Thailand page covers the longer routes.
| Detail | Schengen area | Mexico | Costa Rica | Thailand | Malaysia |
|---|---|---|---|---|---|
| Longest stay without a visa | 90 days in any 180 | Up to 180 days, set by the officer at entry | Up to 180 calendar days | 30 days | 90 days for Americans and Canadians; usually 90 days on arrival for Australians; not published for New Zealanders |
| Extension | Not listed | None beyond the days given at entry | Only if you were given fewer than 90 days, then up to 90 | Up to 30 days, at the officer's discretion | Only on special consideration, such as illness or an accident |
| What you may be asked to show | Not listed | Purpose of the trip, where you are staying, funds, onward flight | At least US$100 for each month of stay, and a ticket out | 20,000 baht per person or 40,000 baht per family, in cash or the equivalent | Not listed |
| Latest change | Entry/Exit System fully operational on 10 April 2026; ETIAS not yet running | Migration law last reformed on 15 January 2026 | Guidelines of November 2025 | 30-day exemption from 15 September 2026, replacing 60 days | Travel advice as of February 2026 |
A visit is not residence
Say you keep your job with a company at home and work from a rented flat during the trial. Whether that is allowed depends on the entry category. Mexico's law describes the 180-day visitor stay as being without permission to carry out paid activities. Costa Rica allows tourists rest, recreation or other leisure, and business or professional purposes only where the activity brings no pay or profit within Costa Rica. Canada's advice for Thailand sends anyone who wants to work to the Thai authorities for the right visa.
Days can also create a tax position that has nothing to do with your visa. In Thailand a resident is anyone staying for periods adding up to more than 180 days in a calendar year, and residents are taxed on foreign income brought into the country. On our arithmetic a 30-day exemption plus a 30-day extension is 60 days, so three such stays in one year reach 180. The article on the Australian FIFO roster sets out how Thailand, Malaysia and Portugal each count days. Your home country has its own test too.
Turning a stay into a residence permit
The same 90 visa-free days lead to different next steps depending on the country, and the difference is worth knowing before you choose where to spend them. Spain accepts a telework application from inside the country, from a US passport holder. Costa Rica lets a tourist ask to change category. Mexico does not, and Portugal's checklist is written for an application at a consulate.
Whether you could switch from inside Thailand or Malaysia is not published; ask the consulate before you count on a switch. The Portugal and Spain comparison covers their longer routes.
What each country allows once you are inside
Spain
A US passport holder who spends a visa-free 90 days in Spain can apply for a telework residence permit from inside the country, without a prior telework visa.
Mexico
Visitors cannot change their stay category, except for humanitarian reasons or a link to a Mexican or a legal resident of Mexico, and must leave when the authorised period ends.
Costa Rica
People who entered as tourists can ask to change category under the legal requirements, unless the guidelines say otherwise for that case.
Portugal
A long-stay visa is required to enter and stay for more than 90 days, and the residency checklist is written for a visa application at a consular post, with proof of regular status where you apply.
What to settle before you book
Four questions come out of the rules above, and each has an office that can answer it. The first is the number of days the officer will give you: in Mexico and Costa Rica it is set on arrival, and in Thailand it is 30 whatever you planned. The second is how much of your Schengen allowance is already used, which only your own dates and the calculator can settle. The third is what the entry category lets you do, in particular for a job at home. The fourth is whether you can switch to a residence permit from inside the country, which decides whether a trial can lead anywhere without a flight out and a new application.
The last two are the ones the published rules answer least. Ask the consulate of the country before you book, and keep the reply with your passport. A written answer is easier to show an officer than a memory of a phone call.
Questions people ask
How do I calculate 90 days in 180 in the Schengen area?
Count the day you enter and the day you leave as full days, and on every day of your stay look back 180 days. The days you spent inside the area in that window must not pass 90. The Commission's short-stay calculator does the sum.
Does the Entry/Exit System change the 90 in 180 rule?
No. It records your entries and exits automatically, so a miscount is no longer hidden by a missing passport stamp. It became fully operational on 10 April 2026. ETIAS is a separate authorisation that has not started, and the EU says it will announce a start date several months before launch.
How long can I stay in Thailand without a visa?
Up to 30 days under the exemption that began on 15 September 2026 for Australian, Canadian, New Zealand and US passports. An extension of up to 30 days is at the discretion of the immigration officer.
Can I work remotely during a visa-free stay?
How a remote job for a foreign employer is treated is not published; ask the consulate. Mexico describes the visitor stay as without permission for paid activities, and Costa Rica allows business purposes only where the activity brings no pay or profit within the country.
Can I extend a stay in Mexico or Costa Rica?
In Mexico you cannot extend beyond the number of days the officer gave you at entry. In Costa Rica an extension of up to 90 days is granted only to people who were given fewer than 90.
Can I switch to a residence permit from inside the country?
It depends on the country. A US passport holder can apply for a Spanish telework permit from inside Spain, Costa Rica lets tourists ask to change category, and Mexico does not allow it apart from narrow exceptions. For Thailand and Malaysia it is not published; ask the consulate.
Fernshore articles explain published rules as of the dates shown in the sources. They are research, not legal, tax or financial advice for your situation.
Sources
- Schengen Handbook, guidelines on calculation of the length of stay (Commission Recommendation C(2022) 7591), European Commission, Migration and Home Affairs. Checked 17 October 2026.
- Short-stay calculator (90/180-day rule), European Commission, Migration and Home Affairs. Checked 17 October 2026.
- Entry/Exit System (EES), European Commission, Migration and Home Affairs. Checked 17 October 2026.
- European Travel Information and Authorisation System (ETIAS), official website, European Union (travel-europe.europa.eu). Checked 17 October 2026.
- Ley de Migración, articles 52 and 53 (last reform 15 January 2026), Internet Archive copy, Cámara de Diputados, Mexico. Checked 17 October 2026.
- Mexico travel advice and advisories, Government of Canada (travel.gc.ca). Checked 17 October 2026.
- Mexico travel advice, Internet Archive copy, Australian Government, Smartraveller. Checked 17 October 2026.
- Thailand introduces new 30-day and 15-day visa exemption rules from 15 September, Tourism Authority of Thailand (TAT Newsroom). Checked 17 October 2026.
- New Tourist Visa Exemption Scheme (30 days), effective 15 September 2026, Royal Thai Embassy, Washington D.C. (Ministry of Foreign Affairs of Thailand). Checked 17 October 2026.
- Thailand travel advice and advisories, Government of Canada (travel.gc.ca). Checked 17 October 2026.
- General guidelines for entry and stay visas for non-residents (November 2025), Internet Archive copy, Dirección General de Migración y Extranjería, Costa Rica. Checked 17 October 2026.
- Costa Rica travel advice, Internet Archive copy, Australian Government, Smartraveller. Checked 17 October 2026.
- Malaysia travel advice, Internet Archive copy, Australian Government, Smartraveller. Checked 17 October 2026.
- Malaysia travel advice and advisories, Government of Canada (travel.gc.ca). Checked 17 October 2026.
- Malaysia international travel information, Internet Archive copy, US Department of State (travel.state.gov). Checked 17 October 2026.
- Short term social visit pass, Immigration Department of Malaysia. Checked 17 October 2026.
- Telework visa, Consular Section, Embassy of Spain in Washington, D.C.. Checked 17 October 2026.
- Who needs a visa, Portuguese Ministry of Foreign Affairs (visa portal). Checked 17 October 2026.
- Residency visa: necessary documentation, Portuguese Ministry of Foreign Affairs (visa portal). Checked 17 October 2026.
- Personal income tax: taxable person, Revenue Department, Thailand. Checked 17 October 2026.
See what your situation makes possible.



