Wealth planning
Leaving Spain with a holding company: the tax bill nobody warned you about

You have been building something. Spain will tax it before you leave.
You moved to Mallorca more than a decade ago. You bought property, set up a Spanish SL to hold it, and built a structure that worked well for you — legally, efficiently, on the advice of a local accountant. Now you are thinking about going back to Germany, Sweden, Denmark — or perhaps just retiring somewhere else.
Here is what most advisers do not tell you until it is too late: the moment you stop being a tax resident in Spain, the Spanish Tax Agency treats your shareholding as if you had sold it that same day. You owe income tax on the difference between what your shares are worth now and what you paid for them — even though you have not sold anything, received any cash, or made any decision to realise that gain.
That is the Spanish exit tax. And for foreign residents in Mallorca with a property holding company, it is one of the most expensive surprises in the entire Spanish tax system.
What is the Spanish exit tax and when does it apply?
The legal mechanism: Article 95 bis LIRPF
Article 95 bis of the Spanish Personal Income Tax Law operates as a deemed disposal. When you lose your status as a Spanish tax resident, the law considers that you have "sold" your shares at their current market value on that date. The resulting gain — the difference between market value and your original acquisition cost — is added to your savings income tax base for your final year as a Spanish resident.
This is not a new rule. It has been in force since 1 January 2015. What changed on 1 January 2025 is that the top savings income tax rate increased from 28% to 30% under Law 7/2024, applying to gains above €300,000. For a foreign resident in Mallorca with a property SL that has appreciated significantly over twelve years, that two-point increase can mean €40,000 to €80,000 in additional tax.
The two thresholds that trigger the tax
The exit tax only applies if you meet both a residency condition and at least one of two financial thresholds:
One important exception: the Beckham Law
If you arrived in Spain under the special expatriate tax regime — commonly known as the Beckham Law — the years you spent under that regime do not count towards the ten-year residency requirement. This means that some foreign residents who have been in Spain for more than ten years may not actually meet the residency condition if their early years were spent under the Beckham regime. This is a detail worth verifying with your lawyer before assuming the exit tax applies — or does not apply — to your situation.
What does it actually cost? An illustrative example
A typical Mallorca scenario
A German national moves to Mallorca in 2012. She sets up a Spanish SL the following year to hold two properties: a flat in Palma and a rural property in the Tramuntana area. Her original investment was €350,000. By January 2026, the market value of her 60% stake in the SL has reached €1,650,000. She decides to return to Munich.
Her latent gain is €1,300,000 (€1,650,000 minus €350,000). This amount is added to her savings income base for her final Spanish tax return. Applying the 2025 progressive brackets:
| Savings income bracket | Rate (state + regional, approx.) | Indicative tax |
|---|---|---|
| First €6,000 | 19% | ~€1,140 |
| €6,000 to €50,000 | 21% | ~€9,240 |
| €50,000 to €200,000 | 23% | ~€34,500 |
| €200,000 to €300,000 | 27% | ~€27,000 |
| €300,000 to €1,300,000 | 30% | ~€300,000 |
| Indicative total | — | ~€371,880 |
* Indicative estimate only. Rates shown are approximate combined state and regional figures (non-resident reference). Actual liability requires individual analysis.
Moving to Germany, Sweden or elsewhere in the EU? The deferral option — and its traps
When deferral is available
If you relocate to an EU or EEA member state — including Norway, Iceland and Liechtenstein — or to Switzerland (provided there is effective tax information exchange with Spain), you may apply to defer payment of the exit tax for up to ten years. You must explicitly request this deferral within the filing deadline for your final Spanish income tax return as a resident. It is not automatic.
The three events that end the deferral early
⚠ When the deferred tax becomes immediately payable
- You sell or transfer the shares — by any means, including donation or inheritance.
- You move outside the EU/EEA — for example, relocating from Germany to Dubai or to Switzerland (if not covered by the exchange agreement).
- You fail to file the annual communication with the Spanish Tax Agency confirming that you still hold the shares and remain resident in the EU/EEA country.
The third point is where most problems arise in practice. Many taxpayers who obtain the deferral are never told they must file an annual communication with the AEAT confirming their continued ownership and EU/EEA residency. Missing a single filing can trigger immediate liquidation of the full deferred amount, plus interest from the date of departure. I have seen this happen to clients who genuinely believed everything was in order.
What assets are — and are not — caught by the exit tax?
| Asset type | Caught by Article 95 bis? | Note |
|---|---|---|
| Shares in a Spanish SL or SA | Yes | Primary target of the rule |
| Listed company shares | Yes | Included in total portfolio value |
| Investment funds / collective investment schemes | Yes | Expressly included in the law |
| Spanish property held directly (not through a company) | No | Taxed under non-resident income tax (IRNR) after departure |
| Cryptocurrencies | No | DGT Binding Ruling V0666-25 (April 2025) |
| Bank deposits and bonds | No | Not equity interests in entities |
| Pension plans | No | Taxed on withdrawal, not on departure |
This distinction matters significantly for Mallorca property owners. If part of your real estate is held directly in your own name — not through the SL — that portion does not generate exit tax on departure. It remains subject to Spanish non-resident taxation on future rental income and any eventual sale, but it does not create an immediate liability when you leave. Reviewing how your assets are structured before making any decision about residency can materially change the numbers.
Frequently asked questions
Spain does not send a warning letter. The tax crystallises the day you stop being a resident — whether or not you have the cash to pay it. Thirty minutes of planning before you sign anything in your next country is worth more than any amount of damage control afterwards.
Thinking about leaving Mallorca?
If you hold shares in a Spanish SL and are considering a change of residency, the analysis needs to happen before you act — not after. A 30-minute consultation is enough to understand whether you have a real exposure and what your options are.
Book a consultation — 30 min30-minute initial consultation: €200, VAT included.
You pay when you book, by card (Stripe), in the Cal.com calendar. You get an invoice. If I cannot take your matter, I refund the amount. How we use your data: privacy policy.
- Article 95 bis, Law 35/2006 (LIRPF) — current wording introduced by Law 26/2014 (BOE-A-2014-12327)
- Articles 121–123, Royal Decree 439/2007 (IRPF Regulations) — EU/EEA deferral and annual communication obligations
- Law 7/2024 of 20 December — amendment to savings income tax brackets (BOE-A-2024-26791)
- DGT Binding Ruling V0666-25 (April 2025) — exit tax and cryptocurrencies
- AEAT INFORMA Consultations 137260 and 137269 — thresholds under Article 95 bis
- Spain-UK Double Taxation Convention (BOE-A-2014-1117)
Last reviewed: June 2026