Change of Tax Residence and Exit Tax in Spain: Key Considerations, Requirements and Controversies

Changing tax residence outside Spain can have significant tax implications, particularly for taxpayers holding substantial corporate or financial interests. In certain cases, losing Spanish tax residence may trigger the so-called exit tax, which allows latent capital gains to be taxed even though no actual sale has taken place.

When considering a change of tax residence to another jurisdiction, Personal Income Tax taxpayers often wonder whether there are any practical implications beyond ceasing to be taxed in Spain or complying with information obligations regarding the change before the Tax Authorities.

In particular, for individuals holding significant corporate or financial interests, leaving Spain may trigger a less obvious consequence for individuals: taxation on capital gains that have not yet materialised.

This is the so-called exit tax, a regime that allows certain latent gains to be taxed merely because the taxpayer loses their status as a Spanish Personal Income Tax taxpayer, raising important issues of liquidity, valuation, double taxation and proportionality.

This analysis is particularly relevant in international mobility processes, where other special tax regimes may also come into play, such as the Beckham Law and its application to directors of Spanish companies.

What is the exit tax in Spain?

Technically, the exit tax is not an autonomous tax. It is a special rule provided for in Article 95 bis of Law 35/2006, of 28 November, on Personal Income Tax (LIRPF), which brings forward the taxation of certain latent capital gains when Spain will lose its future ability to tax them.

Requirements for the application of the exit tax in Spain

The exit tax is not triggered merely by leaving Spain, filing a deregistration notice or obtaining a tax residence certificate issued by another State. Three requirements must be met simultaneously:

a) The individual must lose their status as a Personal Income Tax taxpayer as a result of the change of residence. In other words, the taxpayer must no longer meet the residence criteria under Article 9.1 LIRPF: physical presence, centre of vital economic interests, or the presumption relating to a non-separated spouse and minor children residing in Spain.

b) The individual must have been a Personal Income Tax taxpayer for at least ten of the fifteen tax periods preceding the last tax period to be declared for this tax.

c) One of the valuation thresholds provided for in the legislation must be met.

In relation to the valuation thresholds, the regime applies where:

  • the aggregate market value of the shares or interests exceeds EUR 4,000,000; or
  • if that amount is not reached, the taxpayer holds more than 25% in an entity and the market value of that holding exceeds EUR 1,000,000. In this second case, only the gain corresponding to the holdings that meet both requirements is affected.

In addition, changes of tax domicile are among the areas of attention of the Tax Authorities under the 2026 Tax Control Plan.

Which assets are affected by the exit tax?

The exit tax does not apply to the taxpayer’s entire estate. Its scope is limited to shares and interests representing participation in the equity of entities.

Therefore, the main assets affected are listed or unlisted shares, holdings in family businesses, interests in foreign companies or in collective investment undertakings, provided that the statutory thresholds are met.

How is the latent capital gain calculated?

The exit tax attributes a capital gain arising from the latent gain of the taxpayer who transfers their tax residence.

As a general rule, this capital gain is determined by the positive difference between the market value of the shares or interests and their acquisition value.

The valuation is carried out on the accrual date of the last tax period in which the taxpayer must file Personal Income Tax in Spain.

The capital gain is included in the savings tax base, which for the 2025 tax year is taxed at rates between 19% and 30%, and is allocated to that last period in which the taxpayer must be taxed under Personal Income Tax.

Transfer to the European Union or the European Economic Area

Where the transfer is made to a Member State of the European Union or the European Economic Area with effective exchange of information, the taxpayer may opt for a special deferral regime.

This regime allows the capital gain to remain suspended for a further ten tax years, instead of being taxed immediately on that latent gain.

The tax liability may be triggered, among other cases, if:

  • the holdings are transferred inter vivos;
  • the taxpayer ceases to reside in the European Union or in the European Economic Area;
  • the taxpayer fails to comply with the communication obligations relating to the continued ownership of the shares or interests and tax residence in an EU/EEA State.

Main controversies: liquidity, valuation and double taxation

The exit tax, as a tax mechanism intended to secure taxation of certain latent capital gains, has not been free from controversy for obvious reasons: the taxpayer may be required to pay tax on an increase in value or capital gain that has not yet materialised and that may, in fact, never effectively materialise.

Its compatibility with European Union law has been litigated before the Court of Justice of the European Union in cases such as Lasteyrie du Saillant (C-9/02), National Grid Indus (C-371/10), Wächtler (C-581/17) and Commission (C-581/17).

Ultimately, it has been held that, provided the exit State allows payment of the capital gain to be deferred when the transfer is made to an EU/EEA country or to a State with which there is a free movement agreement, and no automatic or disproportionate guarantees are required, the exit tax is compatible with European Union law and, in particular, with the principle of free movement of persons.

However, the possibility of double taxation is not expressly addressed. One State may tax the latent gain at the time of departure, while the new State of residence may later tax the gain when the shares or interests are actually sold.

If the destination State does not recognise the value used in Spain as the new acquisition value, the same economic increase in value may be taxed in both countries. Double tax treaties do not always correct this double taxation.

What happens if the taxpayer becomes resident in Spain again?

If the individual recovers Spanish tax residence without having transferred the holdings, the LIRPF allows, in certain cases, the taxation to be rendered ineffective or the amounts paid under the exit tax to be refunded.

This rule reflects the purpose of the regime: to tax the capital gain when Spain may definitively lose the authority to do so, rather than penalising temporary relocations or situations in which the taxpayer again becomes subject to Spanish Personal Income Tax.

Conclusion: planning before changing tax residence

As with any efficient tax planning exercise, the analysis should not begin once the relocation has already taken place, but before the loss of Spanish tax residence occurs.

In practice, it will be necessary to review the taxpayer’s residence history, identify the affected holdings, properly document their acquisition value and determine their market value in accordance with the applicable rules.

The destination jurisdiction must also be analysed, as it will determine the possibility of deferring taxation, the communication obligations and the potential risk of double taxation on a future transfer.

Prior planning therefore makes it possible not only to estimate the tax cost of departure, but also to anticipate valuation and liquidity issues, comply properly with formal obligations and coordinate Spanish taxation with that of the new State of residence.

Frequently asked questions on exit tax and change of tax residence

The exit tax is a special Personal Income Tax rule that allows certain latent capital gains to be taxed when an individual loses Spanish tax residence and meets specific requirements relating to prior residence and the value of their holdings.

No. It is not triggered by the mere change of residence. Specific requirements must be met, including having been a Personal Income Tax taxpayer for at least ten of the previous fifteen tax years and exceeding certain value thresholds in shares or interests.

The regime mainly affects shares and interests in entities, both listed and unlisted, including holdings in family businesses, foreign companies or collective investment undertakings.

The capital gain is calculated, as a general rule, as the positive difference between the market value of the shares or interests and their acquisition value, on the accrual date of the last tax period in which the taxpayer must be taxed under Personal Income Tax in Spain.

Where the transfer is made to a Member State of the European Union or the European Economic Area with effective exchange of information, a special deferral regime may apply, provided the relevant communication obligations are complied with.

Yes. There may be a risk of double taxation if Spain taxes the latent gain at the time of departure and the new State of residence subsequently taxes the gain when the holdings are actually transferred, particularly if it does not recognise the value declared in Spain as the new acquisition value.

If the taxpayer recovers Spanish tax residence without having transferred the holdings, the legislation allows in certain cases for the taxation to be rendered ineffective or for the amounts paid to be refunded.

More Technical Articles