Tax on a company sale: holding companies and gains
M&A and Business Transfers

Tax on a company sale: holding companies and gains

BY TECNOCIM INNOVA   PUBLISHED ON 31 MAY 2026

# Tax on a company sale: capital gains, holding companies and tax neutrality

Selling a company can produce the largest capital gain of an owner's life, but it can also produce the largest tax bill if the deal is not structured well in advance. The difference between selling the shares directly as an individual and selling through a holding company is not an accounting nuance: it can mean the difference between paying savings-income rates of up to 30% under IRPF (Spanish personal income tax) and applying the 95% exemption in article 21 of the Ley del Impuesto sobre Sociedades, which leaves an effective tax rate of around 1.25% on the gain inside the company (Ley 27/2014, LIS; Cuatrecasas, 2025).

The problem is that these decisions can rarely be taken on the day of signing. Understanding how a sale is taxed in Spain, when a holding company makes sense and what the tax neutrality regime offers is what separates a well-planned deal from one where the Spanish Tax Agency (AEAT) takes an avoidable slice of the price. This guide walks through the three pillars of Spanish tax planning for a company sale in 2026.

How is the capital gain on a company sale taxed?

The tax treatment of a company sale depends first of all on who the seller is. If the shares are sold directly by an individual, the gain, that is, the difference between the sale price and the acquisition value, goes into the savings base of IRPF and is taxed on a progressive scale.

For 2025 and 2026 the savings base bands are as follows (Agencia Tributaria, 2025; Cuatrecasas, 2025):

Savings baseRate
Up to €6,00019%
€6,000 to €50,00021%
€50,000 to €200,00023%
€200,000 to €300,00027%
Over €300,00030%

The relevant change is that, since 1 January 2025, the top band has risen from 28% to 30% for the part of the savings base above €300,000 (Cuatrecasas, 2025). In a company sale of any size, practically the whole gain falls into the upper bands, so a marginal rate of 30% is the usual outcome for an individual shareholder.

When the seller is a company, for example a holding company that owns the shares, the logic changes completely: the gain is not taxed under IRPF but under the Impuesto sobre Sociedades (Spanish corporate income tax), and that is where the exemption in article 21 LIS comes in.

Are you preparing to sell your company? At Tecnocim Innova we design the right tax structure as part of our M&A and business transfers service, before you sit down to negotiate. Request a confidential assessment and see your real tax bill before you sign.

What tax advantages does a holding company bring to a sale?

A holding company is a company whose purpose is to own and manage shareholdings in other businesses. When it is the holding company, rather than the individual shareholder, that sells the stake in the subsidiary, the resulting gain may qualify for the double taxation exemption in article 21 LIS.

The advantages of a holding company in a sale come down to three requirements and one result. The requirements for applying the article 21 exemption are (Ley 27/2014, art. 21 LIS; Garrigues, 2024):

Once the requirements are met, 95% of the gain is exempt from the Impuesto sobre Sociedades. The remaining 5% is not exempt because the law treats it as the cost of managing the shareholding (article 21.10 LIS). Applying the general rate of 25% to that taxable 5%, the effective tax on the gain inside the holding company works out at around 1.25% (Cuatrecasas, 2025; Devesa Abogados, 2024).

The difference is stark. The same gain can be taxed at 30% in the hands of an individual or, where the owner is a holding company that meets article 21, at an effective rate of close to 1.25% at company level. The nuance worth understanding is that this exemption does not put the money in the shareholder's pocket: the cash stays inside the holding company. The efficiency lies in being able to reinvest those funds, in new businesses, property or financial products, without having gone through the top savings rate first. Personal tax would only arise later, if the holding company pays a dividend to the shareholder.

What is the tax neutrality regime and when does it apply?

This raises the obvious question: if a holding company offers those advantages, why not contribute the shares to one just before selling? The obstacle is that contributing the shares in your company to a holding company is itself a transaction that would generate a gain and immediate tax. The answer is the tax neutrality regime, set out in Chapter VII of Title VII of the LIS (Cuatrecasas, 2025; Iberley, 2024).

