
Tax residence in Spain: the 183-day rule for digital nomads
Equipo legal de Extranjería Clara
Abogados colegiados en España
Contenido revisado por el equipo legal de Extranjería Clara, especializado en extranjería y RD 1155/2024.
Immigration residence and residencia fiscal (tax residence) are different concepts. Your tax residence matters when working out where and how much tax you pay. Here is how the Agencia Tributaria (Spanish tax authority) approaches it.
Two criteria: meeting either is enough
Under Article 9 of the Ley del IRPF (Personal Income Tax Law), you have your residencia habitual (habitual residence) in Spain if either of these applies:
You spend more than 183 days in Spanish territory during the calendar year.
The main centre or base of your activities or economic interests is in Spain, directly or indirectly.
How the days are counted
Ausencias esporádicas (occasional absences) count towards the total. Leaving for a few days does not deduct those days, unless you can prove that you are tax resident in another country.
The calculation is objective. The Tribunal Económico-Administrativo Central (Central Economic-Administrative Tribunal) has stated that it does not depend on what you wish to declare. The total includes documented days of presence, days of presumed presence between two documented stays, and occasional absences.
Days are counted by calendar year: from 1 January to 31 December.
The family presumption
Unless there is evidence to the contrary, you are presumed to be tax resident in Spain if your spouse, from whom you are not legally separated, and your dependent minor children habitually live here.
What this means for a digital nomad
If your business activity and clients are abroad but you live in Spain for more than 183 days, you are tax resident in Spain.
If you spend fewer days here but the centre of your economic interests is in Spain, you are also tax resident.
If you are considered tax resident in two countries, a convenio para evitar la doble imposición (double taxation treaty) may apply. This needs to be assessed case by case.
Tax residence matters for the ley Beckham (Beckham tax regime) and for understanding what you need to declare and where. This is general information. Before deciding how many days to spend in Spain or where to file your tax return, your individual circumstances need to be reviewed.
How we support you
We prepare your permiso de residencia (residence permit) application with practising lawyers registered with a bar association. For tax matters, Gestoría Clara reviews your situation and submits the necessary filings.
👉 Tell us about your situation on WhatsApp
Read also
Official sources
BOE (Official State Gazette): Ley 35/2006 del IRPF (Personal Income Tax Law), Article 9
Agencia Tributaria (Spanish tax authority): habitual residence in Spanish territory
Agencia Tributaria (Spanish tax authority): how TEAC defines days of presence
This content is for general guidance and does not replace tax or legal advice. Each case depends on your circumstances. Check your situation with a professional.
Extranjería Clara team · 18/10/2026
Fuentes oficiales
Consulta siempre la información actualizada en la fuente gubernamental oficial:
Ver fuente 1Ver fuente 2Ver fuente 3¿Vas a cruzar un océano? ¿Una nueva vida?
Invierte 90 € en asegurarte de hacerlo bien. Por muy poco, ganas mucha tranquilidad.
50 minutos con un abogado colegiado. 90 € con IVA incluido, pago con tarjeta o Bizum.
Si contratas tu trámite en los 14 días siguientes, descontamos los 90 € de la asesoría.
Contratar asesoramientoPago seguro con Redsys (BBVA)