Tax residence in Spain and double taxation conflicts
Last updated 3 August 2026 · Reviewed by Jaime Piñeira Pardo, lawyer registered with the ICAM bar, no. 138826 · English version of our Spanish guide.
You are a tax resident in Spain if you stay here over 183 days a year or base your economic interests here; additionally, residence is presumed if your spouse and minor children live in Spain. If another country also claims you, the double taxation treaty breaks the tie. Managora analyses your case, issues a reasoned report and prepares your certificates and returns so you do not pay twice.
We handle the whole procedure for you, from start to finish.
You describe your case in a chat and sign; we file it with the Spanish authorities. Fixed price from €302.00 (21% VAT included), plus the tasa (official fee) where there is one.
What is new, and the law that applies
- Supreme Court judgment of 12 June 2023 (appeal 915/2022), current doctrine: the AEAT cannot reject the tax residence certificate issued by the other State for treaty purposes; the conflict must be resolved with the tie-breaker rules of art. 4.2.
- TEAC, resolution of October 2025: the limit of the deduction under art. 80.1.b) LIRPF is calculated on the part of the Spanish taxable base taxed abroad, not on the gross foreign income.
- Spain-Paraguay treaty in force since 14 October 2024, with effects from the 2025 financial year: the Spanish network is around 100 treaties (official list of the Ministry of Finance, updated in 2026).
- OECD Multilateral Instrument (MLI) in force for Spain since 1 January 2022: it modifies most Spanish treaties; Hacienda publishes the consolidated synthetic texts of each affected treaty.
- Supreme Court judgment of 28 November 2017 (consolidated doctrine that continues to apply): an absence exceeding 183 days in the year is not sporadic, regardless of the intention to return.
When am I a tax resident in Spain?
Article 9 of Ley 35/2006 (the Spanish Personal Income Tax Act) establishes 3 criteria and meeting just 1 is enough. First: staying more than 183 days in Spanish territory during the calendar year. Sporadic absences are added to this calculation, unless you prove your tax residence in another country (usually with a tax residence certificate issued by the authority of that country). If that country is a non-cooperative jurisdiction (former tax havens), the AEAT (the Spanish tax agency) may require you to prove that you stayed there for 183 days.
Second: that the main core or base of your activities or economic interests is located in Spain, directly or indirectly. This is a matter of fact assessed by the management and inspection bodies of the AEAT: where your work or business, your main income, your properties and your assets are located. Third: your residence is presumed, unless proven otherwise, if your legally non-separated spouse and dependent minor children habitually reside in Spain.
Being a resident means paying personal income tax in Spain on your worldwide income, regardless of where the income is generated and who pays it. Furthermore, personal income tax does not allow for a split year: you are either a resident or a non-resident for the entire calendar year, without dividing the tax period due to a change of residence mid-year.
The Supreme Court qualified the 183-day criterion in its judgments of 28 November 2017: a prolonged absence, exceeding 183 days in the year, cannot be classified as sporadic no matter how much intention there is to return. And another strict rule: Spaniards who move their residence to a non-cooperative jurisdiction continue to pay personal income tax for the year of the change and the following 4 years (art. 8.2 LIRPF).
What happens if 2 countries consider me a tax resident at the same time?
It is more common than it seems: each country applies its own internal rules and both can occur simultaneously (for example, you spend most of the year abroad but your family and assets remain in Spain). This dual residence conflict is not resolved by Spanish law or the law of the other country, but by the double taxation treaty signed between the 2: Spain has a network of around 100 treaties in force, published by the Ministry of Finance.
Article 4.2 of the treaty (following the OECD Model) applies cascading tie-breaker rules in strict order: you only move to the next one if the previous one does not decide. First, where you have a permanent home available to you. Second, with which State you have closer personal and economic relations (centre of vital interests). Third, where you habitually live. Fourth, of which State you are a national. If none of that decides, the authorities of both countries resolve it by mutual agreement.
Since the Supreme Court judgment of 12 June 2023 (appeal 915/2022) the taxpayer's position is stronger: if the other country issues you a tax residence certificate for the purposes of the treaty, the AEAT cannot ignore or question it unilaterally; the conflict is raised and must be resolved by applying the tie-breaker rules of the treaty itself.
If there is no treaty with the other country, no tie-breaker is possible: each State applies its internal rule and double taxation is only corrected with the unilateral deduction of art. 80 LIRPF. And if the conflict persists even with a treaty, a mutual agreement procedure can be initiated between the 2 administrations. Managora studies your specific treaty, because each one has its own wording, and prepares the evidence file for you.
How do I prove my tax residence to the AEAT or to another country?
The ideal way to prove tax residence, according to repeated doctrine of the Directorate General for Taxation, is the tax residence certificate issued by the competent authority of the country. In Spain, the AEAT issues it free of charge, through the electronic headquarters (census certificates section, procedure for issuing tax residence certificates), using Cl@ve (the Spanish electronic identification system), a digital certificate or an electronic ID.
There are 2 types: the tax residence certificate in Spain (general use) and the tax residence certificate in Spain for the purposes of a specific treaty, which is the one the other country will ask for to apply the reduced rates or exemptions of the treaty. Both are issued in Spanish and English. If your census data and tax returns match, it is obtained instantly; if not, the AEAT opens a procedure for you to provide supporting documentation. The general validity of the certificate is 1 year. The AEAT also processes the stamping of tax residence forms from other foreign administrations.
The certificate is not always enough: when the AEAT (or the foreign tax authority) disputes your residence, the proof is built with facts. Useful evidence includes, among others, the purchase or rental contract of the home, electricity, water and internet bills, bank and card transactions, boarding passes and passport stamps, the employment contract, the children's schooling or affiliation to the social security system of the country. The empadronamiento (registration on the municipal padrón or census) or having a NIE (foreigner identity number) are mere indications: they do not determine tax residence on their own.
Managora prepares this evidence file with you: a calendar of days of presence, a map of economic and family ties, and a reasoned report that supports your position against a requirement from the AEAT or the administration of the other country.
How do I avoid paying taxes twice on the same income?
The treaty distributes the power to tax each type of income (salaries, pensions, dividends, interest, rent, capital gains) between the source country and the residence country, and obliges the residence country to correct double taxation by the exemption method or, as Spain generally does, by the imputation method: you declare your worldwide income and deduct what was paid abroad.
If you are a resident in Spain, the deduction for international double taxation under art. 80 LIRPF is applied in your income tax return (form 100) and is the lesser of 2 amounts: the tax actually paid abroad on that income (capped at the maximum rate allowed by the treaty) and the result of applying your effective average tax rate to the part of the taxable base taxed abroad. The Central Economic Administrative Tribunal confirmed in 2025 that this limit is calculated on the Spanish taxable base of the income, not on the gross foreign amount.
Beware of excess withholding: if the other country withheld more than your treaty allows (for example, 25% on dividends when the treaty limits it to 15%), that excess is not deductible in Spain; you must claim its refund from the tax authority of the other country with the tax residence certificate for the purposes of the treaty.
For workers resident in Spain who physically work abroad, there is also the exemption of art. 7.p LIRPF, up to €60,100 per year of employment income, if the work is provided for a non-resident company and a tax similar to personal income tax is applied in the destination country. Managora reviews which mechanism suits you and prepares the tax return with the correct deduction or exemption.
What about remote workers, foreign pensioners and the year of moving?
Remote workers: if you work remotely from Spain for a foreign company, you will normally spend more than 183 days here and be a tax resident in Spain, and the administrative criterion is that the work is understood to be carried out where the worker is physically located, not where the employer is. You will pay tax here on your worldwide income, even if your employer applies withholdings in your country: this double withholding is corrected with the residence certificate, the treaty and, where appropriate, the deduction under art. 80.
Foreign pensioners settling in Spain: in most treaties, following the OECD Model, private pensions are taxed exclusively in the country of residence (Spain), while public civil service pensions are usually taxed only in the country that pays them, unless the pensioner is a national and resident of Spain. Each treaty has its own wording, so you have to read yours: with the Spanish residence certificate you can ask your home country to stop withholding on the private pension.
Year of arrival or departure: as personal income tax does not allow for a split year, in the year of the move you will be a resident or non-resident for the entire financial year according to the criteria of art. 9 (days, economic interests, family). This may force you to file a return in both 2 countries that year and to correct double taxation with the treaty. Before the AEAT, it is advisable to organise the transition: form 030 communicates the change of address (also abroad) and, if you move abroad as an employee with an expected stay of more than 183 days, form 247 allows you to anticipate the change of withholdings from resident to non-resident income tax.
These 3 profiles account for most residence requirements. Managora analyses your specific case and provides you with a reasoned report on your tax residence with which to respond to Hacienda (the Spanish tax authority) or that of the other country. You can see the updated amount in the procedure file.
Step by step
- 1
Gather the evidence for your tax year(As soon as possible: evidence is built during the year, not upon receiving the requirement)
Calendar of days of presence in each country (flights, boarding passes, stamps, card transactions), housing available to you in each State, situation of spouse and children, and origin of your income and assets. Managora tells you exactly which documents carry weight before the AEAT.
- 2
Determine your residence according to art. 9 LIRPF
The 3 internal criteria are checked: more than 183 days (with sporadic absences), core of economic interests in Spain and family presumption. Just 1 is enough to be a resident and pay tax on worldwide income.
- 3
Check if the other country also considers you a resident
Each State applies its internal rule. The ideal way to verify this is the tax residence certificate issued by the authority of the other country, preferably for the purposes of the treaty with Spain.
- 4
Apply the tie-breaker rules of the specific treaty
Article 4.2 of the bilateral treaty, in strict order: permanent home, centre of vital interests, habitual residence, nationality and, ultimately, agreement between authorities. The result establishes which country you are a resident of for treaty purposes.
- 5
Communicate your situation to the AEAT(Form 030: within 3 months following the change of address)
Form 030 is used to communicate a change of address, including moving abroad. If you leave Spain as an employee with an expected stay of more than 183 days, form 247 anticipates the change in withholdings: the AEAT issues the supporting document for your payer in a maximum of 10 working days.
- 6
Request the tax residence certificate you need(Immediate if your data is on record with the AEAT; general validity of 1 year)
At the AEAT electronic headquarters, free of charge, in general modality or for treaty purposes (issued in Spanish and English). If your data is on record, it is immediate; if not, supporting documentation is provided. Before the other country, request the certificate from its tax authority.
- 7
File your return applying the double taxation correction(Personal income tax: annual tax campaign, between April and June of the following year)
If you are a resident: form 100 with the international double taxation deduction under art. 80 LIRPF (and the 7.p exemption if applicable). If you are not: form 210 for non-resident income tax only for your Spanish source income, with the treaty limits. The excess withheld abroad is claimed from the foreign tax authority.
- 8
If the conflict persists, activate the mutual agreement procedure
When both administrations maintain incompatible positions despite the treaty, a mutual agreement procedure between authorities can be initiated. Managora's reasoned report serves as the technical basis for that file and to respond to requirements while it is resolved.
A worked example
You are a tax resident in Spain and receive €10,000 gross in dividends from a company in a country with a treaty that limits taxation at source to 15%. That country withheld 25% (€2,500). You have no other savings income.
- Foreign tax deductible in Spain: only up to the treaty limit, 10,000 x 15% = €1,500 (the €1,000 withheld in excess do not count).
- Spanish tax quota on that income (savings scale): 6,000 x 19% = €1,140, plus 4,000 x 21% = €840; total €1,980.
- Double taxation deduction under art. 80 LIRPF: the lesser of 1,500 and 1,980 = €1,500, which is subtracted on your form 100.
- The excess withheld at source (€1,000) is claimed from the tax authority of the other country by providing the tax residence certificate in Spain for treaty purposes.
In your personal income tax you deduct €1,500 and pay the difference in Spain (€480 for that income); the €1,000 withheld in excess is refunded by the other country, not the AEAT.
Tax residence criteria of art. 9 LIRPF
| Criterion | What it requires | How it is proven or rebutted |
|---|---|---|
| Presence | More than 183 days in Spain in the calendar year; sporadic absences count | Tax residence certificate in another country; if it is a non-cooperative jurisdiction, proof of 183 days of presence there |
| Economic interests | Main core or base of activities and economic interests in Spain, directly or indirectly | Matter of fact assessed by the AEAT: work, business, income, properties, assets |
| Family presumption | Legally non-separated spouse and dependent minor children habitually reside in Spain | Admits proof to the contrary: it is a presumption, not an automatic rule |
Tie-breaker rules of art. 4.2 of the treaty (OECD Model), in order
| Order | Rule | What is looked at |
|---|---|---|
| 1 | Permanent home | In which State you have a home available to you on a continuous basis (owned or rented) |
| 2 | Centre of vital interests | With which State you maintain closer personal and economic relations: family, work, assets, social life |
| 3 | Habitual residence | Where you habitually live (where you spend more time on an ordinary basis) |
| 4 | Nationality | Of which State you are a national |
| 5 | Mutual agreement | The competent authorities of both States resolve by mutual agreement |
Procedures before the AEAT related to tax residence
| Procedure or form | What it is for | Deadline or key fact |
|---|---|---|
| Tax residence certificate (AEAT headquarters) | Prove residence in Spain, in general modality or for treaty purposes | Free of charge; immediate if data is on record; general validity of 1 year |
| Form 030 | Communicate change of address, including moving abroad | 3 months from the change (people without economic activity) |
| Form 247 | Employee moving abroad: anticipate the change from resident to non-resident income tax withholdings | Supporting document for the payer in a maximum of 10 working days |
| Form 100 | Annual personal income tax return of the resident, with the double taxation deduction (art. 80 LIRPF) | Tax campaign of the following year |
| Form 210 | Self-assessment of the non-resident for Spanish source income | Deadlines according to the type of income |
Do I pay tax as a resident (IRPF) or as a non-resident (IRNR)?
| Tax resident (IRPF) | Non-resident (IRNR) | |
|---|---|---|
| What income is taxed in Spain | Worldwide income: everything you earn, wherever it is generated | Only Spanish source income |
| Tax return | Annual form 100 | Form 210 for each income or grouping |
| Tax rates | State and regional progressive scale; savings scale for dividends, interest and capital gains | Fixed rates: 24% general (19% for EU/EEA residents); 19% on dividends, interest and capital gains |
| Personal and family minimums | Yes, with state and regional deductions | Generally no (with special rules for EU/EEA residents) |
| Double taxation | Deduction under art. 80 LIRPF and treaty exemptions | Limited rates and treaty exemptions; refunds via form 210 |
| Reporting obligations | Form 720 for assets and rights abroad, if thresholds are exceeded | Form 720 does not apply |
Official forms and where it is filed
- Application for tax residence certificate (AEAT, procedure G305) ↗
- Form 030: census declaration of change of address and variation of personal data (AEAT) ↗
- Form 247: communication of the posting abroad of employees (IRNR) ↗
- Form 100: annual personal income tax return (includes the international double taxation deduction)
- Form 210: self-assessment of Non-Resident Income Tax
- Processing of tax residence forms from foreign administrations (AEAT) ↗
Frequently asked questions
I spent less than 183 days in Spain, am I definitely not a tax resident?
It is not certain. The 183 days are just 1 of the 3 criteria: you can be a resident if the core of your economic interests remains in Spain (work, business, properties, income) or if your spouse and minor children reside here, unless you prove otherwise. Furthermore, sporadic absences count as days in Spain if you do not prove tax residence in another country.
Do the empadronamiento or the NIE serve to prove tax residence?
Not on their own. They are administrative indications, not full proof. What proves tax residence is the certificate issued by the tax authority of the country and, in case of dispute, the facts: housing, utility bills, bank transactions, days of presence, work and family.
How long does the AEAT tax residence certificate take and how much does it cost?
It has no cost. If your census data and your tax returns match, it is downloaded instantly at the electronic headquarters with Cl@ve or a digital certificate, in Spanish and English. If the AEAT cannot issue it automatically, a procedure is opened to provide supporting documentation. Its general validity is 1 year.
Can I be a tax resident in 2 countries at the same time?
According to the internal rules of each country, it can happen, and it is the origin of the problem. But for the purposes of the double taxation treaty, you can only be a resident of 1: the tie-breaker rules (permanent home, centre of vital interests, habitual residence, nationality) decide which one, and that decision determines where your worldwide income is taxed.
Taxes have been withheld in both countries on the same income, what do I do?
If you are a resident in Spain, declare your worldwide income on form 100 and apply the double taxation deduction under art. 80 LIRPF, up to the limit of the rate allowed by the treaty. The excess withheld in the other country is not deducted in Spain: its refund is claimed from the foreign tax authority with your tax residence certificate for the purposes of the treaty. Managora prepares both things for you.
I moved in September, where do I declare that year?
There is no split year in personal income tax: you are a resident or non-resident in Spain for the entire calendar year, depending on the days of stay, your economic interests and your family. In the year of the move, it is common to have to declare in both countries and correct double taxation with the treaty. It is also advisable to submit form 030 (change of address) and, if you leave as an employee, form 247 to adjust withholdings.
We handle the whole procedure for you, from start to finish.
You describe your case in a chat and sign; we file it with the Spanish authorities. Fixed price from €302.00 (21% VAT included), plus the tasa (official fee) where there is one.
Related procedures
The price, the tasa (official fee) and the current deadlines are on each procedure page.
Related guides
- VAT for the self-employed in Spain: modelo 303 and modelo 390
- Registering as autónomo in Spain: Hacienda and Seguridad Social
- IRPF for the self-employed in Spain: payments on account and withholdings
- The Spanish tax return (IRPF, modelo 100)
- Spanish Corporation Tax: modelo 200 and instalment payments
- How to Set Up a Sociedad Limitada (SL) in Spain: Steps, Capital and Accounts
- Registering a Trademark (OEPM and EUIPO): Steps and Renewal
- Hiring an employee: Seguridad Social registration and contract
- Managing a Spanish SL: directors, bylaws, capital and company books
- Deferring debts with Hacienda and Social Security
- Opening a premises: opening, activity and building licences
- Hacienda informative returns: forms 347, 349, 720 and 721
- Kit Digital: the grant to digitise freelancers and SMEs
- Deregistering as an autónomo and cessation of activity (self-employed unemployment)
- Change your tax address and census details (Form 030)
- Dissolve and liquidate a limited company: steps, deadlines and costs
- Digital certificate and electronic signature for companies and autónomos in Spain
- Register a patent, a design or a work: protect your creation
- Opening or taking over a bar in Spain: licences, APPCC and allergens
- Importing and exporting: EORI, DUA and customs
- Appealing to Hacienda: TEAR/TEAC, rectification and binding rulings
- Company powers of attorney: notarial and electronic (Apodera/REA)
- E-commerce VAT: the One Stop Shop OSS/IOSS (modelo 369)
- Spanish wealth tax and the tax on large fortunes (modelo 714)
- Public subsidies for companies and freelancers: how to apply
- Commercial contracts: sale, agency, distribution and senior management
- Capital yield and non-resident withholdings: forms 123, 193 and 216
- Changes to your company: registered office, corporate purpose and capital reduction
- Maternity deduction and dependent child benefits (form 140)
- Advanced corporate tax obligations: related-party transactions (232) and income attribution (184)
- Ordered to close your premises: how to appeal the closure order and stay open
- You own 5% of a company and they hide the accounts: how to force an audit at the company's expense
- Modelo 211: the 3% withholding when you buy a property from a non-resident
- Leaving the recargo de equivalencia as an ecommerce or Amazon seller
- AEAT financial information returns: forms 165, 345, 198, 117 and 038
- Recover VAT: refund of VAT paid in another EU country (360-361) and special cases (308)
- Environmental taxes: non-reusable plastic (592), waste (593) and fluorinated gases (587)
- Group taxation: tax consolidation (220 and 222) and VAT group (039, 322 and 353)
- Financial sector taxes: the tasa Tobin (Tobin tax, 604) and the insurance premium tax (480)
- Form 037: the simplified census registration versus form 036
- Energy taxes: hydrocarbons (581), electricity (560) and IVPEE (583)
- Cryptocurrencies and Hacienda: the tax report and how to reply to a request
- Platform economy: DAC7 (forms 040 and 238) and the digital services tax (490)
- The exit tax: the tax on leaving when moving your residence outside Spain
- Company IAE: form 848, municipal self-assessment and deferral of local taxes
- The 7p exemption: work carried out abroad free of income tax up to €60,100
- Tax representative in Spain and the special tax of form 213
- The RIC: Canary Islands investment reserve and form 282
- Content creators (OnlyFans, YouTube, Twitch): registration and taxes
- Ex officio review and extraordinary appeal: appealing when the deadline has passed
- International trademark: the Madrid System (WIPO) and the European Union trademark (EUIPO)
- Defending your trademark: opposition, suspension, nullity, revocation and monitoring (OEPM)
- The comunidad de bienes: setting it up, taxes and when to choose an SL
- Corporate director or shareholder: classification, RETA registration and contributions
- The shareholders' agreement and the participatory loan: shielding and financing the company
- Buying or selling a company: the share purchase agreement (SPA)
- The partner's right of separation: dividends (art. 348 bis) and other causes
- Mergers and spin-offs: structural modifications and the FEAC tax regime
- Opening a branch of a foreign company in Spain: registration and obligations
- Negative assessment and closed sheet: unblocking your company at the Commercial Registry
- The family business: family protocol and generational handover with ISD reduction
- Voluntary insolvency proceedings: when your company cannot pay
- Business financing contracts: factoring, leasing, renting and credit assignment
- The franchise contract: setting up a business under another brand
- The software and SaaS licence contract: what it must cover
- The food health register (RGSEAA): step-by-step registration
- Opening a clinic or aesthetic centre: the health operating authorisation
- Selling cosmetics in the EU: CPNP notification and the responsible person
- The zoological centre register: breeders, boarding kennels and pet shops
- Operating drones professionally: registering as an operator with AESA
- Denied premises licence or unlicensed activity: how to legalise it
- Reporting to the CNMC: unfair market competition and administrative barriers
- Company statistical and registry obligations: INE, Intrastat and Registro Industrial
- Selling on Amazon Europe: Extended Producer Responsibility (EPR) and LUCID
- Publish a book or magazine: ISBN, ISSN and legal deposit
- The security guard TIP: requirements, exam and issuance
- Reporting workplace bullying or sexual harassment to the Labour Inspectorate
- Civil servants: requesting compatibility for another activity and voluntary transfer