Skip to content

Doctrine by topic · DGT Observatory

Amount Obtained: DGT doctrinal evolution

How the DGT's position on this topic has evolved, and the rulings it rests on.

← DGT Observatory

How the DGT's position has evolved

Settled doctrine High confidence 8 rulings · 2018–2025

Current position

The exemption requires reinvesting the total amount obtained in the acquisition or rehabilitation of a new primary residence within a period of two years (before or after the sale). The amount obtained is calculated by subtracting the principal of the outstanding loan from the transfer value. If the reinvestment is partial, only the proportional part of the gain corresponding to the amount actually invested shall be excluded.

The DGT's position remains constant regarding the definition of the requirements for the reinvestment exemption. Clarifications have been integrated concerning the calculation of the amount obtained, specifically the deduction of the outstanding principal and the application of proportionality in the event of partial reinvestment. There are no substantive changes to the timeframe or the nature of the housing.

Turning points

  1. V2195-19

    Specifies that the amount obtained for the calculation of the exemption is the transfer value minus the outstanding loan amounts.

  2. V2376-24

    Formally defines the transfer value as the sale price minus expenses and inherent taxes paid by the seller.

Analysis based on 8 of 8 rulings with a stated position. Updated 2 October 2026.

Rulings on this topic

8
V0245-25 5 Mar 2025

Reinvestment exemption available for habitual home sale

SG de Impuestos sobre la Renta de las Personas Físicas
exención por reinversiónvivienda habitualganancia patrimonialvalor de transmisiónvalor de adquisición LIRPF — Ley 35/2006 del IRPF art. 33.1LIRPF — Ley 35/2006 del IRPF art. 34.1.a)
Affects CompanyExpat · Non-residentIndividual
V2195-19 16 Aug 2019

Reinvestment exemption for principal residence applies even with joint loans

SG de Impuestos sobre la Renta de las Personas Físicas
exención por reinversiónvivienda habitualpréstamo solidarioganancia patrimonialimporte obtenido LIRPF — Ley 35/2006 del IRPF art. 38.1RIRPF — RD 439/2007, Reglamento del IRPF art. 41.1
Affects CompanyExpat · Non-residentIndividual

Apply this to your case

Email
Contact