Tax Residence in Spain: A clear 7-step guide.

Updated: 21.03.2026 | Published: 17.03.2024

Legal notice: The content of this article is provided for informational and general purposes only. It does not constitute legal advice and should not be a substitute for consultation with a qualified legal professional. While every effort is made to ensure that the published information is accurate and up to date, legal regulations may change, and no guarantee is given regarding the validity or accuracy of the information contained herein. The author declines any liability arising from the use of the information presented. Certain articles are offered in other languages as a courtesy. In the event of discrepancies between translations, the Spanish version shall prevail.

Tax residence is the key concept that determines in which country you must declare your income and the gains from your investments. Many foreign nationals who relocate to Spain become confused because they equate tax residence with municipal registration (empadronamiento), the NIE, the TIE, or even with the notion of habitual residence. In this guide, I explain what tax residence in Spain actually is, what its real requirements are, and how it differs from other types of administrative “residences”. The importance of the tax residence lies in knowing: (1) Where I must pay taxes; (2) How much I must pay, especially when I want to buy or sell a property in Mallorca (or in Spain in general).

What is tax residence in Spain?

For Spanish personal income tax (IRPF) purposes, you are considered tax resident in Spain when any of the following basic conditions is met:

  • If you spend more than 183 calendar days during the calendar year in Spanish territory.
  • If you have in Spain the main centre or base of your business, professional or economic activities or interests (for example, the majority of your income, business activities or investments).
  • If your spouse (from whom you are not legally separated) and your minor children habitually reside in Spain (a presumption which admits evidence to the contrary).

If you meet any one of these criteria (one is sufficient; it is not necessary to meet all of them at the same time), you will be regarded as a tax resident and will be obliged to pay tax in Spain on ALL of your worldwide income (all income, wherever it arises, inside and outside Spain, inside and outside the EU).

Nationality is irrelevant: a German, a British national or a Chinese national can all be tax residents in Spain if they meet one of the conditions set out above. Conversely, a Spanish national may be a non-resident if he or she lives and pays taxes outside Spain, in another country.

How are the 183 days calculated?

The well-known “183-day requirement” creates a great deal of confusion among foreign nationals who want to understand what tax residence in Spain for foreigners actually means. Some key points:

  • The calculation is based on days of effective physical presence in Spain during the calendar year (1 January to 31 December).
  • Both the days of arrival and departure are included. These days are counted as full days unless you can prove that you spent practically the whole day outside Spain. Example: if you travel by plane, ship or train and arrive in Spain at 23:59 on 1 January, that 1 January will count as one full day. If you arrive in Spain on a private vessel (for example, a trip with family or friends) and you cannot prove otherwise (yes, the burden of proof lies with the taxpayer), the tax authorities may presume, on the basis of mooring invoices, purchase receipts, etc., that you entered Spanish territory on the date of the mooring, the purchase, and so on, and therefore that day will count as one full day.
  • The days do not need to be consecutive; they may be isolated days or hours.
  • Occasional absences (short trips to another country) are treated as days spent in Spain unless the taxpayer can prove that they are tax resident in another country (by means of a tax residence certificate), in which case those days would not be counted.
  • If you live in a territory classified as a tax haven, the Spanish tax authorities may presume that you are resident in Spain if you have spent more than 183 days here in the last 5 years.

For this reason, it is very important to:

  • Keep travel tickets (air, rail, ship, etc.), bookings and any documentation that evidences your stays outside Spain if you effectively live between two countries.
  • Obtain, in your country of residence (outside Spain), a tax residence certificate, duly legalised with an apostille and accompanied by a sworn translation into Spanish.

Tax resident vs. non-resident: what changes?

Understanding what tax residence in Spain means for foreigners also requires understanding what happens if you are NOT a tax resident:

  • A tax resident in Spain is liable to Spanish Personal Income Tax (IRPF) on any income obtained anywhere in the world (Spain + foreign country).
  • A non-resident in Spain is liable to Non-Resident Income Tax (IRNR) only on income obtained within Spanish territory (Spain only).

Practical example:

  • A German citizen who spends more than 183 days per year living in Mallorca will be a tax resident and will pay IRPF in Spain on his German salary, his rental income from Berlin, and his property in Sóller.
  • A French citizen who lives in Paris and owns a property in Sóller will be a non-resident and will only pay IRNR in Spain in respect of that property in Sóller (imputed income if it is not rented out, rental income, or capital gain if it is sold).

Differences between tax residence and similar concepts

One of the most common sources of confusion when talking about tax residence in Spain for foreign nationals is how it differs from related or similar concepts:

Tax residence vs. municipal registration (empadronamiento)

Municipal registration (empadronamiento) is a local register kept by the town hall of the municipality where the property is located. Its main purpose is to grant access to local services (for example: subsidies, school enrolment, participation in local elections, public healthcare, etc.). Being registered (empadronado) does not, by itself, create tax residence and is not sufficient proof of it.

The Tax Agency focuses on days of presence in Spain, the centre of your economic interests and the residence of your family, not on whether you are registered in a particular Spanish municipality. In fact, it is possible to:

  • Be registered in Sóller (or in any Spanish municipality) and yet not be a Spanish tax resident, if you actually live and pay taxes in another country. Example: you own a property in Mallorca, but you live and pay taxes in Germany. In that case, you would be a non-resident EU national for Spanish tax purposes.
  • Not be registered in Sóller and nevertheless be a Spanish tax resident if you spend most of the year in Spain or if your main economic life is located here.

