Skip to content

Exit tax in Spain — Taxation on change of residence when holding significant shareholdings

The exit tax is one of the most important and least understood tax aspects for Spanish residents who plan to transfer their tax residence abroad. Article 95 bis of the LIRPF provides that anyone who has been a Spanish tax resident for at least 10 of the last 15 years and holds interests in entities valued at more than 4 million euros, or representing more than 25% of the share capital of an entity worth more than 1 million euros, must pay personal income tax on the unrealised gains in those interests at the time of the change of residence, as if they had been sold at market value.

Since 2010 · 16 years Tax agent AEAT

Pick a slot in the specialist's calendar.

Tell us when to call and a partner will contact you in your chosen window.

Write to us and we'll reply within 24 business hours.

Data processed in the EU · GDPR · No commitment

Why BM Consulting

Specialised advice and personal service

BMC advises Spanish residents who are considering a change of tax residence on the impact of the exit tax, the viability of deferral when moving to EU/EEA destinations, legally available strategies to minimise the impact, and exit planning. We analyse the composition of the shareholdings, calculate the unrealised gain subject to the exit tax, and assess the options available depending on the destination country.

  • Exit tax is triggered when

    10 years of Spanish residence in the last 15 + shareholdings worth more than 4M€ or representing more than 25% of share capital with a value above 1M€.

  • The unrealised gain is taxed under the IRPF savings income base (19-28%) in the year of the change of residence.

  • Automatic deferral is available if the destination is an EU or EEA country with an effective information exchange agreement with Spain.

  • No deferral for the US, Dubai, Switzerland or the UK

    payment is compulsory in the year of departure.

How we work

From first contact to case completion

  1. 'Initial situation assessment: are you within the exit tax scope?'

    We verify whether the two cumulative conditions are met: tax residence in Spain for at least 10 of the last 15 years, and ownership of shareholdings that exceed the quantitative threshold (4 million euros in market value, or 1 million euros when the interest represents more than 25% of the share capital). The 10-year period is calculated retroactively from the date of the change of residence.

  2. Calculation of the unrealised capital gain

    We calculate the difference between the market value of the shareholdings at the time of the change of residence and their acquisition price (tax base). Valuation may require an independent valuation report or the application of the valuation criteria under the Wealth Tax Act. The unrealised gain is taxed in the savings income base of the IRPF at rates between 19% and 28%.

  3. Assessment of the deferral option

    If the change of residence is to an EU Member State or an EEA country with effective tax information exchange with Spain, the taxpayer may request deferral of the exit tax until the actual disposal of the shareholdings. Deferral is subject to periodic reviews and may lapse if the taxpayer subsequently moves to a third country outside the EU/EEA.

  4. Exit planning

    We design the exit strategy by optimising the timing of the change of residence, the shareholding structure, and the possibility of partial disposals before the exit within the legal framework. We also analyse the destination country's regulations to identify legitimate asymmetries that may be exploited.

Self-check · 45 seconds

Do you need this service?

Answer three questions and we'll show you the most relevant service for your case.

Do you currently reside in Spain?
Do you have assets or income in another country?
Have you received or are you expecting an inheritance?
Are you considering setting up a company?
Answer to see your recommended services.

The problem

The exit tax is one of the most important and least understood tax aspects for Spanish residents who plan to transfer their tax residence abroad. Article 95 bis of the LIRPF provides that anyone who has been a Spanish tax resident for at least 10 of the last 15 years and holds interests in entities valued at more than 4 million euros, or representing more than 25% of the share capital of an entity worth more than 1 million euros, must pay personal income tax on the unrealised gains in those interests at the time of the change of residence, as if they had been sold at market value.

Our solution

BMC advises Spanish residents who are considering a change of tax residence on the impact of the exit tax, the viability of deferral when moving to EU/EEA destinations, legally available strategies to minimise the impact, and exit planning. We analyse the composition of the shareholdings, calculate the unrealised gain subject to the exit tax, and assess the options available depending on the destination country.

Process

How we do it

1

'Initial situation assessment: are you within the exit tax scope?'

We verify whether the two cumulative conditions are met: tax residence in Spain for at least 10 of the last 15 years, and ownership of shareholdings that exceed the quantitative threshold (4 million euros in market value, or 1 million euros when the interest represents more than 25% of the share capital). The 10-year period is calculated retroactively from the date of the change of residence.

