Investing in luxury houses in Spain offers unparalleled lifestyle benefits and strong returns. However, understanding how to avoid capital gains tax in Spain is essential to protect your profits when selling. Whether you’re a resident or non-resident, there are legal strategies to minimize or eliminate your capital gains tax (CGT) liability: avoid paying more than needed!
when selling luxury property in Spain.
Table of contents⌃
- 1. What is capital gains tax in Spain?
- 2. Top strategies and bonifications to avoid capital gains Tax in Spain in 2025
- 3. How Golden Partners can assist you
- 4. Frequently asked questions about capital gains tax in Spain
- 4.1. What is the best way to avoid capital gains tax in Spain?
- 4.2. What expenses can I offset against capital gains tax in Spain?
- 4.3. Who is exempt from capital gains tax in Spain?
- 4.4. Do you pay capital gains tax on property in Spain if you’re over 65?
- 4.5. Is plusvalía the same as capital gains tax?
- 4.6. Can I claim a tax refund in Spain if I’m in Barcelona?
- 4.7. Can I pay my Spanish non resident tax online?
- 4.8. What is the Spanish exit tax when moving abroad?
- 4.9. When are taxes due in Spain?
Disclaimer for magazines or newspapers: you must have the consent of Golden Partners to reproduce our content in whole or in part in your publication. Send us an email to the contact form and we will be happy to assist you.
What is capital gains tax in Spain?
Capital Gains Tax in Spain is the tax applied to the profit you make when selling an asset, such as a property, land, shares, or other investments located in Spanish territory. If the sale price of that asset exceeds what you originally paid for it, the difference—your net gain—is subject to this tax.
This tax is especially relevant when selling real estate in Spain, and it’s one of the most important costs to consider when planning a sale.
Unlike countries like the UK, where capital gains tax is a standalone levy, in Spain it forms part of the Personal Income Tax (IRPF) for residents, or the Non-Resident Income Tax (IRNR) for non-residents. This integration makes the Spanish tax system more complex—but also full of potential legal optimizations if you know where to look.
🔍 Example: Suppose you bought a home in Spain for €500,000. Years later, you sell it for €700,000. The €200,000 gain is what’s considered your capital gain—and this is the amount taxed.
🧾 How much will you pay? That depends on your residency status, possible deductions, and whether any exemptions or reinvestment strategies apply in your case.
- Residents: Progressive rates (19% to 28%), depending on the gain amount.
- Non-residents: Flat 19% for EU/EEA residents; 24% for others.
Additionally, non-resident sellers are subject to a 3% withholding tax retained by the buyer at the time of sale. When a non-resident sells property in Spain, a 3% withholding tax is automatically deducted from the sale price by the buyer, as a prepayment of the capital gains tax in Spain.
In 2024, Spain’s Tax Agency (Agencia Tributaria) collected a total of €294.7 billion in tax revenue, with the Personal Income Tax (IRPF) accounting for €129.4 billion, up 7.6% from 2023. While there’s no specific breakdown for capital gains from real estate sales, these gains are taxed under the savings base of IRPF, contributing significantly to the overall increase. Capital gains from property sales in Spain are taxed progressively from 19% to 30%, depending on the amount. This reflects the growing impact of real estate transactions on Spain’s tax revenue.
Top strategies and bonifications to avoid capital gains Tax in Spain in 2025
Wondering how to avoid capital gains tax in Spain when selling property? Whether you’re a Spanish tax resident or a non-resident, the Spanish tax system offers five fully legal ways to reduce or eliminate your capital gains liability. These include age-based exemptions, property reinvestment benefits, international tax treaties, and strategic ownership setups. All of them are compliant with Spanish tax law—and can help you keep more of your profit when selling.
1. Capital gains tax in Spain over 65 years
If you’re over 65 years old and selling your primary residence in Spain, you may be fully exempt from capital gains tax, provided that you’ve owned and lived in the property for at least three years prior to the sale. This exemption applies only to residents and is one of the most generous tax reliefs available under Spanish law.
2. The main home exemption
Spanish tax residents can defer or avoid CGT if they reinvest the entire sale proceeds from their current main home into another primary residence within two years. The reinvestment must be complete and within the EU or EEA. Partial reinvestments offer partial relief, making this a flexible and strategic option for property owners.
3. Offsetting expenses and improvements
Capital gains tax is calculated on the net profit from the sale, meaning you can reduce your taxable gain by deducting certain qualified expenses, such as:
- Purchase costs (e.g., notary fees, property transfer tax, and registration costs)
- Selling costs (e.g., real estate agent commissions, legal fees)
- Capital improvements (e.g., major renovations that increase property value). Routine maintenance does not qualify, so it’s important to distinguish between repairs and actual improvements.
4. Utilizing tax treaties
Spain has signed double taxation agreements (DTAs) with over 90 countries, including the United Kingdom, Germany, the United States, and Mexico. These treaties often allow non-residents to claim tax credits or exemptions in their country of residence, potentially avoiding being taxed twice on the same capital gain. To benefit from these benefits on capital gains in Spain for the tax paid, sellers must file the correct forms (e.g., Spain’s Form 210) and comply with both countries’ reporting requirements.
Understanding the relevant DTA is key, as it determines whether Spain has taxing rights over the capital gain. This process can help non-resident property owners in Spain avoid double taxation and recover excess tax withheld at the time of sale.
5. Strategic ownership structures
Using corporate entities, holding companies, or other investment vehicles to hold Spanish real estate may offer capital gains tax advantages, especially for high-value properties. This approach is more complex and requires proper international tax planning to ensure full compliance with Spanish and international regulations. Always seek advice from a tax advisor experienced in Spanish property law.
You could also benefit from a special tax regime before arriving to Spain (i.e., Beckham Law) so to be taxed at a flat rate of 24% and to benefit from other tax exemptions; or even once you are already tax resident in some regions as Madrid (i.e., Mbappé Law).
and tax-efficient property investments in Spain.
How Golden Partners can assist you
At Golden Partners, we specialize in guiding both national and international investors through the complexities of Spanish real estate transactions. Our services include:
- Property search: Identifying luxury properties that meet your investment goals.
- Legal assistance: Ensuring compliance with Spanish laws and regulations.
- Tax planning: Developing strategies to minimize tax liabilities.
Property management: Offering ongoing support to maximize your investment returns.
Frequently asked questions about capital gains tax in Spain
If you’re selling property in Spain, understanding how capital gains tax works is essential—especially when trying to reduce your tax bill legally.
Below are the most frequently asked questions by both residents and non-residents, covering exemptions, deductible expenses, age-related relief, and the difference between CGT and other Spanish property taxes like plusvalía. These answers will help you make informed decisions and potentially save thousands in taxes.
-
What is the best way to avoid capital gains tax in Spain?
For Spanish tax residents, the best legal ways to avoid CGT include selling your primary residence after the age of 65 or reinvesting the proceeds into another main home within two years. Non-residents can reduce or avoid CGT by reviewing applicable double taxation treaties and deducting allowable expenses from the taxable gain.
-
What expenses can I offset against capital gains tax in Spain?
You can offset several costs against the capital gain, including:
- Purchase-related expenses such as notary fees, registration taxes & property transfer tax
- Selling costs, including estate agent commissions and legal fees
- Capital improvements like structural renovations or upgrades that add value
It’s crucial to keep proper invoices and legal proof to validate each deduction in case of a tax audit. Also, to eb advised by a Spanish tax lawyer.
-
Who is exempt from capital gains tax in Spain?
Residents over 65 years old who sell their main residence may be exempt from CGT, as long as they’ve lived in the property for at least three years. Additionally, residents of any age who reinvest 100% of the proceeds into a new primary home (within the EU/EEA) may also qualify for a full or partial exemption.
-
Do you pay capital gains tax on property in Spain if you’re over 65?
If you are over 65 and selling your main residence, you may be completely exempt from capital gains tax, provided that the property has been your habitual residence for a minimum of three years. This exemption applies only to Spanish tax residents.
-
Is plusvalía the same as capital gains tax?
No, plusvalía municipal is not the same as capital gains tax. Plusvalía is a local tax charged by the municipality on the increase in the value of urban land, whereas capital gains tax is a national tax applied to the profit from the sale of the property itself. In most cases, you may have to pay both, depending on your situation.
-
Can I claim a tax refund in Spain if I’m in Barcelona?
Yes, you can claim a tax refund in Spain—even if you’re visiting or residing in Barcelona. Whether you’re eligible for a VAT refund in Barcelona as a tourist, or you’re a foreign investor entitled to reclaim overpaid taxes, there are specific procedures depending on your situation.
For example, non-EU residents can often apply for a Barcelona tax refund on purchases made within Spanish territory, provided certain conditions are met (e.g. minimum spending and validated receipts). If you’re a property owner or investor, you may also be eligible for a tax refund in Spain Barcelona related to overpaid capital gains or withholding taxes—especially in cases of double taxation.
In fact, if you’re from the United Kingdom and have paid capital gains tax in both Spain and the UK, you may be entitled to relief under the double taxation agreement between both countries. This allows you to offset taxes paid in Spain against your UK liability, or potentially reclaim part of what you’ve paid.
We recommend consulting with a tax advisor familiar with cross-border tax laws to ensure your refund is processed correctly and you benefit from all available exemptions.
-
Can I pay my Spanish non resident tax online?
Yes, you can pay your Spanish non resident tax online through the official website of the Spanish Tax Agency (Agencia Tributaria). This is the most efficient method for fulfilling your obligations under the taxation of non residents in Spain, especially if you own property.
As a non-resident, you’re required to submit an annual tax return in Spain—typically through Modelo 210—even if you don’t generate rental income. This falls under the non resident tax Spain regime, which includes the Spanish property tax for non residents, also known as non resident property tax in Spain.
To complete this process, you’ll need to access the correct Spanish tax forms, file them electronically, and pay the amount due via the Agencia Tributaria’s online portal. However, navigating Spanish non resident tax rules can be confusing, particularly for first-time filers.
💡 Need help? At Golden Partners, we specialize in helping expats and international property owners handle all aspects of their non resident tax in Spain—including full online filing, payments, and representation. We ensure you’re 100% compliant and avoid unnecessary penalties. Contact us for a free consultation.
-
What is the Spanish exit tax when moving abroad?
The Spanish exit tax applies when long‑term residents (10 out of the last 15 years) relocate their tax residence outside Spain, and hold shares or holdings above certain thresholds (€4 million total, or €1 million if they own ≥25% in a company). Under Article 95 of the Income Tax Act, departing Spain can trigger this tax on unrealised gains. Golden Partners can advise whether you qualify and how to plan your relocation to minimize or defer this Spanish exit tax legally.
-
When are taxes due in Spain?
Knowing when taxes are due in Spain is essential to avoid penalties and stay compliant with the Spanish tax authorities. The key tax deadlines depend on your residency status and the type of tax you’re subject to:
Personal Income Tax (IRPF): The annual tax return for Spanish residents is typically filed between early April and late June of the following year.
Non-resident tax (Modelo 210): If you’re a non-resident who owns property in Spain, this tax is generally due by December 31 of the year after the income or sale occurred.
Quarterly non-resident filings: For rental income or imputed income, the deadlines are at the end of January, April, July, and October.
To avoid last-minute stress or fines, it’s highly recommended to prepare your documentation in advance or work with a tax advisor who can handle all filings on your behalf. At Golden Partners, we help clients keep track of their tax obligations and meet all deadlines with confidence.
If you are looking to invest in luxury homes in Costa del Sol, Mallorca, Jávea, Marbella, Estepona, San Sebastián, or any other part of Spain, coastal or inland, contact Golden Partners.