Weißes Stadthaus in Andalusien mit einem leeren Holzschild neben der Haustür

Selling a House in Spain: Plusvalía, Capital Gains Tax and the 3% Withholding

What does it actually cost you to part with a home you own in Spain? Selling a house in Spain usually triggers two Spanish taxes, one charged by the town hall on the land and one by the tax office on your gain. Notary fees and often an agent’s commission come on top.

If you live outside Spain, the buyer also holds back part of the price at the notary until your tax is settled, and your country of residence may want its own share of the gain. The calculator further down lets you try the municipal tax on your own property, so you see the first bill before the house is even on the market.

Key takeaways

  • Municipal tax: The town charges the plusvalía municipal on the rise in land value, at a rate of at most 30%. Málaga charges 29%.
  • Tax on the gain: As a non-resident you pay a flat 19% on your gain in Spain. Spanish residents pay 19% to 30%.
  • Withholding on sale: If you live outside Spain, the buyer holds back 3% of the price and pays it to the tax office within one month.

Selling a house in Spain: the costs and taxes

Two taxes apply when you sell. The town hall taxes the rise in the value of the land, and the tax office taxes your gain. For the first, what counts is how long you have owned the property. For the second, it is whether you are tax resident in Spain and how large your gain is.

On top of that come costs the law places on you as the seller. Under Article 1455 of the Spanish Civil Code, you pay for executing the deed at the notary and the buyer pays for the first copy and everything after, unless you agree otherwise. If you cancel a mortgage or use an estate agent, those bills land on your desk as well.

Item

Who pays

Amount

Plusvalía municipal (municipal tax)

Seller; for non-residents the buyer pays it in their place

at most 30% of the tax base

Tax on the gain, Spanish residents

Seller

19% to 30% depending on the size of the gain

Tax on the gain, non-residents

Seller

19%

Withholding for non-residents

Buyer holds it back, credited against the tax

3% of the price

Notary (deed)

Seller, unless agreed otherwise

official fee scale

Energy certificate

Owner

assessor’s fee

Cancelling the mortgage

Seller, if the mortgage is in their name

notary and land registry fees on the official scale

Estate agent

whoever hired the agent

freely agreed in the agency contract

Clear your head for Andalusia

You don’t need to know everything at once. Just what comes next.

Pick how you’d like to go on: one step at a time, or everything in one go.

Free

Your 7-step roadmap

Seven steps from the first idea to registering at the town hall, in the right order. You always know what’s next.

Consent

You download the roadmap as a PDF right after signing up. No spam, unsubscribe any time.

Plusvalía municipal: the town hall’s tax

The municipal capital gains tax, officially the Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana, taxes the land under the house rather than the house itself. It is set out in the law on local finances. You owe it as the seller, although a special rule applies to non-residents, which we come to below. The return is due within 30 working days of the sale.

By default it is worked out with the objective method. The town takes the cadastral land value and multiplies it by a coefficient that depends on how long you owned the property. The cadastral value is the official value the Spanish cadastre, the Catastro, sets for land and building, and you will find it on the bill for your annual property tax, the IBI. On request, the real gain on the land share counts instead if that is lower. If you made no gain at all, you pay nothing, but you have to prove it with the purchase and sale deeds.

Each town sets its own rate, up to 30%. Málaga charges 29%. You will find your town’s rate in its tax bylaw, the ordenanza fiscal. From 1 December 2026 new maximum coefficients apply, provided Parliament confirms the decree, and the calculator switches to the new table on that day by itself.

Try a typical case. This is how the sums look for a house in Málaga:

  • Bought in June 2014 for €150,000, sold in October 2026 for €250,000
  • Cadastral value €100,000, of which €40,000 is the land, so a land share of 40%
  • Objective method: €40,000 times 0.09, the legal maximum coefficient for twelve full years, gives a tax base of €3,600 and €1,044 in tax
  • Real gain: 40% of the €100,000 rise in value gives a base of €40,000 and €11,600 in tax

So in this case you pay €1,044, because the lower of the two calculations counts. If your town sets a lower coefficient than the law allows, the bill drops further. You will find more planning tools on our page with all the calculators for Andalusia.

Selling as a non-resident: 19% and the 3% withholding

If you do not live in Spain, you pay a flat 19% on your gain, however large it is. To make sure the state gets its money, the buyer retains 3% of the price at signing. They pay it to the tax office within one month using form 211.

Then it is your turn. Within three months of the end of that one-month period you file Modelo 210 and settle your actual gain. If the tax is higher than the amount withheld, you pay the difference. If it is lower, for example because you made little profit, you get the rest back.

  • Sale price €250,000: the buyer withholds €7,500.
  • Gain after costs €100,000: the tax is €19,000, so you pay a further €11,500.
  • Gain after costs €20,000: the tax is €3,800, so you get €3,700 back.