2

Calculation of the unrealised capital gain

We calculate the difference between the market value of the shareholdings at the time of the change of residence and their acquisition price (tax base). Valuation may require an independent valuation report or the application of the valuation criteria under the Wealth Tax Act. The unrealised gain is taxed in the savings income base of the IRPF at rates between 19% and 28%.

3

Assessment of the deferral option

If the change of residence is to an EU Member State or an EEA country with effective tax information exchange with Spain, the taxpayer may request deferral of the exit tax until the actual disposal of the shareholdings. Deferral is subject to periodic reviews and may lapse if the taxpayer subsequently moves to a third country outside the EU/EEA.

4

Exit planning

We design the exit strategy by optimising the timing of the change of residence, the shareholding structure, and the possibility of partial disposals before the exit within the legal framework. We also analyse the destination country's regulations to identify legitimate asymmetries that may be exploited.

4M€
Shareholding value threshold that triggers the exit tax
10/15 years
Prior Spanish residence required for the exit tax to apply
EU/EEA
Destinations that qualify for exit tax deferral

I was planning to relocate to Switzerland and held shareholdings in my company worth several million euros. No one had ever warned me about the exit tax. BMC identified the problem, calculated the impact and proposed an exit timeline that significantly reduced the tax burden. A conversation that was worth far more than it cost.

Alejandro Herrero Founder and CEO, Madrid - Zurich

Exit tax in Spain: what it is and why it matters before leaving the country

The exit tax is the levy on unrealised capital gains in company shareholdings when the holder transfers their tax residence outside Spain. It is governed by article 95 bis of Ley 35/2006 (LIRPF) and is one of the most significant, and most frequently overlooked, tax considerations for entrepreneurs, founders and major investors resident in Spain who are contemplating a move abroad.

The mechanism is straightforward but economically substantial: at the moment the change of tax residence occurs, the law treats the shareholdings as if they had been sold at market value on that date. The difference between that market value and the acquisition price constitutes a capital gain that must be taxed in the IRPF return for the year of departure, even though the shareholdings have not actually been sold.

The exit tax was introduced in Spain in 2015 through Ley 26/2014, which amended the LIRPF to incorporate this mechanism. Its stated purpose is to prevent the tax avoidance technique of transferring residence to a low-tax country just before selling shareholdings with large accumulated gains, so that the gain would be taxed in the destination country at lower rates.

Who is affected by the exit tax?

The exit tax does not apply to every resident who leaves Spain. It applies exclusively when two cumulative conditions are met:

Condition 1: Prior residence in Spain

The taxpayer must have been a Spanish tax resident for at least 10 of the last 15 years immediately preceding the last tax period in which they are taxed as a resident. This temporal requirement ensures the exit tax does not apply to taxpayers who are briefly present in Spain or to those under the special regime of the Beckham Law (régimen especial, Ley Beckham), which allows taxation solely on Spanish-source income without including worldwide income in the taxable base.

Years spent under the Beckham Law special regime do not count towards the 10-year threshold for exit tax purposes, since that regime involves a form of quasi non-resident status.

Condition 2: Shareholdings of significant value

The taxpayer must hold interests in entities that exceed one of the following quantitative thresholds on the date of the change of residence:

  • Threshold 1: market value of interests in one or more entities exceeding 4 million euros in aggregate. There is no requirement to hold a controlling or majority stake; if the total portfolio value exceeds 4 million euros, the exit tax is triggered.

  • Threshold 2: an interest in a single entity representing more than 25% of the share capital of that entity and with a market value above 1 million euros. This threshold is designed for founders or controlling shareholders of medium-sized companies who do not reach 4 million euros in total portfolio value but do hold control of the entity.

If the shareholdings fall below both thresholds, the exit tax does not apply and the change of residence generates no additional IRPF obligations under this provision.

How the exit tax capital gain is calculated

The capital gain taxed by the exit tax is the difference between the market value of the shareholdings on the date of the change of residence and their acquisition value (purchase price plus inherent costs, such as acquisition commissions).

Valuation of shareholdings

Valuation of shareholdings for exit tax purposes follows specific rules by entity type:

Securities listed on regulated markets: market value is the quoted price on the date of the change of residence (or the average price of the last quarter if the taxpayer holds a significant interest that could affect the price).

