Selling Within 5 Years in Spain: When the CGT Exemption Actually Applies
Wesna GroupSpain has no blanket 5-year capital gains exemption. Residents pay 19% to 28% on the gain, non-residents a flat 19%, and the only real escape is the primary-residence reinvestment rule, which requires three years of habitual occupation.
Spain has no blanket 5-year capital gains exemption. Residents pay between 19% and 28% on the profit, non-residents a flat 19%, and the buyer withholds 3% of the sale price on the day of signing if the seller is non-resident. The only genuine relief on a sale within five years is the primary-residence reinvestment exemption, which requires three years of habitual occupation and full reinvestment within two years.
That gap between what sellers assume and what the Agencia Tributaria actually grants is where most avoidable tax bills are born. The rules below cover 2026, with the numbers at each budget tier and the situations that quietly disqualify sellers who thought they were covered.
Does Spain have a 5-year capital gains exemption?
No. The confusion usually comes from Germany's 10-year Spekulationsfrist or the UK's private residence relief, neither of which has a Spanish equivalent. In Spain the length of ownership does not exempt a gain. A property sold after 20 years is taxed the same way as one sold after 20 months: the profit, calculated as sale price minus documented acquisition cost minus qualifying expenses, enters the savings-income base and is taxed on the scale below.
What does exist, and what people sometimes remember as a five-year rule, is the exención por reinversión en vivienda habitual. It has a three-year occupancy threshold, not five, and it applies only to a primary residence being replaced by another primary residence. Everything else, second homes, rentals, off-plan flips, inherited property sold quickly, is fully taxable.
What is Spain's actual capital gains tax on property in 2026?
For tax residents the gain sits inside the savings-income base (base del ahorro) and pays the following rates:
| Gain bracket (EUR) | Rate 2026 |
|---|---|
| 0 to 6,000 | 19% |
| 6,000 to 50,000 | 21% |
| 50,000 to 200,000 | 23% |
| 200,000 to 300,000 | 27% |
| Above 300,000 | 28% |
Non-residents pay a flat 19% on the gain regardless of size, and the buyer is legally obliged to withhold 3% of the purchase price and pay it to Hacienda via Modelo 211. The seller then files Modelo 210 within four months of signing. If the 3% retention exceeds the tax due, the surplus is refunded, usually six to twelve months later. Our walk-through of the filing is here: Modelo 210 for non-resident owners.
A municipal layer sits on top. Plusvalía municipal taxes the increase in cadastral land value between purchase and sale, calculated by the ayuntamiento. It is separate from national CGT, cannot be avoided by reinvestment, and is one of the reasons a quick flip is rarely as clean as the headline gain suggests.
When does the primary-residence exemption apply?
Three conditions must all be met. Missing one turns the sale back into a fully taxable event.
Habitual residence for at least three years. The property must have been the seller's vivienda habitual continuously for 36 months before the sale, or, if the seller had to move sooner for reasons the tax office accepts (job transfer, marriage, medical), from the moment occupation began. NIE registration alone does not prove habitual residence; padrón, utility consumption and matching tax filings do.
Reinvestment within two years. The full net sale price, after settling the outstanding mortgage on the old home, must be reinvested in another primary residence. The two-year window runs from the sale date in either direction, so a home bought up to 24 months before selling the old one also qualifies. Partial reinvestment produces partial exemption in the same proportion.
The new home becomes the habitual residence. Occupation must begin within 12 months of purchase or completion and continue for at least three years. Buying an investment flat and calling it a home does not survive an inspection.
EU and EEA non-residents have been allowed to use this same exemption since 2015, provided the replacement home is in an EU or EEA state and the same occupation and reinvestment rules are followed. Non-EU sellers, including UK residents since Brexit, cannot use it and pay the 19% in full. The Brexit consequences on ownership more broadly are covered in the 90/180 rule for British owners.
A separate exemption applies to sellers aged 65 or over: full CGT relief on the sale of a habitual residence, no reinvestment required. It is one of the reasons Spanish inheritance planning often waits.
What does the tax bill actually look like at each budget tier?
The table below compares a resident seller and a non-resident seller on the same gain, ignoring plusvalía municipal and notary costs. Gains are calculated after documented purchase costs (ITP or VAT, notary, registry, legal fees) and qualifying improvements have been added to the cost base.
| Net gain | Resident CGT | Non-resident CGT (19%) |
|---|---|---|
| EUR 20,000 | EUR 4,080 | EUR 3,800 |
| EUR 50,000 | EUR 10,380 | EUR 9,500 |
| EUR 100,000 | EUR 21,880 | EUR 19,000 |
| EUR 200,000 | EUR 44,880 | EUR 38,000 |
| EUR 350,000 | EUR 85,880 | EUR 66,500 |
The resident scale bites hardest at the top: a EUR 350,000 gain costs a resident roughly EUR 19,000 more in national CGT than a non-resident on the same profit. At small gains the difference is marginal, and residents keep the reinvestment exemption in full, which non-EU non-residents do not. For most people selling their only Spanish home and staying in Spain, resident status plus the exemption is the cheaper path.
Against this you should hold the price movement in the coastal market. The INE provincial house price index shows Alicante and Murcia posting double-digit annual gains through 2024 and 2025, which is what pushes short-hold sellers into taxable territory. Our own read of the numbers is in Costa Blanca square-metre prices 2026 vs 2024.
Where does the opportunity sit if you want to sell inside five years?
Three scenarios work cleanly on the numbers, and one that people talk about does not.
Genuine relocation upgrade. A Torrevieja apartment lived in for three-plus years, sold to buy a house 40 minutes inland inside 24 months. Full exemption on the gain, and the new property continues as habitual residence. This is the textbook use of the rule and is common among residents who arrived on a Non-Lucrative Visa or a Digital Nomad Visa and outgrew their first choice.
Off-plan resale before completion. Some buyers assign the contract before escritura. The gain is still taxable, but the cost base includes the deposit and any staged payments already made, and no plusvalía applies because no cadastral transfer has occurred. The economics behind this route are set out in off-plan versus resale five-year returns.
Renovation flip inside 18 to 30 months. Documented improvements (structural work, licensed energy-efficiency upgrades, permitted extensions) raise the cost base. Cosmetic works and undocumented cash payments do not. The realistic maths, including the CGT hit at the end, is in Spain renovation flip 2026 Costa Blanca numbers.
What does not work is the assumption that renting the property short-term for a couple of years, then selling, somehow shelters the gain. Once the property has been declared as producing rental income, or the neighbours can point to a rotating cast of guests, the vivienda habitual claim collapses on inspection.
Which risks would break the exemption thesis?
The exemption depends on evidence the seller may not be keeping, and on a two-year clock that has no discretionary extension. Five things break it more often than any other.
Habitual residence is proven, not declared. Hacienda cross-checks padrón registration, IBI receipts, water and electricity consumption, healthcare enrolment, school registration for children, and the address on personal income tax filings. A property that used 200 kWh a month while claimed as habitual for three years will fail the check.
Partial reinvestment gives partial relief only. Sell for EUR 400,000 net and reinvest EUR 300,000, and only 75% of the gain is exempt. Many sellers underestimate the acquisition costs on the new home (roughly 10% to 13% of price) and end up short. The full cost breakdown is in the total cost of buying property in Spain.
The two-year clock is strict. Delays in a new-build completion, mortgage refusal on the new home, or a slow probate on the old one can push reinvestment past 24 months. Hacienda does not extend the window.
Non-EU status after Brexit. UK-resident sellers cannot use the reinvestment exemption at all. A British owner who moves back to the UK, lets the Spanish home for two years, and then sells pays 19% on the entire gain plus plusvalía, with no offset available for buying elsewhere in the EU.
Currency risk on repatriation. A EUR 100,000 gain looks different in GBP or NOK depending on the day. This is separate from tax but has caught sellers who timed the market well in euros and badly in sterling. Practical routing is covered in transferring money to Spain from the UK.
Frequently asked questions
Do I pay CGT if I inherit a property and sell it within a year? Yes. The cost base is the value declared for inheritance tax, so if the property is sold quickly at that value the gain is often near zero. If the market has moved up, the difference is taxable at the scale above. The habitual residence exemption does not transfer with the inheritance.
Can I offset a loss on one Spanish property against a gain on another? Residents can offset gains and losses on capital assets in the same tax year, and carry unused losses forward for four years. Non-residents cannot; each Modelo 210 filing stands alone.
Does the mortgage on the property affect the CGT calculation? No. CGT is calculated on price differences, not on cash flow. The outstanding mortgage is repaid at signing and reduces the cash you walk away with, but it does not reduce the taxable gain.
What counts as a qualifying improvement that raises my cost base? Structural extensions, licensed reforms with an architect's certificate, energy-efficiency upgrades with matching invoices, and any work that required a building licence. Repainting, replacing appliances and general upkeep do not qualify. Keep the facturas.
Next steps
Run the numbers on your own gain before you list. Our Spain property tax calculator covers the CGT scale, the 3% retention and the typical plusvalía range, so you see the net proceeds before an agent's valuation shapes expectations. For a second read on a specific sale, the office in Mislata answers on +34 744 64 42 28.
Get our Costa Blanca property guides
One short email a month with new neighborhood guides, market notes, and rule changes. No spam, unsubscribe in one click.
We use your email only for the newsletter. Read our privacy policy for details.




