Jacob Salama Tax Lawyer
Jacob SalamaInternational Tax Lawyer · Spain
M&A · Capital Gains

Selling Your Business from Spain: How to Minimise the Tax Hit

📅 May 2026 ✍️ Jacob Salama 🕐 9 min read

Selling a company while resident in Spain can generate one of the largest IRPF charges an individual will ever face. A business built over a decade from a modest investment and sold for several million euros may generate millions in capital gains — all taxed as savings income at rates of up to 28%. Understanding the rules, and the planning options available before a sale, is essential for any business owner contemplating an exit.

The Basic Tax Charge: CGT at 19–28%

For a Spanish tax resident selling shares in a company, the gain (sale price minus the acquisition cost of the shares, adjusted for allowable costs) is taxed as savings income (base del ahorro) at the following rates:

For a company sold for €5 million with a nominal acquisition cost of €10,000, the taxable gain is approximately €4,990,000. The resulting IRPF liability would be approximately €1,377,000 — payable in the tax year of the sale.

Timing the sale across the year-end: Where the sale process permits, structuring completion to straddle a tax year — with part of the consideration in one tax year and part in the next — allows the highest CGT brackets to be applied twice over, potentially reducing the marginal rate on some of the consideration. This requires careful negotiation of the completion timeline.

The Exit Tax Problem: Can You Leave Before the Sale?

The most commonly explored pre-sale strategy is: can I move to a lower-tax country before completing the sale? In theory, yes — but Spain's exit tax under Article 95bis LIRPF substantially limits this option.

Exit tax applies when a Spanish tax resident ceases to be a Spanish tax resident, if they hold:

Where these thresholds are met, the AEAT charges CGT on the deemed disposal of the shares at market value on the date of departure — as if the shares had been sold immediately before leaving Spain. For an EU or EEA move, the payment of the exit tax can be deferred (in instalments over 5 years or until actual sale), but the obligation is created at departure. For a non-EU move (e.g., to Dubai or the UK post-Brexit), the exit tax is due immediately with no deferral.

Scenario Exit Tax Due? When Payable Planning Notes
Sale while still Spanish resident No exit tax CGT due in year of sale CGT at 19–28%; no exit complexity
Move to EU/EEA before sale (high threshold) Yes (if thresholds met) Deferred (up to 5 years or until sale) EU move defers but does not eliminate
Move to non-EU/EEA (UAE, UK, etc.) before sale Yes (if thresholds met) Immediately on departure Immediate cash tax on unrealised gain
Move before exit tax thresholds are met No — Must time residency exit before value reaches threshold

The 4-Year Shadow Residency Risk

Even after formally leaving Spain, the AEAT has power under the LIRPF to treat an individual as still resident in Spain for tax purposes if their departure appears abusive. The practical implications: the AEAT can challenge a change of residence if the individual maintains a permanent home, family, or principal economic activity in Spain. For business owners who remain directors of or active in a Spanish company after nominally moving abroad, the risk of being treated as a continued Spanish tax resident is significant.

Earn-Outs and Instalment Sales

Many M&A transactions include earn-out provisions — additional consideration paid contingent on future performance. Spanish tax treatment of earn-outs is complex:

The Empresa Familiar Exemption: Does It Help on Sale?

The empresa familiar regime offers significant IP (Wealth Tax) exemption and up to 95% ISD reduction for qualifying family business shares passed on death or by gift. However, it does not provide CGT relief on an outright sale. A business owner who sells their qualifying family business shares at arm's length to a third party still pays full CGT at savings-income rates — the empresa familiar benefits apply only to transfers by gift or inheritance, not to commercial sales. This is a common misconception.

Restructuring Before Sale: Merger Neutrality Regime

Spain's corporate tax neutrality regime (Régimen especial de fusiones, escisiones, aportaciones de activos y canje de valores — Articles 76 et seq. of the Ley del Impuesto sobre Sociedades) implements the EU Merger Directive. Under this regime, certain corporate reorganisations — mergers, demergers, asset contributions, and share exchanges — can be carried out at book value without triggering immediate corporate tax on any gain. For individual shareholders exchanging shares in a company for shares in a holding company (the canje de valores), the IRPF gain on the exchange can also be deferred under Article 80 LIS.