Interests in unlisted entities: market value is determined as the higher of the following two values:

  • The net asset value of the entity (assets less liabilities) attributable to the interest, per the last balance sheet closed before the change of residence.
  • The value resulting from capitalising at a rate of 20% the average results over the three most recent financial years closed before the departure.

This dual valuation rule can produce significant discrepancies between the book value and the “economic” value of an interest. In high-growth, low-asset companies (start-ups, digital platforms), the capitalised earnings value can far exceed the net asset value. An independent valuation report is advisable to support the taxpayer’s position in the event of an AEAT audit.

Applicable rates

The exit tax capital gain is taxed in the savings income base of the IRPF, at the following rates:

BracketRate 2024-2025
Up to 6.000€19%
6.000€ - 50.000€21%
50.000€ - 200.000€23%
200.000€ - 300.000€27%
Above 300.000€28%

For a company where shareholdings are valued at 10 million euros and the acquisition cost was 1 million euros (an unrealised gain of 9 million euros), the exit tax liability can exceed 2.5 million euros.

The exit tax deferral: the EU and EEA option

The rules provide a special deferral regime for taxpayers who transfer their residence to an EU Member State or to EEA countries (Iceland, Liechtenstein, Norway) with which Spain has an effective tax information exchange agreement.

Deferral allows payment of the exit tax to be postponed until one of the following events occurs:

  • Actual disposal of the shareholdings (sale, gift, dissolution of the entity)
  • Transfer of residence to a third country outside the EU/EEA
  • Failure to comply with the obligation to notify the AEAT annually of the retained shareholdings and their valuation

Deferral is requested in the IRPF return for the year of the change of residence, by marking the specific option provided in the form. No late-payment interest accrues during the deferral period while its conditions are met.

Countries where deferral is available: all EU Member States (France, Germany, Italy, Portugal, the Netherlands, Belgium, Ireland, etc.) and the three non-EU EEA countries (Iceland, Liechtenstein, Norway).

Countries where deferral is not available: the United Kingdom (since Brexit), the US, Switzerland, the United Arab Emirates, Singapore, Monaco, Panama, and any other country outside the EU/EEA.

Relocation to the United Arab Emirates (Dubai)

Relocation to Dubai is particularly popular among Spanish entrepreneurs and content creators. As it falls outside the EU/EEA, no deferral is available. If the quantitative thresholds are met, the entire unrealised capital gain must be taxed in the year of departure.

The absence of a comprehensive double taxation treaty between Spain and the United Arab Emirates (the treaty signed in 2006 has had limited application) can complicate the situation. BMC analyses on a case-by-case basis whether there is a risk of double taxation with the destination country.

Relocation to Portugal

Portugal, as a Member State of the EU, qualifies for exit tax deferral. Portugal’s NHR (Non-Habitual Resident) regime or its successor the IFICI offers tax advantages to new residents that can be combined with the Spanish exit tax deferral. BMC coordinates tax advice in both jurisdictions to optimise the taxpayer’s overall position.

Relocation to the United Kingdom

Following Brexit, the UK left the EU and EEA. This means that a change of residence to the UK does not qualify for exit tax deferral from January 2021 onwards. The exit tax must be paid in the year of departure for taxpayers who meet the thresholds. The Spain-UK double taxation treaty (CDI España-UK) may be relevant to avoid double taxation if the taxpayer subsequently sells the shareholdings, which will then be taxable in the UK.

Return clause: recovering what was paid if you return to Spain

Spanish law recognises that a change of residence may not be permanent. If the taxpayer who has paid the exit tax recovers Spanish tax residence within five years of the change of residence, and the shareholdings remain in their ownership (not disposed of), they may request rectification of the IRPF self-assessment and a refund of the amounts paid as exit tax.

This return clause has practical importance for entrepreneurs who leave temporarily for a specific project or for those testing a move without a definitive decision. However, if the shareholdings are sold during the period spent outside Spain, the exit tax paid is not recoverable, since the actual disposal will already have occurred outside Spain.

Exit tax planning: key points before acting

