Check a property

Home › Guides › Capital gains tax in Spain: rates, reliefs and a worked example

Taxes

Capital gains tax in Spain: rates, reliefs and a worked example

Capital gains tax in Spain is charged on the profit when you sell a property. Residents pay 19% to 30% on the savings scale; non-residents pay a flat 19%, and the buyer holds back 3% of the price on account.

Updated 25 September 2026 · Checked against official Spanish sources · Not legal advice

  • Official sourcesChecked against BOE, Agencia Tributaria, Catastro and other primary sources
  • Updated for 2026Every figure dated and linked to where we checked it
  • IndependentNo agent, developer or lawyer paid to appear on this page
  • Free property checkSend us an address and we check it against public records
CGT rate for non-residents
19%
Savings scale for residents
19–30%
Buyer's retention (Modelo 211)
3%
Age for main-home sale exemption
65+
  • Non-residents: 19% of the gain, whatever country you live in.
  • Residents: the savings scale, from 19% up to 30% on gains above €300,000.
  • Retention: when a non-resident sells, the buyer holds back 3% of the price and pays it on Modelo 211.
  • Reliefs: reinvesting in a new main home (Spanish residents, and EU/EEA residents selling their former Spanish main home), or selling your main home when over 65 (Spanish residents).
  • Separate tax: the town hall's plusvalía is charged on top.
Resident savings-income scale in 2026 (state + regional)
Up to €6,00019%
€6,000–50,00021%
€50,000–200,00023%
€200,000–300,00027%
Over €300,00030%

Source: Ley 35/2006 del IRPF, arts. 66 and 76; Agencia Tributaria Manual IRPF (checked Sept 2026)

Show as table
ItemValue
Up to €6,00019%
€6,000–50,00021%
€50,000–200,00023%
€200,000–300,00027%
Over €300,00030%

How capital gains tax in Spain works

Capital gains tax in Spain is not a separate tax. For residents, gains are part of income tax (IRPF) and go into the "savings" base. For non-residents, they fall under non-resident income tax (IRNR). Either way, what is taxed is the gain: the difference between what you sold for and what the property cost you, with costs added on both sides.

Whether you pay the resident or the non-resident rules depends on your tax residence in the year of the sale, not your nationality. See our guide to Spanish income tax rates for the 183-day rule.

Spain capital gains tax rates

SellerRate on the gainHow it is paid
Spanish tax resident19% to 30% (savings scale)Annual IRPF return (Modelo 100)
Non-resident (UK, US, EU or anywhere)19% flat3% retention by buyer, then Modelo 210

The resident savings scale has a state half and a regional half, but the law sets both, so the combined rates are the same in every region. Regions cannot change them, unlike the general income tax scale.

What you can deduct

The gain is worked out as follows:

  • Sale value: the price in the deed, less selling costs you paid, such as estate agent fees, the plusvalía municipal, and a lawyer's fees on the sale.
  • Purchase value: the price you paid, plus the costs and taxes of buying: ITP or IVA and AJD, notary, land registry, and legal fees.
  • Improvements: documented investment that adds value, such as an extension, a new kitchen or a pool. Keep invoices. Ordinary repairs do not count.
  • Depreciation: if you rented the property out and deducted depreciation against the rent, that amount reduces your purchase value.

If you inherited the property, the purchase value is the value declared for inheritance tax, not what the deceased paid. Owners of property bought before 31 December 1994 may be able to cut the gain with old "reduction coefficients", but only for the part of the gain up to 19 January 2006 and within a lifetime cap of €400,000 of sale value.

Spanish CGT for non-residents

If you live outside Spain, you pay 19% on the gain. The rate is the same for UK, US and EU residents; the Brexit change to 24% applies to rental and imputed income, not gains. See our guide to non-resident tax in Spain.

The 3% retention: Modelo 211 and 210

Because the seller may leave Spain with the money, the buyer must hold back 3% of the price and pay it to the Agencia Tributaria on Modelo 211 within one month of the sale. If the buyer doesn't, the buyer becomes liable for that amount, so the notary will usually insist it is done.

The seller then files Modelo 210 to settle the real tax, within three months after the end of the buyer's one-month window. If 19% of the gain is more than the 3% retained, you pay the difference. If it is less, or you made a loss, you claim a refund. Refunds can take months, so file promptly.

