- +34 642 49 29 20
- info@costahome-topservices.com
Selling a property in Spain
What do you really get after selling your property in Spain?
Taxes often make the biggest difference — yet they are still widely underestimated.
Not sure how much tax you’ll end up paying?
The selling price alone doesn’t tell the full story. The real difference lies in the deductions, the tax return and what you actually keep in the end.
Sell your property in Spain
It’s not just about the sale, but also about the tax side behind it.
Selling a property in Spain is an important step.
But beyond the sale itself, there is also a tax side that often raises many questions.
On this page, you’ll discover how taxes are calculated when selling a property in Spain, which costs play a role, and what you will ultimately keep net.
What do you need to pay?
How is it calculated?
And what will you actually keep in the end?
The answer largely depends on one key factor
Key difference
One question determines almost everything.
Are you a tax resident in Spain,
or are you selling as a non-resident?
That key difference determines how your sale will be taxed.
Non-resident
Selling as a non-resident in Spain
If you are not a tax resident in Spain, you fall under the non-resident tax regime (IRNR).
At the time of sale, the buyer is required to withhold 3% of the sale price and pay this amount directly to the Spanish tax authorities (Hacienda).
Step 1
At the time of sale
The buyer is required to withhold 3% of the sale price as an advance payment on your tax liability.
Step 2
After the notary
This amount is paid directly to the Spanish tax authorities (Hacienda) via Modelo 211, within one month after completion at the notary.
Step 3
Afterwards
After the sale, you still need to take action yourself. Within three months, you must file your tax return using Modelo 210.
Why does the buyer have to pay this?
The Spanish tax authorities use this system to prevent foreign sellers from leaving without settling their taxes correctly.
That is why part of the sale price is not paid to you, but transferred directly to the tax authorities.
This is not an additional tax, but an advance payment on your final tax liability.
What do you ultimately pay?
When selling your property as a non-resident, a fixed tax rate of 19% applies to the capital gain.
In addition, 3% of the sale price has already been withheld by the buyer at the time of sale. This amount is considered an advance payment on your final tax.
• If your actual tax is higher than this 3%, you will need to pay the difference.
• If your tax is lower, you will receive a refund for part of this amount. In practice, this often happens.
If you sell at a loss, no tax is due.
However, the 3% was still withheld at the time of sale.
You can later reclaim this full amount through your tax return.
How is the profit calculated?
It’s actually simpler than it seems.
The Spanish tax authorities look at the difference between what you paid… and what you receive for it.
Formula
At the time of sale:
The sale price
– purchase price
– purchase and selling costs
– investments and improvements
= taxable gain
Invoices are essential here.
Deductible
What can you deduct?
Notary costs at purchase
Transfer tax (ITP or VAT)
Agent fees at sale
Investments that improve the property (renovations, swimming pool, extensions…)
Not deductible
Non-deductible costs:
Regular maintenance
Painting and cosmetic works
Minor repairs
Furniture and furnishings
These costs do not increase the value of the property and are therefore not tax deductible.
Resident
Selling as a resident in Spain
If you are a tax resident in Spain, the sale is taxed under personal income tax (IRPF). Different rules apply to residents, with in some cases important exemptions.
Exemption when selling your main residence
Full exemption
A full exemption is possible if you have lived in the property for at least 3 years, it was your official main residence, and you reinvest the proceeds in a new property.
This must be done within a maximum of 2 years, usually after the sale, but in some cases also before.
Partial exemption
If you reinvest only part of the sale proceeds, only that part will be exempt from tax.
The remaining amount will be taxed according to the applicable rates. This means you will pay tax partially, depending on how much you reinvest.
Exemption from the age of 65
Are you aged 65 or over and a Spanish tax resident? The gain from selling your main residence may be exempt from personal income tax (IRPF), without needing to reinvest. The property must still meet the conditions for qualifying as your main residence for tax purposes. Any municipal capital gains tax (plusvalía) and selling costs are separate.
Your “main residence” means the home you actually live in, rather than a holiday home. You normally need to have lived there for at least three years, although exceptions apply. If you still have an outstanding mortgage, have the amount you need to reinvest calculated to determine whether you qualify for the exemption.
Capital gains tax for Spanish tax residents
For Spanish tax residents, the taxable gain from the sale, unless exempt, is subject to personal income tax (IRPF) at the following rates:
• Up to €6,000: 19%
• €6,000–€50,000: 21%
• €50,000–€200,000: 23%
• €200,000–€300,000: 27%
• Above €300,000: 30%
Sources (BOE):
IRPF tax rates — state component (Article 66.1)
IRPF tax rates — regional component (Article 76)
These rates apply progressively to each band, rather than to the entire capital gain. Other taxable savings income and capital gains also count towards the applicable tax bands.
What you keep starts with a well-founded asking price.
Finally
What else is involved?
Selling a property is not just about the price and the taxes. There are several other aspects that are best clarified in advance.
Plusvalía tax (municipal capital gains tax)
Plusvalía municipal is a local tax on the increase in the value of urban land. When a property is sold, the seller is generally responsible for this tax.
If you can demonstrate that the land has not increased in value, no tax is due. You must still declare the sale and provide supporting documents.
For a sale, the declaration must generally be submitted within 30 working days of the transfer.
Seller’s costs
What many sellers only truly realise afterwards are the additional costs involved.
Think of the agent’s commission, possible legal fees, certificates and the municipal capital gains tax.
I always explain this clearly in advance, because it ultimately determines what you actually keep from the sale.
If you don’t look at this properly beforehand, it can lead to unexpected surprises later on.
Good to know
This information is general and does not replace personalised tax advice. The amount you pay depends on your circumstances and the applicable legislation. Have your calculation checked by a tax adviser.
Official sources (BOE):
Residents — Capital Gains Tax under IRPF (Articles 33–35)
Non-residents — IRNR Tax and Withholding (Article 25)
Plusvalía Municipal — Tax on the Increase in Urban Land Value (Articles 104–110)
Sources are in Spanish. You can use your browser’s translation feature to read them in English.
Would you like clarity about your situation?
Selling a property is not only about the price you achieve, but above all about what you actually keep in the end.
If needed, I work together with specialised professionals to make sure everything is checked properly and that you have a clear view of your own situation.