The exit tax requires advance planning. The most important points to analyse before changing residence are:

  1. Do you meet the thresholds? If the value of your shareholdings is below 4 million euros and your interest in each entity is below 25%, the exit tax does not apply.

  2. Which destination are you choosing? The choice of destination country determines whether you qualify for deferral. For large business portfolios, deferral can make a difference of millions of euros.

  3. What is the optimal timing for departure? The exit tax is calculated on market value at the date of the change of residence. If you are in a year of low valuations or ahead of a significant valuation event (investment close, IPO), the exit tax base can be significantly reduced.

  4. Can you reduce the exit tax base before leaving? There are legitimate corporate transactions, including capital reductions, distribution of previously taxed dividends and partial disposals, that can reduce the value of shareholdings subject to the exit tax before the change of residence. BMC assesses their viability and tax consequences.

  5. What is the tax treatment in the destination country? The exit tax can generate an elevated tax cost base in the destination country (step-up), reducing the future gain that will be taxed there when the shareholdings are sold. Coordination with advisers in the destination country is essential.

BMC provides comprehensive advisory on the exit tax, coordinating Spanish planning with the destination country’s tax rules to achieve the optimal solution for each client.

FAQ

Frequently asked questions

The exit tax is governed by article 95 bis of the Personal Income Tax Act (Ley 35/2006, LIRPF) and affects Spanish tax residents who transfer their residence abroad and meet two cumulative conditions: tax residence in Spain for at least 10 of the last 15 years immediately preceding the change, and ownership of interests in any type of entity (companies, investment funds, ETFs, etc.) valued at more than 4 million euros, or interests representing more than 25% of the share capital of an entity with a market value above 1 million euros.
The capital gain taxed by the exit tax is the difference between the market value of the shareholdings on the date of the change of residence and the acquisition value (purchase price plus deductible costs). Market value is determined by asset type: for listed securities, the quoted price; for interests in unlisted entities, the higher of the net asset value attributable to the interest and the capitalised value of the average results over the last three closed financial years. The gain is taxed in the savings income base of the IRPF at rates of 19% (up to 6.000€), 21% (6.000-50.000€), 23% (50.000-200.000€), 27% (200.000-300.000€) and 28% (above 300.000€).
When the change of residence is to a Member State of the European Union or to a European Economic Area country with which Spain has an effective tax information exchange agreement, the taxpayer may request deferral of the exit tax payment until the moment of actual disposal of the shareholdings. Deferral is revocable if the taxpayer subsequently moves to a third country outside the EU/EEA, disposes of the shareholdings, or ceases to meet the periodic reporting requirements imposed by the AEAT. No late-payment interest accrues during the deferral period while the conditions are maintained.
If the change of residence is to a country outside the EU and EEA (such as the US, Switzerland, the UK post-Brexit or the United Arab Emirates), the exit tax must be paid in the year of departure, with no possibility of deferral. The unrealised capital gain is included in the IRPF return for the year of the change of residence and must be paid within the ordinary IRPF filing period. This rule makes relocation to non-EU/EEA destinations with significant shareholdings particularly costly from a tax perspective if not planned in advance.
Yes. The law provides a return clause: if the taxpayer who has paid the exit tax recovers Spanish tax residence within five years of the change of residence, and the shareholdings have not been disposed of, they may request rectification of the IRPF self-assessment and a refund of the amounts paid as exit tax. This return clause acknowledges that the exit tax operates more as a tax guarantee than a definitive tax charge: if no disposal occurs and the taxpayer returns to Spain, the rationale for the tax disappears.
Yes, the exit tax can also apply to listed shares, provided the quantitative threshold is exceeded. The relevant threshold for listed shares is a total portfolio value of 4 million euros. For listed shares below that threshold, the exit tax does not apply. For listed shares above that value, the valuation is the quoted price on the date of the change of residence, which simplifies the calculation compared to interests in unlisted companies.
In ordinary capital gains taxation, the taxable event is the actual disposal of the asset (sale, gift, etc.). The exit tax brings forward the moment of taxation to the change of tax residence, before any actual disposal takes place. This means the taxpayer pays tax on an unrealised gain: the shareholdings remain theirs, but the unrealised gain is treated as if it had been realised. This difference makes the exit tax particularly burdensome for taxpayers with very large unrealised gains relative to their available liquidity.
Planning a departure from Spain with significant shareholdings is complex and must begin well in advance. Available strategies include: assessment of the optimal timing for the change of residence based on the value of the shareholdings and projected future sales; analysis of the possibility of partial disposal of shareholdings before the change of residence to reduce the exit tax base; choice of a destination with exit tax deferral (EU/EEA) to defer payment until actual sale; corporate restructurings before departure that could reduce the value of the interests subject to the exit tax; and analysis of the destination country's regulations to ensure no double taxation arises.

