Tax · Non-residents · IRNR

Capital gains tax when selling property in Spain as a non-resident

Capital gains tax is the tax that moves the most money in a non-resident sale — and, paradoxically, the most often miscalculated because deductible costs are not properly documented. Here it is explained in plain English: what counts as a gain, what is deductible, what rate applies and how it is reconciled with the 3% notary retention.

Updated May 2026

The figure that appears in a seller's head when they think about capital gains tax is almost never the real figure they pay. It is usually higher — because the costs of the original purchase, the improvements, the commission and the plusvalía municipal are not deducted. Properly documented, a sale that looks like an €80,000 gross gain often taxes on €40,000 or less. Poorly documented, it taxes on the full €80,000.

What counts as a capital gain

In tax terms, the capital gain is the difference between the transfer value and the acquisition value. It is not simply "sale price minus purchase price" — it is more nuanced, and this is where the deductions that move the bill come in.

The actual formula

The legal IRNR calculation for non-residents is:

  • Transfer value = sale price − costs inherent to the sale (commission, plusvalía municipal, energy certificate).
  • Acquisition value = purchase price + purchase costs (notary, registry, ITP or VAT, gestoría) + improvements with VAT.
  • Capital gain = transfer value − acquisition value.
  • IRNR liability = gain × applicable rate (19% EU/EEA or 24%).

Purchase vs sale price

Both are the figures recorded on the deeds, not amounts agreed verbally or paid partly off the books. If you purchased at €180,000 in 2010 and sell at €260,000 in 2026, the gross difference is €80,000. But that figure is not yet the fiscal gain — every deductible cost still has to be subtracted.

Deductible costs from the purchase

  • Notary and registry fees on the original purchase deed.
  • ITP (Transfer Tax) if it was a resale, or VAT if it was new-build.
  • Gestoría that handled the purchase.
  • Valuation, if required by the mortgage.
  • Mortgage opening commissions associated with the purchase.

Justified improvements

This is where half of the fiscal benefit is won or lost. Structural improvements — full refurbishment, extensions, new installations, replacing systems — are deductible provided they are evidenced with a formal invoice and VAT breakdown. What is not deductible: paint, furniture, appliances, ordinary maintenance, gardening, cosmetic repairs.

In real Costa Blanca South transactions, we routinely see sellers who invested €40,000 refurbishing an apartment — but only €12,000 is documented with formal VAT invoices. The other €28,000 is not deductible. The difference in IRNR at 19%: around €5,300 lost simply for not having asked for a formal invoice at the time.

Agency commission

The commission paid to the agency handling the sale is fully deductible provided it is invoiced with VAT. On a €280,000 sale with a 4% + VAT commission, approximately €13,500 is deducted from the transfer value and reduces the tax base. Without a formal invoice — cash payment, receipt without VAT — the deduction is lost.

Plusvalía municipal

Plusvalía municipal paid to the town hall is also a deductible cost. It is one of the most automatic deductions when paperwork is organised — and one of the most missed when form 210 is filed without a complete file. To understand how much it may be in your specific case, see the plusvalía calculator.

Non-resident tax rate

  • 19% — residents in EU, EEA (Sweden, Norway, Iceland), and equivalent jurisdictions.
  • 24% — residents outside the EEA: UK (post-Brexit), Switzerland, United States, UAE, Andorra, etc.

The 19% rate is not applied automatically: fiscal residency must be evidenced with the official certificate from your country. Without it, Hacienda defaults to 24% — and the difference, on a €50,000 gain, is €2,500 of extra tax.

Worked example — Orihuela Costa

German seller, resident in Munich. Apartment bought in 2011 at €165,000, sold in 2026 at €245,000.

  • Acquisition value: 165,000 + 18,500 (purchase costs) + 14,000 (refurbishment with invoice) = €197,500.
  • Transfer value: 245,000 − 11,800 (4% commission + VAT) − 720 (plusvalía) = €232,480.
  • Capital gain: 232,480 − 197,500 = €34,980.
  • IRNR liability at 19% (EU): €6,646.
  • 3% retention at the notary: €7,350.
  • Estimated refund: +€704 via form 210.

