Determining your tax residence in Spain and your legal residence is not always intuitive. Frequently, individuals who live, invest or work in Spain believe that being registered on the municipal census or holding a residence permit is sufficient to become a tax resident. However, these are distinct legal concepts, with very relevant tax and legal implications.
If you are considering moving to Spain, investing on the Costa del Sol, or already spending significant periods here, understanding this distinction is essential to avoid tax risks and situations of double taxation.
WHAT IS TAX RESIDENCE IN SPAIN?
Tax residence is a tax concept that determines where you must pay taxes.
In Spain, a tax resident is taxed on their worldwide income, meaning all income obtained in Spain and abroad.
If you are not a tax resident, you are only taxed on Spanish-source income through the Non-Resident Income Tax (IRNR).
Criteria for determining tax residence in Spain
An individual is considered tax resident in Spain if any of the following criteria are met during the calendar year (1 January to 31 December):
Remain in Spanish territory for more than 183 days during the calendar year.
Sporadic absences are counted as days of presence unless tax residence in another country is proven.
Have in Spain the main center or base of economic interests, meaning the place where the majority of income is generated or where the principal professional or business activity is carried out.
If the non-legally separated spouse and/or dependent minor children habitually reside in Spain, a presumption of tax residence arises.
Important: these criteria are alternative, not cumulative. Meeting just one of them is sufficient.
Dual residence and double taxation treaties
It is possible for two countries to consider you tax resident simultaneously. In such cases, the tie-breaker rules provided in Double Taxation Agreements (DTAs) apply, analyzing:
Permanent home available
Center of vital interests
Habitual residence
Nationality
Prior planning is key to avoiding tax conflicts between jurisdictions.
Tax residence certificate in Spain
The Spanish Tax Agency allows you to request a tax residence certificate, an essential document to:
Apply international treaties
Prove your status before foreign authorities
Avoid undue withholding in other countries
WHAT IS LEGAL RESIDENCE IN SPAIN?
Legal residence is the administrative status that authorizes a foreign national to live in Spain. It is regulated by Organic Law 4/2000 on Foreigners and its Regulations.
It includes, for example:
Residence for work
Residence by investment
Residence for family reunification
Non-lucrative residence
Holding a residence permit does not automatically imply being a tax resident.
For example:
You may hold a residence permit and not be a tax resident if you do not meet the tax criteria.
You may be a tax resident even if your permit is under application or pending renewal, if in practice you meet the tax criteria.
CONSEQUENCES OF BEING A TAX RESIDENT IN SPAIN
For individuals
If you are a tax resident in Spain:
You are taxed on your worldwide income under Personal Income Tax (IRPF).
You may be subject to reporting obligations regarding assets abroad (for example, Form 720, where applicable).
You may opt, if requirements are met, for special regimes such as the Inbound Regime (“Beckham Law”).
An incorrect determination may lead to penalties, tax adjustments and conflicts with other jurisdictions.
For companies
A company is tax resident in Spain if:
It is incorporated under Spanish law.
Its registered office is in Spain.
Its place of effective management is in Spain (where strategic decisions are made).
The latter criterion is particularly relevant in international structures.
COMMON MISCONCEPTIONS ABOUT TAX RESIDENCE IN SPAIN
✔ Registering on the municipal census does not determine tax residence.
The municipal register proves local administrative residence, but does not define your tax status.
✔ Having a NIE does not imply being a tax resident.
The NIE is an identification number, not a tax criterion.
✔ Temporary absences do not automatically interrupt the day count.
Sporadic stays outside Spain are included in the calculation of the 183 days, unless tax residence in another country is proven.
WHY IS IT ESSENTIAL TO PLAN YOUR TAX RESIDENCE BEFORE MOVING TO SPAIN?
If you are considering relocating to Spain, investing in real estate or establishing your activity on the Costa del Sol, international tax planning should be carried out before the change of residence.
Some key issues:
Correctly determining your center of economic interests.
Analyzing potential dual residence conflicts.
Assessing the applicability of the Inbound Regime.
Reviewing international corporate structures.
Obtaining tax certificates in your country of origin.
Planning afterwards is usually more costly than planning beforehand.
CONCLUSION: LEGAL RESIDENCE AND TAX RESIDENCE ARE NOT THE SAME
Legal residence regulates your right to live in Spain as a foreign national.
Tax residence determines where you pay taxes and what tax obligations you assume.
Confusing both concepts can generate significant risks in an international context.
Before relocating to Spain or assuming you are already a tax resident, it is advisable to analyze your personal, financial and family situation from a strategic perspective.
At CPG Abogados, we advise investors, executives and international families establishing themselves in Spain — especially on the Costa del Sol — designing a clear and secure tax strategy before and after relocation.
If you wish to assess your specific situation and avoid unnecessary tax risks, you may request a personalized consultation with our team.


