Selling a prime home in Spain: every tax and cost the seller pays in 2027

Lo que cuesta vender una vivienda prime: tres conceptos fiscales que conviene calcular antes de fijar el precio.

Taxes and costs of selling a prime home in Spain in 2027.

The short answer. A seller in Spain pays tax on the gain (a flat 19% for non-residents, 19% to 30% for Spanish tax residents), the municipal plusvalía on the increase in land value, and the costs of the sale, including the agency fee plus 21% VAT. If the seller is not resident in Spain, the buyer withholds 3% of the price at completion and pays it to the tax agency.

General information as of November 2026. It reflects the new municipal plusvalía coefficients that apply to sales completed from 1 December 2026.

This guide starts with sellers who are not tax resident in Spain, then turns to residents. The gap between the price in the deed and the money that reaches the seller’s account is predictable, but only if it is calculated before the home goes on the market. The rules below are those of Spain’s common tax regime, which covers the whole country except the Basque Country and Navarre, and the guide ends with one villa worked through for both kinds of seller.

Every sale has its own details: when and how the home was bought, which improvements can be documented, where the seller is actually tax resident, whether any proceeds will be reinvested. The final figure is your tax adviser’s job. This is the map to bring to that meeting.

What does a seller pay in Spain?

Item Non-resident seller Resident seller When
Tax on the gain Non-Resident Income Tax (IRNR): flat 19% Personal Income Tax (IRPF), savings scale: 19% to 30% Non-resident: form 210, within the three months after the month the buyer has to pay the withholding. Resident: in the following year’s tax return
Withholding at completion Buyer keeps 3% of the price (form 211) None At completion; the buyer pays it within one month
Municipal plusvalía (IIVTNU) Paid by the buyer as the seller’s substitute, usually deducted from the price Paid by the seller Within 30 working days of the sale
Agency fee As agreed in the mandate, plus 21% VAT At completion
Other costs Mortgage cancellation, energy certificate, community of owners certificate, and the notarial deed unless agreed otherwise Before or at completion

The local property tax (IBI) and community fees are not taxes on the sale, but they come up in the negotiation. The year’s IBI bill belongs to whoever owned the home on 1 January; any split with the buyer is a matter for the contract.

How is the taxable gain calculated?

Residents and non-residents use the same method, set out in article 35 of the Personal Income Tax Act. The gain is the difference between two figures:

  • The transfer value is the sale price minus the costs and taxes of the sale paid by the seller. The agency fee with its VAT, the municipal plusvalía, the cost of cancelling the mortgage at the land registry, the energy certificate and legal fees tied to the sale all come off.
  • The acquisition value is what the home cost, plus the costs and taxes of the purchase (notary, land registry, transfer tax or VAT and stamp duty), plus improvements backed by invoices. Repairs and upkeep do not count as improvements.

Not everything you paid reduces the gain. Spain’s Directorate General of Taxes confirmed again in 2026 (binding ruling V0604-26) that IBI is a cost of holding the property, separate from buying or selling it, so it cannot be deducted. Community fees and insurance fall outside for the same reason.

Paperwork decides the result. A €150,000 renovation paid without an invoice does not exist for the tax agency; with one, it cuts the gain by €150,000. For a home bought fifteen or twenty years ago, rebuilding that file before listing is the most useful preparation an owner can do.

How much does a non-resident seller pay?

A non-resident without a permanent establishment in Spain pays a flat 19% on the gain, whatever its size. On large gains this is less than a resident would pay, because the resident’s scale reaches 30%.

The 3% withholding

When the seller is not resident, the buyer must keep back 3% of the agreed price and pay it to the Spanish tax agency on form 211 within one month of the sale. If the buyer does not pay it, the property itself remains liable. In practice, a non-resident seller receives 97% of the price at the notary, less the municipal plusvalía, which the buyer also deducts (see below).

The 3% is a payment on account of the tax. The seller then files form 210 declaring the actual gain:

  • if the tax is higher than the amount withheld, the seller pays the difference within the three months that follow the buyer’s one-month deadline;
  • if it is lower, or the sale made a loss, the seller claims the excess back.

The deadline is short, and the tax agency already knows about the sale from the buyer’s form 211.

Reinvestment relief for EU and EEA residents

A seller resident in another EU member state, or in Iceland, Norway or Liechtenstein, can claim the reinvestment exemption if the home sold was their main residence in Spain and the proceeds go into a new main residence (seventh additional provision of the Non-Resident Income Tax Act). Residents of the United Kingdom, the United States or Switzerland do not have this option.

The year of the sale still counts as a year of ownership