The municipal tax works differently again. Because a non-resident is hard to reach, the buyer pays the plusvalía to the town hall in your place, as your substitute or sustituto, and can recover the amount from you. In practice it is usually deducted straight from the price, which you should agree in the contract before signing.

Residents of other EU or EEA states can exclude the gain if they reinvest the proceeds from what was their main home in Spain in a new main home. If you live outside the EU and the EEA, that exemption is not open to you.

Our expert tip:

Keep the purchase deed, the receipt for the transfer tax and every invoice for building work. They reduce your gain and therefore the tax, and without them you cannot prove to the town hall that your real gain was lower either.

What your home country may tax on top

Most countries tax their residents on gains made anywhere in the world, so the sale of your Spanish home usually appears in your tax return at home as well. Take the UK as an example: HMRC taxes the worldwide gains of UK residents, and for individuals the Capital Gains Tax rates in the current tax year are 18% on the part of the gain within the basic rate band and 24% above it. The annual exempt amount is £3,000.

You do not pay twice in full, though. In the UK, Foreign Tax Credit Relief lets you offset the Spanish tax against the UK tax on the same gain, and any Spanish tax above the UK figure is simply lost. Other countries have their own rules for crediting foreign tax, so ask an adviser where you live before you sell. Our comparison of taxes in Spain and the UK puts the wider picture side by side.

If you live in Spain: the tax on your gain

If you are tax resident in Spain, the gain goes into your income tax return, in the savings income section, the base del ahorro. To work out the gain, take the sale price, deduct your selling costs, and then deduct the purchase price together with the costs you paid at the time. Hold on to the receipts for transfer tax, notary and major building work.

The rates rise in bands. Each band only applies to the part of the gain that falls within it:

  • up to €6,000: 19%
  • €6,000 to €50,000: 21%
  • €50,000 to €200,000: 23%
  • €200,000 to €300,000: 27%
  • over €300,000: 30%

Two exceptions can wipe out the tax entirely. If you are over 65 and sell your main home, the gain is tax-free. If you reinvest the proceeds from your main home in a new main home, it is exempt too, or proportionally for a partial reinvestment. Both rules are in the income tax act, and our guide to the Spanish tax return shows where the sale goes on the form.

What must be ready before the notary

Before you advertise, you need a valid energy certificate. Under the regulation on the energy efficiency of buildings, the rating must appear in every advert, and a copy of the registered certificate is attached to the sale contract.

The buyer and their lawyer will also check the current land registry extract, the nota simple, the last receipt for the IBI property tax and a certificate from the community of owners that no fees are outstanding. The more complete the paperwork you hand over, the sooner you get to the notary.

And if you want to buy again after selling, it is worth looking at prices on the coast. Our guide to buying a house in Andalucia shows what a home by the sea costs today.

After the notary, the proceeds sit in your Spanish account. If they need to move to another country or currency, every cent of difference in the exchange rate turns into real money on a six-figure sum.

Currencies Direct Logo

Our recommendation: Currency transfers with Currencies Direct

With Currencies Direct you can move the euros from your sale back into pounds and agree the rate before the money leaves your account.

Affiliate link. It costs you nothing extra and we earn a commission.

Frequently asked questions

The town sets the rate, at most 30% of the tax base, and Málaga charges 29%. The base is the cadastral land value times a coefficient for the years of ownership or, if lower, the real gain on the land share.

A flat 19% on the gain. The buyer withholds 3% of the price, you settle with Modelo 210 and either pay the rest or get the excess back.

Often yes, if it taxes its residents on worldwide gains. A UK resident, for example, pays Capital Gains Tax at 18% or 24%, with an annual exempt amount of £3,000, and can credit the Spanish tax on the same gain against it.

Verdict

When you sell a house in Spain, expect two Spanish tax bills: the town hall’s plusvalía on the rise in land value and the tax office’s share of your gain. If you live abroad, the buyer’s withholding comes on top, and Modelo 210 decides whether you pay more or get some of it back.

So keep every piece of paperwork, from the purchase deed to the builder’s invoice. Without them, the tax office taxes a gain you never made, and the town hall will not accept the cheaper calculation either.

Sources and last checked

BOE, Real Decreto Legislativo 2/2004 (Texto refundido de la Ley Reguladora de las Haciendas Locales), Art. 104 to 110 · BOE, Real Decreto-ley 29/2026 (coefficients from 01.12.2026) · Ayuntamiento de Málaga, Ordenanza fiscal IIVTNU · BOE, Ley 35/2006 del IRPF, Art. 33, 35, 38, 66 and 76 · BOE, Real Decreto Legislativo 5/2004 (TRLIRNR), Art. 25 and Disposición adicional séptima · Agencia Tributaria, instructions for Modelos 210 and 211 · BOE, Código Civil, Art. 1455 · BOE, Real Decreto 390/2021, Art. 17 · gov.uk, Capital Gains Tax rates and allowances · gov.uk, HS263 Relief for foreign tax paid 2026. All sources accessed 08.10.2026. Last checked 08.10.2026.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *