Exit Tax in Spain 2026: Taxation of Unrealized Capital Gains
- vissumlex
- 1 day ago
- 9 min read

Exit Tax in Spain 2026: 19-28% Tax on Unrealized Gains When Changing Residence
The taxation of fictitious capital gains upon the loss of tax residency is strictly regulated by the Spanish fiscal framework. The statutory mechanism of the exit tax in spain 2026 obligates natural persons to pay income tax on the calculated, unrealized profit derived from the ownership of securities and corporate shares prior to their actual transfer or sale. This legal provision applies exclusively to High Net Worth Individuals (HNWI) upon meeting specific asset valuation thresholds and continuous residency requirements within the jurisdiction. The fiscal liability crystallizes at the exact moment the taxpayer files their final personal income tax return before relocating abroad.
Legal Nature and Legislative Framework of Article 95 bis LIRPF
The taxation of assets upon departure from the national territory is governed by the provisions of Artículo 95 bis LIRPF (Spanish Personal Income Tax Law). This statute mandates the mandatory declaration of Plusvalías latentes (unrealized capital gains) within the Base imponible del ahorro (savings tax base) upon the formal loss of resident status.
The legislator categorizes the transfer of a fiscal domicile outside the national jurisdiction as a fictitious realization of assets. The state asserts its taxing rights over the appreciation of capital formed during the taxpayer's period of residency within Spain. This mechanism is designed to prevent the erosion of the national tax base through strategic jurisdictional arbitrage. The Agencia Tributaria (Spanish Tax Agency) exercises automated, continuous oversight over the cross-border movement of beneficial owners' assets through the Common Reporting Standard (CRS) and the automatic exchange of financial account information. The implementation of the Anti-Tax Avoidance Directive (ATAD) further solidifies this framework, ensuring that latent gains do not escape taxation simply through physical relocation.
Exit Tax in Spain: Asset Thresholds and Application Criteria
The exit tax in spain applies when the total market value of the taxpayer's shares and holdings exceeds 4,000,000 EUR. An alternative triggering criterion is the ownership of more than 25% of a company's share capital, provided the market value of this specific stake exceeds 1,000,000 EUR.
The calculation of these statutory thresholds is executed on the accrual date of the tax, which is legally defined as December 31 of the final year of tax residency. All qualifying assets are aggregated to determine threshold compliance. A taxpayer holding a portfolio of publicly traded equities valued at 3,500,000 EUR alongside a participation in a closed-end investment fund valued at 600,000 EUR falls entirely under the scope of this regulation. The aggregate value of 4,100,000 EUR exceeds the baseline limit. The artificial fragmentation of assets among affiliated corporate structures or trusts immediately preceding the change of jurisdiction is systematically classified by the tax authorities as tax evasion (fraude de ley), triggering severe administrative and potentially criminal penalties under the General Tax Law (Ley General Tributaria).
Change of Tax Residence: The 10 out of 15 Years Rule
A change of tax residence activates the exit tax obligations exclusively for individuals who have maintained Spanish tax residency for a minimum of 10 years out of the 15 tax periods immediately preceding their departure.
This temporal requirement demands precise mathematical and chronological analysis. The status of Residencia fiscal is determined either by the 183-day physical presence rule or by the location of the taxpayer's center of vital economic interests, as stipulated in Article 9 of the LIRPF. The application of tie-breaker rules in Double Taxation Treaties (DTTs) based on the OECD Model Convention (Article 4) plays a critical role in resolving residency conflicts during the transition year.
Alternative Perspective: Who does NOT need to pay the tax.
Individuals who have resided in Spain for exactly 9 years and 364 days within the last 15-year window are entirely exempt from the tax on unrealized capital gains upon departure. Furthermore, this regulation does not apply to expatriates utilizing the Special Expats Tax Regime (commonly known as the Beckham Law). Under this regime, individuals are legally treated as non-residents for income tax purposes, thereby neutralizing the application of Article 95 bis LIRPF. If a taxpayer resided in Spain for 5 years, relocated abroad for 6 years, and subsequently returned for 5 years, their total residency tenure is 10 years out of the last 16. However, within the strict 15-year statutory window, the tenure is exactly 9 years. Consequently, no obligation to pay the exit tax arises.
Valuation Mechanics and Tax Base Determination
The calculation of the tax liability is based on the positive difference between the market value of the assets at the time residency is lost and their original acquisition cost. The resulting net figure is taxed according to a progressive statutory scale.
Determining the precise tax base requires exhaustive documentary evidence of the acquisition cost for each specific tranche of securities. The FIFO (First In, First Out) method is strictly applied for identical shares acquired at different times. Allowable acquisition costs, including verifiable broker commissions and notary fees, increase the baseline cost, thereby proportionally reducing the final taxable base. Inflationary adjustments or monetary correction coefficients are not permitted for the valuation of shares under the current LIRPF framework.
Unrealized Capital Gains: Public vs. Private Asset Valuation
Unrealized capital gains for publicly traded securities are determined by their official stock exchange quotation on the accrual date. Acciones no cotizadas (unlisted shares) are evaluated using the highest of three specific financial metrics: nominal value, theoretical book value, or capitalized earnings.
The valuation of private, unlisted companies presents the highest degree of legal and financial complexity. The Spanish Tax Code mandates the use of the maximum value among the following three parameters:
The nominal value of the participation share.
The Theoretical Book Value (Valor Teórico Contable - VTC) based on the last officially approved corporate balance sheet prior to the accrual date.
The capitalization at 20% of the average corporate profit generated during the three closed financial years preceding the accrual date.
This rigid statutory approach frequently results in a disproportionate inflation of the tax base. A private entity may possess substantial retained earnings from previous fiscal cycles but currently face a severe liquidity crisis or market downturn. The tax authority will systematically ignore the current liquidity crisis, relying strictly on the historical data reflected in the balance sheet or the capitalized past profits. This creates a scenario where the taxpayer is taxed on a theoretical valuation that cannot be realized in an open market transaction.
Savings Tax Rates in 2026
The savings tax rates in 2026 range progressively from 19% to 28%. The maximum marginal rate is applied to all capital gains exceeding the statutory threshold of 300,000 EUR.
The progressive scale is applied to the aggregate sum of the unrealized capital gains. The exact structure of the tax brackets for the fiscal year 2026 is as follows:
From 0 to 6,000 EUR: 19%
From 6,000.01 to 50,000 EUR: 21%
From 50,000.01 to 200,000 EUR: 23%
From 200,000.01 to 300,000 EUR: 27%
Exceeding 300,000 EUR: 28%
Latent Capital Gains Calculation (Mathematical Matrix)
Below is a compliance matrix and tax burden calculation for a natural person holding a 25% stake in a private limited liability holding company (Sociedad Limitada - SL).
Asset Valuation Metric | Amount (EUR) | Calculation Rationale |
1. Nominal value of the 25% stake | 500,000 | Initial registered share capital contribution |
2. Theoretical Book Value (VTC) | 2,100,000 | Total corporate assets minus liabilities per balance sheet |
3. Profit Capitalization (20% of 3-year average) | 3,400,000 | Average profit: 680,000 EUR. (680k / 0.20) |
Applicable Value for Exit Tax | 3,400,000 | The highest of the three statutory values is selected |
Acquisition Cost | 500,000 | Documented historical costs (notary, registry, capital) |
Unrealized Capital Gain (Latent Gain) | 2,900,000 | 3,400,000 - 500,000 |
Tax Calculation based on the 2026 Progressive Scale:
First 6,000 EUR * 19% = 1,140 EUR
Next 44,000 EUR * 21% = 9,240 EUR
Next 150,000 EUR * 23% = 34,500 EUR
Next 100,000 EUR * 27% = 27,000 EUR
Remaining 2,600,000 EUR * 28% = 728,000 EUR
Total Tax Liability: 799,880 EUR (Effective tax rate: 27.58%).
Deferral Mechanisms and Jurisdictional Exceptions
The legislation provides specific mechanisms for the deferral of tax payments (Diferimiento) when the taxpayer relocates within the European Union (EU) or the European Economic Area (EEA), provided there is an effective mutual assistance agreement in tax matters.
Deferral does not constitute an exemption or cancellation of the tax liability. It is strictly a postponement of the payment deadline until a specific triggering event occurs. The taxpayer is legally obligated to file an annual communication (Modelo 163) with the Agencia Tributaria, certifying the continued retention of ownership of the underlying assets. Failure to file this annual declaration results in the immediate termination of the deferral and the execution of the tax debt, accompanied by late payment interest and administrative surcharges.
EU Relocation and the National Grid Indus Jurisprudence
Relocating to an EU jurisdiction allows the taxpayer to defer the payment of the exit tax until the actual sale of the assets. This rule is fundamentally based on the Court of Justice of the European Union (CJEU) ruling in the National Grid Indus case, which guarantees the fundamental freedom of establishment.
The CJEU established that the immediate collection of tax upon a change of residency within the single market constitutes an unjustified restriction on Article 49 of the Treaty on the Functioning of the European Union (TFEU). Spain has fully implemented this doctrine into its domestic law. When a taxpayer relocates to France, Italy, or Cyprus, the exit tax is calculated and declared, but the actual payment is suspended without the requirement to provide financial guarantees.
Triggering events that terminate the deferral and mandate immediate payment include:
The actual inter vivos transfer (sale or donation) of the shares.
The loss of EU resident status (e.g., a subsequent relocation to a third country outside the EU/EEA).
The formal liquidation or bankruptcy of the company whose shares are held by the taxpayer.
The failure to submit the mandatory annual declaration (Modelo 163) confirming the retention of the assets to the Spanish tax authorities.
Moving to Andorra Taxes and Liquidity Traps
Moving to andorra taxes does not provide any reduction or deferral benefits, as the jurisdiction is not a member of the European Union or the EEA. The taxpayer is legally required to pay the exit tax in full upon filing their final IRPF declaration in Spain.
The Principality of Andorra is classified as a third country for the purposes of Article 95 bis LIRPF. The protective mechanism of Diferimiento is entirely inapplicable. This creates an acute liquidity trap: the natural person is forced to pay hundreds of thousands of euros in taxes on a theoretical profit that has not been converted into actual cash flow.
This financial predicament is severely exacerbated if a corporate Pacto de socios (shareholders' agreement) contains strict lock-up periods, drag-along, or tag-along clauses that prohibit the free transfer of shares to third parties. The taxpayer is legally barred from liquidating a portion of their equity to finance the tax liability. Resolving this requires complex financial engineering, such as securing debt financing collateralized by the illiquid assets, or initiating a corporate share buyback procedure (autocartera), which in turn triggers additional corporate tax liabilities and requires formal approval from the general shareholders' meeting.
VissumLex Legal Practice: Corporate Restructuring
VissumLex attorneys deploy advanced, legally compliant corporate restructuring mechanisms to minimize fiscal exposure. Our practice involves the strategic utilization of the EU deferral regime and cross-border merger directives prior to jurisdictional changes.
Structuring assets before the loss of resident status is a critical, time-sensitive phase. The strict application of the exit tax in spain 2026 regulations necessitates a comprehensive forensic audit of the taxpayer's portfolio 12 to 18 months prior to the anticipated relocation date. Reactive planning inevitably leads to maximum tax exposure.
Frequently Asked Questions
At what asset value threshold is the Exit Tax applied in Spain?
The tax is strictly applied if the total aggregate market value of the taxpayer's shares and corporate holdings exceeds 4,000,000 EUR. Alternatively, it is levied if the taxpayer owns more than 25% of the share capital of a single company, provided the market value of that specific participation exceeds 1,000,000 EUR.
How is the "10 out of 15 years" tax residency period calculated?
The calculation considers full tax periods (calendar years) during which the individual was legally recognized as a tax resident of Spain. If the cumulative number of such years within the immediately preceding 15-year window reaches 10, the rule is activated. Years spent under the special expatriate regime (Ley Beckham) are legally excluded from this computation.
Is the tax levied even if the shares have not been sold?
Yes. The tax is fundamentally based on a fiscal fiction. The state taxes the unrealized capital gains (Plusvalías latentes), legally presuming a conditional, fictitious sale of the assets on the final day of the taxpayer's residency in Spain, regardless of actual liquidity.
Is it possible to avoid the tax when moving to another EU country?
It cannot be permanently avoided, but the taxpayer can obtain a legal deferral (Diferimiento). The tax liability is calculated and declared, but the actual payment is suspended until the assets are physically sold, the taxpayer dies, or the taxpayer subsequently relocates outside the European Union.
What are the savings tax rates in 2026?
The rates follow a progressive statutory scale: 19% on the first 6,000 EUR, 21% up to 50,000 EUR, 23% up to 200,000 EUR, 27% up to 300,000 EUR, and a maximum marginal rate of 28% on any amount of unrealized capital gain exceeding 300,000 EUR.
What happens to the tax if the individual returns to Spain?
If the taxpayer returns to Spain and re-establishes Spanish tax residency without having sold the shares during their period of absence, the previously assessed exit tax liability is legally annulled. Any amounts already paid (e.g., if the initial relocation was to a non-EU country) are subject to a full refund upon the formal petition of the taxpayer, accompanied by the corresponding statutory interest for late payment by the administration.
Planning a change of jurisdiction requires a preemptive, exhaustive audit of all corporate and personal assets. The strict application of the exit tax in spain 2026 regulations compels taxpayers to meticulously analyze their portfolio structure and historical acquisition costs. Errors in the valuation of unrealized capital gains inevitably lead to substantial financial penalties and tax assessments by the authorities. Comprehensive legal and tax support allows for the legal optimization of the fiscal burden, ensuring compliance while preventing severe cash flow disruptions during the international relocation of capital.
