N30 Global

How to correctly cease to be a tax resident in Spain: criteria, evidence and frequent errors

Ceasing to be a tax resident in Spain is not just about spending less than 183 days in Spanish territory.

This criterion is important, but it is not the only one. The Tax Agency can also analyze where your center of economic interests is, where your family resides, from where you manage your companies, which country can consider you a tax resident and what evidence really supports your change of residence.

Therefore, a well-planned tax exit should not be improvised. It must coordinate personal residence, economic activity, companies, assets, banking, calendar and documentation.

The correct question is not “where do I pay less taxes?”, but:

What structure can I legally and fiscally sustain according to my real life, my company and my assets?

What it means to be a tax resident in Spain

Being a tax resident in Spain implies, in general, paying taxes in Spain on worldwide income: salaries, professional benefits, dividends, interest, rents, capital gains, investments and other income, even if they come from other countries.

Therefore, changing tax residence does not only affect personal income tax (IRPF). It can also impact companies, investments, dividends, real estate, assets, inheritances, donations, informational obligations and banking relationships.

One of the most common mistakes is to confuse three different things:

  • living outside Spain;
  • having an address or registration in another country;
  • ceasing to be a Spanish tax resident.

You can spend time abroad and still be a tax resident in Spain. You can also open a foreign company and continue to pay personal taxes in Spain.

Tax residence is not declared only with intention. It is proven with facts.

The main criteria for being a tax resident in Spain

Spain can consider an individual a tax resident when any of these criteria are met:

  1. remains more than 183 days during the calendar year in Spain;
  2. has in Spain the main nucleus or the base of their economic activities or interests;
  3. their residence is presumed because their legally unseparated spouse and dependent minor children habitually reside in Spain.

These criteria must be analyzed together. It is not enough to look at a single variable.

tax residence Spain

The 183-day rule

The best known rule is that of permanence: if a person remains more than 183 days during the calendar year in Spain, they can be considered a Spanish tax resident.

But there are three important nuances.

First, the calendar year is analyzed, from January 1 to December 31.

Second, it is not enough to claim to have been away. It is advisable to be able to prove it with flights, consumption, contracts, registrations, stays, payments, bank movements and other coherent documentation.

Third, sporadic absences may count as permanence in Spain if tax residence in another country is not accredited.

Example

A consultant spends 150 days in Spain, 90 days traveling through different countries and 125 days in a country where they do not obtain a tax residence certificate or have a stable home.

Although they do not clearly exceed 183 physical days in Spain, their position may be weak if they maintain their home, company, main clients or family here.

Less than 183 days does not automatically mean non-resident.

The center of economic interests

This criterion is especially relevant for entrepreneurs, freelancers, investors and people with companies.

Spain can consider a person a tax resident if the main nucleus or the base of their economic activities or interests is in Spanish territory, directly or indirectly.

Elements that can influence here include:

  • Spanish companies;
  • real business address;
  • main clients;
  • real estate;
  • investments;
  • bank accounts;
  • sources of income;
  • team, office or material means;
  • place from which decisions are made.

This point explains why opening a company abroad does not by itself solve personal taxation.

Example

A person opens a company in Dubai, Estonia, the United Kingdom or the United States, but lives in Spain, manages the business from Spain, keeps the family home here and makes all decisions from Spanish territory.

In that case, the tax risk does not disappear by having a foreign company. It can even increase if the structure has no real substance.

The key is not where the company is incorporated, but where one lives, where decisions are made and where value is created.

Family as an indication of residence

The residence of the spouse and dependent minor children can also be relevant.

If a person claims to have moved abroad, but their partner and children continue to habitually live in Spain, the Tax Agency can analyze whether the true vital center is still here.

This does not mean that it is impossible to change tax residence in these circumstances. But it does require a stronger justification.

Example

An entrepreneur moves to Andorra or Cyprus, but their spouse and minor children continue to live in Madrid, the children remain enrolled in school in Spain and the family home remains available.

In such a case, it is not enough to count days. The family, economic and documentary situation must be analyzed as a whole.

