# Spain Tax Residence

Tax residency rule, Spain. Page: https://usecountr.com/trackers/tax-es/

## Summary

You are tax resident in Spain for a calendar year when you stay more than 183 days in Spain in that year. Short trips abroad are added to your days in Spain unless you prove that you are tax resident in another country. You are also resident, with any number of days, when the main centre of your business or economic interests is in Spain. A resident pays Spanish income tax on income from the whole world for the full year. The Spanish tax agency, Agencia Tributaria, applies the rule.

- Limit: More than 183 days, so the 184th day makes you resident
- Period: The calendar year, 1 January to 31 December
- Short trips away: Counted as days in Spain unless you prove tax residence elsewhere
- Second test: The main centre of your economic interests is in Spain
- Law: Law 35/2006 on personal income tax (IRPF), article 9
- Run by: Agencia Tributaria (AEAT)

## Who it applies to

- People who spend half the year or more in Spain and travel often.
- Remote workers and retired people who moved to Spain during the year.
- People who left Spain in the middle of a year and think they stopped being resident on that date.
- People who live abroad but whose main business, job or income is in Spain.
- People whose husband or wife and young children live in Spain while they work in another country.

## The rule

Article 9 of Law 35/2006, the personal income tax law, says when a person has their habitual residence in Spain. One of two facts is enough. The first, in paragraph 1, letter a, is that you stay more than 183 days in Spain during the calendar year. The second, in letter b, is that the main centre or base of your activities or economic interests is in Spain, directly or indirectly.

The day test has a special rule. To work out your stay, sporadic absences are counted, unless you prove your tax residence in another country. A sporadic absence is a short or occasional trip away. So a holiday or a business trip abroad does not reduce your Spanish count if you cannot show that another country treats you as its tax resident. The usual proof is a tax residence certificate from the tax authority of that country. For countries that Spain lists as tax havens, the tax agency can ask you to prove that you stayed there for 183 days in the year.

The Supreme Court explained sporadic absences in rulings of 28 November 2017, which the tax agency cites in its income tax manual. The cases were about people who spent more than 183 days of the year abroad on a study grant. The court held that such a stay is not a sporadic absence. It also held that only the real length of the time outside Spain matters, and that the person's plan to return to Spain does not change that.

There is also a family presumption. If your husband or wife, from whom you are not legally separated, and your dependent minor children live habitually in Spain, you are presumed to be resident there. You can prove the opposite.

Spain does not split the year. The tax period is the calendar year (article 12), so you are resident or non-resident for the whole of it. If another country also treats you as resident, the tax treaty between the two countries decides which one comes first. The tax agency looks at the whole situation.

Why it exists: Spain taxes residents on all their income, from any country, and non-residents only on income from Spain. The 183-day line marks the people who really live in Spain. The rule on short trips stops a person from breaking a year into many trips to stay under the line while being resident nowhere. The economic interests test covers people who earn their living in Spain but sleep elsewhere.

## Counting the days

You count the days you were in Spain in one calendar year, and then add your short trips abroad if you cannot prove tax residence in another country.

1. List the days you were physically in Spain between 1 January and 31 December. The law does not define a day, so count every day on which you were in Spain for any part of it.
2. List your short trips abroad in the same year: holidays, visits, business trips.
3. Ask yourself whether you can prove tax residence in another country for that year, normally with a tax residence certificate. If not, add the short trips to your days in Spain.
4. If the total is 184 or more, you are resident for the whole year.
5. If it is 183 or fewer, check the other tests: where the main part of your income and business is, and where your husband or wife and minor children live.

How Countr counts it: Countr lists Spain Tax Residence but does not count it yet. The reason is the rule on short trips. Spain adds sporadic absences to your days in Spain unless you prove tax residence elsewhere. An app that counts only the days you were physically in Spain would show a smaller number than the tax agency may use, and that would be unsafe. When Countr counts this rule, it will count any day with presence in Spain, in the calendar year, against 183 days, with a warning 14 days before. Until then, count by hand with the steps above.

## Examples

### 190 days in Spain

Julia lives in Valencia from 1 January to 9 July 2026, which is 190 days, and then moves to Mexico. She stayed more than 183 days in Spain in 2026. She is Spanish tax resident for the whole of 2026, not only until July. Spain can tax her income from all countries for the full year. A tax treaty may limit that if Mexico also treats her as resident.

### 170 days in Spain plus short trips

Marco lives in Madrid from 1 January to 14 July 2026. In those 195 days he is physically in Spain for 170 days and abroad for 25 days on holidays and work trips. On 15 July he leaves and travels between several countries. He has no tax residence certificate from any country for 2026. The tax agency can add the 25 days of short trips. That gives 195 days, more than 183, so he is resident for 2026.

