Spanish Tax Residence: Complete Guide for Foreign Residents

Last Updated: August 2026 | Applies To: Individuals moving to or living in Spain | Official Sources Checked: Agencia Tributaria and BOE | Author: Editorial Team

Spanish tax residence is one of the most misunderstood parts of moving to Spain.

You may have heard that you become tax resident after 183 days. That is important, but it is not the whole rule.

Spain can regard an individual as tax resident when either of its main domestic residence tests is met. There is also a family presumption in certain circumstances, and an international tax treaty may need to decide the result when two countries both consider you resident.

Just as importantly, your NIE, padrón, CUE or TIE does not by itself determine your tax residence.

Immigration residence: Determines your right to live in Spain.

Padrón: Records where you habitually live for municipal purposes.

Tax residence: Determines which country’s tax-residence rules apply to you.

They are related facts, but they are not the same legal concept.

What Does Spanish Tax Residence Mean?

If you are tax resident in Spain, you are generally subject to Spanish Impuesto sobre la Renta de las Personas Físicas, usually abbreviated to IRPF, on your worldwide income, subject to applicable exemptions, deductions and double-tax treaties.

If you are not tax resident in Spain, you can still owe Spanish tax on income or gains considered to arise in Spain under the Impuesto sobre la Renta de no Residentes, or IRNR.

Status General Spanish Income Tax Position
Spanish tax resident Generally taxed under IRPF on worldwide income, subject to treaties and applicable Spanish rules.
Spanish tax non-resident Generally taxed under IRNR on income and gains considered obtained in Spain, subject to treaties.

The First Test: More Than 183 Days in Spain

Under Article 9 of Spain’s IRPF law, you are considered habitually resident in Spain if you remain in Spanish territory for more than 183 days during the calendar year.

Notice the wording:

More than 183 days. The test is not simply “six months,” and it operates by calendar year.

For example, if your presence in Spain during a calendar year exceeds 183 days, you can satisfy this residence test even if you arrived partway through the year.

Do Short Trips Abroad Stop the 183-Day Clock?

Not necessarily.

The Spanish legislation states that sporadic absences can be counted as periods of presence in Spain when calculating the 183-day test, unless the taxpayer proves tax residence in another country.

This is why simply adding up passport stamps or airline tickets may not always settle the question.

The facts of where you actually live and whether you can establish tax residence elsewhere can matter.

Common mistake: “I spent 170 physical days in Spain and travelled for the rest, so I definitely cannot be Spanish tax resident.” Spanish tax residence is not always determined by that arithmetic alone.

The Second Test: Centre of Economic Interests

The 183-day test is not the only domestic rule.

You can also be considered tax resident in Spain when the main nucleus or base of your activities or economic interests is located in Spain, directly or indirectly.

This means someone should not assume that spending fewer than 184 days in Spain automatically guarantees non-residence.

Economic connections that may be relevant to an overall analysis can include matters such as:

  • where your main business or professional activity is carried out;
  • where the principal source or centre of your economic activity is located;
  • where businesses you control are actually operated;
  • where employment or self-employed activity is effectively performed; and
  • the broader factual location of your economic interests.

There is no useful universal percentage such as “51% of your income must come from Spain.” The statutory question is where the main nucleus or base of the activities or economic interests is located.

The Family Presumption

Spanish tax law also contains a rebuttable presumption.

Unless evidence shows otherwise, a taxpayer is presumed to have habitual residence in Spain when both of the following ordinarily reside in Spain:

  • their legally non-separated spouse; and
  • dependent minor children.

This is a presumption, not an absolute rule. It can be rebutted with evidence.

Important: The statutory wording concerns a legally non-separated spouse and dependent minor children. It should not be casually expanded to every adult child or other family member living in Spain.

Is the 183-Day Rule the Only Thing That Matters?

No.

A useful way to think about the domestic Spanish test is:

Test 1: More than 183 days in Spain during the calendar year?

OR

Test 2: Is the main nucleus or base of your activities or economic interests in Spain?

PLUS: Consider the rebuttable family presumption where applicable.

Meeting either of the principal tests can result in Spanish tax residence under domestic law.

Does the Padrón Make You Tax Resident?

No.

Registration on the Padrón Municipal records the municipality where you habitually live for local administrative purposes.

