965 92 91 94  ·  info@rieraconsulting.es
Most Innovative Law Firm Award 2025 · Emprendedores magazine
Digital Nomads

Tax residence in Spain for digital nomads: the 183-day rule

Tax residence in Spain for digital nomads: the 183-day rule

Tax residence in Spain for digital nomads is determined, in most cases, by a single criterion: spending more than 183 days in a calendar year in Spanish territory. Once you cross that threshold, the Spanish Tax Agency considers you resident and you become taxable in Spain on your worldwide income (what you earn here and in any other country), regardless of where you invoice, your nationality or whether your clients are abroad.

Key points

  • The 183-day rule: tax residence in Spain for digital nomads is mainly triggered by spending more than 183 days in the calendar year in Spain (art. 9 of Act 35/2006 on Personal Income Tax).
  • No overnight stay needed: a “day of presence” counts even if you do not sleep in Spain; being in the country at any point during the day is enough.
  • Sporadic absences count: short trips outside Spain also count towards the 183 days, unless you can prove tax residence in another country.
  • No partial residence: you are either tax resident for the whole calendar year or not at all.
  • A visa is not tax residence: the digital nomad visa (international remote worker permit) is an immigration status; it can coexist with non-residence or lead to tax residence depending on how much time you spend in Spain.
  • IRPF or IRNR: being tax resident triggers personal income tax (IRPF) on worldwide income; being non-resident triggers non-resident income tax (IRNR) on Spanish-source income only.

What being tax resident in Spain means and why it matters to you as a digital nomad

Being tax resident in Spain means paying personal income tax (IRPF) on your worldwide income, not just on what you earn from Spanish clients or employers. For a digital nomad who invoices clients in the United States, gets paid in cryptocurrency or receives a salary from a German company while working remotely, this has a direct consequence: if the Spanish Tax Agency considers you resident, all that income goes into your Spanish tax return, wherever it was invoiced.

The Spanish Tax Agency (AEAT) applies article 9 of Act 35/2006 on Personal Income Tax (in Spanish) to decide who is resident. This article sets out three independent criteria (meeting just one is enough to be resident): presence for more than 183 days, a centre of economic interests in Spain, or the presumption based on a resident spouse and minor children. The first is the most decisive and the one that most surprises digital nomads.

Anyone who meets none of the three criteria is taxed as a non-resident under Non-Resident Income Tax (IRNR), and only on income from Spanish sources. For a fuller picture of how this group is taxed, see our page on tax advice for digital nomads in Spain.

The 183-day rule: the criterion that causes digital nomads the most problems

The 183-day rule provides that anyone who spends more than half of the calendar year (1 January to 31 December) in Spanish territory becomes tax resident, without any other requirement having to be met. It does not mean 183 consecutive days: it is the sum of all the days of presence in Spain during that calendar year, whether or not they are spread across several stays.

What counts as a “day of presence” in Spain

A day counts as presence if you are in Spain at any point during that day, even if only in transit. The Spanish Tax Agency’s practical guide on tax residence (in Spanish) applies a strict physical presence test: it does not require an overnight stay or a minimum number of hours. Landing at a Spanish airport at 11 pm and leaving again the following day already counts as presence in Spain.

Sporadic absences also count towards your total

By default, sporadic absences from Spain are treated as days of presence in Spain for the purposes of the 183-day count, unless the taxpayer proves tax residence in another country with a certificate issued by the relevant tax authority. This means a two-week trip to your home country in the middle of the year does not automatically “subtract” days: if you cannot prove you are tax resident elsewhere, those days are added to your presence in Spain.

Where those absences are spent in a country or territory classed as a tax haven, the Spanish tax authorities may require proof of actual presence there for 183 days, a considerably more demanding standard of proof.

There is no partial residence: you are resident for the whole year or not at all

Tax residence in Spain always applies to the full calendar year, with no splitting. There is no such thing as “resident for six months and non-resident for the other six”: if you exceed 183 days between January and December, you are treated as tax resident for the whole year, including the months you spent outside Spain before settling here.

The other two criteria that determine tax residence in Spain for digital nomads

Although the day count is the criterion that most often applies to digital nomads, article 9 of the Income Tax Act provides two further, independent routes that also create tax residence.

Centre of economic interests

