Zythos Business
News

Leaving Spain: Exit Tax, Tax Deregistration, and How to Close Out Your Taxes Properly

Zythos Business

Leaving Spain isn’t just about packing your bags: the Spanish Tax Agency (Agencia Estatal de Administración Tributaria, or AEAT) requires you to properly close out your tax file before you stop being a resident. If you’re a foreigner who has lived, worked, or invested in Spain — whether as a self-employed professional, an employee, or a business owner — leaving loose ends can mean penalties, tax office inquiries years down the line, or trouble proving your status to another country. This guide walks through the essential steps for 2026: deregistering with the tax authorities, the so-called “exit tax,” and the final returns you need to file before saying goodbye.

Tax deregistration and Form 030: closing your file with the tax office

Any foreigner who has carried out economic activity in Spain — registered as self-employed under the RETA (the special Social Security scheme for the self-employed), or with tax obligations from rental income, investments, or a company — has an open file with the AEAT tied to their NIE (Foreigner Identification Number). If you worked as a freelancer or ran a business, you need to file Form 036/037 to formally deregister that activity before leaving, and settle any outstanding obligations (VAT, withholdings) up to your cessation date.

On top of that, if you’re changing your tax residence, it’s worth formally reporting it via Form 030, which updates your registration details with the tax office — including your tax address and, where applicable, notice of your move abroad. Skipping this step doesn’t exempt you from Spanish taxes if you still meet the criteria for tax residency (spending more than 183 days a year in the country, or having the center of your economic interests here), but it does create administrative headaches: notifications that never reach you, deadlines running against you, and a tax address the AEAT still treats as valid.

The “exit tax”: paying tax on gains you haven’t actually cashed in

The part that catches most people off guard is the so-called exit tax, set out in Spain’s Personal Income Tax Law (IRPF, the tax residents pay on their worldwide income). It isn’t a separate tax — it’s a mechanism within the IRPF itself that, in certain cases, requires you to pay tax on the unrealized gains in your shares or company holdings at the moment you stop being a Spanish tax resident, even if you haven’t sold anything yet.

This regime doesn’t apply to everyone who leaves: it’s aimed at people holding significant stakes, with market-value and ownership-percentage thresholds that are worth checking case by case with an advisor, since the rules set out specific conditions and exceptions. If you’re moving to another EU or European Economic Area country, you may be able to request a deferral of payment for as long as you remain there, among other requirements. If you’re heading outside that area, the tax can become due more immediately. Because the rules — thresholds, filing deadlines, exemption cases — involve technical nuances and can change, it’s best to review your portfolio and destination before setting a departure date, not after.

Your final returns: closing the tax year without loose ends

In the year you stop being a Spanish tax resident, you’ll typically need to file one last resident’s income tax return covering the months you still were one, using Form 100 (the annual IRPF return). From that point on, if you keep earning Spanish-source income — rental income, a pension, dividends from a Spanish company — you’ll switch to filing as a non-resident via Form 210 (Non-Resident Income Tax), which works quite differently from the IRPF: it’s generally settled transaction by transaction, without the deductions and personal allowances residents get.

It’s also worth checking whether you have any foreign assets or accounts you’ve declared in Spain, any ongoing VAT obligations if you still have some activity, and confirming there’s no outstanding quarterly or annual return tied to your old NIE. A messy close-out is the most common reason people get an inquiry from the AEAT years later, once it’s much harder to pull the paperwork together.

At Zythos Business, we support self-employed professionals and small businesses — many of them foreigners who once arrived in Spain and are now, perhaps, weighing their next move — through the whole tax cycle, from registration to, when the time comes, a properly handled deregistration. Reviewing your registration status, your exposure to the exit tax, and your final returns ahead of time avoids surprises and lets you close this Spanish chapter with the same peace of mind you started it with.

Discussion

There are 0 comments.