Is It Legal to Live in Spain and Pay Tax in Andorra? What the Law Says
In brief
It is not legal to actually live in Spain and pay tax in Andorra: tax residency depends on objective facts, not on the residence permit you hold.
Spain treats as a resident anyone who spends more than 183 days a year in its territory or has their centre of economic interests here, with a presumption linked to family.
The double taxation treaty between Spain and Andorra resolves cases of dual residency, but it only protects those who can prove a genuine life in Andorra.
1. The short answer: you cannot choose your tax residency
"Is it legal to live in Spain and pay tax in Andorra?" is one of the questions people search for most on Google when they are considering a move. The answer is clear: it is not possible to actually live in Spain and pay income tax in Andorra. What is legal, and very common, is to genuinely move your residence to Andorra and, from that moment on, pay tax there on your worldwide income.
The confusion comes from mixing up two different concepts. On one side there is administrative residency, that is, the authorisation granted by the Immigration Service (Servei d'Immigració) to live in Andorra. On the other, there is tax residency, which determines in which country income tax is paid. Having the first does not guarantee the second.
An example makes this clear. Residency without gainful activity, known as passive residency, requires living in Andorra for a minimum of 90 days a year. Meeting that minimum keeps the permit valid, but it does not make anyone an Andorran tax resident: for that you must reside in Andorra for more than 183 days a year or have your centre of economic interests there. Anyone who spends the rest of the year in Spain is, in all likelihood, still a tax resident in Spain.
Paying tax in Andorra is therefore the consequence of living in Andorra, not an option that is activated by completing a procedure. That is why, before talking about tax rates, it is worth understanding how each country decides who is a resident and what happens when both claim the same person.
2. How Spain decides whether you are still a tax resident
The rule is set out in article 9 of the Spanish Personal Income Tax Act (Law 35/2006). A person is a tax resident in Spain if any of the following criteria is met during the calendar year. Just one of them is enough.
The 183 days and sporadic absences
The first criterion is physical presence: spending more than 183 days of the calendar year in Spanish territory. For the count, sporadic absences are added in, unless the person proves their tax residency in another country. In practice, this means that short trips outside Spain do not subtract days if you cannot show that you are a resident of another State.
That is why the tax residency certificate issued by the Department of Taxation and Borders (Departament de Tributs i de Fronteres) of Andorra is a key document: it is the proof that your departures from Spain are not sporadic absences, but the consequence of living in another country.
The centre of economic interests
The second criterion does not count days. A person is also a resident in Spain if the main centre or base of their economic activities or interests is located here, directly or indirectly. The analysis looks at where income is generated, where assets are held, where the business is managed from and where spending is concentrated.
This criterion surprises many taxpayers. Someone can spend fewer than 183 days in Spain and still be a resident if their company operates and is managed from Spain, if their main investments are here or if their professional activity still depends on Spanish clients and structures.
The family presumption
The law adds a presumption: a person is presumed to be a resident in Spain if their spouse (not legally separated) and their dependent minor children live here. This presumption can be rebutted, but it obliges anyone who moves to demonstrate with facts that their life is in Andorra even if part of their family remains in Spain.
Who has to prove what
When the Spanish tax authorities (Hacienda) consider that someone is still a resident, it is the Administration that must provide solid evidence. However, the taxpayer who claims to have left must be able to support their position with documents: tax residency certificate, housing contract, utility consumption, contributions to the Andorran Social Security Fund (Caixa Andorrana de Seguretat Social, CASS), bank transactions and any other element showing where their day-to-day life takes place.
It should also be remembered that IRPF (the Spanish personal income tax) is calculated per calendar year and that Spanish rules do not generally provide for a split year. If, in the year of the move, the threshold of days in Spain is exceeded or the centre of interests remains here, you may be a tax resident in Spain for that entire tax year. Choosing the right departure date is part of the planning.
3. The role of the treaty between Spain and Andorra
On 8 January 2015, Spain and Andorra signed a treaty to avoid double taxation and prevent tax evasion, which came into force on 26 February 2016. After it was signed, Andorra was removed from the Spanish list of tax havens. The latest update of the list of non-cooperative jurisdictions, approved by Order HAC/649/2026, has not changed that situation.
This has an important practical consequence: the rule in article 8.2 of the Spanish Personal Income Tax Act, which keeps those who move to a tax haven as Spanish taxpayers for several years, does not apply to moves to Andorra.
What happens if both countries consider you a resident
A person may be a tax resident under Spanish law and, at the same time, under Andorran law. For such cases, article 4 of the treaty, which follows the OECD model, sets out a series of successive criteria to decide which country prevails:
Where the person has a permanent home available to them.
If they have a home in both countries, where their centre of vital interests is, that is, their closest personal and economic ties.
If this cannot be determined, where they habitually live.
If they habitually live in both or in neither, their nationality.
As a last resort, an agreement between the authorities of both countries.
The treaty is not a shield for those who have not changed their lives. It is a tool for resolving real conflicts. If the family home, the children and the business remain in Spain, the treaty's own criteria will point to Spain.
Situations that create the most risk
In our experience accompanying residency moves, the files that raise the most questions share a few elements:
Keeping a home in Spain that is still used regularly while in Andorra there is only token accommodation, with minimal consumption or hardly suitable for stable living.
Children in school in Spain and a spouse resident in Spain with no documented plan for family reunification.
A Spanish company that is still managed, in practice, from Spain.
Card spending, medical expenses and social activity concentrated in Spain.
Not having notified the change of tax domicile or not having properly filed the tax return for the year of departure.
How to plan a consistent move
A well-executed move combines the Andorran administrative side with Spanish obligations. As a minimum, we recommend reviewing these points:
Obtain the residence authorisation suited to your profile (self-employed, employed or without gainful activity) and secure a real home in Andorra.
Notify the change of tax domicile to the Spanish Tax Agency (Agencia Tributaria) and deregister from the municipal register in Spain.
Analyse whether the exit tax applies to your portfolio of shares or holdings.
File the last IRPF return as a resident in Spain and, if you keep property in Spain, the non-resident returns (form 210).
Keep evidence of your life in Andorra from day one and request the tax residency certificate every year.
4. Frequently asked questions about living in Spain and paying tax in Andorra
Can I hold passive residency in Andorra and keep living in Spain?
You can keep the permit if you meet the 90 days a year required in Andorra, but if you spend more than 183 days in Spain or have your centre of economic interests there, you will remain a tax resident in Spain and pay tax there on your worldwide income.
What happens in the year I move?
Spanish IRPF is calculated per calendar year. If, in the year of the change, the threshold of days in Spain is exceeded or the centre of interests remains there, you may be a resident in Spain for that whole year. That is why it is worth planning the date of the move and documenting the new residence from the start.
Can the Spanish tax authorities review my situation years later?
Yes. In general, the Administration's right to audit and assess tax lapses after four years, counted from the end of the voluntary filing period. During that period it can review whether your residence in Andorra was genuine.
Is the Andorran tax residency certificate enough?
It is fundamental evidence, but not conclusive. The Spanish tax authorities can challenge it if there are signs that the taxpayer's life is still in Spain. The certificate must be backed by a consistent reality: housing, consumption, contributions, activity and personal relationships in Andorra.
What if my partner and children stay in Spain?
This is one of the most delicate situations. The law presumes that a person is a resident in Spain if their spouse (not legally separated) and their dependent minor children live here. The presumption can be rebutted, but it requires showing that the centre of your life is in Andorra: where you work, where you manage your assets from, where you spend most of the year and how the family is organised. In practice, staggered moves must be planned with clear dates and with a documented family reunification plan.
Can I keep my home and my accounts in Spain?
Yes, as long as they are not the basis of your daily life. Keeping a home in Spain as a second residence or holding bank accounts does not prevent you from being a resident in Andorra, but it has consequences: property in Spain is taxed under the non-resident income tax and its use will be taken into account if the Spanish tax authorities review your residence. What matters is that your habitual home, your activity and your main interests are in Andorra.
Is Andorra still a tax haven for Spain?
No. Andorra was removed from the Spanish list after the 2015 treaty and does not appear on the list of non-cooperative jurisdictions in force after Order HAC/649/2026.
5. Next steps
If you are considering moving to Andorra, or you have already done so and want to check that your situation is solid, the first step is to review in detail your days of presence, your assets, your activity and your family situation in both countries.
At Abast Legal we work from Andorra and Barcelona, which allows us to analyse each case under the rules of both jurisdictions. Through our Tax Residency Check service we review the consistency of your tax residency, identify the weak points and propose how to document them.
If you would like us to look at your case, you can contact our tax team. We will help you make your move real, defensible and orderly from day one.
This article is for information purposes only and does not constitute legal advice. To assess how it applies to a specific case, please contact our team.
Do you need legal advice?
Our team is ready to help you.