If you're selling property, shares, or other assets in Spain, understanding the available Spain tax deductions 2025/2026 can make a significant difference to your final tax bill. Spain's capital gains tax (Impuesto sobre las Ganancias Patrimoniales) applies to profits from the disposal of assets, but the Spanish tax code offers a range of capital gains tax allowances Spain provides to help reduce your liability—if you know where to look.
In this guide, we break down every major deduction, allowance, and Spain tax relief mechanism available under the current 2025/2026 tax framework. Whether you're a Spanish tax resident, a non-resident investor, or an expat planning a property sale, this article will help you navigate the system with confidence.
How Capital Gains Tax Works in Spain: A Quick Overview
Before diving into deductions and allowances, it's important to understand how Spain classifies and taxes capital gains.
Capital gains in Spain fall under the savings tax base (base imponible del ahorro) and are taxed at progressive rates for residents:
| Taxable Gain (EUR) | Tax Rate |
|---|---|
| Up to €6,000 | 19% |
| €6,001 – €50,000 | 21% |
| €50,001 – €200,000 | 23% |
| €200,001 – €300,000 | 27% |
| Over €300,000 | 28% |
For non-residents, capital gains are generally taxed at a flat rate of 19% for EU/EEA nationals and 24% for those from other countries.
The taxable gain is calculated as the difference between the acquisition value (plus allowable costs) and the disposal value (minus allowable costs). This is where deductions and allowances become critical.
Use our Spain Capital Gains Tax Calculator to quickly estimate your liability before and after applying deductions.
Allowable Costs That Reduce Your Taxable Gain
One of the most straightforward ways to reduce your capital gains tax liability in Spain is to ensure you claim all allowable costs associated with the acquisition and disposal of the asset. These costs directly reduce the taxable gain.
Costs You Can Deduct on Acquisition
- Purchase price: The original amount paid for the asset.
- Transfer tax (ITP) or VAT (IVA): Taxes paid at the time of purchase.
- Notary and registry fees: Costs for formalizing and registering the transaction.
- Legal fees: Lawyer or solicitor costs directly related to the acquisition.
- Estate agent fees paid by the buyer: If applicable at the time of purchase.
- Capital improvements: Any permanent improvements made to the property (renovations, extensions) that increased its value—distinct from routine maintenance or repairs.
Costs You Can Deduct on Disposal
- Estate agent or broker commissions: Fees paid to sell the asset.
- Legal and notary fees: Professional costs incurred during the sale process.
- Plusvalía tax (municipal capital gains tax): The local tax paid on the increase in land value, which is deductible from the state-level capital gains calculation.
- Mortgage cancellation fees: Costs associated with cancelling a mortgage on a sold property.
Practical Example: Imagine you purchased an apartment in Madrid for €200,000, paying €20,000 in transfer tax, €3,000 in notary and legal fees, and later invested €30,000 in a kitchen and bathroom renovation. Your adjusted acquisition value would be €253,000. If you then sold the property for €350,000, paying €15,000 in agent fees and €2,000 in legal costs, your net disposal value would be €333,000. Your taxable gain would be €333,000 − €253,000 = €80,000, rather than the raw €150,000 difference.
Common Mistake: Many taxpayers fail to keep receipts for capital improvements or confuse them with maintenance expenses. Only permanent structural improvements count—repainting walls or fixing a leaky tap does not qualify, but installing a new heating system or adding a room does. Keep all invoices organized from the day you acquire an asset.
Key Exemptions and Allowances for Residents
Spanish tax law provides several powerful exemptions that can significantly reduce or even eliminate your capital gains tax bill. These are among the most valuable capital gains tax allowances Spain offers.
Principal Residence Reinvestment Exemption
This is arguably the most important CGT relief available in Spain. If you sell your habitual residence (vivienda habitual) and reinvest the proceeds into a new principal residence, you can claim a full exemption from capital gains tax on the profit.
Key conditions:
- The property sold must have been your primary residence for at least three years (exceptions apply for job relocation, marriage, or separation).
- The reinvestment must be made within two years before or after the sale.
- The exemption is proportional—if you only reinvest part of the proceeds, only that proportion of the gain is exempt.
- The new property must also become your habitual residence.
Example: You sell your home in Barcelona for €400,000 with a capital gain of €100,000. If you purchase a new principal residence for €400,000 or more within two years, the entire €100,000 gain is exempt. If you only reinvest €300,000 (75% of the sale price), then 75% of the gain (€75,000) is exempt, and you pay tax on the remaining €25,000.
Over-65 Exemption on Principal Residence
Taxpayers aged 65 or older who sell their principal residence are entitled to a complete exemption from capital gains tax, regardless of whether they reinvest the proceeds. This is one of the most generous Spain tax relief provisions.
Conditions:
- The seller must be 65 or older at the time of sale.
- The property must qualify as their habitual residence.
- No reinvestment requirement applies.
Over-65 Exemption on Other Assets (Life Annuity Reinvestment)
Sellers aged 65 or older who dispose of any asset (not just their principal residence) can also claim an exemption, provided they reinvest the gain into a qualifying life annuity (renta vitalicia asegurada) within six months of the sale.
- The maximum exempt gain is capped at €240,000.
- The life annuity must begin within one year of being constituted.
- This exemption can apply to shares, second properties, or other investments.
Abatement Coefficients for Pre-1995 Assets
Assets acquired before 31 December 1994 may benefit from transitional abatement coefficients (coeficientes de abatimiento) that reduce the taxable gain. These coefficients reduce the portion of the gain attributable to the period before 20 January 2006.
The reduction percentages depend on the type of asset:
- Property: 11.11% reduction for each year held before 31 December 1994 (beyond the second year of ownership).
- Shares/securities: 25% reduction per year.
- Other assets: 14.28% reduction per year.
Important limitation: These abatement coefficients only apply to the first €400,000 of combined disposal value across all sales benefiting from this relief since 2015. Once you've used up this €400,000 ceiling, no further abatement is available.
Deductions and Considerations for Non-Residents
Non-residents face a different set of rules, but there are still important capital gains tax allowances Spain extends to them.
Tax Rate Advantage for EU/EEA Residents
Non-residents from EU or EEA countries benefit from a 19% flat rate on capital gains, compared to the 24% rate applied to residents of other countries. This distinction alone can save thousands of euros on a significant transaction.
The 3% Retention (Retención)
When a non-resident sells Spanish property, the buyer is legally required to withhold 3% of the sale price and remit it to the Spanish Tax Agency (Agencia Tributaria) as an advance payment toward the seller's CGT liability.
- If your actual tax liability is less than 3% of the sale price, you can apply for a refund of the excess by filing Form 210 within four months of the sale.
- If your liability is more than 3%, you must pay the difference.
Common Mistake: Many non-residents assume the 3% retention is the final tax and don't file a return. This can mean you overpay significantly—or underpay and face penalties.
Double Taxation Agreements
Spain has double taxation treaties (DTAs) with over 90 countries, including the UK, the US, Germany, France, and most EU nations. These treaties typically:
- Grant the country where the asset is located (Spain) the primary right to tax the gain.
- Allow the seller to claim a foreign tax credit in their home country for Spanish CGT paid, avoiding being taxed twice on the same gain.
Always check the specific treaty between Spain and your country of residence, as provisions vary.
Offsetting Capital Losses Against Gains
Spain allows taxpayers to offset capital losses against capital gains within the same tax year. If your losses exceed your gains, the remaining losses can be carried forward for four years.
How Loss Offsetting Works
- Capital losses from the disposal of assets (shares, property, funds) can be offset against capital gains in the savings tax base.
- Additionally, up to 25% of net capital gains can be offset against negative returns from movable capital (e.g., negative interest income), and vice versa.
- Losses must be declared in the year they occur, even if there are no gains to offset them against, to preserve the right to carry them forward.
Example: In 2025, you sell shares at a loss of €15,000 and a rental property at a gain of €40,000. You can offset the €15,000 loss, reducing your taxable capital gain to €25,000. If your losses in 2025 were €50,000 and your gains only €10,000, you'd pay no CGT and carry forward €40,000 in losses to offset gains in 2026–2029.
Tip: Strategic timing of asset sales—realizing losses in the same year as gains—is one of the most effective tax planning strategies available.
Inflation Adjustments and Other Allowances
Unlike some countries, Spain does not currently apply an inflation adjustment (indexation allowance) to the acquisition cost of assets for capital gains purposes. The abatement coefficients for pre-1995 assets (described above) are the closest equivalent.
However, there are a few additional mechanisms worth noting:
Personal Savings Allowance
Spain does not have a standalone capital gains "tax-free allowance" like some countries (e.g., the UK's former Annual Exempt Amount). All capital gains are taxable from the first euro, subject to the exemptions described above.
Regional Deductions
Spain's autonomous communities (comunidades autónomas) can offer regional tax deductions that may indirectly benefit taxpayers. While these are more commonly associated with income tax, some regions offer deductions for investment in certain types of assets, newly created companies, or social economy enterprises that could interact with your overall tax position. Check the rules in your specific region—Andalusia, Catalonia, Madrid, and the Basque Country each have their own provisions.
Use our Spain Income Tax Calculator to see how your total tax picture—including income and capital gains—comes together.
Frequently Asked Questions About Spain Capital Gains Tax Deductions
Is there a capital gains tax-free allowance in Spain?
No. Unlike some countries, Spain does not offer a general annual exempt amount for capital gains. All gains are taxable from the first euro, although specific exemptions (such as the principal residence reinvestment exemption and the over-65 exemption) can eliminate the tax in qualifying situations.
Can I deduct mortgage interest from my capital gain?
No. Mortgage interest is not an allowable deduction when calculating capital gains. However, mortgage cancellation fees incurred at the time of sale are deductible.
Do I pay capital gains tax if I inherit property in Spain and then sell it?
Yes. When you sell inherited property, the acquisition value for CGT purposes is typically the value declared for inheritance tax (Impuesto sobre Sucesiones y Donaciones). The gain is the difference between this declared value (plus allowable costs) and the sale price.
Can non-residents claim the principal residence exemption?
Generally, no. The principal residence exemption is available to Spanish tax residents only. Non-residents selling property in Spain are subject to the flat-rate CGT with limited deduction options.
How do I report capital gains in Spain?
Residents report capital gains on their annual income tax return (Modelo 100), filed between April and June following the tax year. Non-residents use Modelo 210, which must be filed within four months of the sale.
What happens if I sell at a loss?
Capital losses can be offset against capital gains in the same year. Unabsorbed losses can be carried forward for up to four years. There is no provision for carrying losses back to prior years.
Conclusion: Maximizing Your Spain Tax Relief in 2025/2026
Spain's capital gains tax system offers fewer blanket allowances than some other European countries, but the deductions and exemptions that do exist can be extremely powerful when applied correctly. Here are the key takeaways:
- Always claim all allowable acquisition and disposal costs—they directly reduce your taxable gain and are frequently overlooked.
- The principal residence reinvestment exemption can eliminate your CGT liability entirely if you reinvest within two years.
- Taxpayers aged 65+ enjoy generous exemptions on their main home and, via life annuities, on other assets up to €240,000.
- Pre-1995 abatement coefficients can significantly reduce gains on long-held assets, subject to the €400,000 ceiling.
- Capital loss offsetting and strategic timing of sales are valuable planning tools.
- Non-residents should always file to recover excess 3% withholding and leverage double taxation treaties.
Calculate your specific liability with our Spain Capital Gains Tax Calculator to see exactly how these deductions and allowances affect your bottom line.
This article is for informational purposes only and does not constitute tax advice. Tax laws change frequently; consult a qualified tax professional for advice specific to your situation.