How to leave Spain tax residency and deregister properly
Leaving Spain for good? What to deregister (padrón, RETA, Modelo 036), when to file Modelo 030, the 183-day rule, and what skipping a step costs.
Leaving Spanish tax residency is not the same as buying a one-way flight. It’s a paperwork sequence that has to land in the right order, in the right months, with documents the AEAT will accept years later if they look. Done wrong, you stay a Spanish resident for tax purposes long after you’ve moved your laptop. Done right, the file closes cleanly and you are off Spain’s hook.
This is the version we run with members. It assumes you’re going to a destination that taxes foreign income lightly — Thailand or Paraguay — and that you want the exit defensible under audit, not just done.
The 183-day rule is necessary, not sufficient
If you spend no more than 183 days of the calendar year in Spain, you’ve cleared the first criterion of Article 9 of the Spanish IRPF law. That’s where most internet advice stops. The article has more to it, and any one of these pieces can pull you back in:
- Your main centre of economic interest. It’s a test of its own: if your business income, real estate, or investment portfolio still anchors to Spain, the days don’t matter. Move the operating company, sell or rent out the property, restructure the holdings.
- Where your family habitually lives. A non-separated spouse and dependent minor children living in Spain create a presumption that you’re still resident, unless you prove otherwise. Either the family moves with you or the structure has to address this explicitly.
- Tax-residency certificate from the destination. Sporadic absences count as days in Spain unless you prove tax residence elsewhere, and the AEAT takes that as proven with a certificate from the other country’s tax authority, valid for a year. This is why Thailand’s 180-day rule matters and why we structure for the certificate, not just the visa.
Skip any of those and the 183 days are decoration.
Modelo 030 — the notice, not the exit
Modelo 030 reports your change of tax address to the AEAT. It’s free, it takes about ten minutes online, and it’s due within three months of the move; if you’re still registered as self-employed, the change goes on Modelo 036 within a month. What it doesn’t do is change your residency: the Article 9 tests decide that, for the whole calendar year. Spain has no split year:
- If you were resident in the year you leave, your last Spanish IRPF return covers that whole year’s worldwide income, and any income not yet taxed is brought into it.
- Modelo 720 (foreign asset declaration), if it applies to you, covers that year too: what you held on 31 December and anything you held at any point in the year.
That’s why the real departure date matters, not the date on the form. From the first full calendar year as a non-resident, IRPF and Modelo 720 stop applying, and anything you still earn in Spain is taxed as non-resident income.
If you were registered as a self-employed earner (RETA), you also need to:
- File a baja of your activity on Modelo 036 within a month of stopping (Modelo 037 was abolished on 3 February 2025).
- Deregister from RETA with the Tesorería General de la Seguridad Social: you can schedule it up to 60 days ahead, or do it within 6 calendar days of stopping.
- Close out your last quarter cleanly — IVA, IRPF withholdings, the works. A half-finished year invites re-examination.
Exit tax — when it bites and when it doesn’t
Spain has an exit tax (Article 95 bis of the IRPF law) that applies if you’ve been resident in at least 10 of the 15 tax years before your last Spanish return AND you hold shares worth more than €4M total OR more than 25% of a company where that stake is worth more than €1M. Most of our members don’t trigger it. The ones who do typically restructure the holding before the move — moving the equity into a structure that the exit tax can’t reach, or staging the exit across two tax years.
The Spain exit tax guide (Article 95 bis) walks through the three conditions, the band-by-band cost of a deemed disposal, and which profiles are exempt. If your assets are mainly crypto rather than company shares, the Spain crypto exit checklist covers the treatment that actually applies.
If you don’t trigger it, file Modelo 030 and move. If you might trigger it, the diagnosis call is for that conversation.
What your destination has to do
The Spanish exit only sticks if you’re substantively resident somewhere else. For Thailand, that means:
- 180+ days in the country, documented (entry stamps, bank account, lease).
- A Thai tax-residency certificate, requested after you file that year’s Thai return. We pull this for every member who is resident there.
- A clean Thai tax filing — Thailand taxes residents’ foreign income when it’s brought into the country, and even if your taxable income is zero, the filing itself is part of the proof.
For Paraguay, the path is different — the cédula does most of the work, and the 120+ days of presence + your certificado de residencia fiscal close the loop. The Paraguay vs Spain and Germany comparison puts numbers on both destinations side by side.
Either way, the rule is: don’t just leave Spain — land somewhere. The two halves are one legal act.
A 14-week version of the timeline
Most CERØ members run roughly this calendar from engagement to clean-exit:
- Week 1. Diagnosis call. We map your income sources, family situation, and timing constraints. You get a written plan.
- Weeks 2–4. Spanish-side prep. Modelo 036 baja, RETA deregistration, last-quarter wrap-up, exit-tax assessment if applicable.
- Weeks 4–8. Destination paperwork. DTV file or cédula application, bank account, address.
- Week 8. Plane.
- Weeks 8–14. First days on the ground. Modelo 030 with your new tax address, local registrations, lease.
- The following spring. Last Spanish IRPF return as a resident: the last calendar year you were one, in full.
- Year +1. Tax-residency certificate from your new country, valid for a year — the document the AEAT actually accepts as proof.
The piece nobody tells you
The hardest part of leaving Spain isn’t the paperwork — it’s the appearance of leaving. If your billing address still says Madrid, your Spanish bank account still receives your fees, and you’re back in Barcelona for the holidays for three weeks, the file looks weak. Hacienda has spent the last few years catching exactly this kind of half-exit.
The clean version doesn’t require monastic discipline. It requires a structure that actually moves with you — operating company, banking, address, billing flow. We rebuild this part for every member, because it’s the part that holds up.
Where to go from here
If you want to see the destination maths first, run the Thailand tax calculator — it estimates what changes in your pocket once Spain’s top marginal rate, 45% to 54% depending on the region, stops applying. Or read the Thailand vs Spain comparison for the side-by-side.
If you already know you’re moving and want the free diagnosis call, book it here. We’ll tell you on the call whether your situation is one we can run cleanly, or whether you need a different shape.
CERØ handles the DTV visa, Thai tax residency setup and your home-country exit — end to end. Talk to the team about your specific numbers.
CERØ handles the cédula, Paraguayan tax setup and your EU exit — from paperwork to touchdown. Talk to the team about whether Paraguay fits your structure.