Legal Guides for Expats  ·  Tax and Fiscal

Capital Gains Tax Spain for Non-Residents:
Complete Guide (2026)

ExpatLawyerSpain  ·  Tax and Property Law Guides
Plaza Mayor in Madrid, Spain, for capital gains tax Spain property guide
Plaza Mayor, Madrid.

Selling a property in Spain as a non-resident means paying capital gains tax on the profit. The rate is a flat 19%, and there is a mandatory 3% retention that the buyer withholds at completion regardless of what you actually owe. Get the calculation wrong, miss the filing window, or ignore the retention mechanism entirely, and you will either leave money on the table or face a penalty from the Spanish tax authorities.

This guide covers exactly how capital gains tax Spain works for non-residents: how to calculate your gain, what you can deduct, the difference between resident and non-resident treatment, and how the UK, US and Irish double taxation treaties affect what you pay in total.

Non-EU owners should also be aware of the separately proposed 100% property tax on non-EU buyers, which would apply at purchase rather than sale.

Note

This guide is for general information and is not tax advice. Spanish tax law changes and individual circumstances vary significantly. Consult a qualified English-speaking tax lawyer or fiscal adviser before selling your Spanish property.

The Basics: CGT Rate and Who It Applies To

Capital gains tax in Spain is charged on the profit you make when you sell a Spanish property. For non-residents, the rate is a flat 19% on the net gain, regardless of your nationality. This rate applies to UK nationals, US nationals, Irish nationals, and all other non-residents equally.

Residents of Spain pay CGT at progressive savings-income rates depending on the size of the gain: 19% on the first 6,000 euros, 21% on gains between 6,000 and 50,000 euros, 23% on gains between 50,000 and 200,000 euros, 27% on gains between 200,000 and 300,000 euros, and 30% above 300,000 euros. So for non-residents with significant gains, the flat 19% rate is actually more favourable.

Non-Resident

CGT Rate

19%

Flat rate on the net gain for all non-residents, regardless of nationality or gain size.

Retention

3% Withholding

3%

Buyer withholds 3% of the sale price at completion as an advance payment against the tax.

Filing Form

Modelo 210

4 months

Seller must file Modelo 210 within 4 months of completion to settle or reclaim the retention.

The 3% Retention Rule Explained

This is the mechanism most non-resident sellers are not expecting. When a non-resident sells a Spanish property, Spanish law requires the buyer to withhold 3% of the agreed sale price and pay it directly to the Spanish tax authority (Agencia Tributaria) as an advance payment against the seller's capital gains tax liability.

The key word is "advance." The 3% retention is not the final tax. It is a prepayment. What happens next depends on your actual gain:

The 3% comes from the sale price, not the gain

On a 400,000 euro sale, the buyer withholds 12,000 euros regardless of what profit the seller actually made. If the net gain is 60,000 euros, the actual CGT due is 11,400 euros (60,000 x 19%), so the seller is owed a 600 euro refund. The seller must file to receive it. Not filing means losing that money.

Your property lawyer or tax adviser manages the retention mechanism and files Modelo 210 on your behalf. The deadline is 4 months from the date of completion.

Selling a Spanish property as a non-resident?A tax lawyer handles the 3% retention, calculates your actual liability, and files Modelo 210 to reclaim any overpayment.

Find a tax lawyer in Spain ->

How to Calculate Your Capital Gain

View from Park Güell in Barcelona, Spain, for capital gains tax Spain guide
Park Güell, Barcelona.

The taxable gain is not simply "sale price minus what you paid for it." Spain allows several categories of deduction that can substantially reduce the figure.

The formula is:

Taxable gain = Sale price - (Purchase price + allowable purchase costs + improvement costs + selling costs)

What counts as the purchase price

The purchase price is the price stated in the original escritura (title deed). If you bought in a foreign currency, Spain uses the exchange rate at the date of purchase - not today's rate - which can significantly affect the gain calculation for UK and US sellers.

Allowable purchase costs (deductible)

You can deduct the costs you paid when you originally bought the property:

Improvement costs (deductible)

Capital improvements to the property - structural work, extensions, new kitchens, bathroom renovations - are deductible if you have invoices. Routine maintenance and repairs are not deductible. The distinction matters. Keep all invoices from any significant work done on the property.

