Spain tax residency: 183-day calculator
Updated for · figures checked
Add your stays in Spain for the year and answer a few questions to see whether you’re tax resident in Spain, and how many days you have left.
Result
Calculating…
Sources and last check
- Ley 35/2006 del IRPF, art. 9 (BOE)
- Agencia Tributaria, Manual práctico IRPF: residencia habitual
- Orden HFP/115/2023, jurisdicciones no cooperativas (BOE)
- Convenio España–Emiratos Árabes Unidos (BOE)
Figures checked · next review January 2027 · How we check our figures
What makes you a tax resident in Spain?
Spain’s income tax law (Ley 35/2006, article 9) makes you tax resident for a calendar year if any one of three things applies:
- You spend more than 183 days in Spain in that calendar year, so days or more.
- The main base of your work, business or economic interests is in Spain, directly or indirectly.
- Your spouse (not legally separated) and your minor children who depend on you live in Spain. This one is a presumption: you can rebut it with proof that you live elsewhere.
Residence is decided for the whole year: there is no split year. If you are resident, Spain taxes your worldwide income for that year, and you may need to report assets abroad on the modelo 720. If you are not, Spain only taxes your income from Spain.
If you are resident and work as an employee, the Spain salary calculator shows what your salary leaves you after Spanish income tax and Social Security.
Spain’s 183-day rule: how days are counted
Every day you are in Spain counts, even for a few hours: the Tax Agency counts arrival and departure days as whole days. The days don’t need to be consecutive, so separate trips add up. Only the calendar year matters, so a stay from December to January is split between the two years. Whether you meant to come back makes no difference.
There is a catch: sporadic absences. Time abroad counts as days in Spain unless you can prove you are tax resident in another country. No official source says how long an absence can be and still be sporadic, so the calculator counts only the days you were actually in Spain and warns you when this could matter.
Can you be resident in Spain but not tax resident?
Yes. A residence permit or a TIE card is about immigration, not tax: the Tax Agency itself says you can have a residence permit in a country and not be tax resident there. The opposite also happens: you can be tax resident in Spain without any permit, by spending more than 183 days here or because your business or family is here.
How to stop being tax resident in Spain
Leaving Spain doesn’t end your tax residence on the day you leave. In the year you move abroad, you are resident for the whole year if you spent more than 183 days in Spain. If you spent 183 or fewer, and no other criterion applies, you are non-resident for that whole year. The usual proof that you live elsewhere is a tax residence certificate from the other country’s tax authority, valid for one year. You tell the Tax Agency about the change with modelo 030.
Spanish nationals who move to a place on Spain’s list of non-cooperative jurisdictions, the former tax havens, remain taxpayers in Spain for the year of the move and the next years. Bahrain is on the list; the UAE, Saudi Arabia, Qatar, Kuwait and Oman are not. Gibraltar has its own agreement with Spain, which the calculator explains if you choose it.
Spain tax residency if you live in Dubai or the Gulf
Living in the UAE doesn’t on its own end Spanish tax residence: what counts is your days in Spain, where your economic interests are and where your family lives. If both countries treat you as resident, a tax treaty normally decides, looking first at where you have a permanent home. But the Spain–UAE treaty only counts UAE nationals as UAE residents, so for a Spaniard or another expat in Dubai it probably can’t settle the question, and the Spanish rules decide. Spain has treaties with Saudi Arabia, Qatar, Kuwait and Oman, and none with Bahrain.
The UAE’s Federal Tax Authority issues Tax Residency Certificates for individuals, covering the calendar year. No official Spanish source says whether the Tax Agency accepts it in every case, so also keep proof of your days and your home. Moving the other way, to work in Spain? The Beckham law calculator shows whether its flat rate could lower your tax.
Living abroad long term? Genki offers international health insurance for expats and remote workers (partner link). Check the conditions before you sign up, especially cover in your home country.