Tax residence vs. NIE, TIE and residence permit

  • NIE (Número de Identificación de Extranjero – Foreigner’s Identification Number): this is the number assigned by the Spanish authorities to foreign nationals in order to identify them in transactions with tax or administrative relevance. Example: purchasing a property, signing a mortgage, registering as self-employed, etc. Holding an NIE does not mean that you are a Spanish tax resident. You may have an NIE in Spain and still file your taxes in your country of nationality (except for non-resident income tax – IRNR – if you own property in Spain).
  • TIE (Tarjeta de Identidad de Extranjero – Foreigner’s Identity Card) / residence permit: this is the physical document that proves that you are legally entitled to reside in Spain (on a temporary or long-term basis). Holding a TIE or a residence permit does not necessarily mean that you are a Spanish tax resident. However, in practice, if you actually live in Spain on a continuous basis, you will eventually meet the 183-day test.

Tax residence vs. work permit, visa

Both a work permit and a visa are categories of administrative or migratory residence (similar to municipal registration). Tax residence, by contrast, is assessed on a case-by-case basis according to your time spent in Spain and your economic interests. In other words, holding a work permit in Spain or having a Spanish visa does not automatically mean that you are tax resident in Spain.

Tax residence vs. habitual residence (main home)

  • Tax residence: to reiterate, tax residence only determines in which country you must pay tax on your worldwide income (IRPF vs. IRNR).
  • Habitual residence (in everyday language): this is the place where you normally live, but it does not necessarily have to coincide with your tax residence.
  • Main home or habitual dwelling for Spanish income tax (IRPF) purposes: this is the property you use on a permanent basis as your residence for at least three consecutive years, subject to certain nuances. It is a key concept for several tax exemptions. Example: for the exemption from Spanish income tax (IRPF) when you sell your main home and reinvest the proceeds in another main home.

Example:

  • A British national spends 8 months a year in Mallorca and 4 months in Great Britain. His or her tax residence would be Spain (because he or she spends more than 183 days here), his or her main home for tax purposes is the property in Mallorca, and the house in Great Britain becomes a second residence.
  • Another British national spends 2–3 months a year in Mallorca, but personally feels that he or she “really lives here”. His or her tax residence will nevertheless remain in Great Britain and Spain will only treat him or her as a non-resident, even if emotionally he or she feels like a “resident”.

Tax residence vs. tax address (domicilio fiscal)

The tax address (domicilio fiscal) is simply the address used by the Spanish Tax Agency to contact and notify you. Having a tax address in Spain does not automatically mean that you are tax resident in Spain:

  • For Spanish tax residents who are individuals, it is usually the address of their main home in Spain.
  • For non-residents, it is usually the address of their tax representative in Spain or their address abroad.

Changing your tax address does not, by itself, mean that your tax residence has changed; it is a census or registry datum, not the substantive legal criterion for tax residency.

How can I prove my tax residence?

In practice, two key tools are used:

  • A tax residence certificate issued by the Tax Authority of the country that considers you a tax resident. For this certificate to be fully recognised in Spain, you must provide it duly apostilled and accompanied by a sworn translation into Spanish. In Spain, it is requested from the Agencia Tributaria (Spanish Tax Agency), either via the electronic office (with a digital certificate) or in person (by prior appointment).
  • Form 030, used to notify the Spanish Tax Agency of a change of tax residence (arrival in or departure from Spain).

If you are a foreign national moving to Spain, I recommend:

  • Notifying the registration or change of your tax residence in Spain by filing Form 030.
  • Requesting from the Tax Authority in your country of origin a certificate stating that you cease to be tax resident there, where this is provided for.

Typical questions about tax residence

When preparing a property transaction or planning your taxes, the same questions about tax residence in Spain tend to arise again and again:

  • “I am registered on the municipal roll (empadronado) in Mallorca, does that mean I am already tax resident?” Not necessarily. Municipal registration is only a local administrative record; what matters is the number of days you spend in Spain and where your main economic interests are located.
  • “I have an NIE – does that mean I pay Spanish income tax (IRPF)?” No. You can hold an NIE as a non-resident and be taxed under the Non-Resident Income Tax (IRNR) solely on your Spanish-source income.
  • “I am Spanish but I live in Germany all year round; what am I for Spain from a tax perspective?” A non-resident for tax purposes. You will be taxed in Spain under the Non-Resident Income Tax (IRNR) only on your Spanish-source income (rent, sales of Spanish property, etc.), in the same way as a German national who is not resident in Spain.

Conclusion

  • Tax residence is a strictly tax concept; it is neither an administrative status nor an immigration status.
  • It is based on days of physical presence, economic interests and family circumstances, not on your passport, NIE, municipal registration or nationality.
  • Properly understanding what tax residence in Spain means is the first step towards complying correctly with your tax obligations and avoiding future problems.
    • If you are tax resident in Spain → Guide for residents (IRPF).
    • If you are a non-resident from the EU/EEA → Guide for EU/EEA non-residents (IRNR).
    • If you are a non-resident from outside the EU/EEA → Guide for non-EU/EEA non-residents (IRNR + possible military authorisations).

If you would like further information, you can consult the official website of the Agencia Tributaria or contact me directly.

J. Dillmann

Licensed attorney No. 6337 of the Balearic Islands Bar Association (ICAIB) and registered mediator with the Ministry of Justice of Spain. Co-founder of a law firm in Sóller since 1985, advising private clients, companies, and family offices in Mallorca, Spain, Europe, and Dubai. University-certified expert in Balearic urban planning law from the University of the Balearic Islands and Real Estate MBA from Nebrija University in Madrid. Currently a PhD candidate at the University of the Balearic Islands.