Taxes When Buying a Spanish Company: Share Deal Guide for Foreign Buyers [2026]
A buyer-focused guide to Spanish share-deal taxes: the general transfer exemption, property anti-avoidance rules, historical target exposure, acquisition financing, dividends and exit.
Author
Capittal Research
Equipo editorial M&A
Editorial review
Equipo M&A Capittal
Financial, tax and legal review
Updated
09 September 2026
Content reviewed as markets evolve
Quick answer
- Share transfer: generally exempt from Spanish VAT and transfer tax under Article 338.
- Property: the anti-avoidance exception needs a transaction-specific review; owning Spanish real estate alone does not settle the result.
- Historical exposure: tax obligations remain in the target; the buyer bears their economic effect through its investment.
- Financing: model deductions separately from debt service.
- Distributions and exit: determine the recipient, residence, exemptions and treaty treatment before choosing the acquisition vehicle.
Scope and date: general information for a share acquisition, with legislation checked on 8 September 2026. Obtain Spanish tax and legal advice on the actual transaction before agreeing the LOI or SPA. This guide does not calculate any buyer's tax liability.
Does a foreign buyer pay VAT or transfer tax when buying shares?
As a general rule, no. Article 338 of Law 6/2023 provides that transfers of securities, whether listed or unlisted, are exempt from VAT and from Transfer Tax and Stamp Duty.
This means the buyer does not normally add VAT or a percentage transfer tax to the share price. It does not mean that the transaction is tax-free in every respect. The seller may recognise a taxable gain, the target keeps its historic tax position and the buyer's financing and post-closing cash flows have separate tax consequences.
| Tax point | Buyer impact | Verify before LOI |
|---|---|---|
| VAT and transfer tax on shares | Generally exempt | Confirm Article 338 applies to the actual assets and steps |
| Real-estate anti-avoidance | Can remove the exemption in specified cases | Analyse asset composition, control and business use of Spanish real estate |
| Historic target taxes | Remain obligations of the acquired company | Perform tax due diligence and negotiate protection |
| Acquisition financing | Interest deductions can be limited | Model debt location, cash flows and deduction capacity before the LOI |
| Future dividends and interest | Domestic exemptions, withholding, EU rules and treaties may apply | Confirm beneficial ownership, substance and documentation |
| Future exit | Depends on seller residence, target assets, treaty and structure | Model the exit when selecting the acquisition vehicle |
When can the real-estate anti-avoidance rule apply?
The exemption can be displaced when unlisted securities are transferred in the secondary market to avoid the tax that would have applied to a direct transfer of Spanish real estate. Article 338 sets rebuttable presumptions, including cases where control is obtained over an entity whose assets consist at least 50% of Spanish real estate not used in a business or professional activity.
The rule can also look through a company that controls another real-estate-rich entity and can apply to certain shares received in exchange for real-estate contributions and transferred within three years. The analysis is not simply “does the target own property?” Operational factories, hotels, warehouses and investment property can produce different outcomes. Obtain an asset-by-asset tax analysis before assuming the exemption.
What historical tax exposure remains in the target after closing?
The legal taxpayer remains the target company before and after closing. Any underpaid corporate income tax, VAT, payroll withholding, customs duty or local tax therefore remains an exposure of the company the buyer acquires. Review social-security obligations separately alongside the tax and employment workstreams. The economic risk may be allocated to the seller in the SPA, but the tax authority can still assess the target.
Tax due diligence should review at least:
- open tax years, inspections, disputes and binding rulings;
- corporate income tax returns, adjustments, related-party transactions and permanent differences;
- VAT groups, exemptions, pro-rata calculations and cross-border supplies;
- payroll withholding, management remuneration and employee incentives;
- tax-loss carryforwards, credits, deferred tax assets and ownership-change restrictions;
- interest deductions, shareholder financing and cash pooling;
- restructurings, tax-neutral regimes and latent clawback conditions;
- real estate, municipal taxes and transfer-tax history.
The SPA response usually combines tax warranties, a specific tax covenant for pre-closing periods, conduct rules for tax audits, time limits and negotiated caps or security. Insurance does not replace diligence and may exclude known issues.
Can acquisition interest be deducted in Spain?
Do not assume deductibility. Article 16 of the Corporate Income Tax Act generally limits net financial expenses to 30% of statutory operating profit, with a EUR 1 million allowance under that general rule (prorated for short tax periods). This is not a blanket deduction entitlement.
Review acquisition-debt limits under Article 16.5 and, where relevant, Articles 67(b) and 83 separately. Article 15(h) addresses certain intragroup-funded acquisitions or contributions; its business-purpose exception must be assessed. Model the borrower, tax group and any subsequent merger before fixing the structure.
The financing model should also show debt service, lender conditions, access to cash and downside headroom. A proposed tax deduction is not cash available to repay a loan.
How are dividends and exit proceeds taxed after closing?
Under the Non-Resident Income Tax Act, a Spanish target distributing dividends or paying interest to a foreign parent may have to apply non-resident withholding. The result depends on Spanish domestic law, the recipient's residence, the relevant tax treaty, EU directives where applicable, beneficial ownership, holding period and substance. Treaty access should not be treated as automatic merely because the acquisition vehicle is incorporated in a treaty jurisdiction.
For a Spanish holding company, Article 21 generally requires a 5% holding and one year of uninterrupted ownership. Qualifying dividends can meet that period through continued holding; gains require the relevant conditions at disposal. A 5% management-expense reduction generally applies to exempt income, with statutory exceptions. This is separate from withholding on a payment to a foreign shareholder.
Future exit taxation should be reviewed at entry. A treaty may allocate taxing rights differently for ordinary operating companies and companies deriving substantial value from Spanish real estate. Corporate reorganisations and management equity can also change the outcome.
How does the tax analysis differ between a share deal and an asset deal?
In an asset deal, each asset or liability must be classified and the indirect-tax result depends on what is transferred. Under Article 7 of the VAT Act, a set of assets capable of constituting an autonomous economic unit can fall outside the scope of VAT. A mere collection of assets does not qualify automatically, and real estate may trigger VAT, transfer tax or stamp-duty questions.
An asset deal may give the buyer a tax basis in acquired assets and may isolate some historic liabilities, but contracts, employees, permits and taxes require separate analysis. For the seller-side perspective, see share deal or asset deal: which suits the seller?.
What should be decided before the LOI?
- Identify the immediate buyer and its ultimate owners.
- Compare a direct foreign acquisition with a Spanish acquisition vehicle.
- Test Article 338 and the target's Spanish real-estate profile.
- Model debt service, interest-deduction capacity and cash repatriation.
- Define the tax-diligence perimeter and access to tax records.
- State whether price assumes tax losses, credits or a particular tax structure.
- Allocate responsibility for pre-closing taxes and post-closing audits.
- Coordinate the tax structure with Spanish FDI screening and financing conditions.
What is the buyer's practical tax checklist?
| Stage / timing | Tax work | Buyer deliverable |
|---|---|---|
| Before indicative offer | High-level structure, transfer-tax and FDI screen | Comparable net price and execution assumptions |
| Before LOI | Acquisition vehicle, debt model and key red flags | Structure reflected in exclusivity and timetable |
| Due diligence | Historic tax review and quantification | Issues list, price impact and protection request |
| SPA | Tax covenant, warranties, audit control and security | Contractual risk allocation |
| Post-closing | Filings, integration, tax-group decisions and cash repatriation | Compliant ownership and finance model |
For the wider process, use our guide to buying a company in Spain and buy-side adviser selection checklist. Read the companion guide on FDI rules for foreign buyers, review Capittal's acquisition process or request a confidential structuring discussion.
Frequently asked questions
Common questions on this topic.
Does a foreign buyer pay VAT when buying shares in a Spanish company?+
Generally no. Article 338 of Law 6/2023 exempts transfers of securities from VAT and from Transfer Tax and Stamp Duty, subject to the real-estate anti-avoidance exception and transaction-specific analysis.
When can buying shares trigger Spanish transfer tax?+
Potentially when the Article 338 anti-avoidance rule applies, including specified acquisitions of control over entities whose assets consist at least 50% of Spanish real estate not used in a business or professional activity.
What historical tax exposure remains in the target after closing?+
The liabilities remain obligations of the target company acquired. Tax due diligence and SPA protections can allocate the economic risk to the seller, but they do not prevent the tax authority from assessing the target.
Can a foreign buyer deduct acquisition interest in Spain?+
Potentially, subject to the general Article 16 limitation and additional rules for acquisition debt, group financing and restructurings. Debt location and deduction capacity should be modelled before the LOI.
Are dividends from the Spanish target subject to withholding tax?+
They may be. The result depends on domestic exemptions, the recipient's residence, EU rules, the applicable treaty, beneficial ownership, holding period, substance and documentation.
Is an asset deal taxed the same as a share deal?+
No. A qualifying transfer of an autonomous economic unit can fall outside VAT under Article 7 of the VAT Act. This is not automatic: the transferred business, continuing activity and exclusions must be checked. Other assets and real estate need separate analysis.