If you've sold property, stocks, or other assets in Spain, understanding how to file your capital gains tax return in Spain is essential to staying compliant and avoiding costly penalties. Whether you're a Spanish tax resident or a non-resident who has disposed of assets in the country, this Spain tax filing guide breaks down the entire process into clear, manageable steps for the 2025/2026 tax year.
Spain's capital gains tax system can feel complex—especially when you factor in progressive tax bands for residents, flat rates for non-residents, and the various exemptions and deductions available. This guide will demystify the process and show you exactly how to file taxes in Spain related to capital gains, so you can meet your obligations with confidence.
What Is Capital Gains Tax in Spain?
Capital gains tax (Impuesto sobre Ganancias Patrimoniales) in Spain is levied on the profit you make when you sell or transfer an asset for more than you originally paid for it. The tax applies to a wide range of assets, including:
- Real estate (apartments, houses, land)
- Stocks and shares (listed and unlisted)
- Investment funds and ETFs
- Cryptocurrency (Bitcoin, Ethereum, etc.)
- Precious metals and collectibles
- Business assets
The gain is calculated as the difference between the acquisition value (purchase price plus associated costs) and the transfer value (sale price minus associated costs). Importantly, Spain distinguishes between how residents and non-residents are taxed on these gains.
Residents vs. Non-Residents: Key Differences
| Factor | Tax Residents | Non-Residents |
|---|---|---|
| Taxable gains | Worldwide capital gains | Spain-sourced gains only |
| Tax rates | Progressive (19%–28%) | Flat 19% (EU/EEA) or 24% |
| Filing form | Modelo 100 (Renta) | Modelo 210 |
| Filing period | April–June annually | 3-4 months from sale |
| Exemptions available | Yes (e.g., reinvestment, over-65s) | Limited |
You are considered a tax resident of Spain if you spend more than 183 days per year in the country, if your centre of economic interests is in Spain, or if your spouse and dependent minor children reside in Spain (unless you can prove tax residency elsewhere).
Capital Gains Tax Rates in Spain for 2025/2026
Understanding the applicable tax rates is the first step before you begin your filing. Spain's capital gains tax rates for the 2025/2026 tax year are structured as follows:
Tax Residents: Progressive Savings Tax Bands
For Spanish tax residents, capital gains fall under the savings income base (base imponible del ahorro) and are taxed at progressive rates:
| 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% |
Practical Example: If you are a resident and sell shares for a capital gain of €75,000, your tax would be calculated as follows:
- First €6,000 at 19% = €1,140
- Next €44,000 (€6,001–€50,000) at 21% = €9,240
- Remaining €25,000 (€50,001–€75,000) at 23% = €5,750
- Total tax: €16,130 (effective rate of approximately 21.5%)
Use our Spain Capital Gains Tax Calculator to quickly compute your exact liability based on your specific gain.
Non-Residents: Flat Rate
Non-residents pay a flat rate of 19% on capital gains from Spanish assets if they are residents of an EU or EEA member state. Non-residents from outside the EU/EEA generally pay 24%, although double taxation agreements (DTAs) may reduce this rate.
Practical Example: A German citizen (non-resident in Spain) who sells a Spanish property and realises a gain of €100,000 would pay:
- €100,000 × 19% = €19,000 in capital gains tax
Note that when non-residents sell Spanish real estate, the buyer is legally required to retain 3% of the total sale price (not the gain) as an advance payment to the Spanish Tax Agency (Agencia Tributaria). This retention is filed using Modelo 211, and the non-resident seller can reclaim any overpayment through their Modelo 210 filing.
Step-by-Step Guide: How to File Your Capital Gains Tax Return in Spain
Now let's walk through the actual filing process. The steps differ depending on your residency status, so we'll cover both paths.
Step 1: Determine Your Tax Residency Status
Before anything else, confirm whether you are a Spanish tax resident or a non-resident for the relevant tax year. This determines:
- Which form you file
- What rates apply
- Which gains are taxable
- What deadlines you must meet
If you've spent 183 or more days in Spain during the calendar year, you are almost certainly a tax resident. When in doubt, consult a tax advisor—getting this wrong can lead to double taxation or penalties.
Step 2: Gather Your Documentation
Collect all records related to the asset sale. You'll need:
- Proof of acquisition: Purchase contract, notarial deed (escritura), or broker statement showing the original purchase price and date
- Proof of disposal: Sale contract, notarial deed, or broker confirmation showing the sale price and date
- Associated costs: Receipts for notary fees, registry fees, real estate agent commissions, legal fees, transfer tax (ITP) paid at purchase, plusvalía municipal tax, and any improvement costs (for property)
- Tax identification: Your NIE (Número de Identificación de Extranjero) or DNI, and your digital certificate or Cl@ve PIN for online filing
- Bank details: Spanish IBAN for any refund or direct debit of tax owed
- Double taxation treaty documentation: If applicable, certificates of tax residency from your home country
Step 3: Calculate Your Taxable Capital Gain
The formula is straightforward but the details matter:
Capital Gain = Transfer Value – Acquisition Value
Where:
- Transfer Value = Sale price – Selling expenses (agent fees, legal costs, plusvalía municipal)
- Acquisition Value = Purchase price + Buying expenses (notary, registry, transfer tax, legal fees) + Value of any improvements made
For assets acquired before 1994, Spain previously offered transitional reduction coefficients (coeficientes de abatimiento) that could reduce the taxable gain. As of 2015, these reductions are limited to gains on disposals where the total transfer value across all assets benefiting from this regime does not exceed €400,000 cumulatively since 2015. If you qualify, this can significantly reduce your tax bill.
For real estate, you may also apply inflation adjustment coefficients (coeficientes de actualización) to the acquisition value if the property was purchased before certain dates, though these have been frozen since 2015 for income tax purposes.
Use our Spain Capital Gains Tax Calculator to model different scenarios and verify your calculations before filing.
Step 4: Identify Applicable Exemptions and Deductions
Several key exemptions may reduce or eliminate your capital gains tax liability:
- Principal residence reinvestment exemption (residents only): If you sell your main home and reinvest the full proceeds into a new principal residence within two years (before or after the sale), the gain is fully exempt. Partial reinvestment results in a proportional exemption.
- Over-65 exemption for principal residence (residents only): If you are 65 or older and sell your habitual home, the entire gain is exempt—no reinvestment required.
- Over-65 exemption for other assets (residents only): If you are 65+ and sell any asset, the gain is exempt provided you use the proceeds to purchase a life annuity (renta vitalicia) within six months, up to a maximum of €240,000.
- Capital losses offset: Capital losses from the same tax year can be offset against capital gains. If losses exceed gains, the excess can be carried forward for four years.
Step 5: Complete the Correct Tax Form
For Tax Residents: Modelo 100 (Declaración de la Renta)
Capital gains are reported as part of your annual income tax return (Declaración de la Renta, Modelo 100). Within this return:
- Property sales are reported in sections related to ganancias y pérdidas patrimoniales derivadas de transmisiones (boxes around 1624–1638 and related sections, depending on asset type)
- Stock and fund sales are reported in the savings income section
- You'll need to complete specific pages detailing acquisition dates, costs, sale proceeds, and expenses for each transaction
The Agencia Tributaria's online platform Renta WEB pre-populates much of this data from information reported by banks, brokers, and notaries. However, always verify pre-filled figures—especially for property transactions, improvement costs, and foreign assets, which may not appear automatically.
For Non-Residents: Modelo 210
Non-residents file a separate Modelo 210 for each capital gain event. Key points:
- Income type code: Type 01 (for capital gains from property transfer) or the appropriate code for other asset disposals
- Each co-owner must file a separate Modelo 210
- If the 3% buyer retention (Modelo 211) exceeded your actual tax liability, you can request a refund through this form
- The form can be filed online via the Agencia Tributaria website with a digital certificate or through a fiscal representative
Step 6: Submit Your Return and Pay
Residents: Filing Timeline
The annual income tax return (which includes capital gains) is typically filed between April 2 and June 30 of the year following the tax year. For 2025 income, this means filing between approximately April 2 and June 30, 2026.
Filing methods:
- Online via Renta WEB at sede.agenciatributaria.gob.es (requires digital certificate, Cl@ve PIN, or reference number)
- By phone through the "Le Llamamos" appointment service
- In person at Agencia Tributaria offices (by appointment from late May)
Payment options:
- Single payment by direct debit (the debit is typically processed on June 30)
- Two installments: 60% at filing time and 40% in November
- Direct debit, bank transfer, or cash payment at collaborating banks
Non-Residents: Filing Timeline
Non-residents must file Modelo 210 within three to four months of the sale date, depending on the specific transaction:
- For property sales: three months from the date of the sale (notarial deed)
- To claim a refund of the 3% retention: within three months from the end of the filing period for the original return (effectively four months from the sale)
Important: Missing these deadlines can result in surcharges of 5%–20% plus interest, and in serious cases, penalties of up to 150% of the tax due.
Step 7: Keep Records for Future Reference
Spain's statute of limitations for tax matters is generally four years from the end of the filing period. You should retain:
- All purchase and sale documentation
- Evidence of costs and improvements
- Filed tax returns and payment receipts
- Correspondence with the Agencia Tributaria
For property, it's wise to keep records indefinitely in case of future sales where historical costs are relevant.
Double Taxation Agreements: Avoiding Being Taxed Twice
Spain has an extensive network of double taxation agreements (DTAs) with over 90 countries, including the United States, United Kingdom, Germany, France, Canada, and Australia. These treaties typically provide that:
- Real estate gains are taxable in the country where the property is located (Spain), but the taxpayer's home country must either exempt the gain or provide a foreign tax credit for Spanish tax paid
- Share and investment gains are generally taxable only in the taxpayer's country of residence, unless the shares derive more than 50% of their value from Spanish real estate
- Reduced withholding rates may apply in specific circumstances
To claim treaty benefits, you typically need a certificate of tax residency issued by your home country's tax authority. Always verify the specific provisions of the applicable DTA, as they vary significantly between countries.
If you have income from employment or self-employment in addition to capital gains, use our Spain Income Tax Calculator to estimate your total Spanish tax liability.
Common Mistakes to Avoid When Filing Capital Gains Tax in Spain
Filing errors can be expensive. Here are the most frequent pitfalls:
Forgetting to include all acquisition costs: Many taxpayers only report the purchase price and forget notary fees, registry costs, transfer tax, legal fees, and improvement costs. This inflates the taxable gain unnecessarily.
Misreporting foreign currency transactions: If you purchased an asset in a currency other than euros, you must convert both the acquisition and transfer values using the exchange rates on the respective transaction dates—not the current rate.
Missing the non-resident filing deadline: Unlike residents who file annually, non-residents must file within months of the sale. Many foreign sellers are unaware of this tight deadline.
Failing to claim the principal residence exemption: Residents who sell their home and buy a new one within two years can be fully exempt—but only if they correctly declare their intention and meet all conditions on their tax return.
Not offsetting capital losses: If you sold assets at a loss in the same year, you can offset those losses against your gains. Unused losses carry forward for four years.
Ignoring the 3% retention refund (non-residents): The 3% retained by the buyer often exceeds the actual tax owed. Non-residents frequently forget to file for a refund, leaving money on the table.
Relying solely on pre-filled data in Renta WEB: While convenient, the pre-filled figures may be incomplete or inaccurate, especially for property sales, foreign assets, and cryptocurrency transactions.
Frequently Asked Questions
Do I need to file a capital gains tax return if I made a loss?
Yes, it's advisable. For residents, reporting capital losses allows you to offset them against gains in the current year or carry them forward for up to four years. For non-residents, filing confirms your tax position and avoids potential inquiries from the Agencia Tributaria.
Can I file my Spanish tax return in English?
No. All tax forms and communications with the Agencia Tributaria must be in Spanish. However, the online platforms provide some navigational guidance, and many English-speaking tax advisors in Spain (asesores fiscales and gestorías) can handle the filing on your behalf.
What happens if I miss the filing deadline?
Late filing triggers automatic surcharges: 5% if filed within 3 months late, 10% within 6 months, 15% within 12 months, and 20% plus late-payment interest after 12 months. If the Agencia Tributaria initiates proceedings before you file, penalties of 50%–150% of the unpaid tax may apply.
Do I need a fiscal representative as a non-resident?
Non-residents from EU/EEA countries are not required to appoint a fiscal representative in Spain, although many choose to for convenience. Non-residents from outside the EU/EEA are technically required to have one, though enforcement varies. Having a representative is strongly recommended for property transactions.
Is cryptocurrency subject to capital gains tax in Spain?
Yes. Since 2021, Spain has increasingly focused on crypto taxation. Gains from selling, swapping, or exchanging cryptocurrency are subject to the same savings income tax rates (19%–28% for residents). Additionally, residents holding more than €50,000 in cryptocurrency on foreign platforms must report it via Modelo 721.
How do I calculate the gain on inherited property?
When you inherit property and later sell it, the acquisition value is generally the declared value at the time of inheritance (as reported for inheritance tax purposes), plus any inheritance tax paid attributable to that asset, plus subsequent improvement costs. This often results in a significantly lower taxable gain compared to the original purchase price paid by the deceased.
Conclusion: Key Takeaways for Filing Capital Gains Tax in Spain
Filing your capital gains tax return in Spain doesn't have to be overwhelming if you approach it systematically. Here's a recap of the essential points:
- Determine your residency status first—it dictates your tax rates, forms, deadlines, and available exemptions
- Residents file via Modelo 100 (annual income tax return) between April and June, with progressive rates from 19% to 28%
- Non-residents file via Modelo 210 within three months of the sale, typically at a flat 19% (EU/EEA) or 24% rate
- Gather comprehensive documentation of all acquisition costs, improvements, and selling expenses to minimise your taxable gain
- Claim all available exemptions, particularly the principal residence reinvestment relief and the over-65 exemptions
- Offset losses against gains and carry forward unused losses for up to four years
- Check applicable double taxation treaties to avoid being taxed twice on the same gain
- File on time to avoid surcharges and penalties
For a quick estimate of your Spanish capital gains tax liability, try our Spain Capital Gains Tax Calculator. If you also earn income in Spain, our Spain Income Tax Calculator can help you understand your overall tax position.
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.