"I am resident in Spain" can mean four different things. That you are allowed to live here. That you pay your taxes here as a resident. That you are on your town hall's padrón (register of residents). Or that you are registered with Social Security. Each is decided by a different law, with its own tests. And they do not always match. This post is part of our guide to foreigners in Spain: NIE, Social Security and tax.
First we look at what each one is, then at four real-life cases where a person is resident for one public body and not for another.
The four kinds of residence, one by one
Legal residence: permission to live here
This is governed by immigration law (extranjería). For someone from outside the European Union, Ley Orgánica 4/2000 separates a stay (estancia) of up to 90 days (article 30) from residence, which requires an authorisation (article 30 bis). Residence can be temporary, for more than 90 days and less than five years (article 31), or long-term (article 32). The proof is the foreigner identity card, the TIE (tarjeta de identidad de extranjero), which you must apply for if your authorisation is for more than six months (article 4.2).
For citizens of the European Union and the European Economic Area, Real Decreto 240/2007 applies. They can reside for more than three months if they work, have resources and health insurance or study (article 7.1). They must register with the Registro Central de Extranjeros (central register of foreign nationals) within three months of arriving. The proof is the registration certificate (article 7.5).
Tax residence: where you pay tax as a resident
This is decided by article 9 of Ley 35/2006 on IRPF (Spanish income tax) and does not depend on any permit. You are tax resident if you spend more than 183 days of the calendar year in Spain or if the main centre of your business activities or economic interests is here. It is also presumed if your spouse (not separated) and your dependent minor children live here. No one grants it: you meet the test or you do not, year by year. We explain it in when you are tax resident in Spain.
The padrón: where you live within Spain
Everyone who lives in Spain must register on the padrón of the municipality where they usually live (article 15 of Ley 7/1985, the local government law). Its data prove your address (article 16.1). But the same law makes clear that a foreign national's entry does not prove legal residence in Spain and gives no rights that immigration law does not give (article 18.2).
Social Security: whether you are in the system
Foreign nationals who live or are legally present in Spain and work here are covered by the Social Security system (article 7 of the Ley General de la Seguridad Social). Affiliation is single and lifelong (article 15). Registration (alta) confirms which scheme you belong to for your work (article 7 of Real Decreto 84/1996). For that you need a Social Security number.
Summary in one table
| What it decides | How it is proved | Law | |
|---|---|---|---|
| Legal residence | Whether you can live (and work) in Spain | TIE, authorisation decision or EU registration certificate | Ley Orgánica 4/2000, Real Decreto 1155/2024 and Real Decreto 240/2007 |
| Tax residence | Whether you pay IRPF on everything you earn worldwide or non-resident tax on what you earn here | Days in Spain, economic interests; tax residence certificate | Article 9 of Ley 35/2006 |
| Padrón | Your address and the municipality you belong to | Certificado de empadronamiento | Articles 15 to 18 of Ley 7/1985 |
| Social Security | Whether you pay contributions in Spain and get its benefits | Social Security number, registration and employment history report (informe de vida laboral) | Ley General de la Seguridad Social and Real Decreto 84/1996 |
Four cases where they do not match
Legal residence and padrón, but not tax resident
Ana is German and retired. She spends five months a year in her flat in Alicante and the rest in Germany, where she receives her pension and has her home. As she stays more than three months, she registers with the Registro Central de Extranjeros and has her registration certificate. She is on the padrón in Alicante.
For the tax agency she is not resident: she spends fewer than 183 days in Spain and her economic interests are in Germany. She does not pay IRPF in Spain. As a non-resident owner, she declares her Alicante flat on modelo 210. If the tax agency asks, she should have her German tax residence certificate to hand.
Authorisation and TIE, but not tax resident in the first year
Daniel is Argentinian. He is granted a residence and work authorisation, enters Spain on 01/10/2026 and gets his TIE. He is a legal resident from day one. But from 01/10/2026 to 31/12/2026 there are 92 days: in 2026 he does not spend more than 183 in Spain. If his economic interests that year are still in Argentina, he is not tax resident in 2026 and pays non-resident tax on what he earns here. In 2027, if he stays, he will be tax resident for the whole year.
An NIE, but no residence at all
Pierre is French, lives in Lyon and buys a flat on the coast. To sign the deed he applies for an NIE at the consulate. He has a foreigner identity number (article 205 of Real Decreto 1155/2024), but he is not a legal resident or a tax resident, nor is he on the padrón. The NIE only identifies him. We explain this in what the NIE is.
Tax resident in Spain, but paying contributions at home
Jan is Dutch and his employer sends him to Madrid for eight months. He keeps paying contributions in the Netherlands: EU rules let a worker temporarily posted by their employer stay in their home country's Social Security for a period (article 12 of Regulation (EC) 883/2004). But he spends more than 183 days of the year in Spain, so he can be tax resident here that year. If the Netherlands also treats him as resident, the double tax treaty decides.
Which residence matters for what
- For your Renta (income tax return) only tax residence matters.
- To work legal residence matters: if you are not from the European Union, you need a residence and work authorisation (article 36.1 of Ley Orgánica 4/2000). Then Social Security registration.
- For your Spanish pension and benefits Social Security matters: what you pay in here.
- For procedures at your town hall the padrón matters.
If you come to work under a contract, your tax residence also decides whether you can use the Beckham law, which requires that you were not tax resident in Spain in the previous five years.