Over-65 and Main-Residence Capital Gains Exemptions in Spain: Do Non-Residents Qualify?
Can non-residents claim Spain's over-65 or main-residence capital gains exemption? A practical guide to the rules, EU/EEA nuances, and the 3% withholding.

This article is general information, not legal, tax, or immigration advice. Rules and figures change — verify with an official source or a licensed professional before acting.
Over-65 and Main-Residence Capital Gains Exemptions in Spain: Do Non-Residents Qualify?
If you are selling a property in Spain, one of the first questions your accountant will ask is whether you qualify for a capital gains tax (CGT) exemption. Spain offers two well-known reliefs on the sale of a main residence: the reinvestment exemption and the exemption for sellers over 65. Both can wipe out the tax on a substantial gain — but both are strict about who qualifies, and non-residents face a much narrower door than residents.
This guide walks you through how the exemptions work, whether you can claim them as a non-resident, and the practical steps to protect the benefit before you sign at the notary. Tax rules change frequently; before acting, confirm the current wording with the Agencia Tributaria (AEAT) or an independent Spanish asesor fiscal.
The two main-residence CGT reliefs at a glance
When an individual sells a Spanish property, the gain is generally taxed at Spain's savings-income scale (a progressive band that starts around 19% and rises into the high 20s for very large gains). Two reliefs can eliminate that tax on a habitual residence (vivienda habitual):
- Reinvestment exemption (*exención por reinversión*). If you sell your main home and reinvest the full net proceeds into another main home in a qualifying timeframe (generally two years, before or after the sale), the gain is exempt in proportion to the amount reinvested.
- Over-65 exemption. If you are 65 or older at the moment of transfer and the property has been your habitual residence, the entire gain on that sale is exempt — no reinvestment required.
There is also a related over-65 relief that exempts the gain on the sale of any asset (not just the home) if the proceeds — up to a capped amount — are used to buy a qualifying life annuity within six months. That is a separate track with its own rules; ask a contador if it fits your situation.
What "habitual residence" actually means
Both exemptions hinge on the property being your vivienda habitual. Under Spanish tax practice, that generally requires:
- You have occupied the property continuously as your main home for at least three years before the sale (with limited exceptions for job relocation, marriage, divorce, or similar justified causes), and
- You effectively lived there — not just registered on the padrón — with the home occupied within a short window (typically 12 months) after purchase or completion.
A holiday flat you visit for a few weeks a year does not qualify, even if you have owned it for decades. This is the single biggest reason non-residents lose these reliefs.
The core question: can a non-resident claim them?
Here is the honest answer most foreign sellers do not want to hear:
- The reinvestment exemption is available to residents and, under EU rules, has been extended in practice to taxpayers resident in another EU or EEA member state who are reinvesting in a new main residence — including one located in another EU/EEA country. A non-EU non-resident (for example, a US or Canadian citizen selling their Spanish flat) generally cannot claim it.
- The over-65 exemption is likewise structured around the habitual residence of the taxpayer. If you are filing as a non-resident under the Non-Resident Income Tax (IRNR), the property you are selling is by definition not your Spanish habitual residence for tax purposes — you are taxed as a non-resident precisely because you live elsewhere. In that scenario, the classic over-65 exemption does not apply to your Spanish sale.
Following EU case law and Spanish administrative practice, EU/EEA residents who can prove the Spanish property was their genuine habitual home may access reliefs on comparable terms to Spanish residents. Non-EU non-residents typically cannot. Because this area has evolved through court rulings and treaty interpretation, verify your specific position with a Spanish tax advisor and, where relevant, the AEAT's binding-consultation database.
The 3% withholding trap for non-residents
Whenever a non-resident sells Spanish property, the buyer is legally required to withhold 3% of the sale price and pay it directly to the AEAT (Modelo 211) as an advance on the seller's CGT. You then file Modelo 210 within roughly four months of the sale to:
- Declare the actual gain,
- Apply any exemption you qualify for, and
- Either pay the balance or claim a refund of the withheld 3% if your final tax is lower (or zero).
If you legitimately qualify for a full exemption, you will still see the 3% withheld at closing — you recover it later through the refund process, which can take many months. Budget for that cash-flow gap.
How to change residency status before selling — and whether it's worth it
Some owners consider becoming Spanish tax residents before selling in order to unlock the over-65 exemption. This is possible but not casual: Spanish tax residency generally requires spending more than 183 days in Spain in the calendar year, or having your main economic interests here. Once resident, your worldwide income becomes taxable in Spain, and you'll need to file the informational Modelo 720/721 for foreign assets above the thresholds. A short pre-sale move rarely pays off after you factor in worldwide taxation, wealth tax exposure, and the three-year vivienda habitual occupation rule. Model it carefully with a contador before restructuring anything.
Documents you will need to support an exemption claim
If you believe you qualify — for example, an EU-resident seller relying on the reinvestment relief — assemble evidence before you sign the escritura:
- Certificado de empadronamiento histórico showing continuous registration at the address.
- Utility bills (water, electricity, internet) in your name showing real consumption.
- Prior IRPF filings declaring the property as vivienda habitual.
- Purchase deed and, for reinvestment, the deed or binding contract for the replacement home.
- Bank records tracing the sale proceeds into the new purchase.
The AEAT can and does audit these claims years after the fact. Keep the file for at least the statute-of-limitations period (currently four years from the filing deadline).
Common pitfalls to avoid
- Assuming age alone qualifies you. Being over 65 is not enough — the property must be your genuine habitual residence under Spanish criteria.
- Confusing *padrón* registration with tax residency. They are separate concepts; the AEAT looks at both facts and filings.
- Partial reinvestment. If you only roll part of the net proceeds into the new home, only that proportion of the gain is exempt.
- Missing the two-year window for reinvestment, or failing to declare the intention in your next IRPF return.
- Ignoring the *plusvalía municipal*. This separate municipal tax on the increase in land value is owed to the town hall regardless of the state CGT exemption, though residents over 65 selling their habitual residence may benefit from local reliefs in some municipalities — check with the ayuntamiento.
- Relying on the buyer's lawyer. Always retain your own independent Spanish abogado for the sale.
Short FAQ
I'm a US citizen, 70 years old, and I've owned my Málaga flat for 20 years. Do I get the over-65 exemption? If you file as a Spanish non-resident, almost certainly no. The exemption is tied to the property being your habitual residence under Spanish tax rules, which a non-resident does not have here. You will face standard non-resident CGT plus the 3% withholding, and reclaim any overpayment via Modelo 210.
I'm an EU resident selling my former Spanish main home and buying a new main home in France. Can I use the reinvestment exemption? Potentially yes — EU case law has forced Spain to extend the relief to reinvestment into another EU/EEA main residence — but you must document the vivienda habitual status of both properties. Get written advice before closing.
Does the *plusvalía municipal* also have an over-65 exemption? Some municipalities offer reductions or exemptions for elderly sellers of a habitual residence, but rules vary town by town. Ask your local ayuntamiento.
Is there any relief if I'm forced to sell due to health or dependency? Spanish tax rules recognize certain "justified causes" that can preserve vivienda habitual status even without the full three-year occupation. Discuss the specifics with a tax advisor.
Final word. The over-65 and main-residence CGT exemptions are powerful but genuinely designed for people who live in the home they are selling. If that is not your situation, plan for the tax rather than hoping to escape it — and always confirm the current thresholds, rates, and residency tests with the AEAT or a licensed Spanish asesor fiscal before you sign.
More guides in Selling Process
- Which Costs Reduce Your Capital Gains Tax When Selling in Spain? Deductible Improvements vs Repairs
- Energy Certificate and Cédula de Habitabilidad: What Sellers Must Provide in Spain
- The Arras Deposit Contract Explained for Sellers: Securing the Buyer Before Completion in Spain (2026)
- Selling Your Spanish Property from Abroad in 2026: Using Power of Attorney to Close Remotely
- What Documents Do You Need to Sell a Property in Spain? The 2026 Seller's Checklist
- The Real Cost of Selling a House in Spain in 2026: Taxes, Fees and Agent Commission Breakdown