Spanish capital gains tax can affect everything from selling your home to restructuring your investments. We explain how Spain’s CGT rules affect British expatriates and UK residents owning property in Spain, and the UK/Spain double taxation treaty.
Understanding how capital gains tax works in Spain is key to avoiding costly surprises and unnecessary tax. Spain’s system can feel unfamiliar to British expatriates, with no broad tax-free capital gains tax allowance like in the UK. If you live in one country and own assets in the other, you also need to follow the terms of the UK/Spain double tax treaty.
Once you are resident in Spain, you are liable to Spanish taxation on your worldwide income and gains. When disposing of property, shares or other investments, your profit must be assessed for tax, even when selling it to simply reinvest the proceeds in a similar asset. UK residents also pay Spanish CGT when selling a Spanish property.
Spain capital gains tax rates 2026
The same tax rates apply whether you sell real estate or capital investments (shares, investment funds etc.). For Spain tax residents, gains are included with your other ‘savings income’ for the year and taxed at the applicable scale rates:
- 19% on the first €6,000
- 21% on €6,001 to €50,000
- 23% on €50,001 to €200,000
- 27% on €200,001 to €300,000
- 30% on gains above €300,000
For non-residents, capital gains are taxed at a flat 19%.
Spain CGT on property sales
When you sell Spanish property, the taxable gain is normally calculated by taking the sale price and deducting the purchase price, certain buying/selling expenses, and qualifying improvement costs. Repairs and routine maintenance are not taken into account.
There is also a key local tax to remember: plusvalía municipal. This municipal land-value tax is separate from capital gains tax and can be due even where the main CGT bill is reduced or exempt.
Main home relief in Spain
If the property is your habitual home and you meet the conditions, you may be completely exempt from capital gains tax. In broad terms, the property normally needs to have been your main residence for at least three years, unless there is a genuine reason for moving earlier (job change, separation, death).
Main home relief can be available when:
- You are over 65 years of age and selling your main home. In this case, you don’t need to buy another property.
- You reinvest the proceeds in another main home within the time limits, and live there for a minimum of three years. The new home must usually be bought within two years of sale. If you only reinvest part of the proceeds, only part of the gain is exempt.
You can sell your Spanish main residence and purchase a new home in the UK while still qualifying for main residence relief – provided the sale takes place while you remain tax resident in Spain. After leaving Spain, any available main residence relief is generally restricted to properties within the EU/EEA.
Spain/UK double taxation rules on capital gains
UK residents selling Spanish property:
- Tax is due in Spain, at a flat rate of 19%.
- The buyer must withhold the 3% retention tax (3% of the sale price) and pay it directly to the local tax authorities as an advance payment. You then file a return to settle the final tax bill or claim any refund due.
- The gain is also taxable in the UK as your country of residence, but you can claim a credit for the Spanish tax paid.
Spain residents selling UK property:
- The UK has the primary right to tax the gains.
- As a Spanish tax resident, you must also declare the gain in your Spanish tax return, because Spain taxes your worldwide income and gains. Spain will give you a credit for the amount paid in UK.
- Main home relief may be available in both countries under domestic law.
Spanish capital gains tax on stocks, shares and other investments
Disposals of shares and equities, bonds, investment funds and other capital assets can also create a taxable gain, and for Spanish residents the same savings income tax bands normally apply.
Under the UK/Spain double tax treaty, gains on shares/investments are only taxed in the country of residence. Note that if you encash a UK ISA after becoming resident in Spain, the gains are fully liable to Spanish capital gains tax.
Share sales are usually dealt with using the FIFO method (‘first in, first out’), meaning the first shares bought are treated as the first shares sold. This matters if you bought the same investment at different times and prices.
Losses can also be useful: capital losses may be offset against other capital gains or savings income of the current year, with some limitations. Net losses can be carried forward against capital gains/savings income for up to four years.
Owning shares directly is not usually the most tax-efficient option. Instead, holding investment funds within a Spanish approved arrangement can provide significant tax advantages.
If you have cryptocurrencies, note that the income derived from trading is taxed as capital gains in Spain. So when residents of Spain transfer or sell cryptocurrency, gains are subject to Spanish capital gains tax in the same way as if you sold shares.
Spanish exit tax
Spain also has rules designed to tax gains when an individual leaves the country, commonly referred to as the ‘exit tax’.
It can apply where someone has been Spanish resident for at least 10 of the previous 15 years and holds significant shareholdings (e.g. portfolios over €4 million or large stakes in companies). In simple terms, Spain may tax unrealised gains (profits you have not yet taken) when you leave the country, with the tax calculated as if you had sold those assets at market value.
Exit tax can sometimes be deferred, including when moving to an EU/EEA country or one with a double taxation agreement. Take advice well before leaving to confirm if and how it would apply to you – and you may be able to avoid exit tax by restructuring your capital.
Capital gains tax – planning ahead
The biggest CGT mistakes are often practical. People miss receipts for improvements, assume repairs count as capital improvements, forget the 3% non-resident retention withholding, or fail to plan around residency timing and main-home relief.
Capital gains tax in Spain is not always straightforward – particularly for UK expatriates with assets in more than one country. The interaction between Spanish rules, UK rules and double taxation agreements can create both risks and planning opportunities.
If you are thinking of moving to Spain, selling property, or restructuring your investments, taking personalised advice can make a significant difference to your overall tax position. Speaking to a Blevins Franks cross-border specialist early will help you protect your wealth and avoid unnecessary tax.
Get in touch for personalised advice.