Guide · Art. 9 LIRPF

Tax residence in Spain: where you pay tax and why.

Whether or not you are resident decides if you pay tax on your worldwide income or only on income obtained in Spain. These are the tests, the evidence that carries weight and what happens when two countries claim you at the same time.

Guide
01 / 05
Reading time
9 min
Last reviewed
November 2026

Why residence decides everything

A tax resident of Spain pays Spanish personal income tax (IRPF) on all of their income, whichever country it comes from. A non-resident, by contrast, pays non-resident income tax (IRNR) only on Spanish-source income.

That is why residence is the first question in any international planning: it determines the tax that applies, the reporting obligations on assets abroad and how double tax treaties are applied.

The tests in article 9

The law provides three routes for treating a person as resident. Meeting any one of them is enough, and the burden of proof does not always fall on the same side.

Tax residence tests (art. 9.1 LIRPF)
TestWhat is examinedHow it is usually proved
Physical presenceDays spent in Spanish territory during the calendar year, including sporadic absencesPassport, tickets, rental contracts, spending records
Centre of economic interestsWhere the main core or base of your business activities or economic interests liesSource of income, location of assets, place of business
Family presumptionHabitual residence in Spain of the spouse (not legally separated) and dependent minor childrenMunicipal registration (empadronamiento), school enrolment; can be rebutted with evidence

Try it: the physical presence test

200days

Tax resident in Spain

You meet the physical presence test: you pay Spanish personal income tax (IRPF) on your worldwide income.

Indicative only. Sporadic absences count as days in Spain unless you prove tax residence in another country.

When two countries treat you as resident

It is common for the domestic law of two States to treat you as resident at the same time. In that case, if there is a treaty, its tie-breaker rules apply in sequence: permanent home, centre of vital interests, habitual abode, nationality and, as a last resort, agreement between the competent authorities.

The outcome is documented with a certificate of tax residence for treaty purposes, which you should request before any information request from the tax authorities arises.

Change of residence and exit tax

If you cease to be resident, you may be taxed on unrealised gains in shares and holdings (art. 95 bis LIRPF) when you have been an IRPF taxpayer for at least ten of the previous fifteen tax periods and the market value of your shares or holdings exceeds €4,000,000, or €1,000,000 if your holding in an entity is above 25%.

You also need to consider notifying the change of address, the last tax year as a resident and, for moves to the EU or the EEA, the deferral options provided for in the legislation.

Frequently asked questions

01What happens if I do not exceed 183 days but my family lives in Spain?

The presumption of residence based on your spouse and minor children applies, and it can be rebutted. You will need to prove tax residence in another State, normally with a certificate.

02Can I become resident halfway through the year?

IRPF is determined by calendar year: you are either resident or non-resident for the whole tax year. When two States treat you as resident in the same year, the treaty decides which one has residence; some treaties also contain specific rules for the year of the move, so you need to read the relevant one.

03Does municipal registration (empadronamiento) count as proof?

It is an indication, not conclusive proof. The tax authorities and the courts look at all the circumstances together.

This guide is for general information and does not replace the analysis of a specific case. Check the legislation cited in its current wording.

Next step

Tell us about your case. We reply with a plan, not a brochure.

Technical assessment by email · reply within 48 working hours · Madrid · Düsseldorf · Caracas · Miami