When a business owner receives an offer to sell their business, one of the most important tax decisions must be made before the price is even agreed: are we going to sell the company’s shares or will the company itself sell its assets and business?
The sale of shares or company assets can produce very different economic outcomes for seller and buyer, even where both are negotiating the same business at an apparently similar price.
At Barcelona Tributario, we are tax lawyers specialising in corporate transactions and Tax Law in Barcelona. Before structuring a sale and purchase, we analyse how much the seller would actually receive after tax in each scenario and the tax consequences of the alternative requested by the buyer.
Quick answer: in a share sale, the shareholder sells the company and receives the price for their shares directly. In an asset sale, it is normally the company that sells, and the money remains within it. Therefore, before choosing a sale of shares or company assets, we must calculate not only the tax on the first transaction, but also what happens to the money afterwards and how much ultimately reaches the owner.
Two different ways to sell a company
Share sale: we sell the company
If we own a private limited company, we can sell our shares to the buyer.
Before signing any transaction, find out exactly how much tax you will pay. Our tax lawyers in Barcelona will analyse your case and tell you which structure — a share sale or an asset sale — is more beneficial for you.
The company continues to exist exactly as before. It retains its assets, employees, contracts, rights and obligations, but its owner changes.
The buyer takes control of a company that also retains its tax, employment, corporate and contractual history.
For this reason, a share sale is usually accompanied by due diligence and a contract containing representations, warranties and potential indemnity mechanisms for contingencies arising before completion.
Asset sale: the company sells the business
In an asset sale, the company itself is not necessarily sold.
The company may transfer, for example:
- Machinery.
- Inventory.
- Brand.
- Customer portfolio.
- Contracts.
- Real estate.
- Equipment.
- Goodwill.
- Other elements required to carry out the business activity.
The price initially goes into the selling company.
This detail is crucial because the shareholder has not personally received that money.
If I am an individual and sell my shares, what taxes do I pay?
When an individual who is tax resident in Spain sells shares in a company, the difference between the tax acquisition value and the transfer value may generate a capital gain.
As a general rule, this gain is included in the savings income tax base for personal income tax purposes.
Currently applicable savings income tax rates
The scale currently reaches the following combined rates:
- 19% up to EUR 6,000.
- 21% between EUR 6,000 and EUR 50,000.
- 23% between EUR 50,000 and EUR 200,000.
- 27% between EUR 200,000 and EUR 300,000.
- 30% above EUR 300,000.
This does not mean that an eight-figure sale is taxed entirely at 30%. The scale is progressive, and each rate applies to the relevant portion of the savings income tax base.
We must calculate the acquisition value correctly
It is not enough to deduct the initial share capital from the sale price.
We must reconstruct contributions, capital increases, subsequent acquisitions, prior transfers and other elements that may affect the tax value of the shares.
What happens if the shares are sold by a holding company?
The situation changes significantly where the interest in the operating company is not held directly by the business owner, but by another company.
Article 21 of the Spanish Corporate Income Tax Act provides for an exemption on certain income arising from the disposal of shareholdings.
Minimum shareholding
As a general rule, we must verify that the selling company holds at least a 5% interest in the company being sold.
Holding period
We must also verify the statutory holding-period requirement, which generally requires one year.
General 95% exemption
Where the conditions under Article 21 apply, the exemption is generally reduced by 5% for management expenses, so in many cases reference is made to an effective exemption of 95% of qualifying income.
However, we must always review the specific exceptions and limitations applicable to the transaction.
The former alternative EUR 20 million requirement is no longer the rule
For years, an alternative existed that allowed access to the regime where the acquisition value exceeded EUR 20 million, even if the 5% threshold was not met.
That regime was transitional and limited to certain older shareholdings, and its transitional period ended for tax periods starting in 2025.
Therefore, in a transaction contemplated in 2026, we should not automatically rely on the former EUR 20 million rule.
Tax treatment where the company sells the assets
In a sale of shares or company assets, this distinction is one of the most important.
If we sell assets, it is normally the company that earns the income.
First level of taxation: Corporate Income Tax
The company must calculate the taxable result arising from the disposal of the assets.
The general Corporate Income Tax rate remains 25%, although different rates currently apply to certain entities depending on their turnover and other circumstances.
For example, for tax periods beginning in 2026, specific transitional rates apply to certain micro-enterprises and small companies.
For this reason, we do not recommend automatically applying a 25% rate without reviewing the company’s characteristics.
The money still belongs to the company
After selling the business, we may have a company with a significant amount of cash, but that money still belongs to the company.
If the shareholder wants to transfer it into their personal estate, we will need to consider a second transaction.
Potential second level of taxation
Depending on how the funds are extracted, further tax consequences may arise through:
- Dividends.
- Capital reductions.
- Liquidation of the company.
- Other corporate transactions.
This is where an asset sale can create a very significant difference compared with a direct sale of shares by an individual.
Conceptual example: why we must consider the final net proceeds
Let us assume we receive an offer for a business.
In scenario A, the buyer acquires our shares and the shareholder receives the price directly.
In scenario B, the company sells its assets. The company is taxed on the income generated and we must then consider how to transfer the funds to the shareholder.
We cannot simply compare “30% personal income tax versus 25% Corporate Income Tax”.
That calculation would be incomplete.
We must model all taxes in order to establish how much money is ultimately available to the seller.
VAT on an asset sale
The individual sale of certain business assets may be subject to VAT.
However, there is a very important exception.
Transfer of an independent economic unit
Article 7.1 of the Spanish VAT Act provides that no VAT is chargeable where a set of elements is transferred that constitutes, or may constitute, an independent economic unit capable of carrying out a business or professional activity using its own resources.
Therefore, the sale of a complete operating business should not be analysed in the same way as the separate sale of a machine, vehicle or property.
We must examine exactly what is being transferred
To determine the VAT treatment, we need to know whether the transfer includes, among other elements:
- Staff.
- Contracts.
- Customers.
- Equipment.
- Inventory.
- Licences.
- Brand.
- Real estate.
The description used in the contract does not by itself determine the tax treatment.
What happens if the company owns property?
Real estate can significantly change the analysis of a sale of shares or company assets.
Direct sale of the property
We must analyse whether the transaction is subject to and not exempt from VAT, whether an exemption can be waived, or whether Transfer Tax applies.
Stamp Duty may also apply where its requirements are met.
Transfer Tax in Catalonia
Since 2025, Catalonia has no longer had a single fixed general rate of 10% for every property.
In 2026, the general Transfer Tax scale for real estate is progressive: it starts at 10% and reaches 13% for higher-value bands.
There are also specific rates for certain residential acquisitions.
For this reason, in a corporate transaction involving property, we must calculate the real estate tax treatment separately.
Does buying shares always avoid Transfer Tax on the property?
We should not state this categorically.
The transfer of securities is generally exempt from VAT and ITPAJD.
However, securities market legislation provides for an anti-avoidance exception in certain transactions where securities are transferred in order to avoid the tax that would have applied to a transfer of real estate.
For this reason, a company with significant real estate assets requires a specific analysis.
Why buyers and sellers often prefer different structures
This conflict arises constantly in a sale of shares or company assets.
The seller may prefer to sell shares
Especially where the seller is an individual, it may be preferable to receive the price directly and avoid the money first being taxed within the company and then again when extracted from it.
The buyer may prefer to acquire assets
The buyer may wish to select exactly what they acquire and avoid certain historical contingencies of the company.
In addition, the acquired assets will have the tax value corresponding to the acquisition and may be depreciated where permitted by legislation.
Buying shares means taking on the existing company
The buyer will need to assess:
- Tax risks.
- Debts.
- Litigation.
- Contracts.
- Employment liabilities.
- Financing.
- Regulatory contingencies.
This explains the importance of due diligence, contractual warranties and, in certain transactions, price retentions or escrow accounts.
Tax is also part of the price negotiation
We should not regard the tax structure as something to review only once the entire transaction has already been agreed.
Every euro not planned for in time can become an avoidable tax burden. Request an initial consultation with our team specialising in business transfers and find out how to optimise your transaction legally.
If the buyer requires an asset sale and this generates a higher tax cost for the seller, that difference may form part of the commercial negotiation.
Likewise, if the seller wants a share sale, the buyer may require greater protection against prior contingencies.
For this reason, we recommend analysing the sale of shares or company assets before signing a letter of intent that effectively finalises the structure.
Can we remove a property from the company before selling it?
In some transactions, the buyer wants to acquire the operating business but not certain properties, investments or other assets.
A prior reorganisation may be considered, but it should not be improvised immediately before the sale.
Demerger transactions and other restructuring operations
The Spanish Corporate Income Tax Act provides for a special tax-neutrality regime for certain restructuring operations.
Its application is subject to requirements and we must analyse, among other issues, whether valid economic reasons exist.
We cannot assume that separating a property from the company immediately before selling it will automatically be tax neutral.
The timing of planning matters
The more advanced the sale negotiations are, the more limited our ability may be to modify the structure without creating tax or corporate risks.
Earn-out: where part of the price depends on the future
It is common for the buyer to pay a fixed amount on completion and a further amount based on subsequent results.
For example:
- Future revenue.
- EBITDA.
- Retention of certain customers.
- Achievement of certain milestones.
These clauses must be analysed from a tax perspective together with the contract.
We must also clearly distinguish the price for the shares from any remuneration for the seller’s subsequent work or services.
Poor drafting can give rise to a dispute over the tax characterisation of certain payments.
What happens if the seller is not resident in Spain?
The seller’s tax residence is fundamental.
A gain obtained by a non-resident may be subject to Non-Resident Income Tax where, under domestic law, it is considered to arise in Spain.
Capital gains on transfers subject to Non-Resident Income Tax are generally taxed at 19%, without prejudice to exemptions and the provisions of the applicable double tax treaty.
The treaty may alter the outcome
We must always check the treaty between Spain and the seller’s country of residence.
The rules may differ where the company derives most of its value from property located in Spain.
What if I am considering changing my residence before selling?
A genuine change in tax residence may alter the treatment of a future transaction, but it must be analysed well in advance.
It is not enough to register as resident or have a home in another country.
We must also consider:
- Tax residence rules.
- International tax treaty.
- Potential exit tax.
- Source of the income.
- Anti-avoidance clauses.
A decision on residence should not be made solely on the basis of the tax on a specific sale.
Family businesses and wealth after the sale
We must also analyse what will happen after the company is transferred.
A business owner may currently hold shares that meet the requirements for certain exemptions or reliefs relating to family businesses.
After selling them, they may find themselves with several million euros in cash or investments subject to different wealth tax treatment.
Planning does not end on completion day
We may need to review:
- Wealth Tax.
- Solidarity Tax on Large Fortunes.
- Succession planning.
- Reinvestment of capital.
- Holding company structure.
For this reason, a significant business sale must also be analysed from the seller’s wealth-planning perspective.
What we analyse before selling a company
At Barcelona Tributario, we recommend conducting the tax analysis before definitively accepting a structure.
Who the seller is
An individual, a holding company or a non-resident.
Tax value of the shares
We need to know the actual tax cost in order to calculate the gain correctly.
Assets within the company
In particular, real estate, financial investments and assets the buyer does not wish to acquire.
Tax loss carryforwards
These may be relevant in certain scenarios, but they are subject to rules and limitations that we must review.
Price and payment terms
Upfront payment, deferred payments, earn-outs and warranties.
What the buyer actually intends to acquire
The entire company, a business unit or certain assets.
How much money the owner ultimately wants to receive
This question is essential if we are comparing an asset sale with a share sale.
How we work at Barcelona Tributario
In a sale of shares or company assets, our objective is to ensure that the client can negotiate knowing the tax outcome of each alternative.
1. We analyse the current structure
Shareholders, holding companies, assets, debt and asset composition.
2. We calculate the share sale
We estimate the seller’s tax liability based on who holds the shares.
3. We calculate the asset sale
We analyse the company’s tax liability and what would subsequently happen to the funds.
4. We review VAT, Transfer Tax and real estate taxation
Especially where the business includes property or an entire economic unit is transferred.
5. We analyse the buyer’s proposal
We can identify the tax consequences of accepting the structure proposed by the other party.
6. We coordinate tax and contractual matters
Deferred consideration, earn-outs, warranties and prior reorganisations must be designed consistently with the tax treatment of the transaction.
Conclusion: do not negotiate the sale price alone
The sale of shares or company assets can mean that two transactions with the same price have a very different net outcome for the business owner.
If we sell shares, we must consider the taxation of the gain made by the shareholder or holding company.
If we sell assets, we must analyse taxation within the company and the subsequent cost of transferring the money to the owner.
VAT, Transfer Tax, real estate, restructuring operations, deferred payments, international taxation and subsequent wealth planning may also be relevant.
For this reason, the right time to carry out the tax analysis is not after signing the contract.
At Barcelona Tributario, we are tax lawyers specialising in the sale and purchase of companies and tax planning in Barcelona. If you are considering a sale of shares or company assets, we analyse both scenarios so that you can negotiate knowing how much money will actually remain after tax.
Frequently asked questions about the sale of shares or company assets
Are you negotiating the sale of your company and unsure about the real tax impact? At Barcelona Tributario, we support you from the initial planning stage through to completion, so that you can make decisions with full legal certainty.
