Selling a property or an asset in Spain can be exciting, but it also comes with tax responsibilities. One of the most important taxes to understand is the capital gains tax in Spain. If you make a profit from selling an asset, such as a house, you may need to pay this tax. Knowing how it works can help you plan ahead and avoid unexpected costs.
How does capital gains tax in Spain work?
Capital gains tax in Spain is applied when you sell an asset for more than you originally paid. It is a tax on the profit you make. The most common assets subject to this tax include properties, shares, and other valuable items.
Spain calculates this tax based on the difference between the sale price and the original purchase price, adjusting for eligible deductions like renovation costs or legal fees. The amount you owe depends on the tax rate and whether you are a resident or non-resident of Spain.
How is capital gains tax calculated?
Understanding how to calculate CGT Spain can help you prepare for tax payments and reduce the amount owed. Here’s the general formula:
Sale price – Purchase price – Allowable deductions = Taxable gain
Tax rates for residents
- 19% on the first €6,000 profit.
- 21% on profits between €6,001 and €50,000.
- 23% on profits between €50,001 and €200,000.
- 26% on profits above €200,000.
Tax rates for non-residents
- 24% for non-EU citizens.
- 19% for EU and EEA residents.
Certain deductions, such as legal fees, real estate agency commissions, and renovation costs, may reduce your property sale tax liability.

Capital gains tax on property sales
When selling a property in Spain, selling property tax is an essential factor. If you are a resident, you may qualify for tax exemptions under specific conditions.
Exemptions for residents
- Main residence exemption: If you reinvest the sale proceeds into another main home in Spain within two years, you may not have to pay CGT Spain.
- Over-65 exemption: If you are 65 or older and selling your primary home, you may be exempt from this tax.
What about non-residents
If you are not a Spanish tax resident, the buyer must withhold 3% of the total sale price and pay it directly to the Spanish tax authorities. This serves as a partial tax prepayment.
How to reduce capital gains tax legally
In Spain, paying capital gains tax (CGT) is required when selling a property, but there are legal ways to reduce the amount owed. By using deductions and reinvestment strategies, you can lower your tax liability while staying compliant with Spanish tax laws.
Here are some ways to legally reduce capital gains tax in Spain:
- Claim allowable deductions – You can deduct certain expenses related to the sale, such as renovation costs, notary and legal fees, and real estate agent commissions. These deductions reduce the taxable gain, lowering the final tax amount.
- Reinvest in a new home – If you reinvest the full proceeds from the sale into another primary residence in Spain or within the EU/EEA, you may be exempt from CGT. This exemption applies to Spanish tax residents who meet eligibility requirements.
- Take advantage of exemptions – Taxpayers over 55 years old who sell their main residence may be exempt from capital gains tax, provided they have lived in the property for at least three years before selling.
- Plan ahead with expert advice – A well-planned tax strategy can help reduce liabilities. Seeking guidance from tax advisors & consultancy services for expats can help you stay compliant with Spain’s tax laws while optimising your savings.
Understanding capital gains tax regulations and applying the right strategies can significantly reduce the amount you owe while keeping everything legal.
Common challenges for ex-pats and non-residents
Expats and non-residents often struggle with Spanish tax rules. Some key issues include:
- Understanding tax obligations: Non-residents may not be aware that they must pay property sale tax even if they live abroad.
- Double taxation: Some countries have agreements with Spain to prevent double taxation on capital gains.
- Filing procedures: The tax filing process can be complex, and missing deadlines can lead to fines.
For better financial planning, ex-pats can explore accounting services for expats to manage taxation efficiently.
What happens if you don’t pay capital gains tax
If you sell a Spanish property, you must pay capital gains tax on any profit you make. Ignoring this tax can lead to serious consequences. The Spanish tax agency tracks property transactions, and failing to declare or pay can result in financial and legal issues.
Here’s what could happen if you don’t pay your capital gains tax:
- Late Payment Penalties – If you miss the deadline, the national tax authority applies fines based on how late the payment is. The longer you delay, the higher the penalty.
- Additional Interest Charges – Spain’s tax system imposes interest on unpaid taxes. This means the amount you owe keeps increasing over time.
- Possible Legal Action – If you continue to ignore tax payments, the Spanish tax agency may take legal steps, such as freezing bank accounts, seizing assets, or preventing property transfers.
For Spanish residents, capital gains tax is based on progressive rates, meaning higher profits lead to higher tax rates. Non-residents, however, pay a flat rate on taxable income from property sales in Spanish territory. Additionally, selling a Spanish property may involve other costs, such as land registry fees and property transfer tax, which vary by autonomous community.
To avoid these risks, it’s best to pay capital gains tax on time. If you are unsure about your obligations or whether you can offset capital losses, consulting a tax expert can help you navigate personal income tax rules and ensure compliance.
Conclusion
Capital gains tax in Spain applies to property and asset sales, affecting both residents and non-residents. Understanding tax rates, exemptions, and legal deductions can help you minimise costs. Whether you earn rental income or sell an asset, proper tax planning is key to avoiding surprises. Staying informed about economic activities that may impact your tax liability ensures a smooth transaction.
Frequently Asked Questions
When Do I Have to Pay Capital Gains Tax in Spain?
You must pay capital gains tax after finalising the sale. Non-resident property owners have 3% of the sale price withheld at the time of sale, while Spanish residents must declare and pay it when filing their annual personal income tax return. Consulting a tax expert can help ensure compliance.
Can I Reduce Capital Gains Tax If I Reinvest the Sale Money?
Yes, in certain cases. If you sell your main home and reinvest the full amount into another main residence within two years, you may avoid capital gains tax in Spain. However, strict rules apply, so professional advice is recommended to confirm eligibility.