Selling costs (deductible)

A worked example. You bought a property in 2015 for 250,000 euros, paid 17,500 euros in ITP and purchase costs, and spent 20,000 euros on a kitchen extension (with invoices). You sell in 2026 for 380,000 euros and pay 12,000 euros in agent fees and legal costs. Your adjusted purchase cost is 287,500 euros. Your net gain is 80,500 euros. CGT at 19% is 15,295 euros. The buyer retains 11,400 euros (3% of 380,000) at completion. You file Modelo 210 and pay the remaining 3,895 euros within 4 months.

Residents vs Non-Residents: Key Differences

The distinction between resident and non-resident status affects both the CGT rate and the exemptions available to you.

Factor Non-Resident Spanish Tax Resident
CGT rate Flat 19% Progressive 19-30%
3% retention Yes - buyer withholds 3% at completion No retention mechanism
Primary residence exemption Not available Full exemption if selling primary residence and reinvesting proceeds in new primary residence
Over-65 exemption Not available Full exemption if selling primary residence and aged over 65
Filing form Modelo 210 (within 4 months) Annual Renta declaration (IRPF)
Allowable deductions Purchase costs, improvements, selling costs Same, plus inflation adjustment on purchase price for assets held before 1994

You are a Spanish tax resident if you spend more than 183 days per year in Spain, or if Spain is the centre of your economic interests. If you are on the Non-Lucrative Visa or another residency route and spend the majority of the year in Spain, you are likely a tax resident - and the rules above change materially. If you are unsure of your status, a tax adviser can confirm it before you sell.

Double Taxation Treaties: UK, US and Ireland

Arched windows on a white and yellow wall in Spain, for capital gains tax Spain guide
Seville, Spain.

Spain taxes the gain where the property is located - in Spain. Your home country may also want to tax the same gain. Double taxation treaties exist to prevent you paying twice. Here is how each of the main treaties works in practice.

UK sellers

The UK-Spain Double Taxation Convention (updated post-Brexit) gives Spain the primary right to tax gains on Spanish property. If you are UK tax resident, the gain normally needs to be reported to HMRC through your UK tax return. The Spanish CGT you paid is credited against your UK capital gains tax liability. UK CGT rates are currently 18% for basic rate taxpayers and 24% for higher rate taxpayers on residential property. Because Spain taxes at 19%, most UK higher-rate taxpayers will owe a small top-up to HMRC; basic-rate taxpayers may owe nothing additional, depending on total gains in the year.

UK sellers: report to HMRC within 60 days

Since April 2020, UK residents disposing of UK property must report to HMRC within 60 days. For Spanish property, the same timeline applies to your UK return. Missing this deadline triggers automatic late-filing penalties from HMRC, separate from any Spanish obligation.

US sellers

The US-Spain tax treaty similarly allows Spain to tax gains on Spanish real estate first. US citizens and green card holders must report all worldwide income and gains to the IRS regardless of where they live. The Spanish CGT paid is taken as a foreign tax credit on your US return, reducing your US tax liability dollar-for-dollar. US long-term capital gains rates are 0%, 15%, or 20% depending on income. Most US sellers will find the Spanish 19% credit covers or exceeds the US liability, but this depends heavily on your total income in the year. A US tax adviser familiar with cross-border real estate sales is worth the cost for any significant gain.

Irish sellers

Ireland and Spain have a double taxation agreement under which Spain taxes the gain on Spanish property first. Irish CGT is currently charged at 33%. The Spanish CGT paid at 19% is offset against your Irish liability, leaving a 14% top-up payable in Ireland in most cases. Irish sellers should file in both jurisdictions. Revenue in Ireland requires a CGT return regardless of whether tax is owed.

No double taxation treaty? Spain has treaties with over 90 countries. If your country is not among them (some developing nations, certain Caribbean jurisdictions), you may face CGT in both countries with no offset. Check with an international tax adviser before completing the sale.

For a broader picture of all taxes attached to Spanish property ownership - not just on sale but on purchase and ongoing ownership - see our guide to Spanish property taxes for foreign owners.

When Do You Actually Need a Tax Lawyer?

