Paperwork
Leaving Spain: How to Properly Deregister and Avoid Fines
A comprehensive checklist for expats leaving Madrid. Learn how to cancel your empadronamiento, close bank accounts, and deregister from the Tax Agency.
Comunidad de Madrid caveats included
Moving to Madrid is an administrative hurdle, but leaving Spain without tying up loose ends can be an absolute nightmare.
Many expats simply pack their bags, hop on a flight, and assume the Spanish government will figure out they've left. They won't. If you don't properly deregister, you might continue to accrue tax liabilities, social security debts, and phantom utility bills.
Here is your definitive checklist for leaving Spain cleanly.
1. Canceling your Empadronamiento (Baja en el Padrón)
If you move to another city within Spain, registering at your new address automatically cancels your old Madrid registration. But if you are leaving the country entirely, you must actively request a Baja por cambio de residencia.
Why it matters: If you remain on the padrón, the Tax Agency (Hacienda) will assume you are still a tax resident in Spain and expect you to file a tax return next year.
How to do it:
- If you are a non-Spanish citizen returning to your home country (or moving to a third country), you can request the baja online via the Ayuntamiento de Madrid's Sede Electrónica (requires a Digital Certificate or Cl@ve).
- Alternatively, you can book an in-person Cita Previa at an OAC (Oficina de Atención a la Ciudadanía) before your flight.
2. Deregistering from the Tax Agency (Hacienda)
This is the most critical step to avoid future fines. You need to officially tell the Agencia Tributaria that you are no longer a tax resident.
How to do it: You must file Modelo 030 (Declaración censal de alta, cambio de domicilio y/o de variación de datos personales).
- You can do this online through the AEAT portal.
- You will check the box indicating a change of tax residence to a foreign country.
- Crucial: Make sure you provide a forwarding address in your new country so they can reach you if there is an issue with your final tax return.
3. Dealing with Social Security and Autónomo Status
- If you are an employee: Your company will automatically deregister you (dar de baja) from Social Security on your last day of work. You do not need to do anything.
- If you are an Autónomo (Freelancer): You absolutely must submit Modelo 036 or 037 to the Tax Agency to close your business activity, AND you must deregister from the RETA (special regime for self-employed workers) at the Social Security office. If you fail to do this, Social Security will continue charging you the €300+ monthly quota even after you've left the country.
4. The Baja Consular (If applicable)
- For Spanish citizens moving abroad: You must register at the Spanish consulate in your new country (Alta Consular).
- For expats in Spain: You should contact your home country's embassy in Madrid and inform them of your departure if you registered with them upon arrival.
5. Canceling Utilities and Contracts
Do this at least 30 days before leaving. Spain is notorious for requiring 30 days' notice for subscription cancellations.
- Internet/Phone: Call your provider (Movistar, Vodafone, Digi) exactly a month before. Ask for a reference number for the cancellation. Ensure you return the router if required, or they will charge your bank account €100+.
- Electricity/Gas: If you are renting, do not cancel the supply (dar de baja el suministro), as it costs hundreds of euros to turn it back on. Instead, do a change of ownership (cambio de titularidad) back to the landlord or the next tenant.
- Gyms/Subscriptions: Cancel these in writing (email) and ask for confirmation.
6. Closing your Spanish Bank Account
Do this last.
You will need your Spanish bank account open for a few months after you leave to receive your rental deposit (fianza) from your landlord, pay your final utility bills, and potentially receive a tax refund after you file your non-resident or final resident tax return the following spring.
The Strategy:
- Leave enough money in the account to cover final direct debits.
- Link your Spanish account to a service like Wise or Revolut.
- Once all final transactions are settled (usually 2-3 months later), transfer the remaining balance out.
- Call your Spanish bank to officially close the account. Warning: Some traditional banks (like Santander or BBVA) make it notoriously difficult to close an account over the phone from abroad and may require you to mail a physical letter with a notarized copy of your passport. Check your bank's specific exit process before you leave the country.