Skip to content

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

The application of the reinvestment exemption in Personal Income Tax (IRPF) frequently raises doubts regarding the chronological order of operations. A recent ruling from the Directorate General of Taxes (DGT) has clarified the temporal scope of this tax benefit for taxpayers operating with their primary residence.

What the DGT has ruled

The tax authority's criteria establish that the two-year period provided for in the regulations for the reinvestment exemption is not strictly subsequent to the sale of the old home. The regulations allow the acquisition of a new primary residence made in the two-year period prior to the transfer of the home being sold to be considered a reinvestment.

For this exemption to be effective, the taxpayer must reinvest the amount obtained from the transfer. This amount is determined by subtracting the outstanding principal of the mortgage debt from the transfer value in cases where third-party financing exists. It is important to highlight that the amount to be reinvested includes both the purchase price and the associated expenses, regardless of whether own funds or loans are used for said purchase.

What this means for you

If you are an individual planning to sell your primary residence to acquire another, you are not obliged to wait until the sale of the first is completed to purchase the second. The possibility of making the purchase up to two years in advance offers greater operational flexibility in managing your real estate assets.

This scenario is especially relevant for those who have already acquired a new residence and subsequently proceed with the sale of their old home. The exemption will remain valid as long as the requirements for reinvesting the net amount obtained are met, in accordance with the provisions of the IRPF Law and its Regulations.

What should be done

In an operation of this type, it is necessary to perform a precise calculation of the amount that must be reinvested. This calculation must consider the transfer value and the reduction of the outstanding principal of any mortgage loan linked to the sold home. It is recommended to assess each particular situation to ensure that compliance with the deadlines and the amount reinvested strictly adheres to current regulations.

Frequently asked questions

Can I buy a house today and sell my previous one within a year to avoid paying IRPF?
Yes, the regulations allow the acquisition of the new home to have taken place up to two years before the sale of the old one.
How is the amount I must reinvest calculated?
It is calculated by subtracting the outstanding principal of the mortgage loan from the transfer value of the sold home.
Official binding ruling V5700-26
View full ruling →
Free assessment and quote