Invest Spain Property
Free shortlist
Research guide

Spain Capital Gains Tax: 19% and the 3% Sale Retention

Spain capital gains tax on property: resident sliding scale 19-28%, non-resident 19%, the 3% retention, plusvalía overlap, and a full worked example.

By Invest Spain Property Editorial · Updated August 20, 2026 · 11 min read

Spain Capital Gains Tax: 19% and the 3% Sale Retention

Quick answer: Spain taxes the gain on a property sale, not the sale price. Residents pay on a progressive savings scale from 19% up to 28%; non-residents pay a flat 19%. When the seller is non-resident, the buyer withholds 3% of the price as an advance and pays it to the tax office. A separate municipal tax, plusvalía, hits the same sale. Model both before you accept an offer.

Foreign owners on the Costa Blanca and Costa del Sol often plan the purchase carefully, then meet the exit taxes only at the notary table. This guide explains how capital gains tax works for residents and non-residents, how the 3% retention reduces your cash at completion, and how plusvalía overlaps with the state tax. For the entry side of the ledger, pair this with the cost of buying property in Spain hub, and for return math read the Spain rental yield guide.

How capital gains tax works on a Spanish sale

Capital gains tax in Spain falls on the profit rather than the sale price, and non-residents pay a flat 19% where residents run a sliding savings-base scale from 19% to 28%. A 3% retention is withheld at completion on non-resident sales as a payment on account. It applies when you transfer a property, calculated as the sale value minus your adjusted acquisition value. The rate set depends on whether you are tax-resident in Spain, and the gain is taxed in the year of the sale.

ElementWhat it meansWhy it matters
Taxable baseSale value minus adjusted purchase costYou are taxed on profit, not on price
Acquisition valuePrice paid plus purchase taxes and feesA higher basis lowers the gain
Transfer valueSale price minus selling costsAgent and legal fees reduce it
Resident rateSavings scale 19% to 28%Progressive by size of gain
Non-resident rateFlat 19% on the gainNo progressivity

The headline number a buyer or agent quotes is rarely the figure the tax office uses. Your gain is reconstructed from deed values and documented costs, so the paperwork you kept on purchase day directly cuts your tax years later.

Insider tip: collect every receipt that raises your acquisition basis from the day you buy, not the day you sell. Transfer tax, notary, registry, legal fees and documented capital improvements all count. Owners who reconstruct this years later routinely lose deductions they were entitled to.

CGT for residents: the savings-base sliding scale

Spanish tax residents declare property gains inside the savings base (base del ahorro) of their annual income tax return. The scale is progressive, so different slices of the gain are taxed at rising rates. The bands below reflect the standard 2026 savings scale; confirm the current figures with your gestor before you file, because budgets revise them periodically.

Gain slice (EUR)Marginal rateNote
Up to 6,00019%Lowest band
6,000 to 50,00021%Most mid-size gains land here
50,000 to 200,00023%Larger coastal gains
200,000 to 300,00027%High-value villas
Over 300,00028%Top band

Because the scale is progressive, only the slice inside each band pays that band’s rate. A resident with a 55,000 gain does not pay 23% on the whole amount; the first 6,000 pays 19%, the next 44,000 pays 21%, and only the final 5,000 reaches 23%. That structure rewards splitting disposals across tax years where the timing genuinely suits your plans.

Methodology: the resident scale applies to the savings base as a whole, so a property gain stacks with dividends and interest in the same year. Timing a sale across a tax year can therefore change the marginal band, which is a planning point residents have and non-residents do not.

CGT for non-residents: flat rate and the 3% retention

Non-residents are taxed under the Impuesto sobre la Renta de no Residentes (IRNR) at a flat 19% on the net gain, with no access to the progressive bands. The defining feature for non-residents is the 3% retention applied at the moment of sale.