It is not a tax-residence certificate and does not replace the tests in the IRPF law.

However, padrón records can form part of the factual evidence about where you actually live.

See our Empadronamiento in Spain guide.

Does a CUE Make an EU Citizen Tax Resident?

No.

A CUE shows that an EU, EEA or Swiss citizen has registered under the applicable free-movement residence regime.

It does not itself establish Spanish fiscal residence.

You could theoretically have completed EU residence registration while your tax-residence position for a particular calendar year still needs to be determined separately.

See our CUE in Spain guide.

Does a TIE Make a Non-EU Citizen Tax Resident?

No.

A TIE documents a foreigner’s immigration situation in Spain.

It is not the legal test for tax residence.

A person can therefore hold a Spanish residence permit while their tax status still depends on the separate tax rules.

See our TIE in Spain guide.

Does Owning Property in Spain Make You Tax Resident?

No, not by itself.

Thousands of non-residents own Spanish property.

Property ownership can be one factual connection with Spain, but buying a house does not automatically turn you into a Spanish tax resident.

Likewise, remaining tax non-resident does not mean that Spanish property has no tax consequences. Non-residents can have Spanish tax obligations arising from Spanish property.

Does Having a NIE Make You Tax Resident?

No.

A NIE is simply your foreigner identification number.

It is widely used in property purchases, banking, taxation, employment and immigration procedures.

A non-resident can have a NIE for years without becoming Spanish tax resident.

See our Non-Resident NIE Guide.

Spanish Tax Residence Usually Applies for the Whole Calendar Year

For ordinary individual income-tax residence, Spain generally determines whether an individual is resident or non-resident for the entire calendar year.

The Agencia Tributaria expressly notes that a change of residence during the year does not normally divide the IRPF tax period into resident and non-resident portions.

In practical terms, someone moving to Spain should therefore pay close attention to the calendar year in which the move occurs.

Example: Moving in January and moving in October can produce very different residence outcomes for the same calendar year, even though both people may intend to live permanently in Spain.

What Happens if Two Countries Both Say You Are Tax Resident?

This is called dual residence.

It can happen because every country has its own domestic tax-residence rules.

Spain might consider you resident under Spanish law while another country also regards you as resident under its own law.

If Spain has a double-taxation treaty with the other country, the treaty generally contains rules for deciding which country is treated as your residence state for the purposes of the treaty.

How Do Tax Treaties Resolve Dual Residence?

The exact wording of the treaty must always be checked, but the Agencia Tributaria describes the typical sequence as follows:

1. Permanent Home

First consider in which country you have a permanent home available.

2. Centre of Vital Interests

If you have a permanent home in both countries, the next question is with which country your personal and economic relations are closer.

3. Habitual Abode

If the position still cannot be determined, consider the country where you habitually live.

4. Nationality

If you habitually live in both countries or neither, nationality can become relevant under the typical treaty sequence.

5. Mutual Agreement

If the previous criteria do not resolve the issue, the competent authorities may need to settle the matter by mutual agreement.

Do not use the treaty rules backwards. First determine whether each country considers you resident under its own domestic law. Treaty tie-breaker rules become relevant when both countries claim residence.

What Is the Centre of Vital Interests?

This expression appears frequently in double-tax treaty discussions.

It is not exactly the same wording as Spain’s domestic “centre of economic interests” test.

Under the typical treaty approach, the centre of vital interests considers where your personal and economic relations are closer.

Potentially relevant facts can include:

  • family relationships;
  • where you normally live;
  • professional and business activities;
  • economic relationships;
  • social connections;
  • property available to you; and
  • the overall pattern of your life.

No single item necessarily decides the result on its own.

What Does Worldwide Income Mean?

Spanish tax residents are generally taxed under IRPF on income regardless of where in the world it arises, subject to Spanish law and applicable tax treaties.

Depending on your circumstances, foreign-source income might include:

  • foreign salary;
  • pensions;
  • rental income;
  • interest;
  • dividends;
  • investment gains;
  • business income; and
  • other taxable income arising outside Spain.

This does not necessarily mean that the same income is simply taxed twice in full.

Spanish domestic relief and double-tax treaties can determine which country may tax particular income and how double taxation is relieved.

What if Foreign Tax Has Already Been Deducted?

Do not assume that tax withheld abroad ends the matter.

