Tax residency in Spain: criteria, rules, and obligations for expats

Last updated: 2026-05-26

Tax residency is the cornerstone of the Spanish tax system. It determines whether you must declare and pay taxes in Spain on your worldwide income or only on income sourced within Spanish territory. For anyone considering a move to Spain — or already living here — understanding these criteria is essential to avoid unexpected tax liabilities with Hacienda (the Spanish tax authority, formally known as Agencia Tributaria or AEAT).

Legal framework: Ley del IRPF

Tax residency for individuals is governed by Articles 8 and 9 of Ley 35/2006 (the Spanish Personal Income Tax Act, known as Ley del IRPF). Article 8 defines who is liable for personal income tax; Article 9 sets out the criteria for determining habitual residence in Spanish territory.

A critical point: meeting just one of the criteria is sufficient to be considered a Spanish tax resident. You do not need to satisfy all of them simultaneously.

The three residency criteria

1. Physical presence: the 183-day rule

You are considered a tax resident if you spend more than 183 days during the calendar year in Spanish territory. Key nuances:

  • Sporadic absences count toward the total: days spent outside Spain are added to your Spanish presence count, unless you can prove tax residency in another country with a valid tax residency certificate.
  • Tax havens: if the other country is classified as a tax haven, the AEAT may require proof that you actually spent 183 days physically present in that territory.
  • No partial tax year: if you meet this criterion at any point during the calendar year (January 1 through December 31), you are a tax resident for the entire year. This means you owe taxes on worldwide income for the full 12 months, even if you arrived in Spain in August.

How the AEAT counts the 183 days

The tax authority uses three categories in its calculation:

Category Description
Certified presence Days with documentary evidence: passport stamps, bank card transactions at physical terminals, medical visits, contract signatures
Presumed days Days between two certified presences where you cannot prove you were outside Spain
Sporadic absences Periods of absence that are added to the total count unless you hold a tax residency certificate from another country

Example: you arrive in Spain on March 1 and sign a bank contract on March 20. The 19 days in between are considered "presumed days" and count toward the 183-day threshold.

2. Center of economic interests

You are a tax resident if the main base or center of your economic activities or interests, directly or indirectly, is located in Spain. Spanish tax doctrine applies two complementary approaches:

  • Income theory: your center of interests is where you earn the largest share of your income.
  • Asset theory: your center of interests is where the largest share of your assets is located, or from where you manage your wealth.

The AEAT uses both approaches. Crucially, the comparison is made country by country, not in aggregate. If you earn 60,000 EUR from Spain, 50,000 EUR from France, and 50,000 EUR from Germany, Spain is considered your economic center because your Spanish income exceeds each individual country's figure — even though the combined total from other countries is higher.

Key detail: the comparison is evaluated as of December 31 of the relevant year.

3. Family ties presumption

It is presumed — unless proven otherwise — that you are habitually resident in Spain when your legally non-separated spouse and dependent minor children habitually reside in Spanish territory.

Important aspects:

  • This is a rebuttable presumption: you can disprove it by demonstrating effective tax residency in another country (with a tax residency certificate).
  • Having children is not required — the spousal tie alone is sufficient.
  • It works both ways: if your spouse resides outside Spain, this can support your case for non-residency.

Double taxation treaties and tie-breaker rules

When you meet tax residency criteria in two countries simultaneously, double taxation treaties (DTTs) come into play. Spain has signed over 100 DTTs. If a treaty exists with your home country, the tie-breaker rules (Article 4 of the treaty) apply in the following order:

  1. Permanent home: in which country do you have a home available to you at all times? This does not mean property ownership alone — a long-term rental qualifies equally. Hotels and short-term rentals generally do not count.

  2. Center of vital interests: if you have a permanent home in both countries, the analysis turns to your closer personal and economic relations — family, professional activity, social ties, cultural engagement, asset management.

  3. Habitual abode: if the center of vital interests cannot be determined, the analysis examines where you spend more time habitually, potentially looking beyond the single tax year in question.

  4. Nationality: if all of the above are inconclusive, nationality is the final tiebreaker.

If none of these criteria resolve the conflict, the two states must negotiate a resolution on a case-by-case basis.

For more details on treaty mechanics, see our guide on double taxation treaties.

Practical implications for expats

Tax residency is not immigration residency

A common mistake is confusing an immigration residence permit (NIE, visa, residence card) with tax residency. These are entirely separate concepts:

  • You can hold a non-lucrative visa and be a tax resident through economic ties.
  • You can be on a student visa and become a tax resident by exceeding 183 days.
  • No immigration formality is required for the AEAT to consider you a tax resident.

Conversely, the tax residency certificate that the AEAT issues does not prove immigration status, and an immigration document does not prove tax residency. Court rulings have consistently confirmed that consular registration certificates, residence permits, and even passport visas are not valid proof of tax residency.

When tax residency kicks in

There is no official "activation" moment. The criteria are evaluated at the close of the calendar year. However, from the moment you start building connections with Spain — renting housing, opening a bank account, enrolling children in school — you are creating indicators of tax residency.

