Almost everyone researching how to pay tax in Spain as a foreigner finds the same line: «if you spend more than 183 days a year in Spain, you’re a tax resident.» That’s true, but incomplete — and that «incomplete» is exactly where a lot of people get caught out.
The three doors into Spanish tax residency
Meeting just one of these three conditions is enough to be considered a Spanish tax resident, with an obligation to declare your worldwide income:
- Physical presence: more than 183 days during the calendar year on Spanish territory. Sporadic absences count as days present, unless you can prove tax residency in another country — simply «having been away» isn’t enough, you have to be able to prove it.
- Centre of economic interests: the main core of your activities or economic interests is in Spain, directly or indirectly, even if you physically spend fewer than 183 days here.
- Centre of vital/family interests: your non-legally-separated spouse and dependent minor children habitually reside in Spain. This is the one most people overlook: you can spend fewer than 183 days in Spain and still be considered a tax resident if your family lives here habitually.
If you’re not a resident: Non-Resident Income Tax
Anyone who meets none of the three conditions above is taxed only on income earned in Spanish territory, through the Non-Resident Income Tax (IRNR). General rates are 19% for EU, Iceland, and Norway residents, and 24% for everyone else, unless a double-taxation treaty sets different terms — and Spain has treaties with most of the countries people asking this question usually come from.
The case that causes the most confusion: the «passing through» digital nomad
Someone living in Spain nine months a year working remotely for clients or an employer abroad, with no intention of «staying forever,» usually assumes that since their income doesn’t come from Spain, they don’t owe tax here. The reality is the opposite: if they exceed 183 days, they’re a Spanish tax resident and must declare their worldwide income in Spain, regardless of where their clients or employer are based. The digital nomad visa regulates legal stay, it doesn’t replace or modify this tax rule — they’re two completely separate procedures that shouldn’t be confused.
Dual residency: when two countries claim you at once
It’s possible to meet both Spain’s and your home country’s tax residency criteria at the same time. That’s what double-taxation treaties are for, including tie-breaker rules (permanent home, centre of vital interests, habitual residence, nationality, in that order) to determine which of the two countries you’re a resident of. It isn’t automatic — you have to actively invoke it with both administrations, normally with the help of an adviser familiar with both jurisdictions.
In the comments: if you moved to Spain from another country and had to sort out a dual-residency situation, share how you handled it with both tax administrations and how long it took. It’s the situation where a real case helps far more than the theory of the treaty.
Keep reading on Piratax
Sources: Spanish Income Tax Law (Article 9, tax residency criteria), Non-Resident Income Tax regulations, Spanish Tax Agency. This isn’t tax advice — tax residency is determined case by case and should be confirmed with an adviser if your situation isn’t clear-cut.