Skip to content

Reinvestment exemption for primary residence may apply if the new home is purchased up to two years before selling the previous one

Managing a primary residence involves significant tax implications for Personal Income Tax (IRPF). One of the most relevant mechanisms is the reinvestment exemption, which allows taxpayers to avoid paying capital gains tax when selling a residence to acquire another.

What the DGT has ruled

The Dirección General de Tributos (DGT) has clarified the temporal and material scope of this tax benefit. According to the established criteria, the exemption is applicable as long as the new primary residence is acquired within a two-year period, whether before or after the transfer of the previous home.

Furthermore, the ruling addresses two fundamental technical aspects:

  • Fungibility of funds: It is not mandatory to use the exact same funds obtained from the sale. Since money is a fungible element, it is sufficient to invest an amount equivalent to the proceeds obtained from the transfer.
  • Reinvestment base: The amount that must be reinvested includes both the acquisition price and the associated costs, regardless of whether the operation was financed through a mortgage loan or with own funds.

What this means for you

If you are an individual planning to change your residence, this criterion expands your operational maneuvering room. The possibility of computing the two-year period retroactively allows an acquisition made prior to the sale of the old home to be valid for the exemption. Additionally, the flexibility in the use of funds and the inclusion of acquisition costs in the reinvestment calculation facilitate compliance with legal requirements to reduce the tax burden.

What you should do

In an operation of this type, it is necessary to perform a precise calculation of the amounts involved. You must verify that the total amount reinvested (price plus expenses) covers the amount obtained from the sale of the previous home to ensure the tax benefit. Since the regulations are governed by the IRPF Law and its Regulations, each purchase and sale situation must be analyzed in detail to confirm that the deadlines and amount requirements demanded by the Administration are met.

Frequently asked questions

Can I use a loan for the new home and still apply the exemption?
Yes, the reinvested amount includes the price and expenses, regardless of whether mortgage financing or own funds are used.
Must I use the exact money I received from the sale of my house?
No, money is fungible, so it is sufficient for the amount invested to be equivalent to the amount obtained from the sale.
Official binding ruling V1261-26
View full ruling →
Email
Contact