- 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.
Source: Ley 35/2006 del IRPF, arts. 66 and 76; Agencia Tributaria Manual IRPF (checked Sept 2026)
Show as table
| Item | Value |
|---|---|
| Up to €6,000 | 19% |
| €6,000–50,000 | 21% |
| €50,000–200,000 | 23% |
| €200,000–300,000 | 27% |
| Over €300,000 | 30% |
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
| Seller | Rate on the gain | How it is paid |
|---|---|---|
| Spanish tax resident | 19% to 30% (savings scale) | Annual IRPF return (Modelo 100) |
| Non-resident (UK, US, EU or anywhere) | 19% flat | 3% 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.
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.
| Line | Amount |
|---|---|
| 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
Work out the gain
Sale price less selling costs, minus purchase price plus buying costs and documented improvements.
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.
File your return
Non-residents file Modelo 210; residents include the gain in their annual IRPF return.
Pay or reclaim
Pay the balance if 19% of the gain exceeds the 3% retained, or claim the excess back.
Declare at home
UK and US residents also report the gain at home and claim credit for the Spanish tax.
- BOE: Ley 35/2006 del IRPF (consolidated)
- Agencia Tributaria: Manual IRPF 2025, gravamen estatal del ahorro
- Agencia Tributaria: Modelo 210 (IRNR)
- BOE: Real Decreto Legislativo 5/2004, Ley del IRNR
- BOE: TRLIRNR, disposición adicional séptima (reinvestment by EU/EEA residents)
- BOE: Reglamento del IRPF, RD 439/2007 (arts. 41, 41 bis, 42 bis)