The tax neutrality regime allows corporate reorganisations, such as mergers, demergers, contributions of a line of business and share-for-share exchanges, to take place without the latent gains surfacing at the time of the transaction. It is not an exemption: it is a deferral. The gains do not disappear, they are postponed, because the shares received keep the original acquisition value and acquisition date (AEAT, 2024; Iberley, 2024).

In practice this lets an owner contribute their shares to a holding company through a share-for-share exchange without paying tax at that point, and then have the holding company, which now owns the stake with its original holding period respected, sell under article 21. The regime exists precisely so that tax does not dictate legitimate business reorganisation decisions.

The key requirement: valid economic reasons

The tax neutrality regime carries one essential condition: the transaction must respond to valid economic reasons, such as restructuring or rationalising the group's activities. If the Spanish authorities conclude that the main purpose of the transaction was to obtain a tax advantage, they can refuse to apply the regime (Uría Menéndez, 2024; Cuatrecasas, 2025).

This is where many improvised deals come unstuck. Setting up a holding company a few weeks before an already agreed sale, with no substance beyond the tax saving, is exactly the sort of arrangement the Spanish Tax Agency scrutinises. That is why tax planning for a sale has to start early, and why the business logic behind the structure has to be properly documented.

Asset deal or share deal: how it affects the tax bill

The structure of the transaction also determines the tax bill. In a share deal the shares or quotas of the company are transferred, and tax falls on the seller's gain under the rules above. In an asset deal it is the company itself that sells its business or its assets; the gain arises inside the company and is taxed under the Impuesto sobre Sociedades, and for the shareholder to receive the money a dividend or a later liquidation is needed, with tax of its own.

For the seller, a share deal is usually more tax efficient, above all where the article 21 exemption can be applied through a holding company. For the buyer, on the other hand, an asset deal can look more attractive, because it allows assets to be picked and contingencies left behind. This tension between interests is one of the central points of the negotiation, and it is usually settled during due diligence, where the tax and employment risks that shape the price and the final structure are quantified.

Tax planning starts with the valuation

A frequent mistake is to treat tax as the last step, when in fact it shapes from the outset how much the seller actually receives. The headline price agreed and the net amount that reaches the owner's hands can differ substantially depending on the structure chosen. That is why tax planning and the business valuation have to go together: only by knowing the real value of the business and the tax impact of each alternative can you negotiate with judgement.

The practical rule is simple: the tax decisions that save the most, such as setting up a holding company, contributing the shares under the neutrality regime and meeting the one-year holding period, all need time. Starting to plan when a buyer and a price are already on the table sharply narrows the room for manoeuvre.

Conclusion: plan the tax position before you sell

The tax treatment of a company sale in Spain comes down to three ideas. First: if an individual sells, the gain is taxed under IRPF at savings rates of up to 30% in 2026. Second: if a holding company that meets the requirements of article 21 LIS sells, 95% of the gain is exempt and the effective rate is around 1.25%. Third: the tax neutrality regime allows the structure to be reorganised into a holding company with no immediate tax, provided there is a valid economic reason and it is properly documented.

The practical conclusion is that the tax bill on a sale is decided months, and ideally years, before signing. If you are thinking about selling, the moment to review the structure is now, not when the offer arrives.

Design the tax structure of your sale with specialists. At Tecnocim Innova we build tax planning into the whole M&A and business transfers process, so that every euro of gain is taxed no more than it has to be. Talk to our team and start planning in good time.

This article is for general information and does not constitute individual tax advice. Whether each regime applies depends on the specific circumstances of the transaction and on the Spanish rules in force at the time of the transfer.

Related services

Request a free assessment

Free assessment for companies with revenue above €500,000

Get grant and tax deduction updates by email

Calls, deadlines and regulatory changes, once a month.

Get our latest updates

We respect your privacy. No spam.

holding company advantagestax on a company sale in Spaincapital gain on a company saleSpanish tax neutrality regimearticle 21 LIS
PreviousPost-merger integration (PMI): the 100-day plan that protects value
NextValuation multiples by sector: EV/EBITDA in industrial SMEs

Related articles

Financiado por la Unión Europea - Gobierno de España, Ministerio de Industria y Turismo - Plan de Recuperación, Transformación y Resiliencia - EOI Escuela de Organización Industrial
Programa Activa Industria 4.0Industria Conectada 4.0