If your Spanish property sale is straightforward - you bought at a clear price, made no major improvements, have all your original purchase documents, and your gain is modest - you could in theory manage the filing yourself using Modelo 210. In practice, most non-resident sellers use a Spanish tax lawyer or fiscal adviser for the following reasons.

You need professional help if any of these apply:

The 4-month deadline for filing Modelo 210 after completion is strict. Missed filings attract a penalty of 50-150% of the unpaid tax, depending on how late the filing is. A tax adviser tracks the deadline and files on your behalf.

Find a tax lawyer in Spain.Search English-speaking tax lawyers and fiscal advisers across Spain, free to use with no hidden fees.

Find a tax lawyer in Spain ->

Frequently Asked Questions

What is the capital gains tax rate in Spain for non-residents?
Non-residents pay a flat 19% on the net gain from selling a Spanish property, regardless of nationality or the size of the gain. This rate applies equally to UK nationals, US nationals, Irish nationals and all other non-EU sellers. It is the same rate as the lowest resident CGT band, so for larger gains non-residents are actually taxed more favourably than Spanish residents.
What is the 3% retention rule when selling property in Spain?
When a non-resident sells a Spanish property, the buyer is legally required to withhold 3% of the sale price and pay it directly to the Spanish tax authorities as an advance against the seller's capital gains tax liability. The seller then files Modelo 210 within 4 months of completion to settle the actual tax. If the 3% retention exceeds the real tax owed - for example because the gain is small or there was a loss - the seller can claim a refund. If it falls short, the seller pays the difference.
What costs can I deduct to reduce my capital gains tax in Spain?
You can deduct the costs you paid when you originally bought the property (ITP or IVA, notary fees, registry fees, legal fees), the cost of capital improvements you made to the property provided you have invoices, and your selling costs (estate agent commission, legal fees, Plusvalia Municipal). Routine maintenance and repairs are not deductible. Keeping all original invoices - especially for renovation work - can significantly reduce the taxable gain.
Do UK nationals pay capital gains tax in both Spain and the UK?
Spain has the primary right to tax the gain under the UK-Spain Double Taxation Convention, so you pay Spanish CGT at 19% first. You must also report the gain on your UK self-assessment return and pay any difference to HMRC. The Spanish CGT paid is credited against your UK liability. UK higher-rate taxpayers (24% on residential property) will typically owe a 5% top-up to HMRC. Basic-rate taxpayers may owe little or nothing further, depending on their total annual gains.
What happens if I sell my Spanish property at a loss?
If you sell for less than you paid (after adjusting for purchase costs), you owe no capital gains tax in Spain. However, the buyer still withholds the 3% retention at completion regardless. You then file Modelo 210 within 4 months with evidence of the loss - your original purchase deed and the sale deed - and the Spanish tax authorities refund the entire 3%. Not filing means you lose that money.
Is there a capital gains tax exemption for non-residents in Spain?
The main CGT exemptions available to Spanish tax residents - the primary residence exemption and the over-65 exemption - do not apply to non-residents. Non-residents have no general CGT exemption in Spain beyond the standard deduction of allowable costs from the gain. The only way to reduce or eliminate the liability is to maximise deductible purchase, improvement and selling costs, or to demonstrate a loss on the sale.

Summary

Capital gains tax Spain for non-residents is a flat 19% on the net gain. The 3% retention mechanism means 3% of the sale price leaves your proceeds at completion and sits with the Spanish tax authorities until you file Modelo 210 - which must happen within 4 months. Get the deductions right and file on time, and you either settle a smaller bill or recover a refund. Miss the deadline and the penalties compound quickly.

If you are planning a sale and want to understand the full tax picture - including what you will owe on both sides of the Channel or Atlantic - an English-speaking tax lawyer in Spain is the most straightforward way to avoid a costly mistake. You can search verified firms by city and specialty on ExpatLawyerSpain, or read our guide on what to look for when choosing one.

Also worth reading before you sell: our full guide to buying property in Spain as a foreigner covers the purchase side in detail, and our Spanish property taxes guide covers IBI, IRNR and Plusvalia alongside CGT in one place.

Find a tax lawyer in Spain.Search English-speaking tax lawyers and fiscal advisers, free to use across all Spanish cities and regions.

Find a tax lawyer in Spain ->