Listyco
Photo by Agus Dietrich on Unsplash
Guides

Ceasing Spanish Tax Residency: The IRPF to IRNR Transition and Exit Process for Property Owners (2026)

Ceasing Spanish tax residency moves you from IRPF to IRNR. Here is the deregistration process, the final returns, the Beckham Law exit and the DTA tie-breaker.

Ceasing Spanish Tax Residency: The IRPF to IRNR Transition and Exit Process for Property Owners (2026)

When you leave Spain, your tax residency does not end on the day you board the plane. Spanish tax residency is determined by complete calendar years, so the effective date of your change is either 1 January of the year you leave or 1 January of the following year, depending on how many days you spent in Spain before moving. You file a final IRPF return for the departure year, deregister your fiscal address with the Agencia Tributaria, and from the effective date you resume IRNR filing on your Spanish-source income only. If you hold property in Spain, you continue to owe IRNR on rental income, imputed income on empty homes, and capital gains tax on any future sale. The Double Taxation Agreement between Spain and your new country determines which state has primary taxing rights.

When does Spanish tax residency actually end?

Spanish tax residency is determined by complete calendar years. The effective date of the change is either 1 January of the year you leave (if you spent fewer than 183 days in Spain before moving) or 1 January of the following year (if you passed the 183-day threshold). You set this date on Modelo 030 box 217.

The rule comes from Article 9 of Ley 35/2006, which defines a Spanish tax resident as someone who spends more than 183 days in Spain during a calendar year, has their centre of economic interests in Spain, or has a spouse and minor children resident in Spain. The AEAT guidance on Modelo 030 makes the calendar-year principle explicit: a person who moves their habitual residence mid-year and has not spent 183 days in Spain takes the 1 January date of that same year, while a person who has already passed the 183-day threshold takes the 1 January date of the following year. You are either resident or non-resident for the whole tax year, with no part-year residency split.

This matters because it determines which tax regime applies to income earned in the departure year. If you leave in March having spent only 60 days in Spain, your non-residence takes effect from 1 January of that same year, and your worldwide income for that year falls under the IRNR rules of your new country. If you leave in October having spent 250 days in Spain, you remain an IRPF taxpayer for the entire calendar year, and your worldwide income for that year is taxed under Spanish resident rules.

What forms do I file to deregister from IRPF?

Three forms drive the transition. Modelo 030 communicates the change of tax domicile and residency status to the AEAT census. Modelo 100 is the final IRPF return for the departure year. Modelo 210 is the IRNR return you file from the year non-residence takes effect, covering Spanish-source income only.

The deregistration starts with Modelo 030, filed either electronically or in person at the AEAT delegation corresponding to your Spanish tax domicile. Box 201 (tax resident in Spain) is changed to box 202 (non-resident), and box 217 records the effective date. The filing period for a change of tax domicile is three months from the date of the change, unless you submit the final IRPF return that reports the new address, in which case the communication is made on the self-assessment form itself.

The final IRPF return (Modelo 100) covers worldwide income from 1 January to the effective date of the change. The standard filing window runs from April to June of the year after departure. From the effective date of non-residence, you switch to Modelo 210 for Spanish-source income: rental income, imputed income on empty property, and capital gains on Spanish assets. The IRNR rates are 19 per cent for EU and EEA residents and 24 per cent for non-EU residents, per the consolidated text of the Non-Resident Income Tax Law (Real Decreto Legislativo 5/2004).

FormPurposeWhen to fileWhat it covers
Modelo 030Census change of tax residenceWithin 3 months of the changeNotifies AEAT of the effective date (box 217) and new address
Modelo 100Final IRPF returnApril to June of the following yearWorldwide income from 1 January to the effective date
Modelo 210IRNR returnQuarterly or annuallySpanish-source income only: rental, imputed, capital gains
Modelo 149Beckham Law regime endWhen the regime expires or you leave earlyCommunicates the end of the Article 93 special regime
Modelo 151Special IRPF for Beckham Law taxpayersApril to June of the following yearSpanish-source employment income at the 24 per cent flat rate

How does the Beckham Law exit work?

The Beckham Law (Article 93 LIRPF) runs for the year of arrival plus five tax years under the post-2023 Ley 28/2022 reform. If you leave Spain before the regime expires, you file Modelo 149 to communicate the end. Your final year under the regime is taxed at the 24 per cent flat rate on Spanish-source employment income up to EUR 600,000, with 47 per cent above that threshold.

The regime, formally the Special Tax Regime for Workers, Professionals, Entrepreneurs and Investors Posted to Spanish Territory, was modified by the Third Final Provision of Ley 28/2022 (the Startups Act) with effect from 1 January 2023. The reform reduced the prior period of non-residency required to qualify from ten tax periods to five, and expanded eligibility to teleworkers, entrepreneurs, and highly qualified professionals. The duration remains the year of arrival plus five following tax years, giving six tax years in total.

If you leave Spain during the regime, you file Modelo 149 to notify AEAT of the end date. From that point, your Spanish-source income is taxed under standard IRNR rules. If you later return to Spain and re-acquire tax residency, you would need to meet the five-year prior non-residency condition again to re-enter the Beckham regime. The 24 per cent withholding rate that applies during the regime is set out in the AEAT manual on the special expatriate regime.

What happens to my Spanish property after I leave?

Your Spanish property continues to generate Spanish-taxable income. As a non-resident, you file Modelo 210 on rental income at 19 per cent (EU and EEA) or 24 per cent (non-EU), imputed income on empty homes at 1.1 per cent or 2 per cent of cadastral value, and 19 per cent CGT on a future sale with a 3 per cent buyer retention under Modelo 211.