### 100 days, but the family lives in Spain

Nadia works in Qatar and is in Spain for only 100 days in 2026. Her husband and her two children, aged 8 and 11, live in Seville all year. The day test is not met. But the law presumes that she is resident in Spain, because her husband and her dependent minor children live there habitually. She can prove the opposite, for example with a Qatari tax residence certificate and proof that her home and work are there.

## Exceptions

- Stays in Spain that come from duties under unpaid cultural or humanitarian cooperation agreements with Spanish public bodies are not counted as days in Spain.
- Spanish nationals who move their tax residence to a country that Spain lists as a tax haven stay Spanish taxpayers in the year of the move and the 4 years after it (article 8, paragraph 2).
- Spanish diplomats, consular staff and some other officials who work abroad stay Spanish taxpayers, with their husband or wife and minor children (article 10).
- Foreign diplomats and officials who live in Spain because of their post are not treated as taxpayers, on the basis of reciprocity.
- A tax treaty can make you resident of the other country for treaty purposes although you pass the Spanish test.
- The tax period is shorter than the calendar year only when a person dies during the year (article 13).

## Common misconceptions

- "I count only the days I was physically in Spain." Short trips abroad are added to your Spanish days unless you prove tax residence in another country. Without that proof, your count can be higher than your real days in Spain.
- "If I leave Spain in July, I am resident only until July." Spain does not split the year. With more than 183 days in the calendar year you are resident for all 12 months, and with fewer and no other test met you are non-resident for all 12 months.
- "Under 183 days I cannot be resident." The second test has no day count. If the main centre of your economic interests is in Spain, or your husband or wife and minor children live there, you can be resident with far fewer days.
- "A long stay abroad is a sporadic absence if I always planned to come back." The Supreme Court ruled on 28 November 2017 that only the real length of the absence matters, not your plan to return. In those cases a stay abroad of more than 183 days in the year, on a study grant, was not a sporadic absence.

## Questions and answers

### What is a sporadic absence in Spanish tax law?

It is a short or occasional trip out of Spain. The law does not give a number of days. The Supreme Court has said that only the real length of the absence matters, and that a stay abroad of more than 183 days in the year on a study grant is not sporadic.

### How do I prove tax residence in another country?

The normal proof is a tax residence certificate from the tax authority of that country for the year in question. The law asks you to prove tax residence, which is not the same as showing that you were physically in that country.

### Do the days I arrive in and leave Spain count?

The law does not define a day. The careful way is to count every day on which you were in Spain for any part of it, including the day you arrive and the day you leave.

### Can I be tax resident in Spain and another country in the same year?

Yes. Each country uses its own test. If the two countries have a tax treaty, its tie-breaker rules name one country, looking at your permanent home, your personal and economic ties, where you usually live and your nationality.

### What happens if I pass 183 days by one day?

You are resident for the whole calendar year. Spain can tax your income from all countries for that year.

### Does the 183-day count restart during the year?

It restarts only on 1 January. The days do not need to be in a row: all days in Spain in the same calendar year are added together.

### I moved to Spain in August. Am I resident this year?

By the day test, no: from 1 August to 31 December there are 153 days, fewer than 184. You can still be resident through the economic interests test or the family presumption. If neither applies, you are non-resident for that whole year and resident from the next one.

## Sources

- [BOE - Ley 35/2006 del Impuesto sobre la Renta de las Personas Físicas, artículos 8, 9, 10, 12 y 13](https://www.boe.es/buscar/act.php?id=BOE-A-2006-20764)
- [Agencia Tributaria - Manual práctico de Renta 2025, Residencia habitual en territorio español](https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/irpf-2025/c02-irpf-cuestiones-generales/sujecion-irpf-aspectos-personales/residencia-habitual-territorio-espanol.html)
- [Agencia Tributaria - Manual de Tributación de No Residentes, La residencia de las personas físicas](https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/manual-tributacion-no-residentes/capitulo-01-contribuyente-residencia/residencia-personas-fisicas.html)
- [Consejo General del Poder Judicial - note on the Supreme Court rulings of 28 November 2017 on sporadic absences](https://www.poderjudicial.es/cgpj/es/Poder-Judicial/Noticias-Judiciales/El-Tribunal-Supremo-establece-que-Hacienda-no-puede-cobrar-el-IRPF-a-estudiantes-becados-que-pasen-mas-de-183-dias-al-ano-en-el-extranjero)

---
Countr is an app for iPhone that counts your days in every country for visa, tax and residency rules, from the photos on your phone and your location. It explains rules and counts days. It does not give legal or tax advice. https://apps.apple.com/app/country-days-tracker-countr/id6810720800