The calendar matters

Tax residence is analyzed by calendar years. Therefore, the moment the move is executed can greatly change the result.

It is not the same to prepare an exit before the start of the fiscal year as to improvise it in September or October.

Example

A person decides to move out of Spain in October 2026, after having lived and worked in Spain for most of the year.

Even if they sign a rental agreement in another country in October, they could still be a Spanish tax resident in 2026 if they meet the residence criteria in Spain during that year.

Therefore, a serious tax exit must be planned with a calendar, not just a destination.

The tax residence certificate

The tax residence certificate issued by the destination country is a very important piece of evidence. It serves to prove that another State considers the person a tax resident in accordance with its regulations or the applicable double taxation agreement.

But it should not be understood as an automatic solution.

The certificate helps, but it must be consistent with the rest of the facts:

  • real home in the destination country;
  • sufficient permanence;
  • organized economic activity;
  • tax or administrative registration;
  • bank account and local operations;
  • insurance, contracts and ordinary expenses;
  • migratory documentation when applicable.

Tax residence is not defended with a single document. It is defended with a set of ordered evidence.

What happens if Spain and another country consider you a tax resident

It can happen that Spain and another country consider the same person a tax resident at the same time.

This happens because each State applies its own internal rules. For example, the destination country may consider a person a resident because they live there, have a home, a residence permit or meet certain tax requirements. At the same time, Spain may dispute this exit if it understands that the person maintains their center of economic, family or business interests here.

In these cases, it is necessary to check if there is a Double Taxation Agreement between Spain and the other country.

Agreements do not automatically eliminate the conflict, but they usually include tie-breaker rules to determine in which country a person should be considered a tax resident for the purposes of the agreement itself.

Although each agreement must be analyzed specifically, the criteria usually revolve around:

  1. permanent home available;
  2. center of vital and economic interests;
  3. habitual place of stay;
  4. nationality;
  5. agreement between tax administrations, if the previous criteria do not resolve the conflict.

Example

A person spends a large part of the year in Portugal, but keeps their family home, spouse, minor children, several companies and most of their income in Spain.

Portugal could consider them a tax resident because they comply with its internal rules. But Spain could also dispute their residence due to family and economic ties.

In that case, it is not enough to say “I have residence in Portugal”. It would be necessary to analyze the agreement between Spain and Portugal, review the tie-breaker rules and prepare evidence to defend where their real center of life is.

What happens if there is a dispute with the Tax Agency

If the Tax Agency understands that a person is still a tax resident in Spain, it can initiate an audit and demand taxation on worldwide income, even if that person has paid taxes in another country.

In that scenario, the taxpayer must provide evidence: foreign tax residence certificate, home, permanence, economic activity, banking documentation, contracts, flights, expenses, family situation and any element that demonstrates that the real center of life is outside Spain.

If the conflict affects two countries with an agreement, it may be necessary to resort to the mechanisms provided in the agreement itself or in the applicable regulations to avoid effective double taxation.

The key idea is this:

The agreement helps to resolve conflicts, but it does not replace prior planning or good documentary evidence.

The more complex the personal, family, business or asset situation, the more important it will be to prepare the exit before executing it.

Foreign company and personal tax residence: they are not the same

Creating an LLC in the United States, a company in Dubai, a company in Estonia or a structure in Cyprus may make sense in some cases.

But the foreign company does not automatically change the tax residence of the individual.

A person can have a company abroad and still be a tax resident in Spain.

In addition, if a foreign company is actually managed from Spain, another problem may arise: the possible discussion about its effective management headquarters.

In practice, a poorly designed international structure can generate risks in several areas:

  • Personal Income Tax (IRPF);
  • Corporate Tax;
  • related operations;
  • international tax transparency;
  • VAT;
  • withholdings;
  • banking;
  • documentation;
  • economic substance.

Therefore, before opening a foreign company, it is advisable to resolve a previous question:

Where does the person who controls, directs or benefits from that structure reside fiscally?

tax residence certificate

