Are you a Spanish tax resident? The 183-day rule, and the other two almost nobody looks at

Updated on 1 August 2026. Articles 8, 9, 10, 93 and 95 bis of the IRPF Law, articles 1, 5, 6, 10, 25 and 46 of the IRNR Law, its regulations and article 4 of the double taxation treaties, checked against the consolidated texts published on the BOE, Spain's official gazette.

Quick answer

You are a tax resident in Spain if any one of the three circumstances in article 9.1 of the IRPF Law applies: you stay more than 183 days of the calendar year in Spanish territory, the main core or base of your activities or economic interests is here, or your spouse (not legally separated) and your dependent minor children habitually live in Spain (this last one is a presumption you can rebut). One is enough: you do not need all three. If any of them applies you are an IRPF taxpayer, taxed on your worldwide income. If none applies, Spain only taxes the income you obtain in Spanish territory, through the IRNR.

It is the first question of all and almost nobody answers it in full, because almost everybody stops at the 183 days. Article 9.1 of the IRPF Law has three doors and crossing one of them is enough: the days, the money and the family. Here we open them one by one with the text of the law, plus the five-year quarantine that follows anyone who moves to a tax haven, the treaty tie-breaker for when two countries claim you at the same time, and what to do the moment you know which side you are on.

What is at stake: not a different rate, a different tax altogether

Your residencia fiscal (tax residence) does not change a rate of tax: it changes the whole tax.

Hence the summary you will always hear: resident, worldwide income; non-resident, Spanish income only. Article 5 of the IRNR Law closes it by elimination (an IRNR taxpayer is the non-resident who obtains income here "unless they are an IRPF taxpayer") and its article 6 does not even define residence: it borrows the definition from article 9 of the IRPF Law. A single article draws the entire border.

With numbers. A flat on the coast, valor catastral of €90,000, owned 50% each by a married couple, empty all year, in a municipality inside the revision window of article 85.1 of the IRPF Law (1.1%). Two Spanish terms to pin down before the table: the valor catastral is the value the Catastro, Spain's property register kept for tax purposes, assigns to each property, and it is neither the price you paid nor the market price; you read it on the receipt for the IBI (Impuesto sobre Bienes Inmuebles), the annual property tax your town hall charges. The imputed income here is €990 a year, €495 per spouse:

Situation of the ownersBase per spouseRateTax per spouse
Non-residents, living in Germany€49519%€94.05
Non-residents, living in the United States€49524%€118.80
Residents in Spain and it is their main home€0IRPF€0 on the flat

The 19% is for residents in the European Union, Iceland, Norway and Liechtenstein; the 24%, for everyone else (article 25.1.a) of the IRNR Law). The United Kingdom left that group in 2021, and this is the line that matters most to a British owner: you pay 26% more today than your German neighbour on the identical flat, and nothing landed on the doormat to announce it. And if that couple were resident and the flat were their main home, they would impute nothing on it (article 85.1), but their entire worldwide income would run through the IRPF, with reporting duties a non-resident simply does not have, starting with the modelo 720 return on assets and rights held abroad.

Test 1: more than 183 days in the calendar year

Article 9.1.a) of the IRPF Law is literal: you are resident if you "stay more than 183 days, during the calendar year, in Spanish territory". Two points almost everybody skips:

If the other country is a tax haven, the burden goes up again: the Administration "may require proof of the stay there for 183 days in the calendar year" (article 9.1.a). Having left Spain is no longer enough; you have to show where you actually were.

There is one express exception to the count, and it is narrow: temporary stays deriving from cultural or humanitarian collaboration agreements, free of charge, with Spanish public administrations do not count.

What about someone who leaves halfway through the year for work? There is a procedure of its own: the AEAT (Agencia Estatal de Administración Tributaria, the Spanish tax agency) issues, within ten working days, a document so that the payer starts withholding under the IRNR straight away (article 32 of the IRNR Law and article 17 of its regulations). It rests on a stay of more than 183 days in the other country being foreseeable, it lasts a maximum of two calendar years and, in the words of the rule itself, it "shall not exempt the worker from proving their new tax residence". It is a withholding adjustment, not a certificate of non-residence.

Test 2: the core of your economic interests is here

Article 9.1 says you are resident "when any of the following circumstances applies". Any. It is not a ladder with the days on the first rung: they are independent doors, and the second one is economic.

Letter b) of article 9.1 makes resident anyone who has in Spain "the main core or the base of their activities or economic interests, directly or indirectly". The practical consequence catches a lot of people out: you can be a Spanish tax resident without having been in Spain for 183 days. A hundred days of stay and the bulk of your business here are enough to cross this door.

