Skip to content

Exemption for reinvestment in primary residence: DGT requirements

Managing capital gains derived from the sale of a primary residence requires strict compliance with the deadlines and concepts established in the Personal Income Tax (IRPF) regulations. A recent binding ruling from the Dirección General de Tributos (DGT) has specified the necessary terms for such a gain to be exempt from taxation.

What the DGT has ruled

The DGT has determined that, for the capital gain obtained from the transfer of a primary residence to be exempt, the taxpayer must reinvest the total amount obtained in the acquisition or renovation of a new primary residence. This process must meet two fundamental temporal and usage conditions:

  • The reinvestment must be carried out within a period of two years, either before or after the date of the disposal.
  • The transferred property must have maintained its status as a primary residence at any time during the two years prior to the transfer.

This criterion is based on the provisions of the IRPF Law and its Regulations.

What this means for you

If you are an individual selling your primary residence, whether in Spain or abroad, and wish to avoid the tax impact of the capital gain, you must ensure that the capital obtained is allocated entirely to the new residence. If the reinvestment is partial, the exemption will only apply proportionally to the amount reinvested. This scenario is especially relevant for tax residents in Spain who manage real estate assets abroad and seek to reinvest those funds within the national territory.

What you should do

It is necessary to verify that the sold property met the requirement of being a primary residence during the two-year period prior to the sale. Likewise, you must rigorously monitor the two-year deadlines for the purchase or renovation of the new residence. Since compliance with these requirements is decisive for the application of the exemption, it is recommended to assess each particular situation to ensure that the operation complies with current regulations.

Frequently asked questions

What happens if I do not reinvest the total amount?
The exemption will only apply proportionally to the amount that is actually reinvested.
Can the exemption be applied if the sold property was abroad?
Yes, provided that the taxpayer is a tax resident in Spain and meets the reinvestment requirements.
Official binding ruling V1860-25
View full ruling →
Email
Contact