Jacob Salama Tax Lawyer
Jacob SalamaInternational Tax Lawyer · Spain
Exit Planning · Spain

Leaving Spain: How to Correctly Cease Spanish Tax Residency

📅 May 2026 ✍️ Jacob Salama 🕐 10 min read

Leaving Spain Is Not as Simple as Boarding a Plane

One of the most dangerous misconceptions in Spanish tax planning is that leaving Spain is straightforward — that once you stop being physically present, you cease to be a Spanish tax resident. This is incorrect. The AEAT is a sophisticated authority with significant legal tools to assert continued Spanish residency even after a taxpayer has physically departed, and the consequences of failing to correctly formalise your departure can be severe: continued IRPF liability on worldwide income, Wealth Tax charges, and potentially penalty assessments going back four or more years.

This guide sets out the formal process for ceasing Spanish tax residency, the risks the AEAT can invoke to challenge a departure, the exit tax triggered by leaving with significant shareholdings, and the most common mistakes that leave former Spanish residents exposed to continued Spanish tax liability.

The Formal Steps: What You Must Do When Leaving Spain

Ceasing Spanish tax residency requires action at multiple levels — administrative, fiscal, and practical. The key steps are:

Step 1: Modelo 030 — Change of Tax Domicile

Modelo 030 (Declaración Censal de Modificación de Datos) is filed with the AEAT to notify a change of tax domicile — including a change to a foreign address. Filing Modelo 030 with a foreign address formally notifies the AEAT that you are no longer Spanish tax resident. This form is filed at your local AEAT office or online with a valid digital certificate.

Filing Modelo 030 does not automatically resolve your tax residency status — the AEAT can still challenge your departure — but it is a necessary first step and creates a contemporaneous record of your claimed departure date.

Step 2: Modelo 096 — Tax Residency Certificate

Modelo 096 is the application for a certificado de residencia fiscal (certificate of Spanish tax residency). You can request this certificate before departure to certify your Spanish residency for the years you were resident. After departure, requesting a certificate of residency from your new country is equally important: you need your new country's tax authority to certify that you are now their tax resident. This foreign certificate is your primary defence if the AEAT attempts to assert continued Spanish residency.

Step 3: File the Final Spanish IRPF Return

For the last year of Spanish tax residency, you must file a final IRPF return covering your worldwide income for that year. If you depart mid-year, your IRPF return covers the full calendar year — there is no automatic pro-rating of your Spanish tax obligation to the departure date, unless a treaty provides otherwise.

Step 4: Cancel Padrón Registration

Cancelling your empadronamiento (municipal census registration) with the local Ayuntamiento is a separate administrative step. While empadronamiento does not determine tax residency, cancelling it is evidence of genuine departure. The Ayuntamiento will issue a certificate of de-registration (baja en el padrón) which should be retained.

The "Continued Links" Problem: When the AEAT Challenges Your Departure

The AEAT will scrutinise departures from Spain where there are indicators that the taxpayer continues to have strong Spanish ties. The authority can use two main statutory tools to argue continued residency:

The AEAT is particularly active in challenging departures to tax havens or zero-tax jurisdictions (UAE, Bahamas, Panama, etc.) where there is no bilateral treaty and no tax residency certificate system. Spain has a specific provision (Art. 9.2 LIRPF) that maintains Spanish tax residency for individuals who move to tax havens for the four years following the move — effectively a four-year quarantine period during which Spain can assert continued residency.

The UAE problem: Spain does not have a double tax treaty with the UAE. This means UAE residents cannot rely on treaty tie-breaker rules to resolve dual residency claims. Additionally, because the UAE does not issue formal tax residency certificates in the same structured way as treaty countries, Spanish residents moving to Dubai face a heightened risk of the AEAT asserting continued Spanish residency under the Art. 9.2 special provision. Careful documentation of genuine UAE residence is essential.

The Exit Tax: Art. 95bis LIRPF

Spain's exit tax (impuesto de salida) under Art. 95bis LIRPF applies when a Spanish tax resident with significant shareholdings ceases to be a Spanish tax resident. The exit tax is triggered where the departing taxpayer holds:

When the exit tax applies, Spain treats the departure as a deemed disposal of the qualifying shares at their fair market value on the date of departure. The resulting deemed capital gain is taxed at the savings income rates applicable to capital gains (19-28%). The tax becomes due in the year of departure and must be included in the final IRPF return.

If the taxpayer moves to another EU or EEA member state (or a country with which Spain has an information exchange agreement), they can request to defer the exit tax payment until the shares are actually disposed of — but the tax remains as a "latent liability" that crystallises on actual sale, and must be reported to the AEAT annually until disposal.

