What is the capital gains tax in Spain?

Selling a property in Spain can be profitable, but understanding the capital gains tax in Spain is crucial before finalizing the deal. This tax applies to the profit made when selling a property, and both residents and non-residents must comply with Spanish tax regulations. Knowing how this tax works can help avoid unnecessary tax liability.

The taxable gain is calculated by subtracting the original purchase price, acquisition costs, and deductible expenses from the sale price. The tax rates vary based on whether the seller is a resident or a non-resident. However, there are legal exemptions and deductions that can help lower the amount owed.

How does capital gains tax work in Spain?

Capital gains tax is charged on the profit earned from the sale of assets, including Spanish property. The difference between the acquisition price and the final sale price determines the taxable income.

For residents, the tax follows a progressive rate system, while non-residents are taxed at a flat rate. The Spanish tax authorities oversee all property transactions to ensure compliance.

Sellers should also consider additional property taxes and fees, such as land registry fees and the property transfer tax, which impact the overall cost of selling.

Capital gains tax rates in Spain

The applicable tax rates depend on the seller’s residency status.

For Spanish tax residents:

  • 19% for profits up to €6,000.
  • 21% for profits between €6,000 – €50,000.
  • 23% for profits between €50,000 – €200,000.
  • 26% for profits over €200,000.

For non-residents:

  • 19% for EU and EEA residents.
  • 24% for non-EU residents.

Unlike Spanish tax residents, non-residents are subject to double taxation treaties, which may help reduce the total tax burden.

Exemptions and deductions available

There are several exemptions and deductions that can reduce CGT Spain’s liability.

Exemptions for Spanish residents:

  • Over 65 exemption – Sellers over 65 years old who have lived in the property for at least three years are exempt.
  • Reinvestment exemption – If the profit from selling a habitual residence is reinvested into another home within two years, CGT may not apply.

Deductions available:

  • Acquisition cost – Includes legal fees, real estate commissions, and other costs associated with the original purchase price.
  • Home improvements – Major renovations that increased the property’s value may be deducted.
  • Land registry fees – Fees related to registering property ownership are deductible.

How to calculate capital gains tax in Spain

To determine the tax amount, follow these steps:

  1. Find the taxable gain:
    • Sale price: (Purchase price + Acquisition costs + Improvements) = Taxable Gain.
    • Example: Suppose you bought a property for €200,000 and spent €10,000 on legal fees and renovations. You sell it for €300,000.
      • Taxable Gain = €300,000 – (€200,000 + €10,000) = €90,000.
  2. Apply the tax rate based on residency status:
    • If you are a Spanish tax resident, the tax would be calculated as:
      • 19% on first €6,000 → €1,140.
      • 21% on next €44,000 (€6,000 – €50,000) → €9,240.
      • 23% on the remaining €40,000 → €9,200.
      • Total Tax Payable = €19,580.
  3. Check for exemptions:
    • If you reinvested all €300,000 in another property within two years, you might qualify for the reinvestment exemption.
    • If the property was purchased before 1994, you could apply reduction coefficients to lower the tax.
  4. Pay the tax through a tax return submission to the Spanish tax authorities.

Reducing capital gains tax legally

Several strategies can minimize investment tax when selling property:

  • Plan sales strategically – Selling a property at the right time, such as after meeting residency conditions or reinvesting profits, can help qualify for tax exemptions.
  • Use reduction coefficients – If the property was purchased before 1994, special reduction coefficients apply, lowering the taxable amount based on how long you have owned the asset.
  • Offset capital losses – If you have losses from other financial assets or past investments, you can use them to reduce your taxable gain, lowering your overall CGT liability.
  • Seek professional advice – Consulting an expert in Spanish taxation ensures you use every available deduction and exemption, reducing capital gains tax legally while staying compliant.

Paying capital gains tax in Spain

Sellers must report their gains and pay CGT through their annual personal income tax return.

Steps to pay:

  1. File the tax return with the Spanish tax authorities.
  2. Ensure compliance with the exchange of tax information agreements.
  3. Keep records of all deductible expenses and acquisition costs.

If you need help with property financing, looking for a reliable mortgage broker can make the process easier by finding suitable options for your financial needs.

Using a Spanish mortgage calculator can also help estimate tax liabilities and determine the best-selling strategy for your property.

Non-residents selling property in Spanish territory must pay a 3% withholding tax, deducted at the time of sale and adjusted when filing their tax return.

Conclusion

Understanding capital gains tax in Spain is key for sellers looking to maximize their profits while remaining compliant with Spanish tax authorities. Whether you are a tax resident or a non-resident, knowing the tax rates, exemptions, and deductions can significantly impact your financial planning. Consulting an expert ensures the best outcome for your Spanish property sale.

Frequently Asked Questions

Yes, Spanish tax residents can qualify for exemptions like the exemption for those over 65 or the reinvestment exemption. Non-residents may benefit from double taxation treaties, but professional guidance is advised.

You can offset CGT by deducting expenses such as acquisition costs, legal fees, and home improvements. Additionally, losses from other economic activities or financial assets can help reduce taxable income.

Picture of Chad Harwood-Jones

Chad Harwood-Jones

With a wealth of entrepreneurial experience , Chad brings a unique perspective to Baleario. Having launched and led multiple successful ventures, he moved to Mallorca a number of years ago, experiencing the complexities of settling in Spain firsthand. Today, he combines his expertise in finance, real estate, and insurance to offer expats in Spain comprehensive services tailored to their unique needs.

More Insights