The transition from resident to non-resident does not change the fact that Spanish real estate is always taxable in Spain. What changes is the scope: as a resident, you declared worldwide rental income and wealth on IRPF and wealth tax returns. As a non-resident, you declare only the Spanish elements. Rental income moves from the IRPF rental box to Modelo 210. Imputed income on a vacant property (the imputacion de rentas inmuebles) continues to apply, calculated on the cadastral value. On a sale, the buyer retains 3 per cent of the price under Modelo 211 as an advance on your 19 per cent CGT liability, and you reconcile via Modelo 210. Our non-resident property holding taxes guide and the IRNR guide set out the full annual filing calendar, and the non-resident CGT retention guide covers the sale process.

How does the DTA tie-breaker determine my residency?

When both Spain and your new country claim you as a resident, the Double Taxation Agreement tie-breaker rules decide. The OECD model order is permanent home, centre of vital interests, habitual abode, then nationality. A Spanish fiscal residence certificate from AEAT is the document you present to claim treaty relief.

The tie-breaker matters because Article 9 of Ley 35/2006 defines residency under Spanish internal law, but a DTA overrides internal law where the two countries disagree. If you spend 183 days in Spain and also meet the residency test of your new country, the treaty settles the conflict. The first criterion is where you have a permanent home available to you. If you have one in both countries, the next test is your centre of vital interests, meaning where your personal and economic ties are closer. If that is also indeterminate, the tests move to habitual abode and then nationality. The Spanish fiscal residence certificate guide explains how to obtain the AEAT certificate that proves your position, and the DTA guide covers the treaty framework for property owners.

Are there special rules for Spanish nationals leaving for non-cooperative jurisdictions?

Yes. Spanish nationals who move their tax residency to a non-cooperative jurisdiction remain IRPF taxpayers in Spain for the year of departure plus four subsequent tax years. This preserving rule, set out in Article 10 of Ley 35/2006, prevents the use of blacklisted jurisdictions to exit the Spanish tax net.

The rule applies only to Spanish nationals, not to foreign residents leaving Spain. The list of non-cooperative jurisdictions is maintained by AEAT as Annex IV, and references to tax havens are understood as referring to this list with effect from 11 July 2021. If you are a Spanish citizen moving to a country on that list, you continue to file IRPF on your worldwide income for the departure year and the four following years, regardless of where you actually live. Only after that period does your non-resident status take effect for Spanish internal law purposes. A DTA may still apply, but the preserving rule operates as a domestic override.

What is the Spanish exit tax on shares?

Spain applies an exit tax on unrealised gains when a taxpayer moves their tax residency abroad, under the exit tax provisions of Ley 35/2006. The gain on certain shares and financial instruments is calculated as if the assets were sold at market value on the day before the residency change.

This is a separate concept from the non-cooperative jurisdiction preserving rule. The exit tax crystallises unrealised gains on qualifying shareholdings (typically substantial participations in companies whose assets are mainly Spanish real estate) at the moment of departure, preventing a taxpayer from moving abroad and selling the shares free of Spanish CGT. The tax is self-assessed and can be deferred in certain conditions. Our exit tax guide covers the calculation, the deferral conditions, and the interaction with the preserving rule. The tax residency 183-day rule guide explains the residency test that the exit tax provisions hinge on, and the resident IRPF guide covers the regime you are leaving behind.

This guide is general information, not legal or tax advice. Rules change and individual circumstances differ. Verify current requirements with an independent lawyer (abogado) or tax advisor (gestor or asesor fiscal) before acting.

Frequently asked questions

When does my Spanish tax residency actually end?
Spanish tax residency is determined by complete calendar years. The effective date is either 1 January of the year you leave (if you spent fewer than 183 days in Spain before moving) or 1 January of the following year (if you passed the 183-day threshold). You set this date on Modelo 030 box 217. You remain a Spanish tax resident for the entire calendar year in which the change takes effect.
Do I need to file a final IRPF return when I leave Spain?
Yes. You file a final IRPF return (Modelo 100) for the calendar year in which you ceased residence, covering your worldwide income from 1 January to the effective date of the change. The standard April to June filing deadline applies the following year. From the year non-residence takes effect, you switch to IRNR (Modelo 210) on Spanish-source income only.
What happens to my Beckham Law regime if I leave Spain early?
The Beckham Law (Article 93 LIRPF) runs for the year of arrival plus five tax years. If you leave Spain before the regime expires, you file Modelo 149 to communicate the end of the special regime. Your Spanish-source income from the departure year is taxed under the IRNR rules at 24 per cent for EU and EEA residents, and you revert to standard IRPF treatment for any future year you resume residency.
Does Spain have an exit tax?
Spain applies a preserving rule rather than a classic exit tax. Spanish nationals who move to a non-cooperative jurisdiction remain IRPF taxpayers for the year of departure plus four subsequent years. Separately, unrealised gains on certain shares can crystallise under the exit tax provisions of Ley 35/2006 when a taxpayer moves their tax residency abroad. Verify current rules with a Spanish tax advisor.
How does a Double Taxation Agreement affect my residency exit?
A DTA tie-breaker determines which country has the primary right to tax you when both claim residency. The OECD model order is permanent home, centre of vital interests, habitual abode, then nationality. A Spanish fiscal residence certificate issued by AEAT is the document you present to the other country to claim treaty relief. The certificate covers one tax year and must be renewed annually.

Sources and data