Covers: all of Spain (national rules). Where a step is run by your region or city council, the guide says so.
This guide is for internationals who have recently moved to Spain and want to understand how Spanish tax residency works. After reading it, you will be able to explain the tests that decide residency, which income tax applies to residents and non-residents, and the non-resident rates the Agencia Tributaria (Spain’s national tax agency) publishes.
- The three tests for tax residency
- Counting the 183 days
- Economic interests and the family presumption
- Residents pay IRPF, non-residents pay IRNR
- IRNR rates without a permanent establishment
- FAQ
The three tests for tax residency
Tax residency is a national rule. It is set by Article 9 of the IRPF law and explained in the Agencia Tributaria’s practical manual on habitual residence. A person has their residencia habitual (habitual residence) in Spain when any one of these applies:
- They spend more than 183 days in Spanish territory during the año natural (calendar year).
- The main centre or base of their activities or economic interests is in Spain, directly or indirectly.
- Their spouse who is not legally separated and their dependent minor children habitually live in Spain. This creates a presumption of residence that can be rebutted with evidence.
One test is enough. The manual stresses that days are not the only criterion: a person can be resident through the economic-interests test alone. Residence is also not something a person can simply declare for themselves. It is a legal question that has to be proved.
Counting the 183 days
The manual sets out several rules that affect the day count.
- Occasional absences count. Ausencias esporádicas (occasional absences from Spain) are added to the days spent in Spain, unless the person proves they are tax resident in another country.
- Tax havens. Where that country or territory is officially classed as a paraíso fiscal (tax haven), the tax authority may require proof of 183 days spent there in the calendar year.
- Unpaid cultural or humanitarian work. Temporary stays in Spain that result from unpaid cultural or humanitarian cooperation agreements with Spanish public administrations are not counted.
Intention does not decide the count. The TEAC (Tribunal Económico-Administrativo Central, Spain’s central tax appeals tribunal) relies on Supreme Court rulings that a wish to return to Spain does not turn time abroad into an occasional absence. In the same way, a plan to move residence abroad does not change how presence in Spain is counted.
For the TEAC, the count adds up three elements:
- Presencia certificada (certified presence): days proved by unquestionable evidence. Each of these days counts in full, with no minimum number of hours.
- Días presuntos (presumed days): a reasonable run of days between two certified presences. These count unless certified presence outside Spain is proved.
- Occasional absences, which are added to the first two.
The manual describes the legal minimum as 184 days. The pages do not list which documents count as unquestionable evidence; the tax office assesses this case by case.
Economic interests and the family presumption
A person is also resident when the main centre or base of their activities or economic interests is in Spain, directly or indirectly. The pages do not explain how that centre is measured, so the Agencia Tributaria decides on the facts.
The family presumption works differently. If a person’s cónyuge no separado legalmente (spouse who is not legally separated) and dependent minor children habitually live in Spain, the law presumes the person does too, unless they prove otherwise.
There is an exception based on reciprocity. Foreign nationals living in Spain as members of foreign diplomatic missions or consular offices, or holding official posts for foreign states, are not IRPF taxpayers, provided no international treaty rule applies instead.
Residents pay IRPF, non-residents pay IRNR
The Agencia Tributaria’s page on classes of income taxpayers sets out the split:
- Residents pay IRPF (Impuesto sobre la Renta de las Personas Físicas, personal income tax) on their worldwide income.
- Non-residents pay IRNR (Impuesto sobre la Renta de no Residentes, non-residents’ income tax) only on income treated as obtained in Spain.
In both cases, this is without prejudice to any applicable convenio para evitar la doble imposición (double taxation treaty). The tax period is the calendar year and a change of residence does not interrupt it, so a person is resident or non-resident for the whole year.
How IRNR applies depends on whether the income is earned through an establecimiento permanente (permanent establishment) in Spain. Without one, the taxable base is generally the full gross amount, with no expenses deducted. Residents of another EU or European Economic Area state with tax information exchange can deduct the expenses allowed under the IRPF law. To do so, they must prove the expenses are directly linked to the income and activity in Spain. Their general rate is also lower.
The pages describe no regional variation in these rules. They also do not link tax residency to empadronamiento (registering your address), which city councils run as a separate process.
IRNR rates without a permanent establishment
The Agencia Tributaria’s table of IRNR rates lists the following:
- General rate: 19% for residents of the EU, Iceland and Norway, and 24% for all other non-residents. For residents of Liechtenstein, the table shows 24% for an earlier period and 19% for the later period.
- Seasonal workers on a fixed-term contract under employment law: 2%.
- Dividends and other income from holdings in an entity’s equity: 19%.
- Interest and other income from lending capital to third parties: 19%.
- Pensions and similar benefits: a progressive scale with bands taxed at 8%, 30% and 40%. The band limits are set out in the agency’s table.
- Staff of Spanish diplomatic missions and consular offices abroad who are not IRPF taxpayers: 8%.
- Reinsurance income: 1.5%.
- Foreign shipping or airline entities whose ships or aircraft call in Spain: 4%.
- Capital gains from selling or redeeming units in collective investment schemes, and other gains from transferring assets: 19%.
FAQ
Can someone be tax resident in Spain after fewer than 183 days?
Yes. The day count is only one route. A person is also resident if the main centre or base of their activities or economic interests is in Spain. Residence is also presumed if their spouse who is not legally separated and their dependent minor children habitually live there, unless the person proves otherwise.
Does moving to Spain partway through the year split the tax year?
No. The tax period is the calendar year and a change of residence does not interrupt it, so a person is resident or non-resident for the whole year. Any applicable double taxation treaty still applies.
Do trips abroad reduce the day count?
Occasional absences are counted as days in Spain unless the person proves tax residence in another country. An intention to return to Spain does not, on its own, make time abroad an occasional absence.
Can non-residents deduct expenses from Spanish income?
Without a permanent establishment, the taxable base is generally the gross amount with no expenses deducted. Residents of another EU or EEA state with tax information exchange can deduct the expenses allowed under the IRPF law if they prove a direct link to the income and activity in Spain.
Sources: sede.agenciatributaria.gob.es · sede.agenciatributaria.gob.es · sede.agenciatributaria.gob.es
Last verified: 11 November 2026 against the pages linked above. Rules and fees change; the responsible authority always has the final word.
This is general information, not legal, tax or immigration advice. For your own situation, ask the office that handles your case (the Oficina de Extranjería, your ayuntamiento, the Seguridad Social or the Agencia Tributaria), a lawyer (abogado) or a gestor administrativo.
Sources
- sede.agenciatributaria.gob.es: Agencia Tributaria: Residencia habitual en territorio español, accessed 11 November 2026
- sede.agenciatributaria.gob.es: Agencia Tributaria: Clases de contribuyentes en la imposición sobre la renta, accessed 11 November 2026
- sede.agenciatributaria.gob.es: Agencia Tributaria: Tipos de gravamen en el IRNR sin establecimiento permanente, accessed 11 November 2026
Es, for internationals
One email a week: the week's news for internationals in es, new practical guides and what changed in the cities. No spam, unsubscribe any time.








Comments 1