Free guide

Can I stay 6 months in Spain or Portugal?

Not without a visa. If you hold a UK, US, Canadian or Australian passport, the Schengen 90/180 rule limits a visa-free stay to 90 days, whatever Spain's or Portugal's tax rules say. To stay longer you need a national visa, and spending more than 183 days there can make you tax resident.

Your stays in Spain or Portugal

Period

Runs entirely in your browser. Nothing you enter is stored or sent anywhere, and it keeps working offline once the page has loaded.

Two different rules: immigration and tax

People often mix up two numbers. They answer different questions.

  • The Schengen 90/180 rule is about immigration. It decides how long you may stay without a visa: up to 90 days in any rolling 180-day period, across the whole Schengen area. Spain and Portugal are both members, so days in France or Italy go into the same total. Use the Schengen 90/180 calculator for this count.
  • The 183-day rule is about tax. It helps decide which country can tax you as a resident. It is counted country by country.
  • One does not override the other. A 183-day tax threshold does not give you permission to stay 183 days. A visa does not, by itself, make you tax resident.

Staying longer: national visas

To stay more than 90 days in Spain or Portugal, you need a national (long-stay) visa or residence permit from that country. You usually apply before you travel, through its consulate in the country where you live. Time spent on it does not count towards your 90/180 days. Two common routes:

  • Spain. The non-lucrative visa is for people who can support themselves without working in Spain; it generally does not allow work, including remote work. The digital nomad visa is for people working remotely for employers or clients mainly outside Spain.
  • Portugal. The D7 visa is for people with regular passive income, such as a pension or investment income. The D8 digital nomad visa is for people working remotely for employers or clients outside Portugal.

Requirements change and can differ by consulate. Check the official page of the consulate you will apply through: Spain's Ministry of Foreign Affairs or Portugal's visa portal.

The tax side: more than 183 days

  • Spain. You are generally tax resident if you spend more than 183 days in Spain in the calendar year. Short trips abroad can still count as days in Spain. You can also be resident with fewer days if Spain is the centre of your economic interests, or your spouse and dependent children live there.
  • Portugal. You are generally tax resident if you spend more than 183 days in Portugal in any 12-month period starting or ending in the tax year, or if you have a home there that you appear to intend as your habitual residence.
  • Two 90-day stays can add up. A visa-free visitor who uses 90 days, leaves for 90 days and returns can come close to, or pass, 183 days in one country within a calendar year. The tax question can arise even without a visa.

Both countries have specialist regimes for some new residents. Spain has the Beckham regime for people who move there for work; see the Spain 183-day and Beckham law calculator. Portugal has IFICI, which replaced NHR for new applicants; see the Portugal 183-day rule calculator.

Worked example

Press Load the example. It counts calendar year 2026 with stays from 3 January to 15 March, 1 June to 31 August and 1 to 31 December. Counting arrival and departure days, that is 195 days: more than 183, so the Spanish day test is met. Switch to a 12-month period starting 1 January 2026 to see Portugal's count.

The same pattern would not work visa-free. The 1 June to 31 August stay alone is 92 days, more than 90 in one 180-day window. You would need a national visa.

Common mistakes

  • Reading 183 days as a permitted stay. It is a tax test, not an immigration allowance.
  • Counting Spain or Portugal on its own for Schengen. Days in every Schengen country share one 90-day limit.
  • Assuming fewer than 183 days means non-resident. Spain's economic-interest test and Portugal's home test can apply with fewer days.
  • Assuming a residence visa decides tax. Immigration status and tax residence are separate questions.
  • Relying on memory. Keep boarding passes and a day-by-day record.

This is general information, not tax, legal or immigration advice. The calculator counts days in one country against a 183-day threshold. It does not decide residence or immigration status, and it does not apply the Schengen rule. Rules and dates change, so check the official sources linked below and, for your own position, a qualified adviser.

Frequently asked questions

Can a UK citizen stay 6 months in Spain?

Not visa-free. Since Brexit, UK passport holders can stay up to 90 days in any 180-day period in the Schengen area. To stay longer in Spain you need a Spanish national visa or residence permit.

Can Americans or Canadians stay 6 months in Portugal?

Not visa-free. The Schengen 90/180 rule applies. Longer stays need a Portuguese national visa, such as the D7 for passive income or the D8 for remote workers.

Does the 183-day rule let me stay 183 days?

No. The 183-day rule is a tax test. How long you may stay is decided by immigration rules, which for visa-free visitors means 90 days in any 180.

If I stay fewer than 183 days, am I non-resident for tax?

Not necessarily. Spain can treat you as resident if it is the centre of your economic interests or your family lives there, and Portugal if you have a home there you appear to intend as your habitual residence.

Do days in other Schengen countries count?

For the 90/180 rule, yes: all Schengen countries share one total. For the Spanish or Portuguese 183-day tax count, only days in that country count.

Is my data sent anywhere?

No. The calculator runs entirely in your browser. Nothing you type is stored, uploaded or shared.

Sources: Ley 35/2006 del IRPF (article 9), Boletín Oficial del Estado; Portugal national visas, Ministério dos Negócios Estrangeiros; the European Commission’s short-stay calculator. Other free tools: Schengen 90/180 calculator, 183-day rule calculator, UK SRT day counter, US Substantial Presence Test calculator, Spain 183-day and Beckham law calculator, UK FIG regime 10-year checker, Portugal 183-day rule calculator and UAE tax residency days calculator. Related guides: EES and the Schengen 90/180 rule and Snowbird day counter (Canada/US).

Track this automatically every day

Midnightly counts every rule at once, shows its working and exports a signed evidence pack your adviser can verify.

  • Schengen 90/180 and the Spain and Portugal 183-day counts side by side, updated as you travel.
  • UK SRT, US Substantial Presence, Schengen 90/180, US state and 183-day rules in one engine, verified against 58 official worked examples.
  • Your record stays on your iPhone. No account.
Download on theApp Store

Free to download.