Saltar al contenido

Will a Spanish bank lend to you?
1 minute · from your country

Check
Guide · 7 min read

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.

By Fernando Hierro
Excellenton TrustpilotMortgage portalFree assessmentInstant assessmentBank of Spain reg. no. E569

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.

Check in 1 minute
011 of 4

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.

022 of 4

Capital gains tax calculation

Non-residents pay 19% on the capital gain, calculated as:

Item

Sale price

Amount

€300,000

Item

Minus purchase price + costs

Amount

- €220,000

Item

Minus documented improvements

Amount

- €15,000

Item

Minus selling costs

Amount

- €12,000

Item

Taxable gain

Amount

€53,000

Item

Capital gains tax (19%)

Amount

€10,070

Item

3% retention already paid

Amount

- €9,000

Item

Additional tax to pay

Amount

€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
033 of 4

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.

044 of 4

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

  1. Your details
  2. Your result
  3. We call you
No personal details

The property

€
The property is

Your money

€

0 if none

€

What you receive each month, after tax

€

Car, loans, cards (0 if none)

What you'll borrow

Enter the price, the province and your savings to see how much you'd need to borrow.

You

How long have you been in your current job? (or self-employed)

Free, no sign-up and instant. Your figures are only stored in your browser.

Have more questions? Ask Hipo, our AI mortgage assistant

Talk to Hipo

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.

Need guidance on your non-resident mortgage?

We analyse your profile and compare non-resident mortgage conditions across banks. No commitment.

About this content

Fernando Hierro
Fernando Hierro

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.

Read our editorial policy