Will a Spanish bank lend to you?
1 minute · from your country
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.
Buying property in Spain as a non-resident?
We compare 40 Spanish banks for foreign buyers. Free assessment, all in English, response within 24 business hours. 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 the three months that follow the first month after 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)
- •Minus 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. Since Real Decreto-ley 26/2021, which followed Constitutional Court ruling STC 182/2021, it is charged on the lower of two bases: the objective one (cadastral land value × a coefficient for the years owned) or the real gain on the land (sale price minus purchase price, times the land share of the cadastral value).
If you sell at a loss, nothing is due (you must prove the loss with the purchase and sale deeds). For profitable sales, the amount depends on the municipality's coefficients and rate, capped at 30%.
The seller owes this tax, but when the seller is a non-resident individual the law makes the buyer the substitute taxpayer (art. 106.2 of the Local Finances Act): the buyer files and pays it within 30 working days of the sale and deducts the amount from the price.
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 the three months that follow the first month after the sale date. The tax authority has six months to pay the refund; after that it owes you late-payment interest (art. 31 of the General Tax Act).
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.
Will a Spanish bank lend to you? Check in 1 minute
Have more questions? Ask Hipo, our AI mortgage assistant
Frequently asked questions
What if I sell at a loss?
Can I offset Spanish capital gains against losses in my home country?
Do I need to cancel my mortgage before selling?
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 compare non-resident mortgage conditions across banks. No commitment.
Sources and references
- →Agencia Tributaria — Capital gains for non-residents
- →Tribunal Constitucional — Plusvalía ruling STC 182/2021
- →BOE — Texto refundido de la Ley Reguladora de las Haciendas Locales (arts. 104-110, plusvalía)
- →BOE — Ley 58/2003, General Tributaria
- →BOE — Real Decreto-ley 26/2021, que adapta la plusvalía municipal a la jurisprudencia
About this content
Mortgage Content Editor
Published: March 2026
Last updated: October 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.