For those planning a move, the arrival date matters:

  • Arriving early in the year maximizes the chance of exceeding 183 days in the same calendar year.
  • Arriving in the second half may mean formal tax residency starts the following year — but economic or family tie criteria can trigger it in the year of arrival regardless.

The tax residency certificate

The certificado de residencia fiscal is the key document for proving your tax status to foreign tax authorities. You request it via the AEAT electronic portal.

It is typically generated automatically after filing your annual income tax return (Modelo 100). If you need it sooner, you can submit supporting documents:

  • Empadronamiento (municipal registration)
  • Rental contract or property deed
  • Seguridad Social registration
  • Utility bills (electricity, water, internet)
  • Employment contract with a Spanish company

For treaty purposes: if you need the certificate for a double taxation treaty, it must explicitly state this. A generic certificate may be insufficient.

Tax obligations for residents

Once you are a tax resident in Spain, you are required to declare your worldwide income. This includes employment income, self-employment income, rental income, investment income, capital gains, and any other income earned anywhere in the world.

Key obligations for autónomos (self-employed) residents:

Obligation Frequency More information
Annual income tax (Modelo 100) Yearly Modelo 100 guide
IRPF installment payments Quarterly Modelo 130 / Modelo 131
VAT declaration Quarterly Modelo 303
Social security contributions Monthly Cuota de autónomos guide

See the full overview of tax obligations for autónomos and the fiscal calendar to stay on top of all deadlines.

Foreign assets declaration (Modelo 720)

Tax residents who hold assets abroad worth more than 50,000 EUR (in any of three categories: bank accounts, securities, or real estate) must file the informational Modelo 720 by March 31.

Beckham Law: special tax regime for relocated workers

If you move to Spain for work purposes and have not been a tax resident in the preceding 5 years, you may qualify for the special regime for relocated workers (commonly known as the "Ley Beckham"). This regime allows you to pay a flat 24% tax rate on Spanish-sourced income for the first year and the following 5 tax periods.

For details, see our Ley Beckham guide.

Registering as autónomo when moving to Spain

If you plan to work as a freelancer or self-employed professional in Spain, you will need to register as autónomo with Hacienda (forms 036/037) and with the Seguridad Social. New autónomos may benefit from the tarifa plana of 88.64 EUR/month for the first 12 months.

See the tarifa plana guide for new autónomos.

Consequences of not filing

Filing is mandatory if you meet the tax residency criteria, regardless of immigration status. Failure to file can result in:

  • Penalties for non-filing: 200 EUR if the return would have resulted in a refund (Art. 198.1 LGT); a percentage of the tax owed otherwise.
  • Late filing surcharges: 1% base plus 1% for each complete month of delay (2% at 1 month, 3% at 2 months… 12% at 11 months). After 12 months: 15% surcharge plus interest (interest only applies after the 12-month mark).
  • Tax inspection: the AEAT participates in automatic information exchange with over 100 jurisdictions under the Common Reporting Standard (CRS), significantly limiting the ability to keep income hidden.

Summary: determining your tax residency

  1. Did you spend more than 183 days in Spain? → Tax resident
  2. Is your center of economic interests in Spain? → Tax resident
  3. Do your spouse and minor children live in Spain? → Presumed tax resident (rebuttable)
  4. Are you a tax resident in both Spain and another country? → Apply DTT tie-breaker rules
  5. Are you a tax resident? → You must declare worldwide income in Spain

Tax residency is always cheaper to plan before moving to Spain than to resolve after settling in. If your situation involves multiple income sources, assets in different countries, or family in another jurisdiction, consult a tax advisor specializing in international taxation.

Official sources

FAQ

How many days do I need to spend in Spain to become a tax resident?

You are considered a tax resident if you spend more than 183 days in Spain during the calendar year. However, the 183-day rule is not the only criterion — economic ties and family ties can also trigger tax residency.

Can I be a tax resident in Spain without living there for 183 days?

Yes. If the main center of your economic activities or interests is in Spain, or if your spouse and dependent children reside in Spain, you may be considered a tax resident even if you spend fewer than 183 days in the country.

What happens if I am a tax resident in two countries at the same time?

When dual residency exists, the tie-breaker rules of the double taxation treaty between Spain and the other country apply: permanent home, center of vital interests, habitual abode, and nationality, in that order.

When does Spanish tax residency start?

Spain does not have a split-year or partial-year concept. If you meet any residency criterion during the calendar year (January 1 – December 31), you are a tax resident for the entire year and must declare worldwide income.

Is a residence permit the same as tax residency?

No. A residence permit (NIE, visa, residence card) is an immigration document. Tax residency is determined solely by the criteria in Article 9 of the Ley del IRPF, regardless of immigration status.

How do I get a Spanish tax residency certificate?

Request it through the AEAT electronic portal (Sede Electrónica). It is usually issued automatically after filing the annual income tax return (Modelo 100). If needed earlier, you can submit supporting documentation.