Tax residency in Spain: when the Tax Agency considers you a resident

Facade of the Congress of Deputies in Madrid, a key location for understanding tax residency in Spain according to Gestoría G1

Moving to Mallorca, spending long periods in Spain, or managing a company from here can have much more significant tax consequences than it seems. Tax residency in Spain does not depend on nationality, registration, or the taxpayer's will: it depends on the legal criteria applied by the Tax Agency.

At Gestoría G1, a firm specialized in taxation, immigration, and advisory for non-residents in Mallorca, we help individuals, self-employed professionals, companies, and foreigners correctly determine whether they should pay taxes in Spain as residents or non-residents. This difference completely changes which taxes are paid, which forms must be filed, and what information the Tax Agency can request.

In this guide we explain when the Tax Agency can consider you a tax resident in Spain, how days are counted, what happens if there is a double taxation agreement, what obligations arise when becoming a resident, and what mistakes to avoid before receiving a request from the AEAT.

Contents

Initial summary: when you are a tax resident in Spain

An individual may be considered a tax resident in Spain if any of the criteria in Article 9 of the Personal Income Tax Law are met: staying more than 183 days during the calendar year in Spanish territory, having the main core or basis of their economic activities or interests in Spain, or being affected by the family presumption when the non-legally separated spouse and dependent minor children habitually reside in Spain.

Don't know if the Tax Agency can consider you a tax resident in Spain? Our experts analyze your situation in detail and give you a clear, fast, and surprise-free answer.

The key point is that you don't need to meet all the criteria at once. It is enough that one of them is met for the Tax Agency to argue that you are an IRPF taxpayer and, therefore, that you must declare your worldwide income in Spain.

What is tax residency and why it matters so much

Tax residency is the link that determines in which country you pay taxes as the main taxpayer. In Spain, being a tax resident implies being subject to Personal Income Tax (IRPF) on all income obtained anywhere in the world: salaries, pensions, dividends, rents, interest, capital gains from the sale of real estate, foreign investments, or professional income.

In contrast, a non-resident individual only pays tax in Spain on income obtained in Spanish territory, normally through the Non-Resident Income Tax (IRNR). This difference is enormous for a foreigner who has a home in Mallorca, an investment portfolio in Germany or the United Kingdom, a company outside Spain, and income distributed across several countries.

It also matters because tax residency activates additional reporting obligations, such as Form 720 for certain assets abroad or Form 721 for virtual currencies held abroad when legal requirements are met. Failing to declare correctly can lead to surcharges, interest, and penalties.

The criteria used by the Tax Agency to determine tax residency

Article 9 of the Personal Income Tax Law establishes the main criteria for determining whether an individual has their habitual residence in Spanish territory. In practice, the three blocks analyzed by the Tax Agency are the length of stay, economic interests, and family situation.

1. Staying more than 183 days in Spain

The best-known criterion is the 183-day rule. If a person stays in Spain for more than 183 days during the calendar year, the Tax Agency may consider them a tax resident in Spain.

This calculation takes into account the days of actual presence and, in addition, sporadic absences, unless the taxpayer proves their tax residence in another country. Therefore, it is not always enough to show plane tickets or claim to have traveled frequently. The important thing is to be able to demonstrate where they were tax resident during those absences.

In Mallorca, this scenario is very common. A foreign citizen may come in spring, stay all summer, return to their country for a few weeks, and come back in autumn. Although each isolated stay may seem temporary, the total over the year can exceed the legal threshold.

2. Having the main center of economic interests in Spain

The second criterion can apply even if the 183-day threshold is not exceeded. The Tax Agency may also consider as a tax resident in Spain anyone who has, directly or indirectly, their main center or base of their economic activities or interests here.

This can occur when most of the income comes from a Spanish company, when a business is actually managed from Spain, when the main rental properties are located here, or when the effective management of assets is carried out from Spanish territory.

This criterion is especially sensitive for entrepreneurs, consultants, international freelancers, executives, and owners of several rental properties. It is not enough to have a tax address in another country if the economic reality shows that the center of decision-making and income generation is in Spain.

3. Family presumption: spouse and minor children in Spain

The law presumes, unless proven otherwise, that a person is a tax resident in Spain when their spouse not legally separated and their dependent minor children habitually reside in Spanish territory.

This is a presumption that admits proof to the contrary, but it obliges the taxpayer to document their situation very well. The tax residence certificate issued by another State is usually essential evidence, although not always sufficient if the actual facts contradict the declared residence.

This scenario affects very common profiles: an executive who works abroad but keeps their family in Mallorca, a person who travels continuously for work while their family home is in Spain, or a foreigner who claims to live in their country of origin but has their main family life here.

