# Spain Primary Residence Reinvestment Relief: 2026 CGT Rollover Guide

> Reinvest 100% of the net proceeds from your Spanish primary residence into another one within two years and the capital gains tax drops to zero. Here is how the exención por reinversión works in 2026, who qualifies, and where it breaks.

Published: 2026-09-24
Author: Erick Kit
Canonical: https://wesnagroup.com/blog/spain-primary-residence-reinvestment-relief-2026
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
Cite as: Wesna Group, "Spain Primary Residence Reinvestment Relief: 2026 CGT Rollover Guide", wesnagroup.com

---
Sell your Spanish primary residence for EUR 450,000 after buying it for EUR 280,000, and the EUR 170,000 gain attracts IRPF savings tax of roughly EUR 37,000 at the 2026 scale. Reinvest the full net proceeds into another primary residence within two years and that bill drops to zero. This is the exención por reinversión en vivienda habitual, still the single most valuable relief in Spanish property tax.

## What is the Spain primary residence reinvestment relief?

The relief lets a Spanish tax resident sell their habitual home and pay no capital gains tax on the profit, provided the proceeds are reinvested into another habitual home. The legal base sits in Article 38 of the IRPF Law (Ley 35/2006) and Article 41 of its regulation (RD 439/2007). The Agencia Tributaria calls the mechanism reinversión en vivienda habitual. In practice it works as a straight rollover, similar in spirit to what UK and US buyers know from their own primary residence rules but stricter on timing.

Three conditions must line up. First, the property sold has to qualify as vivienda habitual, meaning you lived in it continuously for at least three years, or you left for a legally accepted reason such as job transfer, marriage, separation, or a change in health. Second, the money has to be reinvested into another dwelling that will itself become your habitual residence within twelve months of purchase and stay so for at least three years. Third, the reinvestment has to happen inside a two-year window, counted either forward or backward from the sale date. Buying the new home first and selling the old one within twenty-four months qualifies just as much as the more common sell-first path.

If you reinvest only part of the proceeds, the exemption is proportional. That single detail catches out most sellers who assume they can pocket a portion tax free.

## Who qualifies in 2026, residents, non-residents and retirees over 65?

The headline relief is for Spanish tax residents. If your fiscal residence sits in Spain and the property you are selling was your habitual home, you file the gain on your annual Renta and claim the exemption in box 1626 and following. The tax office does not send money back; you simply do not pay it, provided the reinvestment box on the following year's Renta is ticked correctly.

Non-residents from the EU, Iceland, Norway, or Liechtenstein can also claim the same exemption. Law 26/2014 extended this after Spain lost a case at the Court of Justice of the EU, and it applies to Modelo 210 filings. The mechanism is different: the buyer of your Spanish home still withholds 3% of the sale price under the standard non-resident retention, and you then request the refund by claiming the reinvestment on the appropriate Modelo 210 within four months. British sellers, since Brexit, do not benefit from this route; the UK is a third country for these purposes. See our full note on the [3% retention for non-resident sellers](/blog/selling-spanish-property-non-resident-2026-3-percent-retention) for how the withholding interacts with the refund cycle.

Sellers aged 65 or over get an even cleaner deal. Any Spanish tax resident who is 65 or older on the day of sale pays no CGT on their habitual residence, full stop, no reinvestment required. That is the single biggest concession in the Spanish personal tax code for older owners and it explains a lot of the trade-down activity along the Costa Blanca and Costa Cálida coasts.

## How does the reinvestment calculation actually work?

The number that matters is not the sale price. It is the reinvestable amount, which is the sale price minus the outstanding mortgage cancelled at completion. That reinvestable amount is what you must plough into the new home to secure full exemption. If you only put a portion of it into the new purchase, the exempt gain is scaled down proportionally.

A worked example makes this concrete. Assume a couple bought an Alicante flat in 2014 for EUR 220,000 including costs, sell in 2026 for EUR 400,000 with a EUR 60,000 mortgage still to cancel, and buy a new home for EUR 380,000.

