In brief: Two major taxes and several minor costs. What you pay, who pays it and what exemptions exist — with an illustrative calculation.
Selling a property in Spain typically involves two main tax obligations: the municipal capital gains tax (plusvalía municipal, formally the Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana, IIVTNU) and capital gains tax under IRPF (income tax on the patrimonial gain). Whether you pay both — or neither — depends on whether a gain has been made, when and how you purchased, and whether the property is your principal residence.
| Tax / Cost | What it taxes | Who pays | When |
|---|---|---|---|
| Municipal capital gains tax (plusvalía) | Increase in land value since purchase | Seller | Within 30 working days of signing the deed |
| Capital gains tax — IRPF (residents) | Difference between sale and purchase price, adjusted for costs | Seller | IRPF return for the year of sale |
| IBI (annual property rate) | Property ownership on 1 January | Owner on 1 January | Annual |
| Mortgage cancellation costs | Outstanding loan, if any | Seller | At the notary |
Calculating the capital gain for IRPF
- Transfer value. Sale price minus seller's costs (agency commission, plusvalía municipal, energy performance certificate, etc.).
- Acquisition value. Original purchase price plus purchase taxes and fees, plus documented improvement costs.
- Gain or loss. Transfer value minus acquisition value.
- Tax rate. The gain is taxed as savings income (base del ahorro) in progressive bands.
Selling on the Costa del Sol? We handle the whole process
- Free market appraisal of your property
- Free advice on pricing, improvements and paperwork
- Full sales management if you decide to proceed
Rates current at time of writing; verify with the Agencia Tributaria before selling.
Key exemptions — do not overlook these
The capital gain may be fully exempt from IRPF if you sell your principal residence and reinvest the proceeds in another principal residence within the legal deadline, or if you are aged 65 or over. There may also be no plusvalía if you can demonstrate there has been no increase in land value. Conditions are strict; always take qualified fiscal advice before proceeding.
Illustrative example: €40,000 capital gain
If the taxable gain is €40,000, the first €6,000 is taxed at 19% and the remaining €34,000 at 21%. The figures are invented and illustrate only how the banding mechanism works — your actual liability will depend on your specific circumstances.

Frequently asked questions about Spanish property taxes
In general, no, provided you can demonstrate there has been no increase in the land value. You will need to evidence this with the original and sale deeds. The rules were reformed in 2021 and there are now two calculation methods; your fiscal adviser can confirm which applies to you.
In your IRPF (income tax) return for the tax year in which the sale took place. For resident sellers this is filed the following spring. Non-residents file separately — see our non-resident withholding tax guide.
Yes, provided the works are documented with invoices. Documented improvements increase the acquisition cost and therefore reduce the taxable gain. Routine maintenance and repairs do not qualify.
Yes. The gain on selling your principal home (vivienda habitual) is fully exempt from IRPF if you reinvest the net proceeds in another principal residence within two years. Sellers aged 65 or over are also exempt regardless of reinvestment. Conditions are strict; seek qualified tax advice.
Capital gains on property are taxed as savings income in progressive bands: 19% up to €6,000; 21% from €6,000 to €50,000; 23% from €50,000 to €200,000; 27% from €200,000 to €300,000; 28% above €300,000. Rates current at time of writing; verify with the Agencia Tributaria.
Selling your property on the Costa del Sol? Request your free market appraisal
We send you a free market appraisal within 24-48 hours, based on real sales and listings in your area, with personalised advice on pricing and next steps.
Call us directly
Fast response
• We contact you within 2 hours
• Report within 24-48 hours
• 100% free, no obligation
Valoraciones Málaga
Calle Limonar, 12
29130 Alhaurín de la Torre, Málaga, Spain
contacto@valoracionesmalaga.com
General and indicative information only. Tax rates, deadlines and exemptions change and depend on individual circumstances; always consult a qualified fiscal adviser or the Agencia Tributaria before selling.