Principal residence reinvestment exemption in Spain: how it works

principal residence reinvestment exemption in Spain

The principal residence reinvestment exemption in Spain allows taxpayers to avoid taxation on capital gains when selling their home, provided reinvestment conditions are met.

When a principal residence is sold and a capital gain arises, Spanish personal income tax rules allow that gain to be fully exempt from taxation, provided the proceeds are reinvested in the acquisition of a new principal residence. This is one of the most significant exemptions in Spanish property taxation, though its correct application requires a precise understanding of the requirements, the time limits and in particular, the nuances introduced by recent case law.

Requirements of the exemption.

 

The exemption rests on a straightforward principle: a taxpayer who is simply moving from one home to another should not be penalised for the capital gain that arises in the process. Three conditions must be met for it to apply.

First, the property sold must qualify as the taxpayer’s principal residence, either at the time of the sale or at any point during the two years preceding it. Second, the proceeds must be reinvested in the acquisition of a new principal residence, meaning a property in which the taxpayer takes up effective residence within twelve months of acquisition. Third, the reinvestment must take place within two years of the date of the sale. The rules also allow for advance reinvestment: if the new property was acquired before the old one was sold, the same two-year window applies in reverse.

As regards the formal requirements, where the reinvestment has not yet taken place in the tax year in which the gain arises, the rules provide that the taxpayer should state their intention to reinvest in their tax return. However, the courts have made clear that this is a purely formal requirement: failure to comply does not result in the loss of the exemption, provided that the intention to reinvest is not contradicted by other circumstances in the same or subsequent returns.

Role of mortgage.

 

One of the most frequently misunderstood aspects in practice concerns the treatment of mortgage financing, both on the property being sold and on the property being acquired. The distinction is a significant one.

Where the property sold was subject to a mortgage at the time of the sale, the amount that must be reinvested to obtain full exemption is not the gross sale price, but that price reduced by the outstanding principal of the loan. The reason is that this portion of the proceeds is absorbed by the repayment of the debt and is therefore not available for reinvestment.

The position is different, and more favourable to the taxpayer, when it comes to the mortgage on the property being acquired. The Supreme Court established in 2020 a principle that marked a significant departure from the previous administrative position: for the purposes of determining whether reinvestment has taken place, the full acquisition value of the new property must be taken into account, regardless of whether that amount was paid directly or financed by way of a mortgage. In other words, the loan taken out to purchase the new home does not reduce the amount treated as reinvested. What matters is the acquisition value of the property, not the source of the funds used to pay for it.

Important:

Correct application depends on timing, reinvestment and mortgage structure.

Practical example:

 

A taxpayer sells their principal residence for €200,000, with a mortgage of €30,000 outstanding at the time of the sale. The amount they must reinvest to obtain full exemption is €170,000. If they acquire a new principal residence for €220,000, financing €130,000 by mortgage, the acquisition value (€220,000) exceeds the reinvestment threshold: the exemption is total, regardless of the fact that the greater part of the purchase price was financed.

Partial reinvestment.

 

The exemption does not require reinvestment of the full amount in order to apply. Where the amount reinvested is less than the total proceeds of the sale, the exemption operates on a proportional basis: the portion of the gain corresponding to the amount reinvested will be exempt, with the remainder subject to tax in the normal way. The benefit is not lost; it simply applies to the extent that the conditions are met.

Non-residents in Spain.

 

The reinvestment exemption is, in principle, a benefit available only to taxpayers who are fiscal residents in Spain. However, since 2015 the rules have been extended to taxpayers who, while not resident in Spain, are fiscal residents in a member state of the European Union or the European Economic Area.

In such cases, a non-resident who sells in Spain what was their principal residence may claim the exemption provided they reinvest the proceeds in a new principal residence, on the same terms as a resident taxpayer. The critical factor, however, is fiscal residence at the time of the sale: where the taxpayer is resident in a country outside the EU or EEA, as is now the case with the United Kingdom following Brexit, this option is unavailable and the gain is taxable with no reinvestment relief. That said, given the consistent tendency of the European courts to treat differences in fiscal treatment that lack objective justification as incompatible with the principle of free movement of capital, it cannot be ruled out that this restriction may be open to challenge in certain circumstances. This remains, however, a path that requires careful individual analysis and one that does not yet have the backing of settled case law.

The reverse situation, a taxpayer who moves to Spain and subsequently sells from here what was their principal residence abroad, may also benefit from the exemption, provided that at the time of the sale they are already fiscally resident in Spain and reinvest the proceeds in a new principal residence in accordance with the applicable rules. There is no requirement for the property sold to be located in Spain.

Correctly applying this exemption requires a detailed analysis of each transaction: the dates of sale and acquisition, the mortgage position on both properties, the taxpayer’s fiscal residence and the actual destination of the proceeds. An error in any of these elements may result in the loss of the benefit or the obligation to file a supplementary return with interest for late payment.

At TempleCambria, we help clients apply the principal residence reinvestment exemption in Spain correctly, reviewing the legal requirements, deadlines, mortgage implications and tax residence position in each case. If you are planning to sell your home and reinvest in a new principal residence, we can help you structure the transaction safely and optimise your tax position. Shall we talk?

ÁLVARO MORALES SOUSA

PARTNER – LAWYER
CUSTOM REPRESENTATIVE

TempleCAMBRIA informs that the information provided through our blogs, website, or social media channels is for informational purposes only and is therefore insufficient for making decisions or adopting positions in specific cases.

Users should be aware that legislation and case law may change over time, and the content published through these channels may not be fully up to date. Accordingly, we recommend seeking tailored legal advice.

TempleCAMBRIA is a law firm focused on providing legal services to international clients. Our mission is to support you in ensuring that your decision to live or conduct business in our region is a success, and to make your time with us a truly rewarding and memorable experience.