A non-resident whose home stood empty must also declare, on form 210, the deemed income for the days of that year during which they owned it. The amount is small next to the gain, but it is one more filing to keep in the calendar.

How much does a Spanish tax resident pay?

For a resident, the gain goes into the savings base and is taxed in bands. The scale is the same throughout the common regime; since 2025 it has a top band of 30% on anything above €300,000 (Law 7/2024).

Part of the gain Rate Tax at the top of the band
Up to €6,000 19% €1,140
€6,000 to €50,000 21% €10,380
€50,000 to €200,000 23% €44,880
€200,000 to €300,000 27% €71,880
Above €300,000 30% €71,880 + 30% of the excess

A gain of €300,000 pays €71,880, or 24%. A gain of €850,000 pays just under 28%. At prime price levels, most of the gain ends up in the 30% band.

When a resident’s gain is exempt

  • If the home sold is the seller’s main residence (generally, lived in continuously for at least three years) and the proceeds are reinvested in a new main residence within two years, the gain is exempt in proportion to the amount reinvested.
  • A seller aged 65 or over who sells their main home is exempt, with no reinvestment needed. The home must genuinely be the main residence at the time of sale; the Directorate General of Taxes has refused the exemption to an owner who had not lived there for years.
  • For a seller aged 65 or over, the gain on any other property is exempt if the proceeds go into an insured life annuity within six months, up to €240,000 per taxpayer. On a €2.4 million sale, that covers about a tenth of the gain.

A second home rules out both main-residence exemptions. Planning then turns on other levers: the timing of the sale, documented improvements and, where there are capital losses in the same year, setting them off.

Homes bought before 1995

If the home was bought before 31 December 1994, part of the gain may be reduced by the old “abatement coefficients” (ninth transitional provision of the Personal Income Tax Act). They apply only to the share of the gain generated up to 19 January 2006, and only up to €400,000 of cumulative sale proceeds per taxpayer since 2015. On a prime sale the cap is usually used up quickly, but it is worth checking.

The municipal plusvalía from 1 December 2026

The municipal plusvalía is a local tax on the increase in the value of the land under the home, not the building. Since the 2021 reform it follows three rules:

  • If the purchase and sale deeds show that the land has not gained value, nothing is due.
  • There are two ways to calculate the base: the objective method, which multiplies the cadastral value of the land by a coefficient based on the years of ownership, and the real method, based on the actual gain on the land. The lower one applies.
  • Each town hall sets the rate in its bylaw, up to a legal maximum of 30%.

Royal Decree-law 29/2026 of 6 October, ratified by the Standing Committee of the Spanish Congress on 12 November 2026, changes the maximum coefficients for sales completed from 1 December 2026. Seventeen of the twenty-one coefficients go up and four go down, all of them for the longest periods of ownership.

Years of ownership Maximum coefficient to 30 Nov 2026 From 1 Dec 2026
Under 1 0.15 0.17
5 0.18 0.19
9 0.15 0.25
10 0.12 0.22
15 0.09 0.11
17 0.13 0.11
20 or more 0.40 0.30

Two hypothetical examples, with a cadastral land value of €300,000 and the maximum 30% rate. After fifteen years of ownership, the tax rises from €8,100 to €9,900. After twenty years or more, it falls from €36,000 to €27,000. If your town hall’s bylaw sets a lower coefficient than the maximum, the bylaw applies; if it sets a higher one, the new maximum applies.

When the seller is a non-resident individual, the buyer pays the municipal plusvalía as the seller’s legal substitute (article 106.2 of the Local Finance Act), which is why buyers deduct it from the price at completion, alongside the 3%. It must be declared or self-assessed within 30 working days of the sale.

The other costs of selling

  • The agency fee is the one agreed in the mandate, plus 21% VAT. It reduces the taxable gain if there is an invoice.
  • For the notarial deed, under article 1455 of the Civil Code the seller pays for the original deed and the buyer for the first copy and anything after the sale, unless agreed otherwise. In practice the split is negotiated.
  • Any outstanding mortgage loan is repaid from the price at completion. Cancelling it at the land registry has its own notary and registry costs.
  • An energy performance certificate is required to sell and to advertise the home (Royal Decree 390/2021).
  • With a community of owners certificate, the seller must show they are up to date with community payments (article 9 of the Horizontal Property Act), unless the buyer expressly waives it.

One villa, two sellers

A hypothetical example. A villa bought in 2012 for €1,200,000, with €95,000 of documented purchase taxes and costs and a €150,000 renovation with invoices. It sells in 2027, after fifteen full years, for €2,400,000. The agency fee is 3% plus VAT, the plusvalía is calculated as above, and other selling costs come to €2,000.