Pre-sale restructuring can allow a business owner to:

The neutrality regime requires a genuine economic motive beyond tax avoidance — the AEAT scrutinises pre-sale restructurings carefully, particularly where the reorganisation is completed shortly before a known sale. A period of at least one year between restructuring and sale is generally considered prudent.

Planning a Business Exit from Spain?

The difference between good and poor pre-sale planning can be hundreds of thousands of euros. Jacob Salama advises founders and shareholders on Spanish CGT planning, exit tax analysis, and cross-border M&A tax.

Book a Consultation →

Disclaimer: This article is for general informational purposes only and does not constitute legal or tax advice. Spanish tax law changes frequently. Always consult a qualified tax lawyer before making any decisions. SALAMA LEGAL SLP — Colegiado nº 11.294 ICAMálaga.

Frequently Asked Questions

Capital gains on the sale of company shares by a Spanish tax resident are taxed as savings income (base del ahorro) at rates of 19% to 28%. The rates are: 19% on the first €6,000 of gain; 21% on €6,001–€50,000; 23% on €50,001–€200,000; 27% on €200,001–€300,000; and 28% on gains above €300,000. These rates apply to the net gain — the sale price minus the acquisition cost of the shares (and any direct acquisition costs such as stamp duty or legal fees paid at the time of purchase). The gain is reported in the IRPF return for the year the sale completes.
Only if your shareholding does not trigger exit tax under Article 95bis LIRPF. Exit tax applies if: (a) your total shareholding gain exceeds €4,000,000, or (b) you hold 25% or more of a company and the gain on that stake exceeds €1,000,000. If either threshold is met, moving to an EU/EEA country triggers exit tax — but payment can be deferred (up to 5 years or until actual sale). Moving outside the EU/EEA (e.g., to the UK post-Brexit, UAE, or USA) triggers immediate payment. If your shareholding is below the exit tax thresholds, an earlier move to a nil-CGT jurisdiction may be effective, but the AEAT may challenge the move as abusive if it occurs shortly before a known sale and ties to Spain remain.
The tax treatment depends on whether the earn-out amount is determinable at completion. If the total consideration (including maximum earn-out) is ascertainable, Spain taxes the full amount in the year of sale. If the earn-out is genuinely contingent and the amount cannot be calculated at completion, subsequent earn-out payments are generally taxed as capital gains in the year received (under the AEAT's evolving interpretation of Art. 14 LIRPF). Seller financing on fixed payment terms qualifies as an instalment sale (operaciones a plazos) and allows the gain to be recognised proportionally over the payment period — a significant planning advantage for large transactions.
Spain does not have a general reinvestment exemption for CGT on share sales equivalent to the UK's Business Asset Disposal Relief or the US's like-kind exchange rules. The main reinvestment exemption in Spain (for individuals) applies to the sale of a habitual residence — not to business assets or shares. However, if a share sale produces a loss (net of other gains in the year), those losses can offset other capital gains in the same year or be carried forward for four years. Strategic timing of share sales alongside other disposals can use loss offsets to reduce the effective rate.
The merger neutrality regime (Régimen especial de fusiones, Arts. 76+ LIS, implementing the EU Merger Directive) allows certain corporate reorganisations — mergers, demergers, contributions of assets, and share exchanges — to take place at book value without triggering immediate corporate or individual tax. For a founding shareholder, exchanging their shares for shares in a new holding company (canje de valores) can be done tax-neutrally, deferring the IRPF gain on the original shares until the holding company shares are sold. This can enable pre-sale structuring such as introducing a holding company, separating business lines, or aligning ownership structures. The regime requires a genuine economic motive beyond pure tax saving, and the AEAT scrutinises transactions carried out shortly before a known sale — typically, a spacing of at least 12 months between the reorganisation and the sale is advisable.
Ask a question