Speak with a specialist

Complimentary first call. No commitment. Response within 1 hour during office hours.

Free first consultation 30 minutes with a specialist in your area
Fixed quote before we start No surprises, no success fees
Registered tax agent Electronic filing of all tax returns

4.8/5 · Data processed in the EU · GDPR · No commitment

Frequently asked questions

Questions about Exit tax in Spain: taxation when leaving Spain with significant shareholdings

The exit tax is governed by article 95 bis of the Personal Income Tax Act (Ley 35/2006, LIRPF) and affects Spanish tax residents who transfer their residence abroad and meet two cumulative conditions: tax residence in Spain for at least 10 of the last 15 years immediately preceding the change, and ownership of interests in any type of entity (companies, investment funds, ETFs, etc.) valued at more than 4 million euros, or interests representing more than 25% of the share capital of an entity with a market value above 1 million euros.
The capital gain taxed by the exit tax is the difference between the market value of the shareholdings on the date of the change of residence and the acquisition value (purchase price plus deductible costs). Market value is determined by asset type: for listed securities, the quoted price; for interests in unlisted entities, the higher of the net asset value attributable to the interest and the capitalised value of the average results over the last three closed financial years. The gain is taxed in the savings income base of the IRPF at rates of 19% (up to 6.000€), 21% (6.000-50.000€), 23% (50.000-200.000€), 27% (200.000-300.000€) and 28% (above 300.000€).
When the change of residence is to a Member State of the European Union or to a European Economic Area country with which Spain has an effective tax information exchange agreement, the taxpayer may request deferral of the exit tax payment until the moment of actual disposal of the shareholdings. Deferral is revocable if the taxpayer subsequently moves to a third country outside the EU/EEA, disposes of the shareholdings, or ceases to meet the periodic reporting requirements imposed by the AEAT. No late-payment interest accrues during the deferral period while the conditions are maintained.
If the change of residence is to a country outside the EU and EEA (such as the US, Switzerland, the UK post-Brexit or the United Arab Emirates), the exit tax must be paid in the year of departure, with no possibility of deferral. The unrealised capital gain is included in the IRPF return for the year of the change of residence and must be paid within the ordinary IRPF filing period. This rule makes relocation to non-EU/EEA destinations with significant shareholdings particularly costly from a tax perspective if not planned in advance.
Yes. The law provides a return clause: if the taxpayer who has paid the exit tax recovers Spanish tax residence within five years of the change of residence, and the shareholdings have not been disposed of, they may request rectification of the IRPF self-assessment and a refund of the amounts paid as exit tax. This return clause acknowledges that the exit tax operates more as a tax guarantee than a definitive tax charge: if no disposal occurs and the taxpayer returns to Spain, the rationale for the tax disappears.
Yes, the exit tax can also apply to listed shares, provided the quantitative threshold is exceeded. The relevant threshold for listed shares is a total portfolio value of 4 million euros. For listed shares below that threshold, the exit tax does not apply. For listed shares above that value, the valuation is the quoted price on the date of the change of residence, which simplifies the calculation compared to interests in unlisted companies.
In ordinary capital gains taxation, the taxable event is the actual disposal of the asset (sale, gift, etc.). The exit tax brings forward the moment of taxation to the change of tax residence, before any actual disposal takes place. This means the taxpayer pays tax on an unrealised gain: the shareholdings remain theirs, but the unrealised gain is treated as if it had been realised. This difference makes the exit tax particularly burdensome for taxpayers with very large unrealised gains relative to their available liquidity.
Planning a departure from Spain with significant shareholdings is complex and must begin well in advance. Available strategies include: assessment of the optimal timing for the change of residence based on the value of the shareholdings and projected future sales; analysis of the possibility of partial disposal of shareholdings before the change of residence to reduce the exit tax base; choice of a destination with exit tax deferral (EU/EEA) to defer payment until actual sale; corporate restructurings before departure that could reduce the value of the interests subject to the exit tax; and analysis of the destination country's regulations to ensure no double taxation arises.
Email
Contact