What evidence helps to defend a tax exit

There is no universal list. Each case depends on its facts. But a well-documented exit is usually based on five blocks of evidence.

1. Real life in the destination country

Can help:

  • rental or purchase contract;
  • utility bills;
  • health insurance;
  • telephone contract;
  • daily expenses;
  • administrative registration;
  • migratory documentation;
  • creditable social or professional life.

The objective is to demonstrate that it is not a formal address, but an effective residence.

2. Permanence

It is advisable to keep:

  • flights;
  • boarding passes;
  • passport stamps;
  • entry and exit records;
  • card consumption;
  • reservations;
  • transport receipts;
  • ordinary expenses.

It’s not just about counting days. It’s about being able to prove them.

3. Tax situation

Can be relevant:

  • foreign tax residence certificate;
  • local tax number;
  • declarations filed in the destination country;
  • census communications;
  • modification of tax domicile;
  • review of obligations in Spain;
  • taxation as a non-resident if Spanish income is maintained.

4. Economic activity

For entrepreneurs and professionals, key elements can be:

  • contracts with clients;
  • coherent invoicing;
  • bank accounts;
  • office or material means;
  • corporate documentation;
  • minutes or agreements;
  • evidence of decision-making;
  • real management structure.

5. Family and assets

Also can be reviewed:

  • spouse’s residence;
  • residence and schooling of children;
  • family home;
  • real estate;
  • vehicles;
  • insurance;
  • investments;
  • recurring expenses in Spain.

The more ties remain in Spain, the more important it will be to document the coherence of the change.

Checklist before changing your tax residence

Before executing a tax move, it is advisable to review:

AreaKey Question
DaysHow many days will you actually spend in Spain during the calendar year?
Destination CountryCan you be an effective tax resident there?
CertificateCan that country issue you a tax residence certificate?
HousingWill you have a real home outside Spain?
FamilyWhere will your spouse and minor children live?
CompanyFrom where will the activity actually be directed?
IncomeWhere are your main sources of income?
AssetsWhat assets will you keep in Spain?
BankingWill your banking operations be consistent with the new residence?
AgreementIs there an applicable double taxation agreement?
CalendarIs the exit planned before the appropriate fiscal year?
EvidenceCan you accredit each relevant element?

This checklist does not replace a personalized analysis, but it helps to understand the logic of the process.

Frequent errors

1. Thinking that it is enough to spend less than 183 days

It is one of the most common mistakes. Permanence matters, but so do economic interests, family, documentation and effective residence in another country.

2. Not obtaining a tax residence certificate

Without a certificate, it can be more difficult to defend the new residence, especially when there is international income or double taxation agreements.

3. Moving too late

A move in the last part of the year may not be enough if during most of the year residence criteria in Spain have been met.

4. Keeping the company managed from Spain

If the company is abroad, but the real management is still in Spain, the structure can be questionable.

5. Copying structures from the internet

What works for a digital nomad may not work for an entrepreneur with a family, real estate, companies and investments.

International taxation is not copied. It is designed.

6. Not reviewing exit taxation

Before moving, it is advisable to analyze holdings, investments, stock options, real estate, latent gains and possible tax implications derived from the change.

7. Not coordinating residence, company and assets

A tax exit can fail if the person changes country, but their business, invoicing, banking and assets continue to operate as if nothing had changed.

Case study 1: digital entrepreneur who wants to move to Cyprus

Let’s imagine a Spanish consultant who invoices 220,000 euros a year, lives in Valencia, has a Spanish SL and wants to move to Cyprus.

Before deciding whether to close the SL, create a Cypriot company or modify its structure, it would be necessary to analyze:

  • if they are really going to live in Cyprus;
  • how many days they will spend in Spain;
  • if they will be able to obtain a tax residence certificate;
  • where their clients will be;
  • where their clients will be;
  • from where the services will be provided;
  • where decisions will be made;
  • what will happen to the Spanish SL;
  • how profits will be extracted;
  • what impact it will have on personal income tax (IRPF), corporate tax, VAT and dividends;
  • what documentation they should keep.