FeatureNon-resident sellerResident seller
CGT rateFlat 19% on gainSliding 19% to 28%
Retention at sale3% of price withheldNone
Filing formModelo 210Annual Renta
Filing windowAbout 4 monthsAnnual return
Main-home reliefsGenerally noYes, if habitual home

The flat 19% looks simple, but the 3% retention changes your cash position at completion. You receive the sale price minus that 3%, and you only recover any excess after filing. For non-EU sellers, confirm your exact treatment with a Spanish tax adviser, because residence and tax-treaty status affect the final position.

Buyer scenario: on a €400,000 sale the buyer withholds €12,000 as the 3% retention and pays it to the Agencia Tributaria on the seller’s account. If the actual CGT liability is lower, the seller reclaims the difference, and that refund routinely takes months rather than weeks.

Exit costs deserve modelling at the same time as entry costs, because together they set the holding period a purchase needs. Acquisition runs 10% to 13% over the price, so €30,000 to €39,000 on a €300,000 property. On the way out, the 3% retention removes €9,000 from the completion proceeds pending assessment, plusvalía municipal is charged on the land value by the town hall, and agency commission is customarily the seller’s cost. A property therefore has to appreciate meaningfully before a sale returns the original capital, which is the practical argument against treating a Spanish purchase as a short-term trade. On a €300,000 property, entry and exit together commonly absorb 13% to 16% of the price, or €39,000 to €48,000, before any gain is counted at all.

The 3% retention explained

The 3% retention (retención) is Spain’s mechanism for collecting tax from sellers who live abroad and might otherwise leave without settling. By law, the buyer of a property from a non-resident must withhold 3% of the agreed purchase price and pay it directly to the Agencia Tributaria.

StepWho actsForm
Withhold 3% of priceBuyerHeld at completion
Pay 3% to tax officeBuyerModelo 211
Receive proof of paymentSellerCopy of Modelo 211
File the real gainSellerModelo 210
Reclaim or top upSellerWithin about 4 months

Two outcomes are possible. If your actual CGT is higher than the 3% already paid, you settle the difference on Modelo 210. If your actual CGT is lower, or you sold at a loss, you reclaim the excess. Refunds can take months, so treat the 3% as locked-up cash rather than a final cost. The buyer keeps the receipt because, without proof the 3% was paid, the property can be charged for the unpaid amount.

Insider tip: if you sold at a genuine loss, you still suffered the 3% retention at completion, and the only way to get it back is to file Modelo 210 and claim the refund. Sellers who skip the filing simply donate the 3% to the Spanish treasury.

The 3% retention is the mechanism that makes a non-resident sale different from a resident one at the notary table. The buyer withholds 3% of the agreed price and pays it directly to the tax office on Modelo 211 against the seller’s capital gains liability, so the seller receives 97% at completion regardless of whether any gain was actually made. On a €300,000 sale that is €9,000. Where the real liability is lower, the difference is reclaimed afterwards on Modelo 210, which takes months rather than weeks. Plusvalía municipal on the land value is payable separately and is also the seller’s charge in an ordinary resale. Together the two deductions can absorb a five-figure sum from proceeds a seller expected to receive in full at the notary.

Plusvalía municipal: the second exit tax

Plusvalía municipal, formally the IIVTNU, is the second exit tax and it is charged by the town hall rather than the state. It falls on the increase in cadastral land value over your holding period, is calculated separately from CGT, and is payable by the seller within 30 days of the deed. It is a town-hall tax on the increase in the urban land value during your ownership. It is charged on the land (suelo) component, not the building, and it sits with the seller by default. This is why a single sale can trigger two exit taxes: state CGT and municipal plusvalía.

Plusvalía featureWhat sellers should know
Who paysSeller by law; rarely shifted in contract
Tax baseRise in urban land cadastral value over ownership
CalculationObjective coefficients or real gain, pick the lower
If no land gainNo plusvalía is due after the 2021 reform
Reform sensitivityCoefficients update, so treat figures as time-stamped

