Every country guide on this blog eventually touches, in one way or another, the same question: what happens if two countries consider you a tax resident at the same time? The answer almost always lies in a double tax treaty (DTT) — a bilateral agreement that decides, with specific rules in a specific order, which country gets priority to collect. Spain has more than 90 signed, including every EU country, the UK, the US, and most Latin American countries. This is the guide the rest of the blog’s articles point to instead of repeating it in each one.
The most important rule: the treaty overrides domestic law
When a DTT exists between Spain and another country, its provisions take precedence over ordinary Spanish domestic tax law in everything it regulates. This doesn’t mean you can «choose» to be taxed under the treaty when convenient and under domestic law otherwise: it means that, in case of conflict between the two for your specific situation, the treaty applies first.
The tie-breaker rules, in the exact order they’re applied
When two countries claim you as a resident at the same time — each correctly, under its own domestic criteria, with neither one being «wrong» on its own — the treaty resolves the conflict by applying these criteria in cascade, moving to the next only if the previous one doesn’t settle it:
- Permanent home available to you. If you only have a permanent home in one of the two countries, that country wins. If you have one in both (or neither), move to the next criterion.
- Centre of vital interests. The country you have the closest personal and economic ties with: where your family is, where you manage your wealth, where your main activity is.
- Habitual abode. Which of the two countries you habitually live in, if the previous criterion still doesn’t settle it.
- Nationality. The last resort, if none of the above breaks the tie.
In practice, the vast majority of cases resolve at the first or second criterion. Reaching the fourth is the exception, not the rule.
How it’s actually invoked (it isn’t automatic)
No treaty applies itself. If tax is withheld at source in another country and you want to claim the corresponding deduction on your Spanish return, you have to actively claim it, providing documentation proving that withholding — usually a tax-residency certificate and proof of the withholding applied. Simply leaving that income off your Spanish return, assuming «it was already taxed abroad,» is not the same as declaring it and correctly applying the double-taxation deduction: the first is a mistake the tax authority catches easily through information exchange; the second is exactly the mechanism the treaty exists to allow.
Real cases to make it concrete
- An author resident in Spain receiving royalties from a Dutch publisher: the Netherlands withholds a percentage at source, Spain taxes those royalties at its own rates, and the Dutch withholding is deducted from the final Spanish tax bill — no paying twice for the same thing.
- Someone with a home in both Spain and Portugal, with neither clearly «the main one»: the tie-breaker moves to centre of vital interests — where their family lives, where they run their main economic activity.
- A retired US citizen resident in Spain collecting Social Security benefits: the Spain-US treaty has specific provisions to prevent that benefit from being taxed twice.
When there’s no treaty: the awkward case
Spain doesn’t have a double-taxation treaty for individuals on the same terms with every country — the United Arab Emirates is a relevant example for anyone considering that destination. Without a treaty, resolving a residency conflict depends solely on each country’s domestic rules separately, with no agreed tie-breaker rules between them — a considerably more uncertain scenario that deserves specialist advice before organising any move.
In the comments: if you’ve had to resolve a real dual-residency conflict by applying a treaty, share which tie-breaker criterion applied in your case and how you documented it with both administrations. It’s the information hardest to find outside the cold text of the treaty itself.
Keep reading on Piratax
Sources: double tax treaties signed by Spain (Tax Agency), the OECD Model Tax Convention most bilateral DTTs are based on, case law on tax residency conflicts. This isn’t tax advice — applying a treaty to your specific case depends on particular facts worth reviewing with an international tax specialist.