The move can make sense if there is real residence, substance and coherent operations.

It can be problematic if only the company is changed on paper while life and effective management remain in Spain.

Case study 2: investor with family and real estate in Spain

Let’s now think about a person with financial assets, several properties in Spain, a spouse and minor children living in Madrid and the will to move to Andorra or Dubai.

Here the analysis should not be limited to personal income tax (IRPF). It is also necessary to review assets, succession, donations, investments, use of real estate and family structure.

Key points:

  • where the family really resides;
  • if the Spanish home is still the center of life;
  • what income comes from Spain;
  • how investments are managed;
  • which country can accredit the new residence;
  • which applicable agreement;
  • what documentation supports the change.

For asset profiles, a poorly prepared tax move can generate more risk than savings.

change of tax residence

How to correctly prepare a tax exit

A structured tax exit is usually divided into four phases.

1. Diagnosis

Before choosing a country, it is necessary to understand the complete situation:

  • current residence;
  • professional activity;
  • companies;
  • assets;
  • family;
  • real estate;
  • investments;
  • banks;
  • nationality;
  • personal goals;
  • risk tolerance.

Without a diagnosis, choosing a destination is premature.

2. Scenario design

Then alternatives are compared:

  • optimize within Spain;
  • apply special regimes if applicable;
  • change residence to another European Union country;
  • move to a low-tax jurisdiction;
  • maintain a Spanish company;
  • create a foreign company;
  • reorganize investments;
  • structure dividends, salary or invoicing.

The best option is not always the one with the lowest nominal tax. It is the most coherent, defensible and operative for the specific case.

3. Calendar

The timing of execution matters.

It is necessary to decide when to move, when to modify contracts, when to reorganize companies, when to obtain documentation and when to adapt tax obligations.

A good strategy can fail if the calendar is incorrect.

4. Documentation

During the first year, it is advisable to keep evidence of residence, activity, expenses, flights, contracts, tax declarations, corporate decisions and relevant communications.

It is not enough to do things well. You have to be able to prove it.

Frequently asked questions

Not necessarily. It can help, but it is also necessary to review economic interests, family, tax certificate, applicable agreement and evidence.

Yes. Having a home in Spain does not automatically imply being a Spanish tax resident. But it can be a relevant indication if it is still your real center of life.

Yes, but it is necessary to analyze how the service is provided, from where the activity is directed, who invoices and what regulations apply.

Yes, but that does not eliminate your personal tax obligations in Spain. In addition, it can generate risks if the company is actually managed from Spanish territory.

It could demand taxation in Spain on your worldwide income, in addition to interest and possible penalties if there are regularizations.

It is necessary to review the internal regulations of both countries and, if applicable, the double taxation agreement. The agreement may include tie-breaker rules to determine residence for treaty purposes, but the defense will depend on the facts and available documentation.

It depends. Andorra, Cyprus, Dubai, Portugal or other jurisdictions may have advantages, but none are suitable for all profiles. The decision depends on real residence, family, company, assets, banking and objectives.

Conclusion

Ceasing to be a tax resident in Spain correctly does not consist of leaving the country, opening a foreign company or spending less than 183 days in Spanish territory.

It consists of building a real, coherent and documented situation.

Tax residence is analyzed from the facts: where you live, where you generate income, where your family is, where you manage your businesses, where your assets are located and which country can accredit your residence.

Therefore, good international tax planning does not start with a jurisdiction. It starts with a diagnosis.

At N30 Global we work on international taxation from this perspective: residence, company, assets, banking, family, succession and lifestyle.

Because a tax structure should not look like a solution copied from the internet. It should fit like a tailor-made suit.

¿Estás valorando una estructura fiscal, un cambio de residencia o una reorganización patrimonial?

En N30 Global analizamos tu situación de forma personalizada para diseñar una estrategia fiscal alineada con tu vida, tu empresa y tu patrimonio.

Escrito por

Equipo N30 Global

Revisado por

Equipo fiscal de N30 Global