Three details of the wording worth reading exactly as they stand:

The order in which you look at the three matters little, because the result is the same: if any one of them applies, you are resident, and the rest of the discussion is beside the point.

Test 3: the family presumption, the most expensive of the three

The third door is not a test, it is a presumption, and that is exactly why it hurts more. The final paragraph of article 9.1 of the IRPF Law says: "it shall be presumed, unless proved otherwise, that the taxpayer has their habitual residence in Spanish territory when the spouse not legally separated and the dependent minor children habitually reside in Spain".

It is a presumption that admits proof to the contrary, yes. But it changes who has to prove what. Under the two previous tests it is the Administration that argues you are resident; here, once the family premise is met, residence is taken as given and it is you who has to dismantle it. Starting a tax check with the burden of proof against you is not a procedural nuance: it is the difference between arguing calmly and running after paperwork.

Two more rules from the same block, in case yours is one of the cases that travel on a service passport:

The quarantine in article 8.2: moving to a tax haven costs you five years

Here is the rule most people find out about too late. Article 8.2 of the IRPF Law: "individuals of Spanish nationality who prove their new tax residence in a country or territory considered a tax haven shall not lose their status as taxpayers under this tax. This rule shall apply in the tax period in which the change of residence takes place and during the four following tax periods".

Translated: you have genuinely moved, your new tax residence is proved, and you still file the IRPF in Spain for five tax years.

Effective moveTax years in which you remain an IRPF taxpayer
During 20262026 (the year of the change) plus 2027, 2028, 2029 and 2030

Two points decide whether this touches you at all:

And if you leave holding significant shareholdings, there is a second toll that does not depend on where you go: the exit tax in article 95 bis taxes the unrealised gains on your shares and holdings when you lose residence, with no sale involved, if you were resident for at least ten of the fifteen preceding tax periods and their market value exceeds €4,000,000 in total, or your holding is above 25% and worth more than €1,000,000.

Two countries claim you: the treaty tie-breaker and the certificate

You can be resident in two countries at once: each one applies its own domestic rules without looking at the neighbour's. That is what the convenio de doble imposición (double taxation treaty) is for, and its article 4 does two things.

First it defines "resident" for treaty purposes: someone liable to tax in a State by reason of domicile, residence or place of management, and it leaves out anyone taxed there "only in respect of income from sources in that State". Paying the IRNR on a flat in Alicante does not make you a Spanish resident.

Second, if both countries claim you, it breaks the tie in a cascade. This is the order in article 4.2 of the treaty between Spain and Germany, identical in the treaties with the United Kingdom and with Russia, although not every treaty is drafted the same way:

OrderTestYou move to the next one if...
1Permanent home available to youyou have one in both States or in neither
2Centre of vital interestsit cannot be determined
3Where you habitually liveyou habitually live in both or in neither
4Nationalityyou are a national of both or of neither
5Mutual agreement between the two administrationsend of the road

It is a cascade, not a menu: it stops at the first test that resolves the case and the outcome is exclusive ("they shall be deemed to be a resident only of the State..."). Pleading nationality when there is a permanent home in only one of the two countries means jumping to letter c) without having gone through a). And watch what a permanent home means here: what counts is having one available to you, not owning it, so a house sitting empty and available all year long counts, even if you use it three weeks each summer.

What the treaty does not do is wipe out the Spanish tax on the property: its article 6 says that such income "may be taxed" where the property is located, and it extends the charge to "direct use", which is precisely the empty house.

The key to all of this is the certificado de residencia fiscal, issued by the tax authority of the country where you live, and which article 7.1 of the IRNR Regulations requires you to attach to the return whenever you rely on a treaty. A one-year validity rule circulates about it that appears neither in the IRNR Law nor in its regulations, so always ask for the certificate covering the tax year you are declaring.

Now you know which side you are on: what to do next

You are a non-resident and you own a property in Spain. Even sitting empty, it generates imputed income and it has to be declared on the modelo 210: article 13.1.h) of the IRNR Law reaches urban property not assigned to an economic activity, and the income accrues on 31 December each year (article 27.1.c). Three warnings before you start: you file one 210 per property, per co-owner and per year, so a married couple with a home, a garage and a storage room with cadastral references of their own file six; the rate is 19% or 24% depending on where you live; and if you let it out or sell it, both the type of income and the deadlines change, which is what we cover in the guides on renting out a property as a non-resident and selling a property as a non-resident. To pay from outside Spain, see how to pay the modelo 210 from abroad.

