How Tax Residency Is Determined: Evidence, Presumptions, Treaty Conflicts

~6 min read

The three residency tests are just the rule. The separate question is how Hacienda actually proves you fall under it in practice, and how you can prove otherwise. Here is what data the tax authority actually cross-checks, what courts have said about "sporadic absences," how the family presumption is rebutted in real cases, and why becoming a Spanish tax resident does not let a US citizen stop filing with the IRS.

Contents

How this differs from the general overview

The Resident or non-resident guide covers the three residency tests and what each side pays. This page goes one level deeper, into the question that actually decides a dispute with Hacienda: not “which rule applies,” but “how is it proven.” The three tests are the same for everyone, but evidence is what determines whether you are found a resident in your specific case.

↑ back to contents

How Hacienda establishes residency in practice

The tests themselves sit in art. 9 LIRPF: more than 183 days in a calendar year, the centre of economic interests, and a rebuttable presumption based on a spouse and dependent minor children. But there is no single automated log that counts days for most situations - instead the tax authority cross-checks many data sources and draws a conclusion from the combination:

No single one of these settles the question by itself. Empadronamiento is a frequent source of confusion: it confirms registration at an address, not the number of days actually spent there, and Hacienda treats it as one indirect indicator among many rather than decisive proof either way.

A practical way to check whether a specific bank or service reports under CRS

There is no need to guess or hunt down a separate list of participating countries for each service: when opening an account or signing up for a payment service, the terms of service usually state directly whether that provider participates in CRS automatic exchange. This applies to neobanks like Wise or Revolut too - it is spelled out in their terms exactly as it would be for any traditional bank.

↑ back to contents

Sporadic absences: what the courts said

The rule sounds simple: under art. 9.1.a) LIRPF short trips abroad do not break the 183-day count, which means days of sporadic absence are counted as days spent in Spain. Hence the question of where “sporadic” stops.

The Supreme Court answered it in judgments of 28 November 2017 (among them STS 1829/2017, appeal 815/2017, and STS 1834/2017, appeal 809/2017), and the answer is purely quantitative:

the concept of sporadic absence turns exclusively on the objective fact of the duration or intensity of the stay outside Spanish territory, and its presence cannot be tied to any volitional or intentional element.

Intention to return is therefore irrelevant. An absence of more than 183 days in a year cannot be sporadic, however temporary it was meant to be.

Note that these rulings went against the tax authority, not for it. The cases involved scholarship holders who left to study abroad for more than half a year and expected to come back. Hacienda argued that an intention to return kept the absence sporadic, so the person stayed a Spanish resident taxed on worldwide income. The Court disagreed: an absence longer than 183 days is not sporadic, those days do not count as time in Spain, and non-resident rules apply instead.

The practical takeaway is not the one usually given. Explaining each trip as a one-off episode achieves nothing: the Court expressly removed intention from the test. Only the calendar counts. So for anyone splitting life between two countries, what matters is not the story behind the trips but an accurate and evidenced day count: boarding passes, stamps, invoices, tenancy agreements. It cuts both ways, which is exactly why the evidence matters more than any statement of intent.

↑ back to contents

How the family presumption is rebutted

The presumption applies when the taxpayer’s spouse and dependent minor children live permanently in Spain. It is rebuttable, but rebutted with documents, not a statement of intent:

What actually counts as evidence

Gathering the documents ahead of time (not after a dispute has already started) removes most of the risk. The worst position is a family that is not formally separated, living in Spain, while the taxpayer insists on non-residency with nothing on hand but their own word.

↑ back to contents

Dual residency: the treaty tie-breaker, and the US case

When two countries’ criteria both point to residency at the same time, a double taxation treaty (DTT), where one exists, resolves the conflict. The standard tie-breaker order, common to most OECD-model treaties:

  1. A permanent home available in each country.
  2. If there is a home in both, the centre of vital interests (personal and economic ties).
  3. If that still does not resolve it, habitual abode.
  4. Then, nationality.
  5. If none of it settles the question, a mutual agreement procedure between the two tax authorities.
A special case: US citizens and the "saving clause"

For most nationalities, winning the tie-breaker and being confirmed a Spanish tax resident settles the question: one country taxes your worldwide income, the other only what is sourced there. US citizens are the exception, because of a “saving clause” written into the US-Spain treaty (and into virtually every US tax treaty). It reserves the United States’ right to tax its own citizens as if most of the treaty did not exist, regardless of where they are tax resident.

In practice this means a US citizen who becomes a Spanish tax resident under every one of the tests above still has to file a US Form 1040 every year, report foreign bank accounts (FBAR) and foreign financial assets (FATCA/Form 8938), and does all of this on top of, not instead of, the Spanish return. The treaty and the US foreign tax credit stop the same euro of income being taxed twice, but they do not stop the paperwork: residency, for a US citizen, adds a second tax system rather than replacing the first.

The practical takeaway is the same regardless of the specific country: if a move is planned rather than sudden, formally close tax residency in the country of origin before crossing the border and keep a Spanish residency certificate on hand, rather than sorting out a conflict after the fact.

↑ back to contents

The tax residency certificate

The certificate is requested through your account on the Agencia Tributaria website and confirms residency for the purposes of a specific double taxation treaty - which is why the request usually needs to state which country and which treaty it is for. Absent anything disputed, it is issued quickly, within a few days. You need it to apply a reduced treaty rate, credit tax already paid in another country, or confirm to the Spanish side that you, and not another jurisdiction, are recognised as the tax resident.

↑ back to contents

Frequently asked questions

How does Hacienda know how many days I spent in Spain?

There is no single automated log of entries and exits for most cases, contrary to what many assume - instead the tax authority has a wide set of indirect data: border control records, automatic bank information exchange between countries (CRS), utility consumption, vehicle registration, Social Security data, card payments. All sources get cross-checked together, not judged on any single indicator.

Does municipal registration (empadronamiento) prove tax residency?

Not by itself. Empadronamiento confirms you are registered at an address, not how many days you actually spent there. Hacienda treats it as one indirect factor among many, not as decisive evidence either way.

Is there a limit on how much "sporadic absence" is allowed?

Yes, and it is purely quantitative. In judgments of 28 November 2017 (among them STS 1829/2017 and STS 1834/2017) the Supreme Court held that the concept turns exclusively on the objective fact of how long the person was outside Spain, with no regard to any intention to return. An absence of more than 183 days in a year cannot be sporadic, however temporary it was meant to be.

How do you rebut the family presumption in practice?

You need documents, not statements: proof of the spouses living separately (legal separation, different addresses, independent households), proof that children are adults and financially independent, and proof of each family member's actual, separate centre of life. The presumption is rebuttable, but the burden of proof sits with the taxpayer, and words alone are not enough.

Do US citizens stop owing US tax once they become Spanish tax residents?

No. The US taxes on citizenship, not just residency, and the "saving clause" in the US-Spain treaty lets the US keep taxing its citizens largely as if the treaty did not exist. A US citizen who becomes a Spanish tax resident still files Form 1040 and reports foreign accounts (FBAR, FATCA) every year - the treaty and foreign tax credits prevent the same income being taxed twice, but they do not remove the US filing duty itself.

How do you get a tax residency certificate, and what is it for?

It is requested through your account on the Agencia Tributaria website and is usually issued within days if nothing is disputed. The certificate confirms residency for the purposes of a specific double taxation treaty, and is typically needed to apply a reduced treaty rate or credit tax already paid in another country.