If you are Spanish tax resident, foreign income may still have to be included in the Spanish tax calculation.

The relevant double-tax treaty and Spanish law then determine matters such as:

  • whether the foreign country was entitled to tax the income;
  • whether Spain also taxes it;
  • whether a tax credit is available;
  • whether some income is exempt in Spain; and
  • whether excess foreign withholding must be reclaimed from the foreign country.

The correct answer depends on the type of income and the treaty involved.

How Are Foreign Pensions Taxed?

Foreign pensions are a good example of why tax residence and treaty rules must be considered together.

A Spanish tax resident receiving a pension from another country should check the applicable double-tax treaty.

Different treaty articles can apply to different types of pension, particularly:

  • private-sector pensions;
  • Social Security pensions;
  • government or public-service pensions; and
  • other retirement payments.

Do not assume that all pensions from the same country have identical Spanish tax treatment.

What About Remote Workers?

Remote work is another area where the 183-day slogan can be misleading.

If you physically perform your employment or business activity while living in Spain, questions can arise concerning:

  • Spanish personal tax residence;
  • where employment income is taxable;
  • Spanish payroll obligations;
  • Social Security;
  • the employer’s presence in Spain; and
  • business or permanent-establishment issues in some cases.

Immigration permission to work remotely and the tax treatment of the work are separate legal questions.

What About the Spanish Special Expatriate Tax Regime?

Some people moving to Spain for work may qualify for the special tax regime commonly associated with the term “Beckham Law.”

It is not an automatic tax exemption for foreigners and it is not available simply because someone has moved to Spain.

Eligibility, application deadlines and the resulting tax treatment depend on statutory conditions.

Anyone considering that regime should assess it before assuming that the ordinary IRPF rules will apply in exactly the same way.

Do Foreign Assets Matter?

Potentially, yes.

Spanish tax residence can create reporting or taxation consequences involving assets outside Spain.

Depending on the individual’s circumstances and the legislation in force, this can involve matters such as:

  • foreign bank accounts;
  • foreign investments;
  • foreign property;
  • foreign pensions;
  • wealth taxation; and
  • specific information-reporting obligations.

Those are separate subjects from the basic question of whether you are tax resident, so we will cover them in dedicated guides rather than reducing them to one paragraph here.

Is Modelo 030 How You Become Tax Resident?

No.

Modelo 030 is used by individuals for certain census-related notifications to the Agencia Tributaria, including changes to identifying and address information.

Filing an administrative form does not override the substantive tax-residence tests.

In other words, tax residence results from the law and your circumstances — not merely from ticking a box on a form.

How Can You Prove Spanish Tax Residence?

The Agencia Tributaria can issue a certificate of tax residence where the information available to it supports the conclusion that you are tax resident in Spain.

A certificate may be particularly useful when:

  • a foreign bank asks for evidence of your tax residence;
  • you need to apply a double-tax treaty;
  • foreign tax is being withheld;
  • a pension provider requires confirmation; or
  • another country’s tax authority requests evidence.

Where the certificate is intended for a country with which Spain has a double-tax treaty, the Agencia Tributaria can certify residence for treaty purposes.

How Long Is a Tax Residence Certificate Valid?

The Agencia Tributaria states that tax-residence certificates generally have a validity period of one year.

This does not mean your tax residence automatically ends after a year. It means the certificate itself is used as current documentary evidence for a limited period.

Can You Request a Tax Residence Certificate Online?

Yes.

The Agencia Tributaria provides an electronic procedure for requesting a tax-residence certificate.

Online identification options can include:

  • Cl@ve;
  • Certificado Digital; and
  • DNI electrónico where applicable.

This is one reason setting up Spanish digital administration early can be useful.

See our planned Digital Administration in Spain guide.

Moving to Spain: When Should You Think About Tax Residence?

Before the move, not after the first Spanish tax return is due.

A practical sequence is:

Step 1: Identify Your Expected Arrival Date

Look at how many days you are likely to spend in Spain during the first calendar year.

Step 2: Review Your Economic Connections

Consider where you work, manage businesses, earn income and conduct your principal economic activities.

Step 3: Review Your Family Situation

Consider whether the statutory family presumption could be relevant.

Step 4: Check Your Previous Country’s Rules

Leaving one country does not necessarily mean that country immediately stops considering you tax resident.