Link to the 3% retention and form 210

This is the full circuit. The buyer retains 3% at the signing (form 211). The seller files form 210 within four months calculating the real gain. If the liability is lower than what was retained, Hacienda refunds the difference 6–12 months later. If higher, the balance is paid with form 210. The capital gain is the engine of the whole calculation — the 3% is only the advance.

The real gain almost never matches what the seller assumes. When we close the file before going to market — refurbishment invoices, original purchase deed, mortgage costs — the liability drops naturally. It is not aggressive optimisation; it is basic accounting that many sellers simply never complete.

— Mauricio

How we handle it

At the initial valuation we estimate the capital gain with the deductible costs you can document — and, more usefully, identify what you still need to gather before the sale begins. You arrive at the notary with a real estimated liability, not a gross number. And at form 210, with a complete file.

Selling as a non-resident?

We help you document every deduction before the property goes to market.

The difference between a sale with a closed file and one with incomplete paperwork is often several thousand euros in tax.

This guide is indicative and does not constitute tax or legal advice. Each transaction has particularities — especially around exemptions, reinvestment relief and double-taxation treaties — that a qualified gestor or tax adviser should review with the exact figures of your case.

A quick question?

Every property is different — talk with an advisor about yours.

Quick answers

FAQ

What counts as a capital gain when selling?
It is the difference between the transfer value (what you receive less costs inherent to the sale) and the acquisition value (what you paid plus purchase costs and documented improvements). Tax applies only to the net gain, not to the gross price. If the result is negative, there is no tax base.
What tax rate applies to a non-resident?
19% if you reside in the European Union or European Economic Area (Sweden, Norway, Iceland) and equivalent jurisdictions. 24% if you reside outside the EEA — including the UK after Brexit, Switzerland, the United States, the UAE and others. A fiscal residency certificate from your country is what evidences the 19% rate.
Which expenses can I deduct?
From the purchase: notary, registry, ITP or VAT, gestoría and valuation. From the sale: agency commission with VAT, plusvalía municipal and energy certificate. Also structural improvements documented with formal VAT invoices — not ordinary maintenance, furniture or cosmetic repairs.
Do refurbishments and improvements count?
Yes, but only justified improvements that increase the value or extend the useful life of the property — full refurbishment, extensions, new installations — always with formal invoice and VAT. Painting, replacing appliances or updating furniture is maintenance and is not deductible. The line is strict: without a formal invoice, there is no deduction.
How does it connect to the 3% retention and form 210?
The 3% retention is the advance the buyer pays at signing via form 211. The actual capital gain is calculated afterwards via form 210, in the four months following completion. If the real liability (19% or 24% on the net gain) is lower than the 3% retained, Hacienda refunds the difference. If higher, you pay the balance with form 210.
Is plusvalía municipal deducted from the gain?
Yes. Plusvalía municipal paid to the town hall is a deductible cost from the transfer value for IRNR capital gain purposes. It is one of the most relevant deductions and, paradoxically, one of the most often missed when form 210 is filed without organised paperwork.
Are there exemptions for over-65s or reinvestment?
For non-residents, the over-65 exemption and the reinvestment relief do not apply identically to residents. The reinvestment-in-principal-residence relief is available to EU/EEA residents under specific conditions. Each case requires individual fiscal review before the sale.

Private representation intake

Request your private market opinion.

A considered view on what your home could achieve in today’s market — written for you, in your language, with no obligation.

29 homes accepted into representation · May 2026

  1. 1

    Share three details

    Around 30 seconds — entirely private.

  2. 2

    We respond personally

    A considered reply within working hours, in your language.

  3. 3

    A quiet visit, if it feels right

    We visit your property calmly — no pressure, no obligation.

Three details. Entirely private.

Your details stay private

MOVR Real Estate S.L. · RAICV 2897 · Professional liability insured