The exit tax calculation requires a professional valuation of the shares as of the departure date. The calculation and reporting obligations are complex and require specialist advice.

The 4-Year AEAT Lookback

The general statute of limitations for AEAT assessments is four years from the deadline for filing the relevant tax return (Art. 66 LGT). This means the AEAT can examine and reassess your Spanish IRPF for up to four years after you have filed (or should have filed) your final return.

In practice, this means that even after you have left Spain, the AEAT can:

For individuals moving to tax havens, the four-year lookback is compounded by Art. 9.2's four-year special residency provision — creating a period of up to eight years of combined exposure. For anyone with significant Spanish tax history and departures to low-tax jurisdictions, maintaining comprehensive records of departure and genuine foreign residence is essential for the full four years post-departure.

Common Mistakes When Leaving Spain

Departure Timeline: Before You Leave

TimingActionAuthority
6-12 months beforeStructural review: exit tax calculation, property decisions, family situationTax lawyer
3 months beforeEstablish genuine ties in new country (bank account, accommodation, employment)Personal action
Month of departureFile Modelo 030 (change of tax domicile to foreign address)AEAT
Month of departureCancel padrón (baja en el padrón)Ayuntamiento
Month of departureClose or transfer Spanish bank accounts where possibleBanks
After departureObtain foreign tax residency certificateForeign tax authority
April-June following yearFile final Spanish IRPF return (Modelo 100)AEAT
Following 4 yearsMaintain records of non-Spanish presence and foreign residencyPersonal record-keeping

Planning to Leave Spain? Get Your Exit Right

Jacob Salama advises Spanish residents on exit planning — exit tax calculations, the correct sequence of administrative steps, and how to protect against AEAT challenges to your departure for up to four years after you leave.

Book an Exit Planning Consultation →

Disclaimer: This article is for general informational purposes only and does not constitute legal or tax advice. Spanish tax law changes frequently and its application depends on individual circumstances. Always consult a qualified tax lawyer before making decisions. SALAMA LEGAL SLP — Colegiado nº 11.294 ICAMálaga.

Frequently Asked Questions

The primary form is Modelo 030, filed with the AEAT to notify a change of tax domicile to a foreign address. You should also cancel your empadronamiento with the local Ayuntamiento. In the year of departure you will file a final Modelo 100 (IRPF return) covering your worldwide income for the full year. If you have significant shareholdings triggering the exit tax (Art. 95bis), additional declarations are required in your final IRPF return. Getting a certificate of fiscal residence from your new country as soon as possible is also essential.
Yes, you can own property in Spain as a non-resident — but you must manage it carefully. Non-residents who own Spanish property are subject to IRNR (Non-Resident Income Tax) on any rental income derived from that property and on a deemed income charge for properties held for personal use (typically 1.1% or 2% of the cadastral value annually, taxed at 19% for EU/EEA residents). Crucially, retaining a property in Spain that you use as a habitual residence is one of the strongest indicators of continued Spanish tax residency that the AEAT will use to challenge your departure.
The general limitation period is four years from the filing deadline of each tax return. For the year of departure, the AEAT has four years from when the IRPF return was due to assess and challenge your status. If you moved to a tax haven (UAE, etc.), Art. 9.2 LIRPF extends the period during which Spain can assert continued residency to four years following the move. This effectively means you can face combined exposure of up to eight years in the worst case. Maintaining documentary evidence of genuine non-Spanish residency is critical throughout this period.
The exit tax (Art. 95bis LIRPF) applies when you cease Spanish tax residency and hold shares in a company with aggregate unrealised gains over €4 million, or a 25%+ stake with gains over €1 million. Spain treats your departure as a deemed disposal at fair market value. The gain (market value minus your tax cost) is taxed at savings income rates: 19% on the first €6,000, 21% on €6,001-€50,000, 23% on €50,001-€200,000, 27% on €200,001-€300,000, and 28% above. If moving to an EU/EEA country or a country with an information exchange agreement, you can defer the actual payment until you sell the shares. Professional valuation of the shares at departure date is required.
Potentially yes, for up to four years. Article 9.2 LIRPF provides that individuals who change their tax residency to a "tax haven" (the UAE is on Spain's official list of non-cooperative territories) continue to be treated as Spanish tax residents for the year of departure and the four following years, unless they can demonstrate genuine new country residency. The absence of a Spain-UAE double tax treaty means no treaty tie-breaker is available — you cannot rely on a treaty to resolve a dual residency dispute. Comprehensive documentation of genuine UAE life — employment, social connections, utility bills, physical presence records — is essential to rebut the AEAT's continued residency assertion.
Ask a question