| Line | Amount (EUR) |
|---|---|
| Sale price | 400,000 |
| Outstanding mortgage cancelled | 60,000 |
| Net reinvestable amount | 340,000 |
| Reinvested into new home | 340,000 |
| Reinvestment ratio | 100% |
| Acquisition cost of old home | 220,000 |
| Raw capital gain | 180,000 |
| Exempt gain (100% of 180,000) | 180,000 |
| Taxable gain | 0 |
| IRPF savings tax due | 0 |

Swap the reinvestment for EUR 250,000 instead, and the picture changes. The reinvestment ratio is 250,000 / 340,000, or 73.5%. Only 73.5% of the gain is sheltered. The remaining 26.5%, or EUR 47,700, is taxed on the 2026 savings scale: 19% on the first EUR 6,000, 21% up to EUR 50,000, 23% up to EUR 200,000, 27% up to EUR 300,000, 28% above. On this gain, tax works out at roughly EUR 9,900.

A few points of arithmetic trip people up. The costs of sale (agency fee, plusvalía municipal, energy certificate, cancellation of mortgage) reduce the sale price for the gain calculation. The costs of acquisition of the original home (notary, land registry, ITP or VAT, initial lawyer) increase the acquisition value. Both sides can be documented and both matter. A EUR 15,000 swing on either side moves the tax bill by roughly EUR 3,000 to EUR 4,000.

One detail reads as a gift and often is: if you took out a new mortgage on the new home, the amount financed still counts as reinvestment. The tax authority looks at how much of the sale proceeds you actually put into the new purchase, not whether that new purchase was itself financed. Structure this deliberately with your lawyer and lender.

## What does the relief mean at each budget tier?

The relief scales with the gain, but the practical calculation differs by budget. The table below sets out gross vs net exposure at each tier, assuming full reinvestment of the net proceeds.

| Budget tier | Typical raw gain | CGT without relief | CGT with 100% reinvestment |
|---|---|---|---|
| Under EUR 250,000 | EUR 40,000 to EUR 80,000 | EUR 8,000 to EUR 17,000 | EUR 0 |
| EUR 250,000 to EUR 500,000 | EUR 80,000 to EUR 200,000 | EUR 17,000 to EUR 45,000 | EUR 0 |
| Above EUR 500,000 | EUR 200,000 to EUR 400,000 | EUR 45,000 to EUR 100,000+ | EUR 0 |

**Under EUR 250,000.** A one-bedroom Torrevieja apartment bought in 2015 for EUR 90,000 and sold in 2026 for EUR 155,000 shows a gain of roughly EUR 60,000 after costs. Tax without the relief runs around EUR 12,000. If the seller rolls into a similarly priced flat, the whole bill washes out. Stock at this level is thin but real: our per-town study on [what EUR 250,000 buys in Torrevieja](/blog/what-250000-buys-in-torrevieja-2026) sets out what the money actually delivers today.

**EUR 250,000 to EUR 500,000.** This is the sweet spot for the relief. Coastal apartments in Denia, Guardamar, Los Alcázares, or Pilar de la Horadada bought seven to twelve years ago show gains of EUR 80,000 to EUR 200,000. Trading laterally along the coast, moving from Costa Blanca South to Costa Cálida for the space, or downsizing from a house to an apartment near the same beach all fit within the two-year window. The relief typically shelters EUR 20,000 to EUR 45,000 of tax at this band.

**Above EUR 500,000.** Villas in Moraira, Altea, Jávea, and the Denia hinterland bought before the 2020 to 2024 run show much larger gains. Our note on [capital growth in Spanish coastal towns from 2020 to 2026](/blog/capital-growth-spanish-coastal-towns-2020-2026) sets out the scale. At this band the relief becomes structurally important: on a EUR 300,000 gain, the tax at risk is close to EUR 75,000. Sellers here often reinvest into a smaller, higher-specification property. Note that only one property can qualify as habitual residence at a time.

## Where does the opportunity sit in the 2026 market?