How days of presence in Spain are counted

The calculation of days is one of the points that generates the most conflicts. The AEAT can use flight data, bank movements, consumption, administrative records, invoices, contracts, medical appointments, card usage, supplies, or any other evidence that allows reconstructing the taxpayer's actual presence.

Days of effective presence and sporadic absences

As a general rule, days of physical presence in Spain count. Additionally, sporadic absences can be added to the permanence count, unless the taxpayer proves tax residency in another country.

Therefore, planning must be done with documentation, not just intention. A personal diary, plane tickets, accommodation receipts, bank statements, and tax certificates from the other country can be decisive in proving the reality of the residence.

The foreign tax residency certificate

The tax residence certificate issued by the tax authority of the other country is one of the most important pieces of evidence to argue that one is not a tax resident in Spain. It must be a tax certificate, not a simple registration, residence permit, rental contract, or consular registration.

Even so, the certificate should not be seen as absolute protection. If the reality shows that the person lives, works, manages their assets, or maintains their vital center in Spain, the Tax Agency can question the declared residence and resort to the corresponding double taxation agreement.

Double taxation agreements: what happens if two countries consider you a resident

It may happen that Spain and another country simultaneously consider a person to be a tax resident according to their own domestic rules. In that case, the double taxation treaties come into play, provided that a treaty exists between both States.

It is worth clarifying something important: the treaty does not automatically replace Article 9 of the Personal Income Tax Law. First, residence is analyzed according to the internal legislation of each country. If both States claim residence, the treaty applies tie-breaking rules to determine in which State the person should be treated as a resident for the purposes of the treaty.

Most common tie-breaking rules

Treaties based on the OECD Model usually apply the criteria successively:

  1. Permanent residence available: it analyzes in which State you have a stable residence at your disposal.
  2. Center of vital interests: it studies where your closest personal and economic relationships are.
  3. Habitual abode: it assesses where you live most frequently.
  4. Nationality: it considers the State of which you are a national if the previous criteria do not resolve the conflict.
  5. Friendly agreement: the competent authorities of both States may resolve the case if the doubt persists.

In Mallorca, agreements with Germany, the United Kingdom, France, Italy, Sweden, Norway, the Netherlands, Belgium, and other countries with a large presence of foreign residents or property owners are especially relevant. Each agreement may have particularities, so it is not advisable to apply a generic rule without reviewing the specific text.

Frequent cases in Mallorca that generate conflicts with the Tax Agency

The foreign property owner who spends long periods on the island

Many foreign owners buy a home in Mallorca to spend long seasons, especially spring, summer and autumn. The risk arises when these stays become longer, are repeated year after year and end up exceeding the threshold of permanence or generating signs of a center of life in Spain.

The fact of not working in Spain does not eliminate the risk. A retired person, rentier, or investor can also be a tax resident if they spend most of the year here or if their center of vital interests is located in Spanish territory.

The digital nomad who works from Spain

Remote work has multiplied the cases of people living in Mallorca while providing services for foreign companies. Having clients outside Spain or receiving payments in a foreign account does not, by itself, prevent one from being a Spanish tax resident.

The residence authorization for international telework or digital nomads is an immigration status, not an automatic exemption from tax residency. Additionally, some displaced individuals may study if they meet the requirements of the special impatriate regime, but this option must be applied for within the deadline and is not applied automatically.

The entrepreneur who goes abroad but maintains management in Spain

Another common case is that of the business owner who reports a change of residence abroad, but continues to manage a Spanish company, attending meetings in Spain, signing contracts from here, or maintaining the effective management of the business in Spanish territory.

In these cases, the Tax Agency can analyze the core of economic interests. A deregistration from the municipal register or a formal change of address is not enough if the facts show that the real center of management remains in Spain.

Special regime for impatriates or “Beckham Law”

The special regime under Article 93 of the Personal Income Tax Law allows certain individuals who move to Spain and acquire tax residency here to opt to be taxed under rules similar to the Non-Resident Income Tax during the year of the move and the following five tax years.

This regime may be of interest to posted workers, highly qualified professionals, entrepreneurs, certain directors, and some international remote workers, provided that all requirements are met. It is not an automatic regime nor applicable to any foreigner moving to Spain.

The option is communicated via Form 149, normally within six months from the start date of the activity as recorded in the Social Security registration or equivalent documentation. If the deadline is missed, the possibility of opting for the regime may be lost.

Situation Main tax risk What to review
Foreigner living part of the year in Mallorca Exceeding 183 days or triggering the presumption of residence Actual days, absences, foreign tax certificate and applicable agreement
Digital nomad Confusing migratory residence with tax residence Personal Income Tax, Beckham Law, source of income and activity carried out from Spain
Non-resident property owner Forgetting Form 210 or the imputation of real estate income Rental income, own use, deadlines and applicable rate
Business owner relocating That the Tax Agency understands that the economic center remains in Spain Effective management, clients, accounts, personnel and real decision-making

