Spain's 183-day rule for tax residency
Spain treats you as tax resident if you spend more than 183 days there in a calendar year — but that's only one of three ways in. Many people who "stayed under 183 days" are still resident in Spain's eyes.
The three tests
Under Spanish income tax law (Article 9 of Law 35/2006), you're tax resident in Spain for a calendar year if any one of these applies:
- Days: you spend more than 183 days in Spain during the calendar year.
- Economic interests: the main centre or base of your business activities or economic interests is in Spain, directly or indirectly.
- Family presumption: your spouse (not legally separated) and your dependent minor children habitually live in Spain. You can rebut this by proving you're tax resident somewhere else.
How Spain counts days
The tax year is the calendar year, 1 January to 31 December. The test is more than 183 days — so 184 days or more.
The trap is sporadic absences. Short trips out of Spain are added back to your Spanish days, unless you can prove you're tax resident in another country — typically with a tax residence certificate from that country. If you live in Madrid and spend weekends in Lisbon and a fortnight in Italy, those days may still count as Spanish ones.
For absences in countries Spain lists as tax havens, the tax office can ask you to prove 183 days of presence there.
Residence is all or nothing
Spain has no split-year treatment in its domestic law: if you're resident, you're resident for the whole calendar year and taxed on your worldwide income for that year. If you're not, you only pay Spanish non-resident tax on income that comes from Spain.
When two countries both claim you
If Spain and another country both consider you resident, the tax treaty between them decides, using tie-breakers in a fixed order: where you have a permanent home, then where your centre of vital interests is, then where you habitually live, then your nationality. Spain has treaties with around 90 countries, including the UK, the US and Italy.
A worked example
Giulia is Italian and works remotely. In 2026 she spends 170 nights in Valencia and the rest travelling — 60 days in Italy, a few weeks in the UK, short trips elsewhere. On a pure count she's under 183. But if she has no tax residence certificate from anywhere else, Spain can add those trips back as sporadic absences, and her rented flat and Spanish bank account support the economic-interests test. The safest plan is to know her count every day and to hold proof of residence in the country she says is home.
Spain's tax residency and Schengen are different counts
The 183-day tax test and the Schengen 90/180 rule are completely separate. EU citizens aren't subject to the 90/180 rule at all. Non-EU visitors without a visa can only stay 90 days in any 180 anyway, so the 183-day test mostly matters for EU citizens, residence permit holders and digital nomad visa holders. See the Schengen 90/180 rule for that count.
What to keep as evidence
- A dated travel log with entries and exits.
- Boarding passes, hotel bills and rental contracts.
- A tax residence certificate from your home country if you claim residence there.
Frequently asked questions
Is it 183 days or 184 days in Spain?
The law says more than 183 days in the calendar year, so 184 days or more makes you resident under the days test.
Do short trips abroad stop the count in Spain?
Not necessarily. Sporadic absences are counted as days in Spain unless you can prove tax residence in another country, usually with a tax residence certificate.
Can I be tax resident in Spain with fewer than 183 days?
Yes. If your main economic interests are in Spain, or your spouse and dependent children live there, you can be resident regardless of your day count.