Skip to content
Back to index
V5599-26 16 September 2026 · SG de Impuestos sobre la Renta de las Personas Físicas
IRPF · exención por reinversión

Full capital gains tax exemption may apply if net amount is reinvested after mortgage redemption

A taxpayer sold their primary residence, used part of the proceeds to settle the mortgage, and reinvested the remainder in a new home. The DGT ruled that, due to the existence of prior debt, the amount subject to reinvestment is the transfer value minus the outstanding loan principal.

The question raised

Application of the exemption for reinvestment in a primary residence under Article 38 of the Personal Income Tax Law (LIRPF).

The DGT's ruling

In order for the gain from the sale of the primary residence to be exempt, the total amount obtained must be reinvested in a new primary residence within a period of two years (prior to or following the sale). If there was third-party financing for the transferred residence, the total amount obtained is calculated by subtracting from the transfer value the principal of the loan outstanding to be amortized. If the entirety of said resulting amount is reinvested, the exemption on the capital gain shall be total.

Email
Book