Spain’s Constitutional Court struck down the old plusvalía formula in 2021. Today a seller computes the tax either by applying municipal coefficients to the cadastral land value or by proving the actual land gain, and pays whichever is lower. If the land did not rise in value, no plusvalía is owed. For exit planning, the key point is that CGT and plusvalía are separate bills filed in different places, so your net proceeds depend on both. The entry-side overview of plusvalía lives in the cost of buying property hub.

Red flag: a sale budget that accounts for CGT and forgets plusvalía. They are separate taxes, assessed by separate authorities, on separate bases. Ask the town hall for an estimate before you agree a price, because the figure varies by municipality and by holding period.

How to calculate your taxable gain

The taxable gain is not sale price minus purchase price. It is adjusted transfer value minus adjusted acquisition value, which means the 10% to 13% you paid on entry raises your basis and the selling costs reduce your proceeds. Getting this wrong overstates the gain by tens of thousands. It is adjusted transfer value minus adjusted acquisition value, and both sides carry documented costs that work in your favour.

Adds to acquisition value (basis)Reduces transfer value
Purchase price on the deedEstate agent commission
ITP or IVA paid on purchaseIndependent legal fees on sale
Notary and registry feesPlusvalía paid by the seller
Independent lawyer on purchaseEnergy certificate and admin
Capital improvements with invoicesOther documented sale costs

The single most common error is failing to keep invoices. Repairs and routine maintenance do not count, but genuine capital improvements (a new kitchen, a pool, an extension) do, provided you can prove them with proper invoices showing IVA. The purchase taxes you paid on entry, often 10% to 13% of price as set out in the cost guide, are added to your basis and can cut your eventual gain by tens of thousands of euros.

Checklist for your basis: the deed purchase price, transfer tax or IVA paid on entry, notary and registry fees, legal fees, documented capital improvements with invoices, and on the exit side the agency commission and any legal costs of sale. Each one reduces the taxable gain.

Worked example: a 400,000 euro non-resident sale

The worked example below is the question most foreign owners ask: an EU non-resident who bought, held, and is now selling. It runs the 3% retention, the 19% flat rate, the adjusted basis including 10% entry costs, and the plusvalía alongside, so the two exit taxes appear together rather than separately. It covers an EU non-resident who bought a resale flat, held it, and sells at a profit. All figures are illustrative; confirm your own numbers with a Spanish tax adviser.

LineCalculationAmount (EUR)
Original purchase pricePaid in 2019300,000
Purchase costs added to basisITP and fees, about 10%30,000
Adjusted acquisition valueBasis total330,000
Sale priceAgreed in 2026400,000
Selling costsAgent 3% plus legal15,000
Adjusted transfer valueNet of selling costs385,000
Taxable gain385,000 minus 330,00055,000
CGT at 19% (non-resident)55,000 times 19%10,450
3% retention at sale400,000 times 3%12,000
Refund due on Modelo 210Retention minus CGT1,550

In this case the 3% retention (12,000) is larger than the actual CGT due (10,450), so the seller reclaims 1,550 after filing. Plusvalía municipal is a separate bill on top, depending on the land-value rise and the local coefficients. Had the seller not added the 30,000 of purchase costs to the basis, the gain would have been 85,000 and CGT would have jumped to about 16,150, a 5,700 difference created purely by good record-keeping.

Resident version of the same gain

A resident with the identical 55,000 gain is taxed on the progressive savings scale rather than a flat rate.

Gain slice (EUR)RateTax (EUR)
First 6,00019%1,140
6,000 to 50,000 (44,000)21%9,240
50,000 to 55,000 (5,000)23%1,150
Total resident CGT11,530

The resident pays about 11,530 against the non-resident’s 10,450, but the resident faces no 3% retention and can offset the gain against capital losses elsewhere in the savings base. Residence cuts both ways, so the better position depends on your wider tax picture and the investment strategy behind the holding.