Item Non-resident seller Resident seller
Sale price €2,400,000 €2,400,000
Agency fee (€72,000) + VAT (€15,120) −€87,120 −€87,120
Municipal plusvalía −€9,900 −€9,900
Other selling costs −€2,000 −€2,000
Transfer value €2,300,980 €2,300,980
Acquisition value (1,200,000 + 95,000 + 150,000) €1,445,000 €1,445,000
Gain €855,980 €855,980
Tax on the gain €162,636.20 (19%) €238,674 (banded, 27.9%)
Withheld by the buyer at completion €72,000 (3% of the price) —
Still to pay €90,636.20 on form 210 €238,674 in the 2027 tax return

The non-resident pays €76,037.80 less tax. Cash flow runs the other way: the non-resident leaves €81,900 behind at the notary (the 3% and the plusvalía), while the resident receives the full price and pays more than a year later.

Without the renovation invoices, the gain would rise to €1,005,980. The non-resident’s tax would go up by €28,500 and the resident’s by €45,000, for the sake of one folder of documents.

The tax calendar of a sale

When What happens Who
Before listing Energy performance certificate Seller
Completion Agency fee paid, mortgage cancelled if any; for a non-resident seller, 3% and the plusvalía withheld Seller and buyer
30 working days later Municipal plusvalía declared or self-assessed Resident seller, or the buyer as substitute
One month later The 3% paid to the tax agency on form 211 Buyer
The following three months Form 210 with the actual gain: balance paid or refund claimed Non-resident seller
Six months later Last day to set up a life annuity, if claiming that exemption Seller aged 65 or over
April to June of the following year Tax return including the gain Resident seller
Two years later Last day to reinvest in a new main residence Seller claiming reinvestment relief

What to prepare before setting the price

  1. The purchase deed and the invoices for the taxes and costs of buying.
  2. Invoices for improvements, in date order.
  3. The latest IBI bill, which shows the cadastral value of the land.
  4. A plusvalía estimate under both methods: the objective one, with the coefficients in force on the expected completion date, and the real one.
  5. Your tax residence in the year of the sale, and whether any reinvestment relief applies.
  6. If there is a mortgage, the outstanding balance and the bank’s early repayment fee.
  7. The energy certificate and the community of owners certificate.

With these seven items on the table, the asking price is set knowing what you will keep, and two offers can be compared on equal terms.

Frequently asked questions

Do non-residents pay more tax than residents when selling in Spain?

On the gain, usually not. Non-residents pay a flat 19%; residents pay 19% to 30% in bands, so on gains of several hundred thousand euros the resident pays more. What changes for the non-resident is cash flow: the buyer withholds 3% of the price at completion.

Can I get the 3% withholding back?

Yes, if it is more than the actual tax or if the sale made a loss. You claim it on form 210 within the three months that follow the buyer’s one-month deadline. Have the acquisition paperwork ready before completion.

Who pays the plusvalía if the seller is a foreigner?

If the seller is an individual who is not tax resident in Spain, the law makes the buyer the substitute taxpayer, so the buyer pays it to the town hall and normally deducts it from the price at the notary.

What changed in the plusvalía on 1 December 2026?

The maximum coefficients of the objective method. Royal Decree-law 29/2026 raises seventeen of the twenty-one coefficients and lowers those for homes owned seventeen years or more. They apply to sales completed from 1 December 2026, subject to each town hall’s bylaw.

Can I deduct IBI from the gain?

No. The Directorate General of Taxes treats IBI as a cost of holding the property, not of buying or selling it (ruling V0604-26). The agency fee, the plusvalía and mortgage cancellation costs do reduce the gain.

Is there a capital gains exemption for sellers over 65?

For Spanish tax residents selling their main home, yes, in full. For a second home, only the share of the gain that matches what is placed in a life annuity within six months is exempt, up to €240,000. Both are exemptions of the resident’s income tax. A non-resident aged 65 or over should ask their adviser which relief, if any, applies to them; for EU and EEA residents, the reinvestment relief described above is the usual route.

What if I sell below the cadastral reference value?

For the seller, the gain is calculated on the actual sale price, unless it is below normal market value, in which case the law uses market value (article 35 of the Personal Income Tax Act). The cadastral reference value matters mostly to the buyer, as the minimum base for transfer tax. A price clearly below market should be supported by documents.

Sources

General information as of November 2026. It does not replace tax advice on your own case. Last updated: 23 November 2026.

Miguel Zapico
Managing Director · The Boutique Real Estate Group | eXp Luxury