Tax Residency in Spain: When You Acquire It, Planning, and Mistakes to Avoid

Tax Residency in Spain

Table of contents:

Many people believe that being a tax resident of a country is a decision you make, a box you check, or a certificate you request. It isn’t. Tax residency is a legal consequence that follows from the facts: where you spend your time, where your economic interests are, and where your family lives. A person can believe they’re a tax resident of one country and discover, when a review arrives, that the Spanish Tax Agency considers them a resident here, with the resulting obligation to be taxed on their entire worldwide income. That difference between what you believe and what the law determines is what generates the most expensive trouble.

Tax residency in Spain is the criterion that determines whether a person must be taxed in the country on the entirety of their income, both that obtained in Spanish territory and that generated anywhere in the world. It’s governed by article 9 of the Personal Income Tax Law, and its determination does not depend on the taxpayer’s will, but on the fulfillment of objective criteria. Understanding them before moving to Spain, and not after, is what separates a fiscally orderly move from one that ends in double taxation, sanctions, or an unexpected regularization.

Do you want a expert consultation? Contact us and we will help you.

When You Acquire Tax Residency in Spain

Article 9 of the Personal Income Tax Law establishes three criteria for determining the tax residency of an individual. Meeting just one of them is enough to be considered a tax resident in Spain and, therefore, a Personal Income Tax payer on worldwide income. It’s worth knowing them precisely, because ignorance of any of them is the source of the most frequent surprises.

The 183-day rule and its nuances

The best-known criterion is that of permanence: a person who stays more than 183 days during the calendar year in Spanish territory is considered a tax resident in Spain. The count refers to the complete calendar year, from January 1 to December 31, not to any twelve-month period. So far, the apparently simple part. The nuances are what matter.

The first nuance is that of sporadic absences. The law establishes that, to compute the period of permanence, sporadic absences from Spanish territory are also counted, unless the taxpayer demonstrates their tax residency in another country. This means that a trip abroad does not automatically subtract days of permanence in Spain: for those days not to count, you have to demonstrate tax residency in another State, normally through a tax residency certificate issued by the authorities of that country. The burden of proof falls on whoever claims not to be a resident.

The second nuance is that the use of the term permanence, instead of mere presence, has been subject to interpretation: being just passing through isn’t enough. And the third, especially relevant, is that not formally exceeding 183 days does not guarantee non-resident status. A recent resolution of the Central Economic-Administrative Court, from February 2026, confirmed that a significant permanence, even if it doesn’t reach 183 days, can weigh as an indication within a body of evidence that leads to concluding residency in Spain through another criterion. The 183-day rule is the best known, but it’s far from the only one.

Center of economic interests and family ties

The second criterion, autonomous with respect to the previous one, is that of the center of economic interests: a person who has in Spanish territory the main core or base of their activities or economic interests, directly or indirectly, is considered a tax resident in Spain. This criterion is independent of the days one: a person can spend fewer than 183 days in Spain and still be a tax resident here if it’s in Spain where the bulk of their assets, investments, sources of income, or professional activity is concentrated.

The interpretation of this criterion combines the quantitative and the qualitative. It’s not just about adding up where more income is obtained, but about assessing the set of economic ties: where the real estate is, where the investments are managed, from where the activity is directed, where the accounts and assets are concentrated. The Tax Agency, when it reviews, builds a picture of indications, and it’s the coherence of that picture that determines the conclusion. That’s why this criterion is the most difficult to plan and the one that generates the most conflicts.

The third criterion is that of family ties, and it operates subsidiarily with respect to the two previous ones. The law presumes, unless proven otherwise, that a person is a tax resident in Spain when their legally non-separated spouse and their dependent minor children habitually reside in Spanish territory. It’s an iuris tantum presumption, that is, it admits proof to the contrary, but it reverses the burden: it falls on the taxpayer to rebut it if their family resides in Spain and they maintain that they’re not a tax resident here.

Mistakes That Generate Tax Surprises After the Move

The move to Spain concentrates a series of recurring mistakes that share a common root: taking for granted that the tax situation is the one you desire, instead of the one the facts determine. Knowing them in advance is the best way not to repeat them.

The first mistake is believing that it’s enough not to register on the municipal roll or to maintain a domicile abroad to not be a tax resident in Spain. The municipal register (padrón) and tax residency are different things: you can be a tax resident without being registered and vice versa, because what’s determining are the criteria of article 9, not the administrative records. The second mistake is not correctly demonstrating tax residency in the country of origin when you intend for the sporadic absences not to count: without a tax residency certificate from the other State, the Tax Agency counts those days as permanence in Spain.

