Beckham Law and Exit Tax: What Happens If You Leave Spain?
Planning to leave Spain one day with a valuable share portfolio or company stake? Learn how Spain's exit tax works, who it applies to and why years under the Beckham Law do not count towards it.

Many founders, executives and investors who move to Spain under the Beckham Law ask the same question before they arrive: if I leave Spain later, will I have to pay an exit tax on my shares?
Spain does have an exit tax. But it only applies in specific situations, and the Beckham Law has an important effect on it. In this guide, we explain how the Spanish exit tax works and what it means for people under the regime.
1. What Is the Spanish Exit Tax?
The Spanish exit tax is set out in Article 95 bis of the Personal Income Tax Law. When certain long-term residents stop being Spanish tax residents, Spain can tax the unrealised gains on their shareholdings, as if they had sold them the day before leaving. For a technical overview, see this explanation of the Spanish exit tax by Forvis Mazars.
It does not apply to property. It only covers shares and units in companies and investment funds.
2. Who Does the Exit Tax Apply To?
All of the following conditions must be met:
You stop being a Spanish tax resident because you move abroad.
You were a Spanish tax resident for at least 10 of the 15 tax years before your last year of residence.
The market value of your shares and fund units is above €4 million, or you hold more than 25% of a company and that stake is worth more than €1 million.
If any of these conditions is not met, the exit tax does not apply.
3. Do Beckham Law Years Count?
This is the key point for people under the regime. Tax years in which you were taxed under the Beckham Law are generally not counted towards the 10-year residence test for the exit tax.
In practice, this means that someone who arrives in Spain, uses the Beckham Law for six years and then leaves will usually have very few or no years that count towards the 10-year test. For most people under the regime, the exit tax will therefore not be an issue when they leave during or straight after the regime.
The picture changes if you stay longer. After the regime ends, you are taxed as a normal resident, and those years do count. Read Beckham Law Spain: What Happens After 6 Years? for the wider picture.
4. A Simple Example
Imagine you move to Spain in 2026 and use the Beckham Law from 2026 to 2031. From 2032, you are taxed as a normal resident.
If you leave in 2033, you have only one or two years that count. The exit tax does not apply.
If you stay until 2042 or later, you may reach 10 counting years. If your shareholdings are above the thresholds, the exit tax could then apply when you leave.
5. Deferral When You Move Within the EU
If you move to another EU or EEA country that exchanges tax information with Spain, you can generally opt to defer the exit tax. In that case, the tax usually only becomes payable if certain events happen within a set period, for example if you sell the shares or move outside the EU or EEA.
If you move outside the EU for work reasons, a deferral may be available on request, sometimes with a guarantee. The details are technical, so get advice well before you move.
6. Planning Tips
Keep a clear record of which years you were taxed under the Beckham Law.
Monitor the value of your shares and company stakes if you plan to stay long term.
Remember that founders with a large stake in a Spanish company may face other rules too. See Beckham Law for Company Directors in Spain.
Plan your exit alongside wealth tax and Modelo 720. See Beckham Law and Wealth Tax in Spain.
7. Frequently Asked Questions
Does the exit tax apply to my home or rental property?
No. The Spanish exit tax only covers shares and fund units. Property follows its own rules, for example when you later sell it as a non-resident.
Is there an exit tax on crypto?
The Spanish exit tax is designed for shares and fund units. Crypto has its own tax questions, which we cover in Beckham Law and Crypto in Spain.
What do I need to do in the year I leave?
You may still have Spanish tax obligations in your last year. Read Leaving Spain During the Beckham Law: What Happens to Your Tax?.
Need Help With the Beckham Law?
Spain Expat Consulting helps international professionals understand and apply for the Beckham Law. Check your eligibility with our free Beckham Law Eligibility Checker, estimate your tax with the Beckham Law Tax Calculator or book a Beckham Law consultation.
This article is general information only and not individual tax or legal advice. Tax rules and their interpretation can change, so always check your own situation with a qualified tax adviser.
Need help applying this information to your circumstances? Speak with Spain Expat Consulting about the assistance available for your next steps.