Step 5: Check the Double-Tax Treaty

If both countries could regard you as resident, examine the specific treaty between Spain and the other country.

Step 6: List Worldwide Income and Assets

Identify pensions, employment income, investments, property, businesses and other foreign interests before your first Spanish filing obligations arise.

EU Citizens and Spanish Tax Residence

EU free movement does not create a separate tax-residence regime.

An EU citizen who moves to Spain is subject to the same Spanish tax-residence tests as other individuals.

Your CUE helps document your administrative residence, but it does not replace the tax analysis.

See our cornerstone guide: EU Citizen Moving to Spain: Complete Paperwork Guide.

Non-EU Citizens and Spanish Tax Residence

Holding a visa or residence permit does not create a separate tax-residence test either.

A non-EU citizen living in Spain must still consider the Spanish domestic tax rules and any applicable treaty.

See our cornerstone guide: Non-EU Citizen Moving to Spain: Complete Paperwork Guide.

Common Spanish Tax Residence Mistakes

“I have been in Spain for 183 days, so that is the exact threshold.”

The statutory test refers to more than 183 days during the calendar year.

“If I stay under 183 days, Spain cannot consider me tax resident.”

Incorrect. The centre-of-economic-interests test must also be considered.

“Every trip abroad reduces my Spanish day count.”

Not necessarily. Sporadic absences can count under the Spanish rules unless residence elsewhere is established in the relevant circumstances.

“My CUE means I am tax resident.”

No. It documents EU residence registration.

“My TIE means I am tax resident.”

No. It documents immigration status.

“My padrón means I am tax resident.”

No. It is municipal registration.

“I own a house in Spain, so I must be tax resident.”

No. Property ownership alone does not establish tax residence.

“I have a NIE, so Hacienda considers me resident.”

No. A NIE is an identification number.

“I pay tax abroad, so Spain cannot tax the same income.”

Not necessarily. You must check Spanish domestic law and the applicable double-tax treaty.

“If both countries consider me resident, I can simply choose one.”

No. The applicable treaty rules determine how dual residence is resolved for treaty purposes.

Spanish Tax Residence Checklist

Before moving

1. Estimate how many days you will spend in Spain during the calendar year.

2. Identify where your principal economic activities and interests are located.

3. Review your spouse and dependent minor children’s residence where relevant.

4. Check the tax-residence rules in the country you are leaving.

5. Find the applicable double-tax treaty with Spain.

6. List your worldwide income sources.

7. List foreign property, accounts, investments and other significant assets.


After moving

8. Keep reliable records of travel and residence.

9. Update the Agencia Tributaria with required census or address information.

10. Determine your tax-residence position for the entire calendar year.

11. Check how foreign pensions, salary, investments and rental income are treated under the relevant treaty.

12. Review whether foreign asset-reporting obligations apply.


When needed

13. Obtain a Spanish tax-residence certificate.

14. Provide treaty residence documentation to foreign payers where appropriate.

15. Review the position again if your country of residence, employment or family circumstances change.

Spanish Tax Residence: The Short Version

You can generally be considered tax resident in Spain under Spanish domestic law if:

  • you remain in Spain for more than 183 days during the calendar year; or
  • the main nucleus or base of your activities or economic interests is located in Spain.

There is also a rebuttable presumption involving a legally non-separated spouse and dependent minor children who habitually reside in Spain.

Sporadic absences can count when applying the Spanish day-count rule in the circumstances established by law.

If two countries both regard you as resident, the relevant double-tax treaty may use tests such as permanent home, centre of vital interests, habitual abode and nationality to resolve residence for treaty purposes.

And remember:

NIE: Identification number — not tax residence.

Padrón: Municipal registration — not tax residence.

CUE: EU residence registration — not tax residence.

TIE: Immigration identity card — not tax residence.

Tax residence: Determined under tax law and, where necessary, applicable tax treaties.

Official Sources

This guide was checked against current Agencia Tributaria guidance and Spain’s IRPF legislation. Tax-residence questions can become complex where two countries are involved, so always check the specific double-tax treaty and the facts of your situation.

Important: This is a general administrative guide, not individualized tax or legal advice. International pensions, remote work, businesses, foreign property, dual residence and substantial foreign assets can require case-specific tax analysis.