CGT on a Spain non-resident sale is also often followed by the plusvalía bill. If the seller is non-resident, the buyer becomes liable for the plusvalía, which is why buyers often retain it from the price too. See plusvalía tax in Spain.

Reliefs for residents

Reinvesting in a new main home

If you are resident and sell your main home (vivienda habitual), the gain is exempt to the extent you reinvest the proceeds in a new main home within two years. Reinvest part and only part of the gain is exempt. In general, a home counts as your main home after you have lived there continuously for three years.

Over 65 selling the main home

Residents aged 65 or over pay no capital gains tax on selling their main home, whatever they do with the money. Over-65s can also exempt gains on other assets up to €240,000 if they use the money to buy a life annuity within six months.

The over-65 reliefs are for Spanish tax residents. Since 1 January 2015, residents of another EU or EEA state can also use the reinvestment relief when they sell what was their main home in Spain (Non-Resident Income Tax Law, additional provision 7). A holiday home was never your main home, so if you live abroad and sell one, assume you will pay 19% on the full gain.

Common mistakes

  • Forgetting the purchase costs. Transfer tax, notary and registry fees paid when you bought all reduce the gain. Find the original receipts.
  • Not claiming back the excess 3%. If you sold at a small gain or a loss, the retention is often more than the tax. The refund is only paid if you file Modelo 210.
  • Selling a jointly owned home as one person. Each owner is taxed on their share of the gain and files their own return.
  • Assuming a resident's relief applies. Moving back to the UK the year before the sale means the non-resident rules apply.

Worked example

A UK resident bought a flat in Alicante in 2015 for €250,000 and paid €25,000 in purchase taxes and fees. In 2026 they sell for €400,000 and pay €15,000 in agent fees and plusvalía.

LineAmount
Sale price less selling costs€385,000
Purchase price plus buying costs€275,000
Gain€110,000
Tax at 19% (non-resident)€20,900
3% retained by buyer€12,000
Balance to pay on Modelo 210€8,900

If the same seller were a Spanish resident without reliefs, the savings scale would give: €6,000 at 19% (€1,140) + €44,000 at 21% (€9,240) + €60,000 at 23% (€13,800) = €24,180. For big gains, the flat 19% for non-residents is lower.

The UK seller also reports the gain to HMRC and gets a credit for the Spanish tax. See our UK–Spain double tax treaty guide for how that works.

Before you sell (or buy)

Records matter. Keep your purchase deed, tax receipts and improvement invoices; without them you may be taxed on a bigger gain. For an overview of the whole process, see selling property in Spain and property taxes in Spain. If you are buying from a non-resident and want a second look at the property, enter the address or referencia catastral on our free property check and we'll get back to you by email.

Step by step

  1. Work out the gain

    Sale price less selling costs, minus purchase price plus buying costs and documented improvements.

  2. Buyer retains 3%

    If you are non-resident, the buyer pays 3% of the price to the Agencia Tributaria on Modelo 211 within a month.

  3. File your return

    Non-residents file Modelo 210; residents include the gain in their annual IRPF return.

  4. Pay or reclaim

    Pay the balance if 19% of the gain exceeds the 3% retained, or claim the excess back.

  5. Declare at home

    UK and US residents also report the gain at home and claim credit for the Spanish tax.

Sources checked
Questions

Common questions

What is the capital gains tax rate in Spain for non-residents?

A flat 19% on the gain, whether you live in the UK, the US or the EU. The buyer also withholds 3% of the price as a payment on account.

How much capital gains tax do Spanish residents pay?

Residents pay the savings scale: 19% on the first €6,000 of gains, then 21%, 23%, 27% and 30% above €300,000.

Is there capital gains tax if I am over 65 in Spain?

Spanish tax residents over 65 who sell their main home pay no capital gains tax on it. Non-residents do not get this exemption.

Can I get the 3% retention back?

Yes. If 19% of your actual gain is less than the 3% retained, or you made a loss, you claim the difference on Modelo 210 and the tax agency refunds it.

Is plusvalía the same as capital gains tax?

No. Plusvalía is a separate municipal tax on the rise in land value. You can pay both on the same sale, and the plusvalía you pay counts as a selling cost.

Check the property before you sign

An address or a referencia catastral is all we need to start. Free, in English.

Check a property free