Wealth planning

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

By José Ángel Soria Sánchez, lawyer (ICAIB 5971) · Published: · Updated:

Empty room with a floor-to-ceiling window over a Mediterranean harbour full of sailboats
If you have lived in Mallorca for more than ten years and own shares in a Spanish SL, Spain may charge you tax on gains you have never actually received — the moment you stop being a resident. Article 95 bis of the Spanish Income Tax Law applies regardless of your nationality, and most foreign property owners never see it coming.
José Ángel Soria Sánchez Lawyer — ICAIB 5971 | Wealth Planning and Holding Structures, Mallorca Published: June 2026
Applicable law Article 95 bis, Law 35/2006 (Spanish Personal Income Tax — LIRPF), introduced by Law 26/2014 of 27 November (BOE-A-2014-12327). Savings income tax brackets amended by Law 7/2024 of 20 December (BOE-A-2024-26791), effective 1 January 2025. Maximum savings rate: 30% on gains above €300,000.

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.

I have sat with clients who had already signed a rental contract for their new flat in Munich. Nobody had run the numbers on what leaving was going to cost them.

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:

1
Residency condition You must have been a Spanish tax resident for at least 10 of the 15 tax years immediately preceding your departure. The years do not need to be consecutive.
2
Financial threshold A — total shareholding value above €4,000,000 The combined market value of all shares and equity interests you hold, across all entities, exceeds four million euros.
3
Financial threshold B — 25% stake in a company worth more than €1,000,000 You hold more than 25% of a single Spanish SL and the market value of your specific stake exceeds one million euros. Only that participation is taxed, not your entire portfolio. This threshold is far more accessible than it sounds.
Practical note for Mallorca property owners A German or Scandinavian resident who holds 50% or 60% of a Spanish SL with two Mallorca properties — a flat in Palma and a house in the countryside — can very easily reach €1,000,000 in the value of their specific stake, even if the total company value stays below €4,000,000. Threshold B captures owners who do not think of themselves as "high net worth individuals."

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

  1. You sell or transfer the shares — by any means, including donation or inheritance.
  2. You move outside the EU/EEA — for example, relocating from Germany to Dubai or to Switzerland (if not covered by the exchange agreement).
  3. 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.

If you are returning to the UK British residents face an additional layer of complexity. Since April 2025, the UK has introduced significant changes to how it taxes returning residents, including a new four-year foreign income and gains regime and substantially reduced capital gains tax allowances. Gains taxed in Spain on departure may also be subject to UK tax on arrival, with treaty relief available but not always sufficient to eliminate double exposure. If you are British and planning to leave Mallorca, the analysis should cover both jurisdictions simultaneously.

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

I have lived in Mallorca for 12 years. Does the exit tax definitely apply to me?
Residency duration is only one of two conditions. You also need to meet at least one of the financial thresholds: either a combined shareholding value above €4,000,000, or a stake of more than 25% in a single company whose value in your hands exceeds €1,000,000. If your Spanish SL holds two or three Mallorca properties that have appreciated significantly, it is worth running the numbers — many owners are surprised to find they cross the €1,000,000 threshold more easily than expected. If you arrived under the Beckham Law regime, those years may not count towards the ten-year requirement.
I am moving to Germany. Can I delay paying the exit tax?
Yes. A move to Germany — or any other EU or EEA country — qualifies for deferral of up to ten years under Article 95 bis.6 LIRPF. However, the deferral is not automatic: you must request it explicitly within the filing deadline for your final Spanish income tax return. Once granted, you must also file an annual communication with the Spanish Tax Agency each year confirming that you still hold the shares and remain resident in the EU or EEA. Failing to file that annual communication can end the deferral immediately and make the full amount payable with interest.
What happens if I move back to Spain within five years?
If you return to Spain as a tax resident within five years of your departure, and you have not sold the shares in the meantime, the exit tax liability is extinguished. This is the only scenario in which the tax, once triggered, can be cancelled rather than just deferred. It is relevant for temporary relocations or situations where plans change. However, if you sold the shares during the period abroad, or if you moved outside the EU/EEA while deferral was in place, the tax will already have crystallised and cannot be reversed.
My Spanish SL holds Mallorca properties. Is the exit tax calculated on the property values?
The exit tax is calculated on the market value of your shares in the SL, not directly on the underlying properties. For a non-listed company, Spanish law determines market value based on the company's net asset value — essentially the value of its assets minus its liabilities. If the SL holds Mallorca real estate that has appreciated, that appreciation flows through to the share value and therefore into the exit tax base. This is why Mallorca property holding companies are particularly exposed: fifteen years of rising prices in the Balearic market translate directly into a larger latent gain.
How much notice do I need to plan before leaving Spain?
The earlier the better, but as a practical minimum, 18 to 24 months before the intended departure date. Planning within that window allows time to review the structure of your assets, assess whether any restructuring makes sense, determine whether deferral is the right option and understand the annual obligations it creates, and coordinate with advisers in your destination country — particularly relevant if you are returning to the UK, Germany or a Nordic country that has its own rules on incoming residents with foreign assets.
I am British. Is the exit tax the only issue I need to think about?
No. Since April 2025, the United Kingdom has significantly changed how it taxes people returning after a period abroad. The new four-year foreign income and gains regime, changes to capital gains tax allowances, and a new residence-based inheritance tax system all interact with what Spain charges on departure. In some scenarios, gains taxed by Spain on the way out are also partially taxed by the UK on the way in. The Spain-UK double tax treaty provides some relief, but it does not always eliminate the overlap. British residents leaving Mallorca should take advice that covers both jurisdictions before making any decisions.
Can I reduce the exit tax bill by restructuring my assets before leaving?
In some cases, yes — but only with sufficient lead time and only through genuinely substantive changes, not cosmetic ones. The Spanish Tax Agency scrutinises restructurings that take place shortly before a change of residence. Options depend heavily on the individual profile: what is held inside the company versus directly, how long you have held the shares, the destination country, and whether deferral is a viable long-term solution. There is no universal fix. What works well for one structure can create new problems for another. The starting point is always an honest calculation of your current exposure.

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 min

30-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.

Sources
  • 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

Book a consultation · €200