Reinvestment in a main home: when a non-resident pays no tax on the gain
Tributame teamLast reviewed:
In short
An owner resident in the EU, or in the EEA with exchange of information, who sells what was their main home in Spain and reinvests the proceeds in another main home pays no tax on that gain, in full or in proportion to what is reinvested. The deadline is two years from the sale, or the two years before it. The buyer still withholds 3 %.
There is an exemption for someone who sells their home and buys another. Among residents in Spain it is very well known. For a non-resident it also exists, with its own conditions. Here is when it applies, what has to be reinvested and how it is requested, in the Modelo 210 for the sale.

Who can apply the exemption?
An owner who lives in a state of the European Union, or of the European Economic Area with which there is effective exchange of tax information. The seventh additional provision of the non-resident law says so: gains of taxpayers resident in the EU from the transfer of what was their main home in Spain may be excluded from tax, as long as the total amount obtained is reinvested in buying a new main home. If you live in the United Kingdom, the United States or any country outside the EU and the EEA, this exemption does not apply.
What is a main home for a non-resident?
The one that has been their residence for at least three years in a row, according to the Personal Income Tax Regulations, to which the law refers. With less than three years, it also counts if there was a reason that forced a change of address, such as a job move, getting married or a death. If the reason is debatable, it is a case for a person to look at.
In addition, the home must be the main home at the time of the sale or have been so up to any day in the previous two years. If it stopped being so longer ago, there is no exemption.
How much has to be reinvested?
The total amount obtained from the sale. If you bought the home with a mortgage, the Regulations reduce it: the total amount obtained is considered to be the sale value less the principal of the loan still outstanding. This case is covered in the guide to selling a mortgaged home.
If you reinvest less, the exemption is proportional: only the part of the gain that corresponds to what is reinvested is left untaxed.
Within what period must it be reinvested?
In a period of no more than two years from the sale. The Regulations also admit that the new home was bought in the two years before the sale, with the amounts obtained in it. If the purchase of the new home came earlier, you have to see which part of the sale money pays for it: on Tributame, that case goes to manual review.
What does it look like with numbers?
With made-up data: an owner resident in Germany sells for 300,000 € what was their main home, with an outstanding mortgage of 80,000 €. The gain is 60,000 €.
- Total amount obtained: 300,000 − 80,000 = 220,000 €.
- They reinvest 165,000 € in another main home: 75 %.
- Gain excluded: 75 % × 60,000 = 45,000 €.
- Gain that is taxed: 15,000 €, at 19 % = 2,850 €.
How is it applied: in the 210 or with Modelo 228?
It depends on when you reinvest.
- If you already bought the new home before filing the 210: the law says that the reinvestment, total or partial, can be taken into account to determine the debt in the 210 itself.
- If you buy it afterwards: you file the 210 and pay, and then ask for the refund with Modelo 228, within three months of the date of purchase of the new home. You have to provide the documents for the sale and the purchase.
There is more on the deadline in the Modelo 210 deadlines (in Spanish). On Tributame, if the 210 is filed before the new home is bought, the calculation does not apply the exemption and warns about the date of the 228.
Does anything change in the buyer’s 3 %?
No. The law says that the buyer’s withholding and the filing of the 210 still apply, even if there is a reinvestment. The 3 % is paid in with the 211 and the seller deducts it in their return. The guide to recovering the 3 % withholding explains how.
Can it be combined with the 2012 exemption?
Yes: the 2012 law says that, if the property was the main home and is reinvested, the reinvestment applies to the part of the gain left after the 50 % exemption. It is in the guide to the exemption for a property bought in 2012.
Which documents are needed?
- The sale deed and the purchase deed of the new home.
- Proof that the home sold was the main one: registration on the census, utility bills, residence certificate.
- The tax residence certificate in the EU or the EEA.
- The certificate of the mortgage outstanding on the sale date.
- A copy of Modelo 211.
The amount for each case will come from the Modelo 210 calculator.
Sources
- Non-Resident Income Tax Law, seventh additional provision (exemption for reinvestment in a main home) (in Spanish)
- Non-Resident Income Tax Regulations (RD 1776/2004), second additional provision (refund request for reinvestment) (in Spanish)
- Personal Income Tax Regulations (RD 439/2007), articles 41 (reinvestment) and 41 bis (concept of main home) (in Spanish)
- Personal Income Tax Law 35/2006, article 38 (exemption for reinvestment in a main home) (in Spanish)
- Non-Resident Taxation Manual, chapter 3: capital gains from the sale of property, updated 13/11/2026 (in Spanish)
- AEAT: Modelo 228, refund request for reinvestment in a main home by non-residents (in Spanish)
This guide is for information only. If an owner's case is out of the ordinary, get a professional review.