A person is considered tax resident in Spain if the main core or base of their business activities or economic interests is located in Spain, directly or indirectly. For a digital nomad, this can be triggered by setting up a Spanish company, invoicing mainly to Spanish clients or keeping the bulk of their investments or assets in Spain, even while spending fewer than 183 days in the country.

The presumption based on a spouse and minor children

The law presumes, unless proven otherwise, that the taxpayer is tax resident in Spain when their spouse (not legally separated) and dependent minor children habitually live in Spain. It is a presumption, not an automatic rule: it can be rebutted if the taxpayer proves effective tax residence in another country, but it shifts the burden of proof onto the digital nomad whose family has settled in Spain while they travel frequently.

Resident vs non-resident digital nomad: how your Spanish taxation changes

ItemTax resident (IRPF)Non-resident (IRNR)
Taxable incomeWorldwide income (all income, wherever it arises)Only income obtained in Spain
Tax rateProgressive state + regional scale (approx. 19% to 47%)24% general rate (19% for EU/EEA residents) on each item of income
ReturnAnnual, form 100 (income tax return)Per transaction or quarterly/annual, form 210
Assets abroadMust be declared on form 720 above the legal thresholdsNot applicable
Double tax treatiesCredits or exemptions may apply under the treaty with the country of originTaxed only on Spanish-source income, unless the treaty provides an exemption
Special inbound workers regimeCan be requested if the requirements are met (24% flat rate on the first band)Not applicable (no longer taxed under IRPF)

The special regime for international remote workers: tax advantages if you become resident

The special regime for inbound workers allows people who move to Spain to work remotely for a foreign company to pay a flat rate of 24% for the first six years, instead of the progressive income tax scale, which can reach 47% in the top bands. This regime, widely known as the “Beckham Law”, was extended to international remote workers by Act 28/2022 (the Startups Act) (in Spanish), which amended article 93 of the Personal Income Tax Act and, in parallel, Act 14/2013 on support for entrepreneurs to create the residence permit for international remote workers.

To qualify, the digital nomad must become tax resident in Spain, must not have been resident in the previous five years and must move to work remotely as an employee of a foreign company; self-employed people invoicing on their own account are, as a general rule, excluded from the regime. In other words, this regime is not a way to avoid tax residence, but a tax benefit reserved for those who take it on.

The digital nomad visa is not the same as tax residence in Spain

The digital nomad visa (formally, the international remote worker permit; page in Spanish) is an immigration status that governs your right to live in Spain and work remotely from here, but it does not by itself determine your tax residence. These are two different legal regimes, managed by different authorities: the Immigration Office for the immigration side and the Tax Agency for the tax side. For self-employed applicants, one of its requirements is that work for Spanish clients must not exceed 20% of the total.

It is perfectly possible to hold a valid digital nomad visa and remain non-resident for tax purposes, if you spend fewer than 183 days in Spain and do not meet the other two criteria of article 9. Conversely, you can become tax resident through presence without any visa at all, simply by staying more than half the year. The most common mistake among digital nomads is assuming that having the visa automatically means being taxed as a resident, or that not having one protects them from it.

What happens if two countries claim you as tax resident at the same time

When Spain and your home country each apply their own rules and both consider you tax resident in the same year, there is a dual residence conflict, which must be resolved under the double tax treaty between the two countries, if there is one. Most treaties signed by Spain follow the OECD model and apply tie-breaker tests in this order: permanent home available, centre of vital interests (closest personal and economic relations), habitual abode and nationality.

To prove tax residence to the Spanish Tax Agency or to another country’s tax authority, the usual instrument is the tax residence certificate, which the Spanish Tax Agency issues to those who meet the requirements of article 9. Without this certificate, a digital nomad who splits their time between two or more countries may end up declaring the same income in both, without being able to claim the tax credit they would be entitled to.

The most common mistakes in managing tax residence in Spain as a digital nomad

  • Confusing the visa with tax residence, assuming one automatically implies the other.
  • Not counting sporadic absences as days of presence, when the law adds them unless residence in another country is proven.
  • Forgetting form 720 after becoming tax resident, if you hold accounts, property or investments abroad above the legal thresholds.
  • Thinking that invoicing foreign clients exempts you from Spanish tax, when what matters is not where the client is but where the service provider is tax resident.
  • Mixing up the visa requirements with those of the tax regime: the 20% limit on work for Spanish clients is an immigration requirement for the self-employed, whereas the inbound workers regime requires you to work as an employee and, as a general rule, excludes self-employment.
  • Not obtaining a tax residence certificate when splitting the year between two countries, leaving yourself open to avoidable double taxation.

