Selling a company in Spain: how the sale of shares is taxed and what options exist
Selling a company is taxed very differently depending on whether you sell shares or assets. How the gain is calculated under personal income tax, how shares are valued, and the regimes that reduce the tax bill.
On this page
Selling a company is, for many business owners, the most important financial transaction of their lives, and its net result depends heavily on how it is structured for tax purposes. Selling the company's shares is not the same as selling its assets, and a seller who plans the deal well in advance is taxed very differently from one who closes it without having analysed it first. It pays to know the rules before sitting down to negotiate the price.
Selling the company or selling its assets: two different paths
The first decision is structural. In a share sale — a "share deal", buying the company itself — the seller transfers the shares or quotas and it is the seller, as an individual, who is taxed on the gain. In an asset sale — an "asset deal", buying the business — the company itself sells its assets and is taxed on the result under corporate income tax, after which the shareholder still has to extract the money from the company, triggering a second layer of tax. Each structure has very different tax consequences for seller and buyer, and choosing between them is usually the first point of negotiation.
How is the gain taxed under personal income tax?
When the seller is an individual transferring shares or quotas, the gain is a capital gain included in the savings tax base of Spanish personal income tax (IRPF). That gain is the difference between the transfer value and the acquisition value of the shares, and it is taxed under the progressive savings scale, which runs from 19% to 30% (the top rate, since 1 January 2025, applying to the portion above 300,000 euros). For shares in unlisted companies, article 37.1.b) of the Personal Income Tax Act lays down valuation rules that prevent declaring a price below market value: unless it is proven that the agreed price matches what independent parties would have agreed, the transfer value cannot be lower than the higher of two figures.
For example, on the sale of 100% of a company whose latest closed balance sheet shows net equity of 600,000 euros, and whose results over the last three financial years have averaged 150,000 euros a year, the Personal Income Tax Act requires comparing two figures: the net equity itself (600,000 euros) and the result of capitalising that average result at 20%, that is, 150,000 euros divided by 0.20, which comes to 750,000 euros. The minimum transfer value for tax purposes would be the higher of the two: 750,000 euros, even if the price agreed in the sale contract were lower, unless it is proven that this price is the one independent parties would have agreed.
What regimes reduce the tax bill?
Spanish law provides several ways to ease the cost. The tax-neutrality regime for corporate restructuring, set out in the Corporate Income Tax Act, allows the company to be reorganised before the sale — through mergers, spin-offs or share-for-share exchanges — deferring taxation when the transaction is driven by valid economic reasons and not purely tax ones.
At company level, the exemption on dividends and capital gains from significant shareholdings under article 21 of the Corporate Income Tax Act can apply to the sale of a subsidiary, but it requires two cumulative conditions: a holding of at least 5% of the subsidiary's capital or equity, and that holding must have been held uninterruptedly for at least the year before the transfer, because on the sale of the holding this condition must be met on the very day of the transfer. Without both conditions, the gain on selling the subsidiary is taxed with no exemption at all. And for older business owners, personal income tax rules provide for an exemption on the gain when the proceeds from the sale are reinvested in a life annuity, within the legally established limits and requirements.
Why plan ahead?
The difference between a well-planned sale and an improvised one can be very significant in tax terms. Many of the options above require conditions on holding periods, ownership percentages or economic motivation that cannot be improvised at closing: they have to be prepared months — sometimes years — in advance, because the requirement to hold 5% for a year, for instance, cannot be met retroactively. Structuring the company, documenting the valuation and choosing the deal vehicle are decisions that determine the final tax bill and that must be taken before signing.
How we help with the tax side of selling a company at RCM Legal
There are two costly mistakes: closing the deal without having consciously decided between selling shares or selling assets — accepting the structure the buyer proposes even when it harms the seller — and neglecting the valuation of unlisted shares, which can trigger a tax audit and a higher tax bill than expected. The tax bill on a sale is not optimised on signing day, but in the months beforehand.
At RCM Legal we plan and execute the sale of companies and shareholdings from both its tax and corporate angles: we choose the structure, prepare any prior reorganisation that is needed and document the valuation. As a firm providing tax and corporate advice in Murcia, if you are thinking of selling your company, tell us about the deal and we will structure it so that you keep the maximum of the price you have built.
Your case, in our lawyers’ hands.
If your situation resembles this analysis, tell us about it and we will explain how we would approach it.
Tell us your caseNewsletter
Get our analysis every week.
ALSO IN Fiscal

