Selling your home can feel like a relief… until the taxman comes knocking. Because yes, selling a property in Spain generates taxes. And if you don't calculate them correctly, you could be in for a nasty surprise.
To avoid that, here's a clear, direct, and fully updated guide for 2025. With steps, examples, and figures so you know exactly what you need to pay—and how to legally reduce it.
This tax levies the increase in land value from when you bought until you sell.
It works like this: the local council calculates how much the cadastral value of the land (not the building) has increased and charges you a percentage, even if you lost money on the sale.
For example:
You bought an apartment in 2005 with a cadastral land value of €25,000. In 2025, you sell it and that value is €40,000. That difference is the base. The tax can vary between 15% and 30% of that gain.
What to do:
Ask your local council for the exact calculation. If there was no gain, you can request an exemption. And remember: this tax is paid by the seller, unless you agree otherwise in the contract.
When you sell a home, the State assumes you've made money. And if there's a gain, you pay IRPF.
How is it calculated?
Selling price minus purchase price, plus acquisition costs and justified reforms.
Practical example:
IRPF brackets 2025:
Recommendation:
Keep invoices for purchase, renovations, and expenses. Without them, Hacienda (the Spanish Tax Agency) won't let you deduct anything.
There are two legal ways not to pay IRPF on the gain:
Key conditions:
Tip:
If you meet these conditions, keep supporting documents and make sure to report correctly on your tax return.
When you sell an inherited or donated house, the acquisition price is the value declared in the inheritance or donation, not what the previous owner paid.
For example:
You inherited a house in 2016 with a declared value of €120,000, and now you sell it for €200,000. That difference (€80,000) is taxed as a capital gain.
To avoid errors:
Watch out:
If the declared value was very low, the tax bill will be higher.
Although not directly part of the sale, IBI can lead to disputes if not clarified.
By default, it's paid by the owner as of January 1st of the current year.
But it's common to prorate it in the purchase agreement.
How to avoid misunderstandings?
Include a clause like this:
“The IBI corresponding to the current year shall be prorated between the parties according to the number of days of possession.”
A small detail that can save you a lot of arguments.
If you are not a tax resident in Spain, the buyer must withhold 3% of the price and pay it to Hacienda (form 211).
Real example:
You sell for €300,000. The buyer pays you €291,000 and pays €9,000 directly to the Tax Agency.
You can then claim that money back by submitting form 210 within 4 months.
If you don't, you lose that 3%.
Recommendation:
Hire a tax advisor to prepare form 210. This way you can recover that amount or avoid duplicate payments.
There are several deductible expenses that reduce your taxable gain. But you need proof.
You can deduct:
Do this now:
Keep all documents in a physical or digital folder. Without invoices, Hacienda does not allow deductions.
Here's an easy-to-use template to find out how much you might pay (or save):
Template:
Realistic example:
Lucía bought her apartment in Calpe in 2012 for €160,000. She is now selling it for €240,000.
She paid €9,600 in ITP, €1,500 in notary fees, carried out renovations for €12,000, and will pay €6,000 in real estate commission.
But since she is reinvesting in another main home, she will not pay IRPF. Only the municipal capital gains tax.
And thanks to keeping invoices, she can deduct other expenses.