Free assessment
No obligation
Selling property in Spain as a non-resident: taxes and process
Selling property in Spain as a non-resident triggers specific tax obligations that differ from those of resident sellers. The most important one — the 3% buyer retention — catches many foreign sellers off guard. This guide covers the full process and how to claim back any overpayment.
The essentials
7 min full read- 1The buyer withholds 3% of the sale price and pays it directly to the Spanish tax authority
- 2Capital gains tax for non-residents is 19% on the profit (sale price minus purchase costs)
- 3Plusvalía municipal (local land value increase tax) is also due — paid by the seller
- 4You can claim back the 3% retention if it exceeds your actual tax liability
Buying property in Spain as a non-resident?
We compare 53 Spanish banks for foreign buyers. Free assessment in 24-48h, all in English. Bank of Spain reg. nº E569.
The 3% retention: what it is and how it works
When a non-resident sells property in Spain, the buyer is legally obligated to withhold 3% of the total sale price and pay it directly to the Agencia Tributaria (Spanish tax authority) using Form 211. This happens at the notary signing — the buyer pays you 97% and sends 3% to the tax authority.
This retention is not a tax in itself — it is an advance payment on your capital gains tax liability. If your actual tax is less than 3%, you can claim back the difference. If it is more, you must pay the shortfall.
ExampleYou sell for €300,000. The buyer retains €9,000 (3%) and pays it to Hacienda. Your actual capital gains tax is €5,700. You claim back €3,300 by filing Form 210 within 3 months of the sale.
Capital gains tax calculation
Non-residents pay 19% on the capital gain, calculated as:
| Item | Amount |
|---|---|
| Sale price | €300,000 |
| Minus purchase price + costs | - €220,000 |
| Minus documented improvements | - €15,000 |
| Minus selling costs | - €12,000 |
| Taxable gain | €53,000 |
| Capital gains tax (19%) | €10,070 |
| 3% retention already paid | - €9,000 |
| Additional tax to pay | €1,070 |
Sale price
€300,000
Minus purchase price + costs
- €220,000
Minus documented improvements
- €15,000
Minus selling costs
- €12,000
Taxable gain
€53,000
Capital gains tax (19%)
€10,070
3% retention already paid
- €9,000
Additional tax to pay
€1,070
- •Sale price minus purchase price (including taxes paid at purchase)
- •Minus purchase costs (notary, registry, lawyer, ITP/VAT paid at purchase)
- •Minus improvement costs (documented renovations — not repairs or maintenance)
- •Plus selling costs (estate agent commission, lawyer, energy certificate)
- •= Taxable gain × 19% = Capital gains tax due
Plusvalía municipal
The plusvalía municipal is a local tax on the increase in land value during the time you owned the property. It is calculated by the town hall based on the cadastral land value and the number of years of ownership.
Since a 2021 Constitutional Court ruling, you do not pay plusvalía if you sell at a loss (you must prove the loss with purchase and sale deeds). For profitable sales, the amount depends on local rates and is typically €500-€5,000 for standard residential properties.
The seller is responsible for paying this tax within 30 days of the sale.
How to claim back the 3% retention
If your 3% retention exceeds your actual capital gains tax, you can claim the difference back by filing Form 210 within 3 months of the sale date. The tax authority typically processes refunds within 3-6 months.
You will need: the deed of sale (escritura), proof of the original purchase price and costs, receipts for any improvements, and your Form 210 filing. Most non-residents use a gestor fiscal to handle this process.
Request your non-resident mortgage assessment
Request your assessment
Fill in your details and we will contact you within 24 hours with the best non-resident mortgage options.
What will you use the property for?
Prefer to contact us directly?
Message us on WhatsAppHave more questions? Ask Hipo, our AI mortgage assistant
Frequently asked questions
What if I sell at a loss?
If you sell for less than you paid (including all costs), there is no capital gains tax. The 3% retention still applies at the notary, but you can claim the full amount back by filing Form 210 showing a zero or negative gain. You also do not pay plusvalía municipal.
Can I offset Spanish capital gains against losses in my home country?
This depends on the double taxation treaty between Spain and your country. Generally, you pay capital gains tax in Spain first, then claim a credit in your home country. Consult a cross-border tax advisor.
Do I need to cancel my mortgage before selling?
Not necessarily. The buyer's payment typically covers your outstanding mortgage balance directly to the bank at the notary signing. The notary coordinates the cancellation of the mortgage charge on the property registry simultaneously.
Useful tools
Mortgage Simulator
Calculate your monthly payment, borrowing capacity and early repayment
Open tool⚖️Mortgage Comparator
Compare offers by rate type, term, fees and conditions
Open tool🏠What home can I afford?
Maximum property price based on your income, savings and region
Open tool✅Will I get approved?
Quick test to estimate your mortgage approval probability
Open tool📊Mortgage Calculator 360
Payment, affordability, rate comparison and amortisation
Open tool🗺️Tax & Cost Simulator
Calculate taxes and costs by region (comunidad autónoma)
Open tool📈Euribor Today
Current Euribor rate, chart and impact on your mortgage
Open tool🔄Rate Review Calculator
Calculate your new payment at your next mortgage review
Open tool🏦Subrogation Calculator
Simulate 3 bank-switch scenarios: monthly savings, total savings and break-even
Open toolNeed guidance on your non-resident mortgage?
We analyse your profile and help you find the best non-resident mortgage conditions. No commitment.
About this content
Mortgage Content Editor
Published: July 2026
Last updated: July 2026
This page is informational and editorial in nature. It explains how the described mortgage conditions typically work and what to review, without guaranteeing results or replacing a lender’s assessment.