Two more things if you live outside the European Union, which since 2021 includes British and American owners: you may be required to appoint a representante fiscal (a tax representative) resident in Spain, precisely because you own a property here (article 10.1 of the IRNR Law); the appointment is notified to the AEAT within two months and failing to do so is a serious infringement carrying €2,000, or €6,000 if you live in a country with no effective exchange of information.

You are a non-resident but nearly all your income is Spanish. If you live in the European Union, article 46 of the IRNR Law lets you ask to be taxed as if you were an IRPF taxpayer when you obtain at least 75% of your income from work and economic activities here, or when your Spanish income is below 90% of the personal and family allowance. You do not lose your status as an IRNR taxpayer: it is a way of calculating, not a change of residence.

You are resident. Then this is IRPF territory: what you can deduct if you run an activity, the modelo 130 of instalment payments, and how to keep your books without nasty surprises.

File your own modelo 210 for €19.95 + IVA. kontora works out the tax and prepares the completed form; you do the filing. How it works · tell me when it opens.

Frequently asked questions

I work remotely from Spain for a foreign company. Am I a tax resident?
If you stay more than 183 days of the calendar year in Spanish territory, yes: article 9.1.a) of the IRPF Law counts days, not the nationality of whoever pays you nor the address of your employer. The company being abroad and paying you abroad does not take away a single day. And even if you did not reach that many days, the economic door in article 9.1.b) is still open if the core of your activities is here.
I have spent 190 days in Spain, but split across two years. Do I count as resident?
Not by this route. The count in article 9.1.a) runs by calendar year, not by a rolling twelve-month window: 110 days in one year and 80 in the next do not add up to 190 for any purpose. Two cautions, though: sporadic absences within the same year do count unless you prove tax residence in another country, and the economic and family tests keep working on their own.
I own a house in Spain but I live abroad. Does that make me resident?

No. Owning a property does not appear among the circumstances in article 9.1 of the IRPF Law. What it does create is the duty to declare, under the IRNR, the imputed income of that urban property, with its annual modelo 210. With one important qualification if there were dual residence: in the tie-breaker of article 4.2 of the treaty, the first question is whether you have a permanent home available to you, and a house available all year long is one, even if you never set foot in it.

Does the digital nomad visa make me a tax resident?

No visa or residence permit decides your tax residence: article 9.1 of the IRPF Law decides it. What happens in practice is that if the visa leads you to live here more than 183 days a year, you will be resident through the days door, not because of the paperwork. Someone who moves to Spain and meets the requirements of article 93 may also opt for the inbound expatriate regime, the so-called Ley Beckham, which is a different thing altogether: see the last question.

Can I be a tax resident in two countries at once?
Under domestic rules, yes: each country applies its own and they can overlap. The double taxation treaty does not prevent it, it resolves it: its article 4.2 breaks the tie in a cascade (permanent home, centre of vital interests, habitual abode, nationality and, as a last resort, mutual agreement between the two administrations), and the outcome makes you a resident of one State only. If there is no treaty between the two countries, that tie-breaker does not exist and it has to be sorted out with the domestic rules of each one.
How do I get the certificado de residencia fiscal and what is it for?

It is issued by the tax authority of the country where you are resident, never by the country where the property is: if you are resident in Spain, the AEAT; if you are resident in Ireland or Germany, the Irish or German tax administration. It serves two purposes: proving tax residence in another country when the day count of article 9.1.a) is in dispute, and applying a treaty, because article 7.1 of the IRNR Regulations requires you to attach it to the return when you rely on the treaty limits or exemptions. Some treaties require the certificate to state expressly that it is issued "for the purposes of the Convention". Ask for the one covering the tax year you are declaring. More detail in the glossary.

Does the Ley Beckham make me a non-resident?

No, and this is the most repeated confusion of all. Article 93 of the IRPF Law says that someone who acquires Spanish tax residence by moving here may opt to be taxed under the IRNR rules "while retaining the status of taxpayer under the Personal Income Tax", for the year of the change and the five following ones, provided they have not been resident in the five preceding tax periods. You are a Spanish tax resident applying the IRNR calculation rules, not a non-resident: which is why the modelo 210 flow, built for non-residents, is not your route. We develop it in the glossary, under Ley Beckham.

Keep reading

Modelo 210: the Spanish non-resident tax, explained in full

Renting out a property in Spain as a non-resident: what you pay and when you declare it

Selling a property in Spain as a non-resident: the 3% withholding, the capital gain and the plusvalía municipal

Rather have this calculated for you?

kontora generates your tax forms box by box, tells you how much to set aside and reminds you before every deadline.

Pricing · Calculators