The taxation of a company sale is probably the aspect that costs the most money when planned late and saves the most when planned on time. The difference between a tax-optimised transaction and an improvised one can exceed hundreds of thousands of euros — sometimes more than a million — in a Spanish middle-market deal.
This guide does not replace a tax adviser, who is essential. But it aims to ensure the business owner arrives at that first meeting with their adviser knowing what questions to ask, what structures exist, and what mistakes to avoid.
The general framework: how a sale is taxed
When you sell your company, you generate a capital gain or loss equal to the difference between the sale price and the acquisition value. How that gain is taxed depends fundamentally on who sells: a natural person or a company.
Sale as a natural person (personal income tax)
If the shares are held in your personal name and you sell directly, the gain is taxed in the savings base of personal income tax at the following rates (updated for 2026):
| Gain bracket | Tax rate |
|---|
| Up to €6,000 | 19% |
| €6,000 to €50,000 | 21% |
| €50,000 to €200,000 | 23% |
| €200,000 to €300,000 | 27% |
| Over €300,000 | 28% |
Practical example. You sell your company shares for €4,000,000. Your acquisition value (share capital plus premiums) was €300,000. The capital gain is €3,700,000. The approximate tax will be around €1,010,000 (28% on most of the gain). That is, for every €4 you receive, you hand over more than €1 to the tax authority.
Sale through a holding company
If the shares of your operating company are held by a holding company, the gain arises in the holding, not in your personal estate. If the holding meets the requirements of Art. 21 of the Corporate Tax Act, the gain from selling the subsidiary may be exempt.
The main requirements are:
- Minimum 5% shareholding in the company being sold (or acquisition value exceeding €20 million).
- Minimum one-year holding period for the shares.
- The subsidiary must have been subject to a profits tax of at least 10% (automatically met in Spain).
If these requirements are satisfied, the gain is exempt at the holding level. The money remains in the holding and is not taxed until you distribute it as a dividend (at 19-28% personal income tax) or carry out another transaction. This gives you control over when and how much you pay.
Key advantage: You can reinvest 100% of the sale price in new investments without having paid tax. If your plan is to reinvest — in property, other companies, or financial assets — the holding lets you do so tax-efficiently.
Share sale vs asset sale
The deal structure — whether you sell the shares of your company or the assets of the business — has radically different tax implications.
Share purchase (share deal)
- Seller: Taxed on the capital gain as described above.
- Buyer: Cannot amortise goodwill (the difference between the price paid and the book value of assets) for tax purposes. This reduces the deal’s tax attractiveness for the buyer.
- Transfer tax: Exempt from Transfer Tax in most cases (Art. 108 Securities Market Act), with specific exceptions.
Asset purchase (asset deal)
- Seller (the company): The gain from selling assets is taxed at 25% Corporate Tax. Then, if you want to extract the money from the company, you pay an additional 19-28% personal income tax on the dividend. The combined tax burden can exceed 40%.
- Buyer: Can amortise goodwill for tax purposes, reducing their tax base for the following years. This makes an asset purchase more tax-attractive for the buyer.
- VAT/Transfer tax: Asset sales are subject to VAT (21%) or exempt if transferred as an autonomous economic unit, in which case they may be subject to Transfer Tax.
The negotiation
This tax asymmetry — what benefits the seller hurts the buyer and vice versa — is one of the most important negotiations in the deal. The buyer prefers to buy assets and will pay a price reflecting their tax advantage. The seller prefers to sell shares. The final price must reflect a balance between both positions.
The 95% family business reduction
Spain offers an extraordinary tax advantage for family business transfers: a 95% reduction in the taxable base for Inheritance and Gift Tax.
To qualify, the company must meet the family business requirements for Wealth Tax purposes (Art. 4.8 of the Wealth Tax Act):
- Genuine economic activity. The company must conduct a real business, not be a mere asset-holding entity.
- Minimum 20% family shareholding. The family (including up to second-degree relatives) must hold at least 20% of the capital.
- Remunerated management functions. At least one family member must exercise management functions in the company and receive remuneration exceeding 50% of their employment and business activity income.
If these requirements are met, transfer by inheritance or gift benefits from the 95% reduction, which can mean savings of hundreds of thousands of euros. The acquirer must maintain the company for a minimum period (10 years under national law, though this varies by autonomous community).
This advantage means that, in many cases, a lifetime gift to heirs is more tax-efficient than a sale to a third party — provided the heirs want and are able to manage the company.
Advance planning: the decisive factor
Most tax optimisation strategies require time. Not weeks, but years.
Establishing a holding. If you currently hold shares in your personal name and want to benefit from the Art. 21 exemption, you need to establish a holding and contribute the shares. This process — the non-monetary contribution — has its own tax implications and must be done with specialist advice. And the holding must have substance: staff, premises, genuine management activity.
Corporate reorganisations. Mergers, demergers, share exchanges — reorganisation transactions that optimise the tax structure are protected by the tax neutrality regime (Chapter VII, Title VII of the Corporate Tax Act), provided they have a valid economic purpose (not merely tax-driven).
Family protocol. If succession is an option, the family protocol must address tax aspects: who inherits, under what conditions, how family business requirements are met, what happens if an heir wants to sell.
The 2-3-year rule. As a general rule, any structure established less than two years before the sale will face greater scrutiny from the Tax Authority. Three years is a more comfortable margin. Five years is ideal.
Earn-out and its tax treatment
The earn-out is a common mechanism in M&A transactions whereby part of the price is contingent on achieving certain targets (revenue, EBITDA, client retention) during a period following closing.
The tax treatment of the earn-out has generated considerable doctrinal and case law debate. The prevailing position of the Spanish Tax Authority (binding rulings from the DGT) is that the earn-out is treated as additional capital gain in the tax year in which it is received, taxed at the savings income rates in force at that time.
The practical implications are significant:
- No tax until you collect. If the earn-out is paid in three annual instalments, the tax is spread over three tax years.
- The rate may change. If there are legislative changes between closing and collection, the applicable rate may differ.
- No collection, no tax. If the targets are not met and the earn-out does not materialise, there is no taxable event.
For the seller, the earn-out carries an implicit additional cost: uncertainty. You do not know how much you will collect or when, which complicates subsequent tax planning. For this reason, many sellers prefer structures with a fixed price or short-duration earn-outs with clear, measurable objectives.
In our experience, earn-out negotiation is one of the points where the most value is lost due to inadequate tax advice. An adviser who understands both the mechanics of the earn-out and its tax treatment can design structures that protect the seller without excessively penalising the buyer.
Withholdings in cross-border transactions
In share sales between individuals resident in Spain, there is no withholding obligation. However, if the seller is a non-resident, the buyer must withhold 19% of the price as an advance payment of Non-Resident Income Tax (IRNR).
In transactions with an international component — increasingly common in the Spanish middle market, where funds and family offices from other countries are active buyers — the tax treatment becomes significantly more complex with the application of double taxation treaties, ATAD regulations, and international reporting obligations (DAC6, CRS).
If your buyer is an international fund or a foreign company, you need a tax adviser with experience in international transaction taxation. The implications can affect both the net price you receive and the reporting obligations you assume.
Wealth Tax and Solidarity Tax
An aspect many sellers forget until it is too late: after the sale, your net wealth may exceed the Wealth Tax thresholds. If before the sale your shares were exempt under the family business regime (Art. 4.8 Wealth Tax Act), after the sale that liquid wealth will be taxed in full.
Depending on your autonomous community, Wealth Tax can represent between 0.2% and 3.5% annually on your net wealth. Added to this is the Temporary Solidarity Tax on Large Fortunes for estates exceeding 3 million euros.
Post-sale planning — where to reside, how to structure your wealth, which investment vehicles to use — must be integrated into the overall tax planning of the transaction, not left until after closing.
Common tax mistakes
In our experience in the Spanish middle market, these are the tax mistakes that cost the most money:
Not planning. The business owner who decides to sell and starts thinking about tax after signing the letter of intent has lost most of their options.
Late holding formation. Setting up a holding three months before the sale not only provides no tax benefit but may be challenged as an abuse of law.
Ignoring the shares vs assets structure. Accepting an asset sale without negotiating compensation for the tax disadvantage can cost more than 15% of the price.
Not meeting family business requirements. Losing the 95% reduction because a family member stopped receiving their management salary or because the family’s shareholding dropped below 20% due to a capital increase is an avoidable mistake.
Not documenting the acquisition value. If you cannot prove what you paid for the shares, the Tax Authority may consider the acquisition value to be zero, maximising the capital gain and the tax.
Forgetting Transfer Tax on special transfers. Certain share transfers — when the company owns real estate representing more than 50% of assets — may be subject to Transfer Tax at 6-10% instead of being exempt.
The role of the tax adviser
A good tax adviser specialising in transactions is not an expense: it is the highest-return investment in the entire sale process. Their cost — between €15,000 and €50,000 for a middle-market deal — is minimal compared to the hundreds of thousands they can save.
What a good transaction tax adviser should do:
- Analyse your current personal and corporate tax position.
- Propose the optimal tax structure well in advance.
- Coordinate with your regular tax adviser and the transaction lawyer.
- Review the sale and purchase agreement for clauses with tax implications.
- Advise on post-sale wealth management.
Our recommendation
At Blue Mountain Capital we are not tax advisers but investors. Yet we buy companies and know that taxation is one of the variables that most affects the net price the seller receives. That is why we always recommend the business owner start planning tax matters at least two to three years before initiating the sale process.
If you are thinking of selling and want to understand how the deal structure can affect what you receive after taxes, let us talk. We are not tax advisers but we can help you understand the implications from the buyer’s perspective.
See also: How much is my company worth?, How to sell a company in Spain: essential guide, The tax adviser in a company sale.