The third mistake is ignoring the center of economic interests criterion, focusing only on counting days. A person can spend most of the year outside Spain and still be a tax resident here if their assets and income are concentrated in Spanish territory. The fourth mistake is moving in the middle of the year without understanding that tax residency is assessed by complete calendar year: in Spain there’s no general splitting of the tax period due to a change of residency in the middle of the year, so whoever acquires residency is considered a resident for the entire fiscal year. The fifth, and one of the most costly, is not planning the departure from the country of origin: many countries tax latent capital gains when you stop being a resident, or maintain obligations that should be closed before the move, and discovering it afterward is expensive.

What to Review Before Moving to Spain

Tax residency planning doesn’t start when you arrive in Spain, but before leaving the country of origin. An orderly review of the asset situation and pending obligations avoids most of the problems that appear later.

Assets, income, and obligations in the country of origin

Before the move it’s worth making a complete inventory of the situation: what assets you have and where they are, what income is generated and from what source, what tax obligations remain open in the country of origin, and what consequences ceasing to be a resident there has. Many countries apply an exit tax that taxes the latent capital gains of certain assets at the moment of losing residency, and Spain itself contemplates a regime of this type for certain cases. Anticipating these consequences allows ordering the operations, deciding what should be materialized before the move and what after, and avoiding taxations that a poor temporal sequence can trigger.

It’s also worth reviewing the nature of the income that will continue to be received after the move, because its treatment in Spain may differ from the one it had in the country of origin. Dividends, real estate income, capital gains, pensions, or employment income have different rules, and their effective taxation depends both on Spanish regulations and on the applicable treaty. Understanding how taxes in Spain for non-residents work is the starting point of this inventory, not a subsequent reaction when the taxable event has already occurred.

Coordination with double taxation treaties

When a person can be considered a tax resident by two countries at once, according to the internal regulations of each one, a dual residency conflict arises that can lead to double taxation. Spain has signed double taxation treaties with around ninety countries, although not with all, and these treaties contain the rules that resolve the conflict.

Those rules, known as tie-breaker rules, follow the OECD model convention and operate in a successive order: residency is attributed to the State where the person has a permanent home; if they have one in both, to the State where they maintain the center of their vital interests (personal and economic relationships); if it can’t be determined, to the State where they habitually reside; then, to the one of their nationality; and, ultimately, it’s resolved by mutual agreement between the administrations. To invoke a treaty before the Tax Agency it’s essential to have the tax residency certificate issued by the other State. When there’s no treaty with the country in question, the conflict has no agreed resolution route, which multiplies the risk of double taxation and makes prior planning even more important. Tax planning in Spain consists precisely of ordering these elements before the conflict materializes.

How to Coordinate Residency, Company, and Assets

A person’s tax residency is not a watertight compartment: it connects with the tax residency of their companies, with the location of their assets, and with the structure of their investments. When these elements are planned in a coordinated way, the result is coherent and defensible. When they’re treated separately, contradictions appear that the Tax Agency detects.

The first point of coordination is with the companies. A person who relocates their residency to Spain and maintains companies abroad must verify where the place of effective management of those companies is located, because if whoever directs them resides in Spain, the Tax Agency can maintain that the place of effective management, and therefore the tax residency of the company, is also in Spain, with the consequences that entails. The person’s residency can drag, without them anticipating it, the residency of their companies.

The second point is the assets. The status of tax resident in Spain entails not only taxation on worldwide income in the Personal Income Tax, but also subjection to other wealth-related taxes and the obligation to report on the assets and rights located abroad through the corresponding informative declarations. The incorrect or late filing of these informative obligations has historically been a source of sanctions, so knowing and fulfilling them from the first fiscal year of residency is essential. The third point is the temporal coordination: the sequence in which the move, the asset operations, and the corporate restructuring are carried out determines the effective taxation, and a poor sequence can generate costs that good planning would have avoided.

When Advice Is Advisable Before Establishing Residency

Not every move to Spain requires complex tax planning, but there are profiles and situations in which prior advice is not a luxury, but the difference between an orderly transition and a tax problem lasting years.

Prior advice is especially advisable when any of these circumstances concur: relevant assets or assets distributed among several countries; ownership of companies, especially if they’re directed personally; income from diverse sources or from several States; the possibility of opting for a special tax regime such as the Beckham Regime, which requires meeting strict requirements and deadlines from arrival; the existence of a possible dual residency conflict with the country of origin; or simple uncertainty about when tax residency will effectively be acquired and what consequences it will have. In all these cases, the moment to act is before the move, because many of the decisions that optimize the situation can only be made before the event that conditions them occurs.