We can calculate the capital gains position on a planned sale, including the 3% retention and the full acquisition cost base you are entitled to deduct.

Model your exit tax

Methodology: the example holds the property, the holding period and the price constant and shows both exit taxes together. Substituting your own municipality changes the plusvalía line materially; substituting your tax residency changes the CGT line. Neither changes the method.

Exemptions and reliefs

Reliefs in the Spanish CGT system are almost all tied to habitual residence, which excludes most foreign owners of a second home by definition. Reinvestment relief, the over-65 exemption and the main-home rollover all require the property to be your primary residence. They are tied to habitual residence, which means they help residents far more than non-resident investors.

ReliefWho qualifiesEffect
Main-home reinvestmentResidents selling habitual homeGain exempt if reinvested in a new main home
Over-65 main homeResidents aged 65 plusGain on habitual home can be fully exempt
Pre-1995 coefficientsLong-held assetsPartial reductions on very old purchases
Loss offsetResidentsLosses net against other savings gains
Non-resident loss refundNon-residentsReclaim 3% retention if sold at a loss

If you are a non-resident buying purely for yield or a holiday home, plan on the flat 19% with no main-home shelter. If you are relocating to Spain and the property will become your habitual residence, the reinvestment and over-65 routes can remove the tax entirely on a future sale, which is a strong reason to align purchase timing with your residency plans.

Red flag: an adviser suggesting a non-resident second-home owner qualifies for reinvestment or over-65 relief. Those reliefs attach to a habitual residence. Claiming one you do not qualify for converts a tax bill into a tax bill plus penalties and interest.

Pros and cons of Spain’s CGT regime

ProsCons
Gain is taxed, not the full sale priceTwo exit taxes: CGT plus plusvalía
Purchase costs lift your basis3% retention locks up cash for months
Non-resident flat 19% is predictableNon-residents miss main-home reliefs
Losses are refundable for non-residentsRefunds are slow to process
Residents enjoy reinvestment shelterProgressive scale bites large resident gains
Documented improvements cut the gainLost invoices inflate the taxable gain

Red flags and seller checklist warnings

  1. An agent who quotes net proceeds without subtracting the 3% retention is overstating your cash at completion.
  2. A buyer who proposes skipping the 3% Modelo 211 payment exposes the property, and you, to a tax charge.
  3. Treating repairs as capital improvements without invoices will not survive a tax review.
  4. Assuming plusvalía is included in CGT, it is a separate municipal filing.
  5. Selling at a loss and never filing Modelo 210 means you forfeit the 3% refund.
  6. Forgetting that purchase taxes are part of your basis inflates the taxable gain.
  7. Non-EU sellers assuming the EU 19% position applies without checking treaty status.

Five signals mean a Spanish sale is heading for an avoidable tax outcome, and each is fixable before you accept an offer rather than after. They share one cause: treating the headline gain as the taxable gain and the CGT bill as the only exit tax.

Red flag summary: no acquisition-cost receipts retained, plusvalía omitted from the sale budget, the 3% retention treated as the final liability rather than a payment on account, a relief claimed without habitual-residence status, and no town-hall estimate obtained before pricing.

Seller scenarios: a decision framework

If you are…PrioritiseDe-prioritise
Non-resident yield investor3% retention cash flow and Modelo 210Resident reliefs that will not apply
Relocating to SpainMain-home reinvestment timingRushing a sale before residency
Long-term holderCapital-improvement invoices for basisSelling in a single high-rate band
Inherited ownerStepped basis and succession adviceGeneric non-resident assumptions
Loss-making sellerFiling to reclaim the 3% retentionWalking away from the refund

Checklist before you accept an offer

