People who want to leave Spanish tax residence often search for a form to deregister, but Spain has no single procedure that removes your tax residence. Your status ends when you stop meeting the residence tests, and your job is to prove it with days, ties and documents.
The short answer: you stop being a Spanish tax resident when you no longer spend more than 183 days in Spain in the calendar year, your main base of activities or economic interests is no longer in Spain and the family presumption does not apply. You then need to prove your new residence, usually with a tax residence certificate from the new country, update your records and close or adjust your Spanish registrations. Some situations, such as moving to a tax haven or having large shareholdings, have special rules.
Spanish residence rules, the effect of moving to certain countries and the exit tax on shareholdings are technical and change. This guide is general information, not tax or legal advice. Consult a Spanish tax adviser before you leave, ideally several months in advance.
Key takeaways: leave Spanish tax residence
- There is no single form to leave Spanish tax residence; you must stop meeting the residence tests and prove it.
- Request a tax residence certificate from the new country and keep a day log and travel records.
- Update your address with the tax agency, close or adjust your autónomo registration and social security.
- Moving to a tax haven can keep you resident for the year of departure and the four following years.
- An exit tax can apply to some large shareholdings; check before you move.
In this guide
- Key takeaways: leave Spanish tax residence
- How residence ends under Spanish rules
- Steps to leave Spanish tax residence
- Proof that you did leave Spanish tax residence
- Special cases when you leave Spanish tax residence
- Taxes in the year you leave Spanish tax residence
- Foreign accounts and old registrations
- Common pitfalls when you leave Spanish tax residence
- Frequently asked questions about leave Spanish tax residence
- Final thoughts on leave Spanish tax residence
- Sources and further reading
- Related guides
How residence ends under Spanish rules
Spanish tax residence is decided by facts: days, centre of economic interests and family. You do not stop being resident by announcing it. To leave Spanish tax residence you need to:
- Spend fewer than 184 days in Spain in the calendar year.
- Move your main base of activities or economic interests abroad.
- Ensure that your spouse and dependent minor children do not habitually live in Spain, or be able to rebut the presumption.
- Be able to prove that you are a tax resident in another country.
The basics are explained in the 183-day rule explained with examples and digital nomad tax residence.
Steps to leave Spanish tax residence
| Step | What to do |
|---|---|
| 1. Plan the date | Choose a departure date that keeps you under 184 days in Spain for the year, and plan your final months |
| 2. Establish the new residence | Obtain residence in the new country, register there and become a tax resident under its rules |
| 3. Get a tax residence certificate | Ask the new country’s tax authority for a certificate that you are resident there |
| 4. Update Spanish records | Update your tax address with the tax agency and tell your bank, insurers and other institutions |
| 5. Social security | Close your autónomo registration if you stop your activity, and settle contributions |
| 6. Municipal and health records | Deregister from the local register of residents when you move abroad and review your health coverage |
| 7. File the last returns | File your returns for the period, including the year of departure, as a resident or non-resident as appropriate |
Proof that you did leave Spanish tax residence
- A tax residence certificate from the new country.
- A day log with flights, passport stamps and accommodation records.
- A rental or purchase contract abroad, utility bills and local registrations.
- Proof that you closed or reduced Spanish ties: home, accounts, activity and registrations.
- Proof that your family lives abroad, if relevant.
Special cases when you leave Spanish tax residence
- Moving to a tax haven: Spanish nationals who move to a country considered a tax haven can remain taxable as Spanish residents in the year of the move and the four following years. Check which countries are on the list.
- Exit tax: in some cases, unrealised gains on large shareholdings can be taxed when you leave Spain. The thresholds and conditions are specific.
- Companies: a company you manage from Spain may stay resident in Spain even if you move. See LLC taxation in Spain and limited company in Spain.
- Pension and benefits: check how leaving affects social security rights.
Taxes in the year you leave Spanish tax residence
If you were resident in Spain for most of the year, the tax treatment of the departure year depends on the date and the days. You may file a resident return for the full year or split the treatment if you can prove that you were non-resident, with the consequences for allowances and deductions. Ask your gestor to calculate both options. For the rules that apply while you are resident, see taxes for freelancers with foreign clients in Spain.
Foreign accounts and old registrations
After you leave, check that your bank and platforms have your new address and tax residence, and consider reporting duties in your new country. If you held foreign accounts as a Spanish resident, review whether reporting duties end. See modelo 720. For payment setups while you move, read how to get paid while traveling.
Common pitfalls when you leave Spanish tax residence
- Believing that a form removes your residence.
- Keeping your home, family and business in Spain.
- Not obtaining the certificate from the new country.
- Staying more than 183 days by mistake.
- Forgetting social security and municipal registration.
- Ignoring the tax haven and exit tax rules.
- Not keeping evidence for a possible review.
Frequently asked questions about leave Spanish tax residence
Is there a form to leave Spanish tax residence?
No single form removes your residence. You stop being resident when you no longer meet the tests, and you must be able to prove it.
How many days can I spend in Spain after I leave?
Fewer than 184 in the calendar year, and you must not keep your main economic interests or family presumption in Spain.
What proof do I need?
A tax residence certificate from the new country, a day log and documents showing your new home and the closing of Spanish ties.
Do I have to deregister from the autónomo scheme?
If you stop your activity in Spain, yes. Ask your gestor how to close the registrations and settle contributions.
What is the exit tax?
A tax on unrealised gains of large shareholdings when you leave Spain, applicable only in specific cases.
What if I move to a tax haven?
Spanish nationals can remain taxable as residents in the year of the move and the four following years. Check the rules.
Final thoughts on leave Spanish tax residence
To leave Spanish tax residence, you do not file a single form; you change your facts and prove them. Plan your days, establish residence in the new country with a certificate, update your Spanish registrations and check the special rules on tax havens and exit tax. Start planning months before you go, and keep your evidence for years afterwards.
Sources and further reading
- Agencia Tributaria: residencia fiscal y cambio de residencia
- Seguridad Social: baja en el régimen de autónomos
- Boletín Oficial del Estado (BOE)
Related guides
- The 183-Day Rule Explained with Examples for Digital Nomads
- Digital Nomad Tax Residence: How It Is Determined and How to Avoid Mistakes
- Where to Pay Taxes If You Travel All Year: Common Mistakes Nomads Make
- Taxes for Freelancers with Foreign Clients in Spain: IRPF and VAT Explained
Disclaimer: This article is for general information only and is not tax, legal or financial advice. Rules, fees and thresholds change often and differ by country; always confirm current details with the tax authority and a qualified adviser. Some links may be affiliate links, which means we may earn a commission at no extra cost to you.