Spain Capital Gains Tax Calculator
Calculate your capital gains tax liability in Spain with our accurate tool
Your Capital Gains Tax Calculation
How to Calculate Capital Gains Tax in Spain: Complete Guide 2024
Capital gains tax in Spain applies when you sell an asset (typically property) for more than you paid for it. This comprehensive guide explains how to calculate your capital gains tax liability in Spain, including the latest 2024 tax rates, exemptions, and step-by-step calculation methods.
Understanding Capital Gains Tax in Spain
Capital gains tax (Impuesto sobre la Renta de no Residentes or IRNR for non-residents, and part of IRPF for residents) is levied on the profit made from selling assets. The most common scenario involves property sales, but it also applies to stocks, bonds, and other investments.
Key Concepts:
- Capital Gain: The difference between the sale price and the adjusted purchase price
- Taxable Base: The capital gain after applying any applicable reductions
- Tax Rate: Varies based on residency status and other factors
- Holding Period: Time between purchase and sale affects tax calculations
Who Pays Capital Gains Tax in Spain?
The tax applies differently based on your residency status:
| Residency Status | Tax Rate (2024) | Key Considerations |
|---|---|---|
| Spanish Tax Residents | 19% – 28% | Progressive rates based on gain amount and personal income |
| EU/EEA Non-Residents | 19% | Flat rate on net gain |
| Non-EU Non-Residents | 24% | Higher flat rate applies |
Step-by-Step Calculation Process
-
Determine the Acquisition Value
The purchase price plus all associated costs (transfer tax, notary fees, registration fees, legal fees, etc.). For properties acquired before 1994, special valuation rules apply.
-
Calculate the Transmission Value
The sale price minus any selling expenses (real estate agent commissions, legal fees, etc.).
-
Apply Inflation Adjustments (if applicable)
For properties purchased before 1994, you may apply inflation coefficients to adjust the purchase price.
-
Determine the Capital Gain
Subtract the adjusted acquisition value from the transmission value.
-
Apply Reductions
Certain reductions may apply, especially for primary residences or for taxpayers over 65.
-
Calculate the Tax
Apply the appropriate tax rate based on your residency status and the amount of gain.
Special Cases and Exemptions
Primary Residence Exemption
Spanish tax residents may qualify for an exemption when selling their primary residence if:
- The property was their main home for at least 3 years
- The entire sale amount is reinvested in another primary residence within 2 years
- The reinvestment is in Spain (for EU/EEA citizens, reinvestment can be in their home country)
Over 65 Exemption
Taxpayers over 65 may be completely exempt from capital gains tax on the sale of their primary residence, regardless of reinvestment, with a maximum exemption of €240,000 per taxpayer.
Non-Resident Property Sellers
Non-residents must appoint a fiscal representative in Spain who will withhold 3% of the sale price as a prepayment toward the capital gains tax. The final tax is calculated when filing the annual tax return.
Tax Rates for 2024
| Taxpayer Type | Gain Amount (€) | Tax Rate |
|---|---|---|
| Spanish Residents | Up to 6,000 | 19% |
| 6,001 – 50,000 | 21% | |
| 50,001 – 200,000 | 23% | |
| Over 200,000 | 28% | |
| EU/EEA Non-Residents | All gains | 19% |
| Non-EU Non-Residents | All gains | 24% |
Common Mistakes to Avoid
- Incorrect purchase price: Forgetting to include all acquisition costs
- Missing documentation: Not keeping receipts for improvements or expenses
- Wrong residency classification: Misidentifying your tax residency status
- Ignoring local taxes: Forgetting about Plusvalía municipal (local capital gains tax)
- Late filing: Non-residents must file within 3 months of sale
How to Reduce Your Capital Gains Tax
-
Keep all receipts
Document all purchase costs, improvement expenses, and selling costs to maximize your deductible expenses.
-
Time your sale
If possible, spread gains over multiple tax years to benefit from lower tax brackets.
-
Consider reinvestment
For primary residences, reinvesting the proceeds can defer or eliminate the tax.
-
Use the 65+ exemption
If you’re over 65 and selling your primary residence, you may qualify for complete exemption.
-
Consult a gestor
A Spanish tax advisor (gestor) can help optimize your tax position and ensure compliance.
Plusvalía Municipal (Local Capital Gains Tax)
In addition to the national capital gains tax, sellers must pay Plusvalía Municipal, a local tax calculated based on:
- The cadastral value of the land
- The number of years owned
- The local council’s tax rate (varies by municipality)
This tax is typically between 15-30% of the calculated “increase in land value” during your ownership period.
Filing and Payment Process
For Residents:
Capital gains are declared in your annual income tax return (Modelo 100) by June 30 of the following year.
For Non-Residents:
- 3% of the sale price is withheld by the buyer
- You must file Modelo 210 within 3 months of the sale
- The withheld amount is credited against your final tax liability
- Any additional tax due must be paid when filing
Important Disclaimer: This calculator and guide provide general information only. Spanish tax laws are complex and subject to change. For precise calculations and personalized advice, consult a qualified Spanish tax advisor (gestor) or the Agencia Tributaria.