The underlying reason is simple: tax residency is determined by the facts, and the facts, once produced, cannot be redone. Whoever plans before moving decides the sequence, orders their assets, closes obligations at origin, and arrives in Spain with a clear position. Whoever improvises discovers their situation when they can no longer modify it, often in the form of a request. Prior tax advice and coordination with the immigration procedures in Spain when the move also involves a residence authorization are what turn a change of country into a planned transition.

If you’re considering relocating your tax residency to Spain, or have already moved and want to make sure your situation is correctly ordered, the difference between planned tax residency and improvised tax residency is measured in the absence of double taxation, in peace of mind in the face of a review, and in a taxation that responds to a strategy, not to a surprise.

At ILLAY Legal we plan the change of tax residency to Spain for individuals, executives, investors, and business owners, coordinating the criteria for determining residency, the double taxation treaties, the taxation of assets, and the situation of the companies in a single anticipated strategy. If you’d like our team to analyze your case before the facts determine your tax situation, contact us.

Frequently Asked Questions: Tax Residency in Spain

How many days do you have to be in Spain to be a tax resident?

The permanence criterion establishes that you’re a tax resident in Spain when you stay more than 183 days during the calendar year in Spanish territory. However, not exceeding those 183 days does not guarantee non-resident status: the law also computes sporadic absences unless tax residency in another country is demonstrated with a certificate, and you can also be a tax resident through two other independent criteria, the center of economic interests and family ties. Counting days is necessary, but not sufficient.

Can I be a tax resident in Spain without spending most of the year here?

Yes. The center of economic interests criterion is autonomous with respect to the days one, which means that a person can spend fewer than 183 days in Spain and still be a tax resident here if the main core of their activities or economic interests is in Spanish territory: their assets, their investments, their main sources of income, or the direction of their activity. The Tax Agency assesses this criterion by combining the quantitative and the qualitative, building a picture of indications about the set of economic ties of the person with Spain. The family ties presumption also operates, so that if the legally non-separated spouse and the minor children habitually reside in Spain, tax residency is presumed unless proven otherwise.

What happens if two countries consider me a tax resident at the same time?

A dual residency conflict arises, which is resolved by resorting to the double taxation treaty signed between Spain and the other country, if it exists. These treaties contain tie-breaker rules that attribute residency following an order: first, the State where a permanent home is available; then, the one of the center of vital interests; next, the one of habitual residence; after that, the one of nationality; and, ultimately, by agreement between the administrations. To invoke the treaty it’s essential to have the tax residency certificate from the other State. If there’s no treaty with that country, the conflict lacks an agreed resolution route and the risk of being taxed twice on the same income is much greater.

Does the municipal register determine tax residency?

No. The municipal register (padrón) is a municipal administrative record, while tax residency is determined by the criteria of article 9 of the Personal Income Tax Law. You can be a tax resident without being registered and be registered without being a tax resident. Relying on the municipal register, or its absence, to define the tax situation is one of the most frequent mistakes.

Why is it advisable to plan tax residency before moving and not after?

Because tax residency is determined by the facts, and the facts, once produced, cannot be redone. Many decisions that optimize the tax situation can only be made before the move: ordering the assets, deciding which operations to materialize before and which after, closing obligations in the country of origin, anticipating a possible exit tax, verifying the situation of the companies, and checking whether the requirements and deadlines of a special regime such as Beckham are met, which requires acting from arrival. Whoever plans beforehand decides the sequence and arrives with a clear position; whoever improvises discovers their situation when they can no longer modify it, frequently in the form of a request or double taxation.

Do you want a expert consultation? Contact us and we will help you.

Legal notice: This article is for informational purposes only and may contain errors or be outdated. It does not constitute legal advice. For an updated initial consultation, contact us. One of our expert attorneys will assist you.

Share this article:

We will be with you each step of the way

Our Team

Meet the team

At ILLAY Legal, we are a diverse and passionate team of more than 20 professionals from 15 different countries. We believe that cultural and linguistic diversity is one of our greatest strengths, which is why we serve our clients in more than 10 languages, including Spanish, English, French, Brazilian Portuguese, Russian, Albanian, Turkish, Moroccan Arabic, Chinese, Serbian, Italian, Finnish, and Polish.

We work from our offices in Barcelona and Madrid, united by a common purpose: to offer personalized, professional service tailored to each person’s needs. More than just a legal team, we are a group of people committed to accompanying and guiding our clients with empathy, knowledge, and dedication.

Our numbers speak for themselves

Our track record

On average, we tell good news about their immigration cases to 9-10 people each day. A real perk of the job.

Refusals overrulled in appeals

+ 0

Immigration cases solved and in process

+ 0

Appeals efficiency

0 %

Join a Community of Satisfied Customers

The journey to a new life in Spain begins today