Obligations of a tax resident in Spain

When a person is a tax resident in Spain, their obligations change substantially. The most important one is the annual Personal Income Tax (IRPF) return on worldwide income, but it is not the only one.

Avoid penalties and problems with the Tax Agency. At Gestoría G1, we help you determine your tax residence and fulfill all your obligations from wherever you are.

Personal Income Tax (IRPF) return on worldwide income

The tax resident must declare all their global income in Spain: foreign salaries, pensions, dividends, rental income from properties located outside Spain, bank interest, capital gains, professional income, and any other income obtained during the tax year.

If such income has already been taxed in another country, the deduction for international double taxation or the provisions of the corresponding treaty may be applied. However, having paid taxes abroad does not eliminate the obligation to correctly declare the income in Spain.

Model 720: assets and rights abroad

Tax residents in Spain must file Form 720 when they have assets or rights located abroad that exceed the legal limits per category. The three main categories are bank accounts, securities/rights/insurance/income, and real estate or rights over real estate located outside Spain.

The general limit is 50,000 euros per category. Once the return has been filed, in subsequent years it only needs to be repeated if the value of the declared category increases by more than 20,000 euros compared to the last return, or if previously declared assets are disposed of or cancelled.

An important nuance: those who are taxed under the special regime for impatriates of Article 93 are not required to file Form 720 as long as they are correctly covered by said regime, because they are not taxed in Spain on their ordinary worldwide income. Each case must be checked before deciding not to file it.

Form 721: virtual currencies held abroad

Since the implementation of Form 721, certain tax residents must report on virtual currencies held abroad when the legal requirements are met. It is not simply a matter of declaring “any crypto”, but rather reviewing where they are held, who holds the keys, and whether there is a formal reporting obligation.

The case law on crypto assets is particularly delicate: foreign exchange, self-custody, wallets, beneficial ownership, balances as of December 31 and subsequent variations. An incorrect analysis can lead to both over-reporting and failing to meet a real obligation.

Wealth Tax and other taxes

Tax residency can also affect the Wealth Tax, the Temporary Solidarity Tax on Large Fortunes when applicable, Inheritance and Gift Tax, and other reporting obligations related to foreign financial assets.

Therefore, before moving to Spain or spending long periods in Mallorca, it is advisable to carry out a complete asset review. The cost of planning properly is usually much lower than the cost of regularizing late.

Obligations of non-residents with assets or income in Spain

Not being a tax resident in Spain does not mean having no obligations. A non-resident may have to pay taxes here on income obtained in Spanish territory through Form 210.

Rental of properties in Spain

If a non-resident rents a property located in Spain, they must declare the income in the Non-Resident Income Tax (IRNR). Tax residents of the European Union, Iceland, Norway, and Liechtenstein generally pay tax at 19% and may deduct certain expenses related to the property. Other taxpayers generally pay tax at 24%, usually on gross income, unless the applicable treaty provides otherwise.

Additionally, the AEAT has introduced recent changes to the content and deadlines of Form 210 for imputed rental income from properties and income from leased or subleased properties. As of the accruals affected by the new regulation, it is especially important to check whether the annual grouped filing, separate filing, or the new expense breakdown applies.

Unrented properties: imputation of income

A non-resident who owns a home in Spain for their own use must also declare an imputed income using Form 210. This income is generally calculated by applying 1.1% or 2% of the cadastral value, depending on whether the value has been revised under the legally established terms.

This obligation surprises many foreign property owners in Mallorca. Even if the property does not generate real income, the Tax Agency considers that the mere availability of the property produces a deemed income subject to taxation.

Tax representative: when it is mandatory

The obligation to appoint a tax representative in Spain does not affect all non-residents in the same way. The Non-Resident Income Tax (IRNR) regulations require a representative in specific cases, such as when operating through a permanent establishment, when obtaining certain income, or when the tax authorities require it due to the amount or characteristics of the income.

Additionally, representatives of permanent establishments and certain specific cases may assume joint liability. Therefore, it is not advisable to present the tax representative as a merely formal figure nor to generically state that every non-resident owner is always obliged to appoint one. Each case must be reviewed according to the type of income and the taxpayer's situation.

What happens if the Tax Agency detects an undeclared tax residence

The Tax Agency has increasingly more information to detect undeclared tax residency situations. The automatic exchange of international information, bank data, property records, platform information, credit cards, communications with other administrations, and information requests allow reconstructing the taxpayer's real situation.

