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.
- If you are resident, you are an IRPF taxpayer. The IRPF (Impuesto sobre la Renta de las Personas Físicas) is Spain's personal income tax, and article 8.1.a) of the IRPF Law says it is paid by "individuals who have their habitual residence in Spanish territory". The tax attaches to you, not to one particular source of income.
- If you are not, you pay the IRNR (Impuesto sobre la Renta de no Residentes, Spain's non-resident income tax), and its article 1 carries the limit in writing: it taxes "the income obtained in Spanish territory by individuals and entities not resident there". What you earn outside Spain never comes in.
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 owners | Base per spouse | Rate | Tax per spouse |
|---|---|---|---|
| Non-residents, living in Germany | €495 | 19% | €94.05 |
| Non-residents, living in the United States | €495 | 24% | €118.80 |
| Residents in Spain and it is their main home | €0 | IRPF | €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:
- Calendar year, not a rolling twelve months. The count restarts on 1 January. The IRPF tax period is the calendar year and the tax accrues on 31 December (articles 12.1 and 12.2), so you are resident or non-resident for the whole year, never for part of it. If the rules you are used to at home split the tax year or average days across several years, put them aside: Spain does neither.
- Sporadic absences count towards the total. The same article requires them to be included in the period of stay "unless the taxpayer proves their tax residence in another country". Read that slowly: the way out is not counting days, it is proving that you are a tax resident somewhere else, and that is proved with a certificado de residencia fiscal (a tax residence certificate) from the foreign tax authority. Not boarding passes, not passport stamps, not a padrón registration (the town hall population register).
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:
- "Main core or the base". The article fixes no percentage, no turnover threshold and no closed list of indicators. It compares masses: where the centre of gravity of what you produce and what you own actually sits.
- "Directly or indirectly". Putting a company in between does not by itself move that centre of gravity out of Spain, because the law expressly contemplates the indirect route.
- What is not in the article. It does not mention the padrón, nor holding a NIE (Número de Identidad de Extranjero, the identification number Spain gives foreigners), nor owning a property. Owning a house in Spain does not make you a tax resident on its own, just as registering on the padrón does not turn you into an IRPF taxpayer. Those three things are noise in article 9.1, however much weight they carry in conversations by the pool.
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:
- Foreign diplomats accredited in Spain. They are not treated as IRPF taxpayers, "on a reciprocity basis", when their residence here derives from that status (article 9.2).
- Spanish nationals posted abroad. The mirror rule in article 10.1: Spanish nationals habitually resident abroad because they are members of diplomatic missions or consular offices, hold an official post or employment of the Spanish State, or are serving officials with an official post remain IRPF taxpayers, and so do their spouse not legally separated and their minor children. With an express way out in article 10.2: it does not apply to someone who is not a serving public official and already had their habitual residence abroad before acquiring that status.
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 move | Tax years in which you remain an IRPF taxpayer |
|---|---|
| During 2026 | 2026 (the year of the change) plus 2027, 2028, 2029 and 2030 |
Two points decide whether this touches you at all:
- It only reaches Spanish nationals. The text says "individuals of Spanish nationality". A British, Irish or American national who moves from Spain to a tax haven does not carry this quarantine; a Spanish national does. Getting it the wrong way round costs money in both directions.
- The list is not in the IRPF Law. Which territories carry that status is defined in a different rule and has moved over the years, so check it for the specific tax year before taking anything for granted. What the IRNR Law does say is that the optional regime in its article 46 "shall not be applicable in any case" to residents of tax havens (article 46.7).
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:
| Order | Test | You move to the next one if... |
|---|---|---|
| 1 | Permanent home available to you | you have one in both States or in neither |
| 2 | Centre of vital interests | it cannot be determined |
| 3 | Where you habitually live | you habitually live in both or in neither |
| 4 | Nationality | you are a national of both or of neither |
| 5 | Mutual agreement between the two administrations | end 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?
I have spent 190 days in Spain, but split across two years. Do I count as resident?
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?
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.