Selling a flat as a non-resident in Spain: tax, withholdings and timelines in 2026

Practical guide to selling a property in Spain as a non-resident. IRNR tax, 3% withholding, municipal capital gains and tax refunds in Valencia.

Selling a property in Spain as a non-resident is perfectly possible, but it has particularities you should know before signing the deposit contract. The difference between doing it right or wrong can be several thousand euros and months of dealing with the Tax Agency.

In Sueca, Cullera and Valencia coast we see many cases of foreign owners (especially French, Belgian, German and British) or Spanish emigrants who need to sell. This is the practical guide.

The general scheme in a non-resident sale

When you sell a property as a non-resident in Spain, five things happen:

  1. 3% withholding on the total price that the buyer pays to the Tax Agency.
  2. Municipal capital gains tax paid by the seller (sometimes the buyer as substitute).
  3. IRNR (Non-Resident Income Tax) on the capital gain.
  4. Form 210 to liquidate the IRNR and claim the difference against the 3% withheld.
  5. Declaration in your country of residence applying the double taxation treaty.

The 3% withholding: how it works

This is the most important particularity. Spanish law obliges the buyer to withhold 3% of the total sale price when the seller is non-resident. That 3% goes directly to the Tax Agency via Form 211, and the buyer gives the seller a receipt.

Practical example:

  • Sale price: €180,000
  • Withholding by buyer: €5,400
  • Net amount received by seller at signing: €174,600

This withholding isn’t a tax: it’s an advance payment of IRNR. The seller then files Form 210 with the actual gain and:

  • If IRNR due is less than the withholding → Tax Agency refunds the difference.
  • If more → seller pays the difference.
  • If the gain is zero or negative → full refund of the 3%.

IRNR on the capital gain

The applicable rate is 19% on the gain. The gain is calculated as:

Sale price – Adjusted acquisition cost – Expenses

Important: the “adjusted acquisition cost” includes original purchase costs (notary, registry, transfer tax or VAT, agency) and improvements with proper invoices. Keeping renovation invoices can significantly reduce the gain and therefore the tax.

Example:

  • Sale price: €180,000
  • Original purchase price (2010): €130,000
  • Purchase costs: €12,000
  • Bathroom and kitchen renovation with invoices (2015): €18,000
  • Sale costs (commission, energy certificate): €7,500

Gain: 180,000 – 130,000 – 12,000 – 18,000 – 7,500 = €12,500 IRNR: 19% × 12,500 = €2,375

As the withholding was €5,400, the Tax Agency must refund €3,025.

Filing deadlines

  • Form 211 (3% withholding): the buyer has one month from signing to pay it.
  • Form 210 (seller’s IRNR): 3-month deadline starting one month after the transfer. In practice: 4 months from signing.

Filing Form 210 late incurs a surcharge (5-15%) and complicates the 3% refund. Filing on time is critical.

Municipal capital gains tax

By law, this is paid by the seller, but when the seller is non-resident, the council can demand it from the buyer as substitute taxpayer. For safety, many buyers also withhold this amount at signing and pay it themselves to the council.

In Sueca and Cullera, this depends on cadastral land value and years since purchase. For an average home it ranges from €300 to €3,500.

Since 2021, if the operation was at a loss (selling for less than purchase price), no tax is due. This must be proven by submitting both deeds to the council.

Documentation needed

Before signing, have ready:

  • Valid NIE (renewed if expired).
  • Original purchase deed and all renovation invoices.
  • Property tax payments and council certificate.
  • Energy efficiency certificate.
  • Habitability certificate (mandatory in the Valencian Community).
  • Community of owners up-to-date certificate.

If you live outside Spain, you’ll also need to grant power of attorney to someone trusted to avoid travelling for the signing. The power is granted before notary in your country and must have an Apostille of The Hague.

Recommendation

A non-resident sale with all taxes well-handled can take 8-12 months to close the full tax cycle (signing + forms + refund). Doing it with specialised advice avoids errors that can cost thousands of euros and months of delay.

At INSA we handle several non-resident sales each year and work with tax advisors specialised in IRNR. The real estate and tax sides go hand in hand: separating them usually costs more.

Frequently asked questions

How much does a non-resident pay when selling a flat in Spain?
A non-resident pays 19% on the capital gain (difference between purchase and sale price, adjusted for expenses and improvements). Additionally, the buyer withholds 3% of the total price and pays it to the Tax Agency as advance payment of the seller's IRNR.
What is the 3% withholding when selling as a non-resident?
When the seller is non-resident, the buyer is legally required to withhold 3% of the sale price and pay it to the Tax Agency using Form 211. It's an advance payment of tax on the gain. The seller recovers it (fully or partly) by filing Form 210.
How long does the Tax Agency take to refund the 3% withholding?
In practice, between 6 and 18 months after Form 210 is filed. If the gain is zero or negative (you sell for less than the adjusted purchase price), you're entitled to full refund of the 3%.
Who pays the municipal capital gains tax in a non-resident sale?
By law, the seller pays municipal capital gains (IIVTNU), resident or not. However, when the seller is non-resident, the council can demand payment from the buyer as substitute taxpayer. That's why many buyers also withhold the capital gains amount at closing.
Do I need an NIE to sell my flat in Spain?
Yes. Anyone buying or selling property in Spain needs a NIE (Foreign Identification Number) to sign the deed, file taxes and receive the price. If yours is lost or expired, it must be renewed before signing.
Do I have to declare the sale in my country of residence as well?
Yes, in most countries the gain made in Spain must also be declared in your country of residence, applying the relevant double taxation treaty to avoid paying twice. Typically the tax paid in Spain is offset against tax due in your country of residence.