The previous guide in this series deals with the paper that proves residence. This one deals with the underlying question: what makes a person tax resident in Spain or not. It is a matter of legal rules, not intuition, and almost everything people think they know about it is wrong. Neither the Spanish identity card (DNI), nor the padrón (the town hall's register of inhabitants), nor the health card, nor owning a house here, nor spending the summers here decides anything on its own.
The three rules of article 9
The Spanish personal income tax Act (IRPF) provides that an individual is resident in Spanish territory when any of these circumstances applies. One is enough:
- Presence. Spending more than 183 days in Spanish territory during the calendar year. For the count, sporadic absences are added in, unless tax residence in another country is proved. And when that other country is a territory classed as a non-cooperative jurisdiction, the administration may require proof of presence there for 183 days.
- Centre of economic interests. Having in Spain the main core or base of one's economic activities or interests, directly or indirectly. This rule works on its own: you can be resident without setting foot in Spain for 183 days if the bulk of your assets and income is here.
- Family presumption. The taxpayer is presumed, unless proved otherwise, to be resident in Spain when their spouse who is not legally separated and their dependent minor children habitually live here. It is a presumption, not a certainty, and it can be rebutted.
Tax residence is not chosen or notified: you have it or you do not, depending on the facts of the year. Deregistering from the padrón, getting a residence card in another country or opening a bank account there does not turn anyone into a non-resident if the facts under article 9 say otherwise.
What tax residence is not
| Common belief | Reality |
|---|---|
| "I am Spanish, so I am resident" | Nationality does not determine tax residence. A Spaniard who has lived abroad for years is non-resident |
| "I am a foreigner, so I am non-resident" | A foreigner who lives here is tax resident and sells as a resident, with no 3 % withholding |
| "I am registered on the padrón here" | The padrón is a municipal population register. It does not prove tax residence, although it may be one pointer among others |
| "My only home is here" | It is a relevant pointer, but not one of the legal rules in itself |
| "I deregistered at the consulate" | A consular formality, not a tax one |
| "I pay the IBI here" | The IBI (the annual municipal property tax) is paid by the owner of the property, wherever they live |
The year is not split: the most expensive trap
Tax residence in Spain is determined by whole calendar years. As a general rule there is no such thing as a split year: whoever meets any of the three rules is resident for the whole tax year, from 1 January to 31 December, even if they arrived in July or left in March.
That produces a situation that throws buyers and sellers alike. A seller who moves to Spain in February and sells their flat in March is not a non-resident in March just because they have only just arrived: if that year they end up meeting the 183-day rule, they will be resident for the whole year and the sale will be taxed under the IRPF, with a different regime and a different form. And the other way round: someone who leaves in April, but has spent more than half the year here counting sporadic absences, remains resident for that tax year.
At the start of the year there is no certificate for the current year and the year's presence has not happened yet. The only way to decide is to analyse the foreseeable facts of the year, and that is exactly the kind of decision worth putting in writing in the contract before signing instead of settling it on your feet at the notary's office.
When two countries both say you are theirs
If Spain's domestic rules say you are resident and the other country's say the same, there is a dual residence conflict. Double taxation treaties resolve it with an order of tests: permanent home available, centre of vital interests, habitual abode and nationality, and if none of that decides it, agreement between the administrations. That analysis is not done by the notary or the buyer: it needs the specific treaty and the facts of the case. It is developed in the guide on dual residence conflicts.
For the buyer, what matters is that an open conflict is not a certificate. Until there is a Spanish residence certificate, the prudent course is still to withhold.
Situations that need the specific case examined
| Seller's situation | What has to be studied |
|---|---|
| Under a special regime for posted or inbound workers | This is a person resident in Spain who is taxed under a regime of their own. Whether or not the 3 % withholding applies on their sale cannot be taken as settled in advance: it has to be analysed before signing |
| A civil servant or diplomat posted abroad | The law has specific rules for members of diplomatic and consular missions and for serving civil servants abroad |
| A posted worker whose family stays in Spain | The family presumption comes into play; it can be rebutted, but you must be able to produce the evidence |
| A retiree who spends half the year here and half abroad | The day count and the sporadic absences decide, and the burden of proving the stay lies with whoever relies on it |
| A digital nomad with several bases | The centre of economic interests is usually the deciding rule, not the days |
| An undivided estate or a co-ownership that sells | The position of each co-owner or heir is looked at, not that of the whole |
Why this matters to the buyer and not only the seller
Because the obligation to withhold falls on the buyer and the consequence of not doing it falls on the property. The law does not ask the buyer to solve a problem of international tax residence: it asks them to withhold unless the seller proves they are subject to IRPF with the administration's certificate. The buyer does not have to decide whether the seller is resident: they have to check whether it has been proved. Everything else is the work of the seller and their adviser.
Seen that way, the working rule becomes much simpler:
- There is a Spanish tax residence certificate for the year: no withholding.
- There is no certificate: withhold, even if the seller insists they live here.
- There are several sellers: look at them one by one and withhold only on the share of those who do not prove it.
And if you are the seller
Then the question moves, because the answer decides which tax applies to you: if you are non-resident, the sale goes through Modelo 210 at the non-residents' income tax (IRNR) rate for gains, 19 %, whatever your country of residence; if you are resident, it goes on your income tax return, on the savings scale, with the possibility of offsetting losses and with access to reliefs such as the exemption for reinvesting in a main residence. They are two different worlds and the difference in tax can be considerable in either direction.
That is why residence is worth settling before signing, not after. We analyse it on the facts of the case and tell you where you stand and what risk each option carries; what we do not do is manufacture a convenient residence or assure you that an administration will accept an arguable position. If you are on the buying side, start with the Modelo 211 intake form; if you are the one selling, with the property sale page.
How presence is proved
The 183-day rule sounds precise and is one of the hardest to prove, because Spain does not stamp passports at internal Schengen borders and because the burden of proof lies with whoever relies on the situation that suits them. What usually works, taken together and consistent with each other:
- A tax residence certificate from the other state, which is the weightiest item.
- An employment contract or tenancy agreement in the destination country, with its dates.
- Utility consumption at the home in each country, which shows where life was really lived.
- Card transactions and bank statements, with their geography.
- Plane tickets, entry and exit records and, where they exist, consular certificates.
- The children's schooling and registration with a foreign health or social security system.
Neither the padrón nor a tenancy agreement abroad is enough in isolation. What convinces is a consistent whole: if the utilities at the Spanish home show the consumption of a lived-in house and the card is used here every week, a foreign certificate does not end the argument. That is why residence is built with facts over the year, not with papers gathered after the event.
Questions that come up with “How it is decided whether the seller is resident here”
Leave your the 3 % on a purchase to us
You see the numbers before anything is sent anywhere.
Start here