Buying or selling a company: the share purchase agreement (SPA)
Last updated 3 August 2026 · Reviewed by Jaime Piñeira Pardo, lawyer registered with the ICAM bar, no. 138826 · English version of our Spanish guide.
The sale of shares in a Spanish SL requires a share purchase agreement (SPA) setting the price and warranties, executed in a public document before a notario (Spanish notary public) (art. 106 LSC). You must first respect the other partners' pre-emptive rights and then notify the company. Managora drafts the contract, coordinates the signing and handles the notification for you.
We handle the whole procedure for you, from start to finish.
You describe your case in a chat and sign; we file it with the Spanish authorities. Fixed price from €478.00 (21% VAT included), plus the tasa (official fee) where there is one.
What is new, and the law that applies
- Ley 6/2023, of 17 March, on Securities Markets and Investment Services: the VAT and ITP-AJD exemption for the transfer of securities is today in its art. 338 (previously, art. 314 of the consolidated text of the LMV). The regime is the same with new numbering.
- Ley 7/2024, of 20 December: since 1 January 2025 the last bracket of the savings base (more than €300,000) is taxed at 30%, instead of the previous 28%. The scale remains in force in 2026.
- Art. 21 of Ley 27/2014 on Corporate Income Tax: since 2021 the exemption for dividends and portfolio capital gains is 95% (not 100%), with an effective taxation of around 1.25% at the general rate of 25%.
What is the purpose of due diligence before buying a company?
Due diligence is the prior review of the company carried out by the buyer before signing. It usually covers tax, labour, commercial and corporate areas, contracts with clients and suppliers, ongoing litigation, real estate and assets, intellectual and industrial property and data protection.
Its result directly feeds the SPA: what appears in the review translates into a price adjustment, a specific indemnity or a condition for closing. What the seller formally communicates in the disclosure schedule is excluded from the general warranties, so it is in both parties' interest that this schedule is accurate.
It is not a mandatory procedure by law, but buying without reviewing means blindly assuming the company's contingencies. In smaller transactions, a reduced review focused on the main risks is carried out (red flags report).
How is the price set and adjusted: cash and debt, locked box and earn-out?
The usual starting point is to value the company cash free and debt free: the cash is added to the business value and the existing financial debt on the closing date is subtracted, with a correction if the working capital deviates from its normal level.
There are 2 mechanics to apply this adjustment. With completion accounts, the price is recalculated after signing with a balance sheet prepared at the closing date. With a locked box, the price is fixed on a previously closed balance sheet and the seller guarantees that since that date no value has been extracted from the company (prohibition of leakage). The first is more accurate; the second is simpler and faster.
An earn-out is a deferred payment conditional on future results (sales or EBITDA of the coming financial years). It is useful when buyer and seller do not agree on the company's value, but it is the clause that generates the most disputes: it requires precisely defining the metrics, who manages the company during the period and which buyer decisions cannot harm the objective.
Do you have to go to the notario? Elevation to public status, notification to the company and registry book
Yes. Art. 106 LSC requires the transfer of shares to be recorded in a public document. The deed before a notario is what allows the buyer to prove their status as a partner and oppose the purchase against third parties. Managora drafts the contract and coordinates the signing at the notary's office; the only official cost is the notary fee, which varies according to the transaction amount (RD 1426/1989) and is paid at the notary's office on the day of signing.
The buyer can only exercise partner rights against the company once it has knowledge of the transfer (art. 106.2 LSC). Therefore, after signing, the sale is formally notified to the administrative body and recorded in the partner registry book (art. 104 LSC): the company only considers as a partner whoever is registered in that book.
The sale is not registered in the Commercial Registry: the ownership of the shares lives in the company's registry book. There is an important indirect exception: if with the purchase the company comes to have a single partner, the supervening single-member status must be recorded in a deed and registered in the Commercial Registry; if 6 months pass without registering it, the sole partner is personally, unlimitedly and jointly liable for the corporate debts contracted during that period (arts. 13 and 14 LSC).
What taxes are paid when selling a Spanish SL?
The buyer does not pay indirect taxes: the transfer of shares is exempt from VAT and the Transfer Tax and Stamp Duty (art. 338 of Ley 6/2023, on Securities Markets). The exemption does not eliminate the formal obligation: as it is a subject and exempt transaction, in most autonomous communities the buyer must still submit the modelo 600 marking the exemption, with no fee to pay. The only exception with a fee is the anti-avoidance clause: if the company is essentially real estate and the sale of shares is intended to avoid the tax that would have levied the direct sale of the properties, the transaction is taxed as if they were transferred.
The individual seller pays IRPF (personal income tax) on the capital gain (transfer value minus acquisition value), which is integrated into the savings base with the scale from 19% to 30% in force in 2026. Pay attention to the rule of art. 37.1.b) of the Ley del IRPF: unless it is proven that the agreed price is market value, Hacienda does not admit a transfer value lower than the higher of 2 amounts, the net equity of the last closed balance sheet or the result of capitalising at 20% the average of the results of the last 3 financial years.
If part of the price is collected deferred (for example, an earn-out) and the last collection is due more than 1 year after the sale, the seller can use the instalment operations rule (art. 14.2.d of the Ley del IRPF) and impute the gain as the collections become due, instead of paying tax on everything in the year of signing.
If the seller is a company (for example, a holding company selling its subsidiary), the capital gain can be 95% exempt in the Corporate Income Tax if it has held at least 5% of the capital uninterruptedly during the previous 1 year (art. 21 LIS). With the general rate of 25%, the effective taxation is around 1.25% of the profit.
Managora takes care of the entire process: we review the articles of association, draft the SPA with its warranties, prepare the waivers to the pre-emptive acquisition right, coordinate the signing at the notary's office and make the formal notification to the company for the registry book. Each transaction is different in size and complexity, so the fees are set through a personalised quote: request it from the Share Purchase Agreement (SPA) and Elevation to Public Status procedure page.
Step by step
- 1
Agree on the transaction framework(Variable depending on the negotiation)
Buyer and seller sign a non-disclosure agreement (NDA) and, in transactions of a certain size, a letter of intent (LOI) with the indicative price, the schedule and the exclusivity of the negotiation.
- 2
Carry out the due diligence(Agreed in the LOI; depends on the company size)
The buyer reviews the company's tax, labour, commercial and contractual situation. What is detected translates into price adjustments, specific indemnities or conditions for closing.
- 3
Review the articles of association and resolve the pre-emptive acquisition right(In the supplementary legal regime, the company has 3 months to respond; after silence, 1 month to formalise)
The statutory transfer regime is checked. If the sale is to a third party, the express waivers of the other partners are obtained or the procedure of art. 107 LSC is followed (communication to the directors and consent of the General Meeting). If the company remains silent for 3 months, the sale must be formalised in a public document within the following 1 month or the authorisation lapses.
- 4
Negotiate and close the SPA(Variable depending on the transaction)
The contract is drafted with the price and its adjustment mechanism (cash and debt, locked box or earn-out), the representations and warranties, the liability limits and the non-compete agreements.
- 5
Sign before a notario (elevation to public status)(On the closing day)
The transfer must be recorded in a public document (art. 106 LSC). The title deeds of the shares, the articles of association and the identification of the parties are provided. The notary fee is paid at the notary's office according to the amount.
- 6
Notify the company and record in the partner registry book(Immediately after signing; single-member status: before 6 months)
The sale is notified to the administrative body and registered in the registry book (art. 104 LSC). The buyer can only exercise their partner rights once the company knows of the transfer. If the company becomes a single-member company, the single-member status is deeded and registered in the Commercial Registry.
- 7
Submit the modelo 600 and declare the sale to Hacienda(Modelo 600: regional deadline (usually 30 working days or 1 month); IRPF: income tax campaign of the following year; IS: 25 calendar days after 6 months from the close of the financial year)
The buyer submits the modelo 600 as a subject and exempt transaction (without a fee, except for the real estate exception of art. 338.2 Ley 6/2023) at the regional tax office. The individual seller declares the gain in their IRPF (modelo 100) for the year of the sale; the corporate seller includes it in the Corporate Income Tax (modelo 200), applying the exemption of art. 21 LIS if they meet the requirements.
A worked example
A founding partner sells 100% of their SL in 2026 for €500,000. They incorporated it with €3,000 of capital. The agreed price exceeds both the net equity of the last balance sheet and the capitalisation at 20% of the results of the last 3 financial years, so it is admitted as market value (art. 37.1.b LIRPF).
- Capital gain: €500,000 - €3,000 = €497,000
- First €6,000 at 19%: €1,140
- From €6,000 to €50,000 (€44,000) at 21%: €9,240
- From €50,000 to €200,000 (€150,000) at 23%: €34,500
- From €200,000 to €300,000 (€100,000) at 27%: €27,000
- From €300,000 to €497,000 (€197,000) at 30%: €59,100
Savings fee (state + regional): €130,980, an effective rate of 26.4%. If the seller were a holding company with at least 5% held for 1 year, the exemption of art. 21 LIS would leave the effective taxation at around 1.25% of the capital gain.
IRPF 2026 savings base scale (state + regional)
| Savings taxable base | Total rate |
|---|---|
| Up to €6,000 | 19% |
| From €6,000 to €50,000 | 21% |
| From €50,000 to €200,000 | 23% |
| From €200,000 to €300,000 | 27% |
| More than €300,000 | 30% |
Supplementary legal regime of art. 107.2 LSC (if the articles of association do not regulate the transfer to third parties)
| Phase | Rule | Deadline |
|---|---|---|
| Partner communication | Written notice to the directors with the shares, the buyer's identity, the price and the conditions | Starts the procedure |
| Consent | Agreement of the General Meeting by ordinary majority | Within 3 months |
| Denial | Only if the company communicates through a notario partners or third parties who buy all the shares; if nobody wants them, the General Meeting can agree that the company itself acquires them (art. 107.2.d, in relation to art. 140 LSC) | Within 3 months |
| Preference | The partners attending the meeting have preference; if there are several, pro rata to their capital | At the meeting itself |
| Silence | The partner can sell under the communicated conditions | After 3 months without a response |
| Lapse after silence | The transfer must be formalised in a public document; after 1 month, the authorisation lapses (art. 107.2.f LSC) | Within the following 1 month after the 3 months have elapsed |
| Deferred price | The pre-emptive acquirer must provide a guarantee from a credit institution for the deferred amount | Prerequisite for the acquisition |
Typical SPA clauses and what they cover
| Clause | What it covers |
|---|---|
| Object and price | Shares sold, price and payment method |
| Price adjustment | Cash and debt at closing (completion accounts) or fixed price on previous balance sheet (locked box) |
| Earn-out | Part of the price conditional on future business results |
| Representations and warranties | Veracity of accounts, taxes, labour, litigation, contracts |
| Specific indemnities | Specific risks detected in the due diligence |
| Liability limits | Minimum amounts per claim, maximum cap and deadlines to claim |
| Non-compete | Prohibition for the seller to compete during an agreed period |
| Conditions precedent | Authorisations or milestones that must be met before closing |
Buying the shares or buying the assets?
| Share purchase (share deal) | Asset purchase (asset deal) | |
|---|---|---|
| What is acquired | The entire company: contracts, licences, staff, assets and also its debts and contingencies | Only the chosen assets and contracts; non-agreed debts remain with the selling company |
| Business continuity | Total: the company remains the same and the contracts do not change ownership | Each contract and licence must be assigned, often with the third party's consent |
| Buyer's risk | Higher: inherits hidden contingencies; covered by representations and warranties | Lower, although in labour matters the transfer of undertakings applies (art. 44 ET) |
| Transaction taxes | Subject but exempt from VAT and ITP-AJD (art. 338 Ley 6/2023): the modelo 600 is submitted without a fee, except for the anti-avoidance real estate exception | Each asset is taxed according to its nature (VAT or ITP and, where applicable, AJD on real estate) |
| Seller's taxes | Individual: savings IRPF (19-30%); company: possible 95% exemption (art. 21 LIS) | The selling company pays IS on each asset and distributing the money to the partner later is taxed again |
| Form | Mandatory public document (art. 106 LSC) | Depending on the assets: real estate requires a deed and registry registration |
Official forms and where it is filed
- Modelo 100 (IRPF, annual return): the individual seller declares the capital gain here ↗
- Modelo 200 (Corporate Income Tax): the corporate seller declares the capital gain and applies the exemption of art. 21 LIS ↗
- Modelo 600 (ITP-AJD, regional tax office): the transaction is subject but exempt (art. 338.1 Ley 6/2023), so in most autonomous communities the buyer must submit it marking the exemption, without a fee; there is only a fee to pay in the exceptional case of real estate companies with avoidance intent (art. 338.2)
Frequently asked questions
Can I sell my shares to whoever I want?
Between partners and in favour of your spouse, ascendants, descendants or companies of your group, yes, unless the articles of association restrict it. To sell to a third party, the other partners (or the company) usually have a pre-emptive acquisition right: you must communicate the sale and obtain consent or waivers. If the company does not respond in 3 months, you can sell under the communicated conditions, but you must formalise the sale in a public document within the following 1 month (art. 107.2.f LSC); if you let it pass, the authorisation lapses.
Is a private contract valid or do I have to go to the notario?
The law requires the transfer to be recorded in a public document (art. 106 LSC). Without a deed, the buyer cannot prove their status as a partner against the company or third parties. Managora drafts the contract and coordinates the signing at the notary's office, so you only attend to sign.
How much does the transaction cost? Are there official fees?
There is no administrative tasa (official fee): the sale is not registered in the Commercial Registry and is exempt from ITP, VAT and AJD, although in most autonomous communities you must submit the modelo 600 as a subject and exempt transaction, with no fee to pay. The only official cost is the notary fee, which varies according to the transaction amount (RD 1426/1989), and is paid at the notary's office on the day of signing. Managora's fees are set through a personalised quote according to the complexity of the transaction: request it from the procedure page.
What taxes do I pay as a seller?
If you are an individual, the gain (sale price minus what it cost you) is taxed in the IRPF savings base, between 19% and 30% in 2026. Hacienda does not admit a sale value lower than the higher between the net equity of the last balance sheet and the capitalisation at 20% of the average profits of the last 3 financial years, unless there is proof that your price is market value. If you sell through a company with at least 5% held for 1 year, the capital gain is 95% exempt (art. 21 LIS).
Does the buyer pay ITP or VAT for buying the shares?
They do not pay a fee: the transfer of shares is exempt from VAT and ITP-AJD (art. 338 of Ley 6/2023). The transaction is subject although exempt, so in most autonomous communities the buyer must still submit the modelo 600 marking the exemption. The exception with a fee is the anti-avoidance clause: if the company is essentially real estate and the purchase conceals the transfer of the properties to avoid taxes, the transaction is taxed as a sale of properties.
What happens if a debt I was not told about appears after buying?
That is what the SPA representations and warranties are for: if the seller declared that there were no hidden debts and one appears, the buyer can claim the agreed compensation, within the limits and deadlines of the contract. Price retentions or escrow accounts can also be agreed to ensure collection. A well-drafted SPA is your main protection.
We handle the whole procedure for you, from start to finish.
You describe your case in a chat and sign; we file it with the Spanish authorities. Fixed price from €478.00 (21% VAT included), plus the tasa (official fee) where there is one.
Related procedures
The price, the tasa (official fee) and the current deadlines are on each procedure page.
Related guides
- VAT for the self-employed in Spain: modelo 303 and modelo 390
- Registering as autónomo in Spain: Hacienda and Seguridad Social
- IRPF for the self-employed in Spain: payments on account and withholdings
- The Spanish tax return (IRPF, modelo 100)
- Spanish Corporation Tax: modelo 200 and instalment payments
- How to Set Up a Sociedad Limitada (SL) in Spain: Steps, Capital and Accounts
- Registering a Trademark (OEPM and EUIPO): Steps and Renewal
- Hiring an employee: Seguridad Social registration and contract
- Managing a Spanish SL: directors, bylaws, capital and company books
- Deferring debts with Hacienda and Social Security
- Opening a premises: opening, activity and building licences
- Hacienda informative returns: forms 347, 349, 720 and 721
- Kit Digital: the grant to digitise freelancers and SMEs
- Deregistering as an autónomo and cessation of activity (self-employed unemployment)
- Change your tax address and census details (Form 030)
- Dissolve and liquidate a limited company: steps, deadlines and costs
- Digital certificate and electronic signature for companies and autónomos in Spain
- Register a patent, a design or a work: protect your creation
- Opening or taking over a bar in Spain: licences, APPCC and allergens
- Importing and exporting: EORI, DUA and customs
- Appealing to Hacienda: TEAR/TEAC, rectification and binding rulings
- Company powers of attorney: notarial and electronic (Apodera/REA)
- E-commerce VAT: the One Stop Shop OSS/IOSS (modelo 369)
- Spanish wealth tax and the tax on large fortunes (modelo 714)
- Public subsidies for companies and freelancers: how to apply
- Commercial contracts: sale, agency, distribution and senior management
- Capital yield and non-resident withholdings: forms 123, 193 and 216
- Changes to your company: registered office, corporate purpose and capital reduction
- Maternity deduction and dependent child benefits (form 140)
- Advanced corporate tax obligations: related-party transactions (232) and income attribution (184)
- Ordered to close your premises: how to appeal the closure order and stay open
- You own 5% of a company and they hide the accounts: how to force an audit at the company's expense
- Modelo 211: the 3% withholding when you buy a property from a non-resident
- Leaving the recargo de equivalencia as an ecommerce or Amazon seller
- AEAT financial information returns: forms 165, 345, 198, 117 and 038
- Recover VAT: refund of VAT paid in another EU country (360-361) and special cases (308)
- Environmental taxes: non-reusable plastic (592), waste (593) and fluorinated gases (587)
- Group taxation: tax consolidation (220 and 222) and VAT group (039, 322 and 353)
- Financial sector taxes: the tasa Tobin (Tobin tax, 604) and the insurance premium tax (480)
- Form 037: the simplified census registration versus form 036
- Energy taxes: hydrocarbons (581), electricity (560) and IVPEE (583)
- Cryptocurrencies and Hacienda: the tax report and how to reply to a request
- Platform economy: DAC7 (forms 040 and 238) and the digital services tax (490)
- The exit tax: the tax on leaving when moving your residence outside Spain
- Company IAE: form 848, municipal self-assessment and deferral of local taxes
- The 7p exemption: work carried out abroad free of income tax up to €60,100
- Tax representative in Spain and the special tax of form 213
- Tax residence in Spain and double taxation conflicts
- The RIC: Canary Islands investment reserve and form 282
- Content creators (OnlyFans, YouTube, Twitch): registration and taxes
- Ex officio review and extraordinary appeal: appealing when the deadline has passed
- International trademark: the Madrid System (WIPO) and the European Union trademark (EUIPO)
- Defending your trademark: opposition, suspension, nullity, revocation and monitoring (OEPM)
- The comunidad de bienes: setting it up, taxes and when to choose an SL
- Corporate director or shareholder: classification, RETA registration and contributions
- The shareholders' agreement and the participatory loan: shielding and financing the company
- The partner's right of separation: dividends (art. 348 bis) and other causes
- Mergers and spin-offs: structural modifications and the FEAC tax regime
- Opening a branch of a foreign company in Spain: registration and obligations
- Negative assessment and closed sheet: unblocking your company at the Commercial Registry
- The family business: family protocol and generational handover with ISD reduction
- Voluntary insolvency proceedings: when your company cannot pay
- Business financing contracts: factoring, leasing, renting and credit assignment
- The franchise contract: setting up a business under another brand
- The software and SaaS licence contract: what it must cover
- The food health register (RGSEAA): step-by-step registration
- Opening a clinic or aesthetic centre: the health operating authorisation
- Selling cosmetics in the EU: CPNP notification and the responsible person
- The zoological centre register: breeders, boarding kennels and pet shops
- Operating drones professionally: registering as an operator with AESA
- Denied premises licence or unlicensed activity: how to legalise it
- Reporting to the CNMC: unfair market competition and administrative barriers
- Company statistical and registry obligations: INE, Intrastat and Registro Industrial
- Selling on Amazon Europe: Extended Producer Responsibility (EPR) and LUCID
- Publish a book or magazine: ISBN, ISSN and legal deposit
- The security guard TIP: requirements, exam and issuance
- Reporting workplace bullying or sexual harassment to the Labour Inspectorate
- Civil servants: requesting compatibility for another activity and voluntary transfer