Frequently asked questions

What is tax residence in Spain for a digital nomad?

Tax residence in Spain for a digital nomad is the tax status that requires you to declare all your worldwide income for Spanish personal income tax, mainly triggered by spending more than 183 days in Spanish territory during the calendar year.

How many days can I spend in Spain without becoming tax resident?

You can spend up to 183 days in the calendar year without triggering tax residence under this criterion, provided your centre of economic interests is not in Spain and the presumption based on a spouse and minor children does not apply.

Does the digital nomad visa automatically make me tax resident?

The digital nomad visa does not automatically make you tax resident. It is a separate immigration status; tax residence depends on the days of presence and the other criteria in article 9 of the Personal Income Tax Act.

Do sporadic absences from Spain count towards the 183 days?

By default, sporadic absences count as days of presence in Spain, unless you prove tax residence in another country with a certificate from the relevant tax authority.

Can I be tax resident in Spain and in my home country at the same time?

You can be, if both countries apply their own residence rules and both consider you resident. The conflict is resolved using the tie-breaker tests in the applicable double tax treaty, if there is one.

What is the special regime for remote workers and who can apply?

It is the extension of the inbound workers regime (the Beckham Law) that allows people who move to Spain to work remotely as employees of a foreign company to pay a 24% flat rate for six years, provided they have not been resident in the previous five years.

Do I have to declare my foreign bank accounts if I am tax resident in Spain?

You must declare them on form 720 if, as a tax resident, your accounts, securities or property abroad exceed the legal thresholds set by the regulations.

How do I prove I am not tax resident in Spain if the Tax Agency claims I am?

You prove it by providing a tax residence certificate issued by another country’s tax authority and, where appropriate, by invoking the tie-breaker tests of the relevant double tax treaty.

A simple rule that requires precise management

The 183-day rule is easy to state and hard to apply correctly when a digital nomad’s life is spread across several countries, currencies and sources of income. Getting your tax residence in Spain right as a digital nomad (and the IRPF and IRNR taxation that follows from it) is what makes the difference between planning with room to manoeuvre and regularising under pressure.

At Riera Consulting we handle these situations through our international tax advisory service and our dedicated tax residence service for digital nomads. If you would like us to review your case, contact our team.

Share

Keep reading

The Beckham Law for digital nomads in Spain: when it pays off in 2026 and when it does not
Digital Nomads

The Beckham Law for digital nomads in Spain: when it pays off in 2026 and when it does not

Requirements, rates and limits of the Beckham Law for digital nomads in Spain: when it beats ordinary income…

9 Oct 2026Read the article
Riera Consulting impulsa una denuncia ante la UE por la fiscalidad aplicada a los nómadas digitales en España y los emprendedores internacionales.
International Taxation

Riera Consulting impulsa una denuncia ante la UE por la fiscalidad aplicada a los nómadas digitales en España y los emprendedores internacionales.

Nuestro CEO, Víctor Riera, ha presentado una denuncia ante la Comisión Europea por la fiscalidad aplicada a los…

11 Nov 2025Read the article
Nómadas digitales: quiénes son y cómo tributan en España
International Taxation

Nómadas digitales: quiénes son y cómo tributan en España

El avance de la digitalización y el auge del teletrabajo han dado lugar a la consolidación de un…

10 Nov 2025Read the article
En 2023, cualquier persona que realice una actividad económica podrá acceder al régimen de impatriado
Derecho Laboral

En 2023, cualquier persona que realice una actividad económica podrá acceder al régimen de impatriado

Desde 1 de enero de 2023, podrán acceder al régimen de impatriados no solo los trabajadores por cuenta…

15 Dec 2023Read the article
Newsletter

Subscribe to Tax Updates.

The tax news that can really affect you, in your inbox. No spam.

Boletín

Does your case need a specialist?

Tell us about your situation and the lawyer who would handle your case will get back to you. The first consultation carries no obligation.

Request a first consultation
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.