If you live in Spain but receive income from another country, or if you live abroad and receive income from Spain, a double taxation agreement can determine which country has the right to tax that income.
Spain has an extensive network of international tax treaties, commonly called double-tax treaties, double taxation agreements or convenios para evitar la doble imposición.
They are designed to prevent the same income or wealth from being fully taxed twice, but they do much more than simply provide a tax credit.
Domestic law first: Spain and the other country apply their own tax rules.
Treaty second: The treaty limits or allocates taxing rights between the two countries.
Dual residence: Treaty tie-breaker rules can determine treaty residence.
Double-tax relief: Usually provided through exemption, tax credit or another treaty method.
Important: Every treaty must be checked individually.
If you are unsure whether you are Spanish tax resident, start with our Spanish Tax Residence Guide.
What Is a Double Taxation Agreement?
A double taxation agreement is an international treaty between two countries setting out how certain taxes apply when a person or business has connections with both countries.
The treaty can deal with matters such as:
- tax residence;
- employment income;
- pensions;
- government-service income;
- property income;
- business profits;
- dividends;
- interest;
- royalties;
- capital gains;
- wealth or capital taxes where covered;
- permanent establishments;
- elimination of double taxation;
- exchange of tax information; and
- cooperation between tax authorities.
Why Do Tax Treaties Exist?
Without a treaty, two countries can potentially tax the same income because one country taxes on the basis of residence while the other taxes because the income arises there.
For example:
- Spain taxes a resident on worldwide income; and
- another country taxes income because it arises within that country.
A treaty determines how those competing taxing rights should interact.
Does a Tax Treaty Mean You Pay Tax in Only One Country?
Not necessarily.
A treaty may provide that:
- only the country of residence may tax;
- only the source country may tax;
- both countries may tax, but one must give double-tax relief; or
- the source country may tax only up to a specified maximum rate.
Domestic Tax Law Comes First
A treaty normally does not create a tax liability that does not exist under domestic law.
The basic sequence is usually:
- determine how Spain taxes the income under Spanish law;
- determine how the other country taxes it under its domestic law;
- apply the treaty to limit or allocate those taxing rights; and
- apply the treaty’s method for eliminating any remaining double taxation.
Can a Treaty Override Spanish Tax Law?
An applicable treaty can restrict Spain’s ability to exercise a taxing right that would otherwise exist under domestic law.
For example, Spanish domestic law may treat particular income as Spanish-source income, but a treaty can limit the Spanish rate or give exclusive taxing rights to the other country.
The treaty therefore has to be considered together with domestic legislation.
Tax Residence and Double-Tax Treaties
Tax residence is one of the most important treaty concepts.
Each country first determines residence using its own domestic law.
It is therefore possible for:
Spain to consider you tax resident under Spanish law
and
another country to consider you tax resident under its own law.
That is called dual residence.
What Happens if Two Countries Say You Are Resident?
Many Spanish treaties contain a sequence of tie-breaker rules for individuals.
A typical sequence considers:
- permanent home;
- centre of vital interests;
- habitual abode;
- nationality; and
- mutual agreement between the tax authorities.
Step 1: Permanent Home
The first question in many treaties is where you have a permanent home available.
This does not necessarily mean a property you own.
A permanent home can potentially be:
- a house you own;
- a rented apartment;
- another dwelling continuously available to you; or
- another sufficiently permanent residential arrangement.
A hotel room used occasionally would not normally have the same character.
What if You Have a Permanent Home in Both Countries?
The treaty normally moves to the next test:
centre of vital interests.
Step 2: Centre of Vital Interests
The centre of vital interests looks at the country with which your personal and economic relations are closer.
Relevant facts can include:
- where your spouse or family lives;
- where you normally live;
- where you work;
- where your business activities are located;
- where significant assets and financial interests are located;
- social relationships;
- professional relationships;
- community involvement; and
- other evidence showing where your life is centred.
Is the Centre of Vital Interests Just Where Your Money Is?
No.
The test considers both personal and economic relationships.
Economic assets are relevant, but they are not necessarily decisive by themselves.
Step 3: Habitual Abode
If the centre of vital interests cannot determine the result, many treaties look at where the person has their habitual abode.
This involves examining where the person normally or habitually lives over the relevant period.
It is not necessarily identical to the Spanish domestic 183-day rule.
Step 4: Nationality
If the previous tests still do not resolve the case, the person’s nationality can become relevant under many treaties.
If the person is national of only one of the two countries, treaty residence may be assigned there at this stage.
Step 5: Mutual Agreement
If the individual is:
- a national of both countries; or
- a national of neither country,
many treaties provide that the competent authorities must resolve the residence question by mutual agreement.
Does the 183-Day Rule Always Decide Treaty Residence?
No.
The 183-day rule is an important Spanish domestic tax-residence test.
But if another country also treats you as resident, the treaty’s tie-breaker article may need to be applied.
Does a Padrón Decide Treaty Residence?
No.
A padrón certificate is evidence that can be relevant to where you live, but it does not by itself determine tax residence under a treaty.
See our Empadronamiento in Spain guide.
Does a CUE or TIE Decide Treaty Residence?
No.
Immigration residence and treaty tax residence are separate legal concepts.
A person can have lawful residence documentation in Spain without necessarily being Spanish tax resident for a particular year.
Employment Income
Tax treaties usually contain specific rules for salaries and wages.
The general starting point is often that employment income can be taxed where the employment is physically exercised.
However, many treaties contain a short-term employment exception involving conditions such as:
- a 183-day limit;
- the employer not being resident in the work country; and
- the remuneration not being borne by a permanent establishment there.
The exact wording and counting method must be checked in the relevant treaty.
Remote Work From Spain
Remote work creates an important tax issue.
If you physically perform employment duties while sitting in Spain, Spain can regard the employment as exercised in Spain even if:
- the employer is foreign;
- the salary is paid abroad;
- the contract was signed abroad; or
- the employer has no Spanish office.
The treaty and Spanish domestic rules must then be applied to determine the tax result.
Foreign Pensions
Pensions are one of the most treaty-dependent income categories.
Many treaties distinguish between:
- ordinary private or occupational pensions;
- Social Security pensions;
- government-service pensions;
- annuities; and
- lump-sum retirement payments.
See our Foreign Pensions and Spanish Tax guide.
Property Income
Income from real estate is normally taxable in the country where the property is situated.
For example, if a Spanish tax resident owns a rental apartment in another country, that other country can commonly tax the rental income because the property is located there.
Spain may also include the income because the owner is Spanish tax resident.
Double-tax relief is then applied according to the treaty.
Spanish Property Owned by a Non-Resident
A person living abroad who owns Spanish property can remain liable for Spanish tax because the property is located in Spain.
This is one reason non-residents can need to file Modelo 210.
Dividends
Many treaties allow both:
- the shareholder’s country of residence; and
- the country where the company paying the dividend is resident
to tax the dividend.
However, the treaty normally limits the withholding tax that the source country can charge.
Example: Foreign Dividend
Suppose a Spanish tax resident receives a dividend from a company abroad.
The foreign country may withhold tax under its domestic law.
If the treaty limits source-country taxation to a lower percentage, the taxpayer may need to:
- claim the treaty rate before payment;
- request a refund of excess foreign withholding; and
- declare the dividend in Spain.
Interest
Interest from foreign bank accounts, bonds or loans can also be subject to treaty rules.
Some treaties allow limited source-country taxation, while others may allocate taxing rights differently.
Spanish tax residents generally still need to consider the interest in Spanish IRPF.
Royalties
Royalties can include payments for rights such as:
- copyright;
- patents;
- trademarks;
- industrial know-how; and
- other intellectual or industrial property.
Treaty rules often limit how much tax the source country may withhold.
Business Profits
A fundamental treaty principle is that the profits of a business in one country are generally taxable only there unless the business operates in the other country through a permanent establishment.
What Is a Permanent Establishment?
A permanent establishment generally involves a sufficiently fixed business presence through which an enterprise carries on all or part of its business.
Common treaty examples can include:
- a place of management;
- a branch;
- an office;
- a factory;
- a workshop; or
- certain construction projects lasting beyond the treaty threshold.
Agency arrangements can also create permanent-establishment issues.
Can Working From Home Create a Permanent Establishment?
Potentially, depending on the facts.
A foreign company with an employee working from a home office in Spain does not automatically have a permanent establishment.
But factors such as:
- whether the employer requires use of the home office;
- whether the location is effectively at the company’s disposal;
- the permanence of the arrangement;
- the employee’s authority; and
- the functions carried out
can matter.
Capital Gains
Treaties also allocate taxing rights over capital gains.
The answer can differ depending on whether the gain arises from:
- real estate;
- shares;
- property-rich companies;
- business assets;
- ships or aircraft; or
- other property.
Capital Gains From Property
Gains from selling real estate are generally taxable in the country where the property is situated.
If the seller is also tax resident in another country, that residence country may also tax the gain and provide double-tax relief.
Shares in Property-Rich Companies
Many modern treaties contain rules allowing the country where real estate is located to tax gains on shares deriving a substantial part of their value from that real estate.
This prevents straightforward avoidance of property-gain rules by placing property inside a company.
Government-Service Income
Salaries and pensions connected with government service frequently have separate treaty provisions.
These provisions can differ substantially from ordinary employment and pension articles.
Nationality can also affect the outcome in some treaties.
Students
Many treaties contain specific rules protecting certain payments received by students temporarily present in another country for study or training.
The details vary between treaties.
Directors’ Fees
Remuneration received as a company director can have a separate treaty article.
Do not automatically treat directors’ fees as ordinary employee salary.
Entertainers and Sportspeople
Many treaties contain special rules for performers and professional sportspeople.
The country where the activity takes place may have broader taxing rights than under the ordinary employment rules.
What Is Double Taxation?
International double taxation occurs when substantially the same income or wealth is taxed by more than one country in respect of the same taxpayer.
Tax treaties provide methods intended to eliminate or reduce that duplication.
Main Method 1: Foreign Tax Credit
Under the credit method, Spain includes the foreign income in the Spanish tax calculation but allows a deduction for qualifying foreign tax paid.
The credit is normally limited.
You cannot automatically deduct any amount charged abroad regardless of the treaty.
Why Is the Credit Limited?
A double-tax credit is designed to remove overlapping taxation, not to reimburse unlimited foreign tax.
The maximum credit can therefore depend on:
- foreign tax legally due;
- the treaty limit;
- Spanish tax attributable to the foreign income; and
- Spanish domestic credit rules.
What if the Foreign Country Charged Too Much Tax?
If the foreign country withheld more tax than the treaty allows, you may need to claim the excess back from that country.
Spain may not simply provide a full credit for foreign tax that should never have been charged under the treaty.
Main Method 2: Exemption
Some treaty income can be exempt in the country of residence.
In that case, Spain may not directly tax the income.
However, some treaties or domestic provisions allow the exempt income to affect the rate applied to other taxable income.
What Is Exemption With Progression?
Under exemption with progression:
- the foreign income itself is exempt from Spanish tax; but
- it may still be taken into account when calculating the tax rate applied to other income.
This means exempt foreign income can still indirectly increase the Spanish tax payable on other income.
What Is a Tax Residence Certificate?
A tax residence certificate is an official document confirming that the tax authority considers you resident for tax purposes.
For a Spanish tax resident, AEAT can issue a:
certificado de residencia fiscal
This is commonly needed to claim treaty benefits abroad.
Why Would a Foreign Bank or Pension Provider Ask for It?
A foreign payer may need evidence of Spanish tax residence before it:
- reduces withholding tax;
- stops withholding;
- applies a treaty exemption; or
- processes a tax refund.
Is a Padrón Certificate the Same Thing?
No.
The padrón is issued by a municipality.
A Spanish tax residence certificate is issued by AEAT for tax purposes.
What Is a Mutual Agreement Procedure?
A Mutual Agreement Procedure, or MAP, allows the competent authorities of treaty countries to try to resolve cases where taxation is not consistent with the treaty.
It can be relevant in disputes involving:
- dual residence;
- double taxation;
- permanent establishments;
- transfer pricing;
- treaty interpretation; and
- other cross-border tax conflicts.
Does a MAP Guarantee a Refund?
No.
The competent authorities attempt to resolve the treaty problem, but the process and outcome depend on the circumstances and treaty provisions.
What Is the Multilateral Instrument?
Many tax treaties have been affected by the Multilateral Convention to Implement Tax Treaty Related Measures to Prevent Base Erosion and Profit Shifting, usually called the Multilateral Instrument or MLI.
The MLI can modify existing treaties without requiring every treaty to be completely renegotiated.
Changes can affect areas including:
- treaty abuse;
- permanent establishments;
- dual-resident entities;
- double-tax relief; and
- mutual agreement procedures.
Does Spain Have a Treaty With Every Country?
No.
Spain has treaties with many countries, but not all.
If there is no treaty, Spanish domestic tax law applies without treaty protection.
Spanish domestic law may still provide relief from international double taxation in appropriate cases.
What Happens if There Is No Treaty?
If you are Spanish tax resident, Spain generally applies its worldwide-income rules.
If the foreign country also taxes the income, Spanish domestic foreign-tax-credit provisions may provide relief, subject to the statutory limits.
Tax Treaties and Modelo 720
A double-tax treaty does not usually remove Modelo 720 simply because an asset is already taxed or reported abroad.
Modelo 720 is a separate Spanish information-reporting obligation.
See our Modelo 720 Guide.
Tax Treaties and Wealth Tax
Some Spanish treaties cover taxes on capital or wealth as well as income.
Where a treaty covers Wealth Tax, it can limit taxing rights over particular assets.
See our Spanish Wealth Tax Guide.
Tax Treaties and Modelo 210
A non-resident receiving Spanish-source income may have a domestic Modelo 210 liability, but the treaty can:
- reduce the tax rate;
- prevent Spain taxing the income;
- modify the calculation; or
- require evidence of tax residence abroad.
See our Modelo 210 Guide.
Tax Treaties Do Not Govern Social Security
This distinction is crucial.
A double-tax treaty deals with taxation.
It generally does not decide:
- which country’s Social Security system applies;
- where contributions are paid;
- which country pays healthcare costs;
- whether an S1 is issued; or
- which country pays unemployment benefits.
Those matters are governed by separate Social Security coordination rules and bilateral agreements.
Example: Foreign Pension and S1
A Spanish resident can have:
- a foreign pension taxable only in Spain under a tax treaty; and
- healthcare funded by the foreign country through an S1.
There is no contradiction.
The tax treaty and healthcare coordination rules are different legal systems.
Can You Choose Which Country Taxes You?
No.
You cannot simply elect the country with the lower tax rate.
The result follows:
- domestic tax law;
- the applicable treaty;
- the nature of the income;
- where the activity or property is located;
- your tax residence; and
- other relevant facts.
Can You Avoid Spanish Tax by Keeping the Money Abroad?
No, not if Spain has the right to tax the income.
Spanish tax residents are generally taxed on worldwide income.
The fact that income is:
- paid to a foreign bank account;
- never transferred to Spain;
- received in another currency; or
- spent abroad
does not normally remove Spanish taxation.
How Do You Find the Correct Treaty?
Use the official Spanish tax authority or BOE treaty text.
Check:
- the country involved;
- the current treaty;
- any protocol amending it;
- the date it entered into force;
- the date its provisions became effective; and
- whether the MLI modifies any relevant article.
Which Treaty Article Should You Read?
The correct article depends on the income.
| Issue | Typical Treaty Article |
|---|---|
| Tax residence | Resident article |
| Property income | Income from immovable property |
| Business profits | Business profits and permanent establishment |
| Dividends | Dividends |
| Interest | Interest |
| Royalties | Royalties |
| Capital gains | Capital gains |
| Employment | Income from employment |
| Pensions | Pensions |
| Government employment or pension | Government service |
| Double-tax relief | Elimination of double taxation |
Common Double-Tax Treaty Mistakes
“A treaty means I cannot be taxed twice.”
Not exactly. Both countries may initially have taxing rights, with a credit or exemption eliminating the double taxation.
“The 183-day rule is all that matters.”
No. Domestic residence rules and treaty tie-breaker tests can both be relevant.
“I can choose my tax residence.”
No. Residence follows the law and the facts.
“My CUE proves I am Spanish tax resident.”
No. Immigration residence and tax residence are separate.
“If foreign tax was withheld, Spain must give me full credit.”
No. The credit is subject to treaty and domestic limits.
“All pensions are treated the same.”
No. Pension treatment varies significantly by treaty and pension type.
“Property income is taxed only where I live.”
Not normally. The country where the property is located commonly has taxing rights.
“A foreign employer means my salary is foreign income.”
Not necessarily. Where the work is physically performed can be crucial.
“The treaty also determines Social Security.”
No. Social Security coordination is a separate legal regime.
“The original treaty PDF is always the complete current law.”
Not necessarily. Protocols and the Multilateral Instrument can modify treaty application.
Double-Tax Treaty Checklist
Step 1: Identify the countries
1. Identify your country or countries of domestic tax residence.
2. Identify the country where the income or asset arises.
Step 2: Find the treaty
3. Find the current official Spain treaty.
4. Check all protocols.
5. Check whether the MLI affects it.
Step 3: Determine residence
6. Apply domestic residence rules first.
7. If both countries claim residence, apply the treaty tie-breaker sequence.
Step 4: Classify the income
8. Identify whether it is employment, pension, property income, dividend, interest, business profit or another category.
9. Read the exact treaty article for that income.
Step 5: Determine taxing rights
10. Identify whether Spain may tax.
11. Identify whether the other country may tax.
12. Check any treaty rate limit.
Step 6: Eliminate double taxation
13. Determine whether exemption or foreign-tax credit applies.
14. Check whether excessive foreign withholding must be reclaimed abroad.
15. Obtain a tax residence certificate if needed.
Double Taxation Agreements in Spain: The Short Version
A double taxation agreement determines how Spain and another country divide taxing rights when the same taxpayer, income or asset has connections with both countries.
The first step is always to determine the position under domestic tax law.
If both countries consider an individual resident, the treaty can then use tie-breaker rules such as permanent home, centre of vital interests, habitual abode and nationality.
The treaty must also be checked for the particular type of income because employment, pensions, property, dividends, interest and capital gains can all follow different rules.
If both countries are permitted to tax, the treaty normally requires a method to eliminate double taxation, usually through a tax credit or exemption.
Domestic law: Establishes the initial tax position.
Treaty: Allocates or limits taxing rights.
Dual resident: Apply treaty tie-breakers.
Two taxes: Apply the treaty’s double-tax relief method.
Where to Go Next
- Spanish Tax Residence Guide
- Foreign Pensions and Spanish Tax
- Modelo 210 for Non-Residents
- Modelo 720: Foreign Assets Reporting in Spain
- Spanish Wealth Tax for Foreign Residents
Official Sources
Tax treaties differ substantially. Always use the treaty currently in force for the exact country involved and check subsequent protocols and Multilateral Instrument modifications.
- Agencia Tributaria — Spanish Tax Authority
- BOE — Official Spanish Treaty Texts
- BOE — Multilateral Instrument on Tax Treaties
Important: This guide explains the general structure of Spain’s double-tax treaties. The actual result depends on the treaty country, the taxpayer’s residence, the income category, current treaty amendments and the precise facts.