StepVerifyStatus
Acquisition basisDeed price plus purchase taxes and fees✓
Improvement invoicesIVA invoices for capital works✓
Selling costsAgent and legal fees documented✓
3% retentionModeled into net proceeds✓
Plusvalía estimateTown-hall calculation requested✓
Modelo 210 planFiling window and adviser booked✓
Residency statusResident or non-resident confirmed✓

Walk the purchase-side gates in the cost of buying property hub and the Spain property investment guide so your entry and exit numbers use the same basis.

Checklist: acquisition basis reconstructed with receipts, capital improvements evidenced by invoice, plusvalía estimated at the town hall, the 3% retention understood as provisional, your tax residency confirmed for the year of sale, and the reclaim timeline factored into your cash planning.

How this connects to the rest of the site

This page is the exit-tax layer for Spanish property. Entry costs and plusvalía basics live in the cost of buying property in Spain hub. Net return math lives in the Spain rental yield guide. Strategy and market context live in the Spain property investment guide. Inventory benchmarks sit on projects like Insur Scala and Kosmos.

Spain is sellable with honest math. Tax the gain, not the price; add every purchase cost to your basis; budget the 3% retention as locked cash; and remember plusvalía is a second, separate bill. Pair this guide with the rental yield guide when you underwrite a full hold-to-exit return.

Invest Spain Property field notes

The most expensive mistake we see on Spain Capital Gains Tax is budgeting the headline rate alone. Notary, registry and the annual non-resident filing sit outside it, and buyers who merge those lines lose track of what the hold period actually costs.

CheckWhat we see in 2026 filesYour action
IBI receiptCadastral value vs paid amountMatch seller recibo to catastro ref
NRIT / Modelo 210Gross rent minus deductible costsFile quarterly or annual per advisor
Plusvalía / CGTMunicipality and hold periodModel exit before you buy

Closing verification checklist

The Spain Capital Gains Tax Property Guide for Investors closing list runs to six items, all of them obtainable before the first transfer. Budget 10% to 13% over the price for tax, notary, registry and independent legal work, keep the lawyer independent of the seller and agent, and treat every item below as a condition of the arras contract rather than an afterthought.

  • Establish your residency status for the disposal year, as it sets the rate band and the filing route.
  • Confirm the 3% retention applies, which the buyer withholds on a non-resident sale and pays via Modelo 211.
  • Assemble the full acquisition cost base: purchase price, ITP or IVA, notary, registry and legal invoices.
  • Collect improvement invoices with IVA, since only capital improvements (not repairs) raise the base.
  • Model plusvalía municipal separately, because the same sale triggers both taxes.
  • Check the double-tax treaty position in your home country before signing, not after completion.

Frequently Asked Questions

Residents pay on the savings scale from 19% up to 28%. Non-residents pay a flat 19% on the net gain, not on the sale price.

The buyer withholds 3% of the price and pays it to the tax office on Modelo 211 as an advance. The seller files Modelo 210 within about four months to settle or reclaim.

Yes. Residents use the progressive 19% to 28% scale with main-home reliefs. Non-residents pay a flat 19%, face the 3% retention, and rarely qualify for residence reliefs.

Yes. Plusvalía is a municipal tax on the rise in urban land value, paid by the seller alongside state CGT, so one sale can trigger two exit taxes.

Add purchase taxes, notary, registry and legal fees plus documented capital improvements to your basis, and deduct selling costs such as agent commission and plusvalía.

Non-residents file Modelo 210 within about four months. Residents declare the gain in their annual Renta. Plusvalía is filed separately at the town hall.

Those costs lower your gain. Purchase taxes and fees plus genuine capital improvements with invoices raise your basis, which shrinks the taxable gain.

Want this priced for your budget? Tell us the region and how to reach you. Independent research first, then 3 to 5 matched options with the numbers behind each one.

Free · Independent advisory

Get a Spain property shortlist

Tell us your budget and market (Costa Blanca, Costa del Sol, Balearic Islands). We reply within one business day with options matched to your goals.

or message us directly