If the Tax Agency considers that a person should have been taxed as a tax resident in Spain, it may initiate a verification procedure and regularize the non-prescribed tax years. Normally, this may affect the last four non-prescribed years, with late payment interest and possible penalties.

When the defrauded amount exceeds certain thresholds, the matter may become criminally relevant. In Spain, the offense against the Public Treasury generally requires a defrauded amount exceeding 120,000 euros per tax and tax year.

Common mistakes to avoid

  • Confusing registration with tax residence: registration can be an indication, but it does not by itself determine tax residence.
  • Believing that nationality determines where you pay taxes: a German, British, French, or Italian can be a Spanish tax resident if they meet the legal criteria.
  • Not counting the days correctly: repeated stays, sporadic absences, and documentary evidence can change the outcome.
  • Ignoring the double taxation agreement: each agreement has specific rules and a generic solution should not be applied.
  • Not declaring foreign assets: Form 720 and Form 721 remain relevant obligations when applicable.
  • Forgetting Form 210 as a non-resident: many foreign owners believe they do not need to file if they do not rent, but imputed income may exist.
  • Applying late for the Beckham Law: the special regime is lost if it is not communicated on time using the corresponding form.

How Gestoría G1 can help you

At Gestoría G1 we analyze tax residency from a practical and documentary perspective. We don't just count days: we review the taxpayer's personal, family, asset and economic situation to anticipate the criteria that the Tax Agency might apply.

Our work includes the study of double taxation treaties, review of forms 210, 720 and 721, pre-relocation planning to Spain, voluntary regularization of pending tax years, advisory services for non-resident property owners in Mallorca, and assistance with AEAT requirements.

We serve clients in Spanish, English, German, French and Italian, which helps foreign clients understand exactly what obligations they have in Spain and what decisions they must make to avoid risks.

Frequently asked questions about tax residency in Spain

When does the Tax Agency consider me a tax resident in Spain?+
The Tax Agency may consider you a tax resident if you stay more than 183 days in Spain during the calendar year, if you have the main center of your economic interests here, or if the family presumption is activated because your spouse and dependent minor children reside in Spain.
Does being a tax resident mean paying taxes on everything I earn worldwide?+
Yes. A tax resident in Spain is taxed on their worldwide income under the Personal Income Tax (IRPF), although they may apply deductions for double taxation or the provisions of the relevant treaty to avoid being taxed twice on the same income.
Does registration in the municipal census determine my tax residence?+
No. Registration in the municipal census may be an indication, but it does not by itself determine tax residence. The tax authorities analyze actual presence, economic interests, family situation, and available tax documentation.
Can I be a tax resident in two countries at the same time?+
Two countries may consider you a resident according to their internal rules. When a double taxation agreement exists, tie-breaker rules are applied to determine in which State you should be treated as a resident for the purposes of the agreement.
What happens if I am a non-resident but I have a house in Mallorca?+
You must review your obligations regarding Non-Resident Income Tax (IRNR). If you rent out the property, you declare the income. If you have it at your disposal and do not rent it out, there may be imputed real estate income, which is declared using Form 210.
Does the Beckham Law prevent being a tax resident in Spain?+
Not exactly. The special regime applies to individuals who acquire tax residency in Spain, but it allows them to be taxed under special rules for a limited period if they meet the requirements and apply for the option within the deadline.

Conclusion: tax residency is determined by facts, not intuition

Tax residency in Spain does not depend on what the taxpayer wishes to declare, but on verifiable facts: days of presence, center of economic interests, family situation, foreign tax certificate, applicable treaty, and available documentation.

For foreigners with a home in Mallorca, digital nomads, European retirees, constantly traveling businesspeople, or non-resident owners, a preventive review can avoid penalties, regularizations, and unnecessary conflicts with the tax authorities.

At Gestoría G1 we help you find out if you are a tax resident in Spain, which forms you need to submit, and how to organize your situation before it becomes a problem. We analyze your case in several languages and offer you a clear, legal solution tailored to your reality.

Contact Gestoría G1 in Mallorca

Gestoría G1 is a firm specialized in tax, labor, legal, and immigration services, with a physical office in Mallorca and service to clients throughout Spain. We work with self-employed individuals, companies, private individuals, and non-resident foreigners who need to resolve their tax obligations clearly and securely.

Each tax situation is unique. Tell us yours and we will explain exactly which criteria the Tax Agency applies in your case, without technicalities and in your language.

If you have doubts about your tax residence, if you have received a notification from the Tax Agency or if you want to plan your move to Spain before making decisions, contact Gestoría G1. We will review your situation and show you the safest way to comply with Spanish regulations without surprises.

Share this news:
Related articles