According to the [INE house price index](https://www.ine.es/dyngs/INEbase/en/operacion.htm?c=Estadistica_C&cid=1254736152838&menu=ultiDatos&idp=1254735976607), Spanish residential prices rose in the double digits year-on-year through the first half of 2026, with the coast leading the national average. Our summary of the [Q1 2026 INE reading](/blog/ine-house-prices-q1-2026-spain-13-percent-yoy-2026-06-22) walks through the regional breakdown.

That pace of appreciation makes the reinvestment relief materially more valuable than five years ago. Anyone who bought a coastal habitual residence between 2017 and 2020 and lives in it now is sitting on a gain in the EUR 60,000 to EUR 200,000 range. Moving without the relief means handing 20% to 25% of that gain to the tax office. Moving with the relief keeps the equity working inside the property.

The simplest live moves in 2026 are lateral trades along the coast. Torrevieja to Guardamar. Benidorm to Villajoyosa. Denia to Moraira. La Manga to Los Alcázares. All fit the two-year window comfortably. Available stock sits in our [full sale catalogue](/catalog).

## What risks would break the thesis?

The relief is generous. Four situations kill it.

**The old home was not really your habitual residence.** If you registered your padrón in the property but rented it out most of the time, or spent under 183 days a year there, the tax office can and does reclassify the sale as an investment gain. Three continuous years of real occupation is the minimum. Utility bills, medical records, and school registrations all serve as evidence.

**The new home never becomes habitual.** Buying it inside the two-year window is only half the test. You have twelve months from purchase to move in and three years to stay. Buying a second beach flat and continuing to live in the original is not a reinvestment; it is a second home purchase.

**Partial reinvestment misread as full.** Sellers routinely subtract the mortgage from the wrong side of the equation or forget that furniture, moving costs, and lawyer fees do not count as reinvestment. Only the actual price paid for the new property, its ITP or VAT, and its notary and registry costs qualify. See our note on the [total cost of buying property in Spain](/blog/total-cost-of-buying-property-spain) for what is and is not part of the acquisition value.

**You leave Spain before the three-year occupation clock finishes on the new home.** The relief unravels retroactively if you break residence early without one of the legally accepted reasons. The Agencia Tributaria adds interest and, if it argues bad faith, penalties. For anyone weighing a move under the [Non-Lucrative Visa](/blog/spain-non-lucrative-visa-2026-step-by-step-2026-06-10) or the [Digital Nomad Visa](/blog/digital-nomad-visa-spain-2026-who-qualifies-remote-work-2026-06-17), the residence question is not just an immigration one; it is a tax position.

A fifth trap is more subtle. Selling your primary residence and then failing to buy inside the two years does not simply mean paying the tax you would have paid anyway. You pay it late, with statutory interest and a surcharge that starts at 1% per month up to twelve months and rises from there. If your buy-side plan slips, refile promptly rather than wait.

## FAQ

### Does the reinvestment relief apply to a new-build off-plan purchase?

Yes, provided the property is delivered and becomes your habitual residence within the regulatory windows. The Tribunal Supremo has clarified that payments on account made within the two-year window count as reinvestment even if handover happens later, as long as occupation follows within a reasonable period. This is a technical area; get it in writing from your fiscal adviser before committing.

### Can I claim the relief if I inherited my current home?

You can, if it has been your habitual residence for the required period. The acquisition value for the gain calculation is the value declared for inheritance tax, not zero. That declared value is often lower than market, which increases the taxable gain if you do not reinvest.

### What happens if I sell first and then decide not to buy?

You file the gain on the Renta of the year of sale and pay the tax due, plus interest from the original due date. The Agencia Tributaria expects you to declare the intention to reinvest at the time of sale; if you later abandon the plan, you regularise through a complementary return.

### Does the 3% non-resident retention still get withheld if I plan to claim the reinvestment relief as an EU non-resident?

Yes. The buyer withholds the 3% at completion regardless. You reclaim it through the Modelo 210 refund route after the reinvestment is complete. See our detailed piece on the [Modelo 210 filing](/blog/modelo-210-non-resident-tax-spanish-property-2026) for the mechanics.

## Next steps

Within two years of a possible sale or purchase, get the reinvestment plan on paper before signing the escritura. A one-hour session with a Spanish fiscal adviser saves five figures more often than not. Reach us through [contacts](/contacts) to structure the timing.