Selling your home in Spain: capital gains tax, the plusvalía and what you actually keep
You live in Spain and you are selling your property. Two taxes apply: Spanish income tax on the gain and the plusvalía municipal, the town hall tax. In some cases the income tax is zero, and that is decided before you sign. Here it is with real numbers.
Led by Patrick Gordinne Pérez, economist registered with the Colegio de Economistas de Alicante (Alicante Association of Economists), no. 2722, since 2004. We work in English, Spanish and French.
What tax do you pay when you sell your home in Spain?
If you are tax resident in Spain, the sale goes into your Spanish income tax return (IRPF). Tax is not charged on the price, only on the gain: what you sell for minus what the property cost you, including expenses.
On top of that, the town hall charges the plusvalía municipal on the increase in value of the land. And on completion day any outstanding debt on the property is deducted from the price.
Unlike sellers who live abroad, you have no 3% retention taken by the buyer. Whatever you owe is paid with your Spanish tax return the following year.
Capital gains tax
From 19% to 30%, depending on the size of the gain. Declared in the return filed the following spring.
Plusvalía municipal
Paid by the seller within 30 working days of the deed. No tax if you sell at a loss.
When you pay no income tax
If you are over 65 and sell your main home, or if you reinvest in a new main home.
It depends on where you live, not on your passport
Spanish tax on a sale depends on your tax residence, not your nationality. A British or Irish couple living all year round in Orihuela Costa are Spanish residents and sell exactly as a Spaniard would. A Spaniard living in London is a non-resident.
As a rule you are resident if you spend more than 183 days a year in Spain, or if your main economic interests are here. Spain looks at the whole calendar year, so if you are moving back to the UK the same year you sell, check your position before you sign.
If you live in Spain (this page)
- The gain is taxed in your Spanish income tax return, at 19% to 30%.
- The buyer does not withhold 3% of the price.
- You may pay no income tax at all if you are over 65 or reinvest in a new main home.
- You pay the plusvalía municipal yourself, within 30 working days.
If you live outside Spain
- The gain is taxed at 19% under Non-Resident Income Tax.
- The buyer withholds 3% of the price and pays it to the tax office.
- The buyer also keeps back the plusvalía, because the law makes them answerable for it.
- You then file Modelo 210 to pay the balance or reclaim what was withheld.
Your gain is not just sale price minus purchase price
Spanish rules let you add and deduct costs that many sellers forget. With your deeds and invoices to hand, the taxable gain is often well below the back-of-an-envelope figure.
What you receive
The price in the deed minus the selling costs you pay: estate agent, plusvalía municipal, energy certificate, or the notary if the contract puts it on you.
What it cost you
The purchase price plus buying costs and taxes (notary, Land Registry, transfer tax) and improvement works. If you inherited it, the value declared for inheritance tax.
The difference is the gain
If you have rented it out, depreciation is deducted from the cost: what you claimed or, at least, the minimum you could have claimed even if you did not. If the result is negative, it is a loss and there is nothing to pay.
How much: the savings tax bands
The gain is not taxed at a single rate. It is sliced into bands and each slice pays its own rate. This is the example from the top of the page, with a gain of €57,000:
€6,000 × 19% = €1,140
€44,000 × 21% = €9,240
€7,000 × 23% = €1,610. Total: €11,990.
Not reached in the example.
Not reached in the example.
The bands apply to all your savings income for the year, not just the sale. Interest, dividends or share sales in the same year are added together and can push the rate up. And if you bought before 1995, part of the gain may be reduced, within a limit of €400,000 of total sales since 2015.
Bought in 2015 for €180,000, sold in 2026 for €260,000
You receive €251,000 (€260,000 minus €9,000 for the agent and plusvalía) and the home cost you €194,000 (€180,000 plus €14,000 of buying costs and taxes).
What the sale adds to your return the following year, if you have no other savings income that year.
If it was your main home, the gain is exempt from income tax. The plusvalía municipal is still payable.
Three cases where the gain is tax-free
These are valuable reliefs, but the conditions are strict. All three require the property to be your main home (vivienda habitual): where you have lived continuously for at least three years. A holiday home does not qualify.
You are over 65
The gain on selling your main home is exempt, whether you are paid a lump sum or an annuity. The same applies to people with severe or high dependency.
You buy another main home
If you reinvest the proceeds in your new main home within two years before or after the sale, the gain is not taxed. Reinvest only part, and the relief is proportional.
Handing the home to the bank
If you give your main home to the bank to clear the mortgage, or it is repossessed, and you have no other assets to pay the debt, the gain is also exempt.
Reinvestment relief is not automatic: you have to state in your tax return that you intend to reinvest. And the main home test is real: three years in a row living there, unless something like a job move, a separation or a marriage forced you out. If you moved out before selling, it still counts if it was your main home at any point in the two years before the sale.
There is no direct exemption here. But if you put the proceeds into a life annuity for yourself within six months, the gain can be exempt, up to €240,000. And a loss on a sale can be set against other savings gains over the next four years.
What you pay, and what comes off the price
The plusvalía municipal is a separate tax from income tax. The town hall charges it on the rise in value of the land, not the building. As the seller it falls on you, and what you pay is then deducted as a selling cost when your gain is worked out.
The plusvalía on your sale
- You pay it as the seller, within 30 working days of the deed.
- It is calculated two ways and you pay the lower figure.
- If you sell for less than you paid, there is no tax, but you must still file with both deeds.
- The over-65 exemption is for income tax only: the plusvalía is still due.
What is deducted on completion
- Unpaid IBI (council tax) bills: by law the property remains liable for them.
- Community of owners fees: the administrator issues a certificate of debts before signing.
- Unpaid water, electricity or other utility bills.
- Any debt or charge shown in the nota simple (the Land Registry extract), such as an attachment order.
- Any mortgage still outstanding, which is redeemed at completion.
Who pays what on the Costa Blanca South
There is no solicitor-led conveyancing in Spain: the deed is signed before a notary, an impartial public official. In Orihuela Costa, Torrevieja, Pilar de la Horadada and San Miguel de Salinas the local custom is that the buyer pays the notary and the Land Registry, and local contracts say so.
Where nothing is agreed, the Spanish Civil Code splits these costs differently, and contracts drafted elsewhere in Spain often follow it. Check that clause before you sign the deposit contract.
By local custom. Check the deposit contract says so.
Usually paid by whoever hired the agent. It is a deductible selling cost.
Filed within 30 working days. It also reduces your gain.
Deducted from the price at completion, backed by certificates.
Transfer tax on a resale property. It does not affect you as seller.
The paperwork to run the numbers before you sell
With these documents we work out your tax with real figures, not estimates. If anything is missing, we tell you where to get it.
Bring or send us
- The deed by which you acquired the property: purchase, inheritance or gift.
- The expected sale price, or the reservation or deposit contract if you have one.
- Invoices for the buying costs: notary, Land Registry and taxes.
- Invoices for any improvement works.
- Rental details, if the property has ever been let.
- The latest IBI receipt, which is also used for the plusvalía.
- Your country of tax residence and each owner’s share, if there are several.
Your sale, from the first figures to your tax return
We work out your tax
From your purchase deed, works invoices and buying costs we calculate the gain, the income tax and the plusvalía. You know what you will keep before you accept an offer.
We gather the paperwork
Nota simple, latest IBI receipt, community certificate of debts and energy certificate. We check whether you meet the conditions for any exemption.
We make the costs clear
Who pays the notary and Land Registry, and which debts will be deducted at completion. If you plan to reinvest in another home, we plan the dates.
You are paid and charges are cleared
Outstanding debts are deducted and any mortgage is redeemed. If you cannot attend, someone can sign for you under a power of attorney.
We file the plusvalía
Within 30 working days of the deed, with the town hall or its tax collection office.
We declare the sale in your return
We declare the gain or loss, apply any exemption you are entitled to and, if you will reinvest, state it in the return.
What we do, and what we do not
We handle the tax, paperwork and coordination of your sale from start to finish in Orihuela Costa, Torrevieja and across the Costa Blanca South. It is part of our property sale and inheritance service.
We take care of
- Working out your gain, income tax and plusvalía before you sign.
- Checking whether the over-65 or reinvestment relief applies to you.
- Gathering certificates and identifying debts and charges shown in the documents and registers available.
- Coordinating with the buyer, the agent, the bank and the notary.
- Filing the plusvalía and declaring the sale in your Spanish return.
- Talking to you in English, Spanish or French.
Outside our scope
- Representing you in a court case or a claim against the buyer: that needs a lawyer.
- Finding a buyer or setting the price: that is the estate agent’s job.
Written and reviewed by Patrick Gordinne Pérez, economist registered with the Colegio de Economistas de Alicante (Alicante Association of Economists), no. 2722, since 2004, director of Asesoría Orihuela Costa. More about us.
Common questions when selling a home in Spain
If you live in Spain: income tax (IRPF) on the gain, declared in your return the following year, and the plusvalía municipal, paid within 30 working days of the deed. If you live abroad: Non-Resident Income Tax instead of IRPF, and the buyer withholds 3% of the price plus the plusvalía.
Only the gain is taxed, not the price. The first €6,000 is taxed at 19%, €6,000 to €50,000 at 21%, €50,000 to €200,000 at 23%, €200,000 to €300,000 at 27% and anything above €300,000 at 30%.
Buying costs (notary, Land Registry, transfer tax), improvement works and the selling costs you pay, such as the estate agent or the plusvalía municipal. Keep your deeds and invoices: without them the costs cannot be proved.
If it is your main home and you are tax resident in Spain, the gain is exempt from income tax. Your main home is where you have lived continuously for at least three years, or did so at any point in the two years before the sale. The plusvalía municipal is still payable.
If both are, or will be, your main home and you reinvest within two years before or after the sale, the gain is exempt. If you reinvest only part, the relief is proportional. You have to state it in your tax return.
No. The 3% retention only applies when the seller is not tax resident in Spain. What is deducted from the price on completion is any outstanding debt on the property: IBI, community fees, utilities, charges in the nota simple or the mortgage.
It can. Residence is assessed for the whole calendar year. If you are still Spanish resident in the year of the sale, the IRPF rules on this page apply. If you are already non-resident, the buyer withholds 3% and you file Modelo 210. Check before you set the completion date.
No. If the sale value in the deed is lower than the purchase value, there is no tax. You still have to file with the town hall, with both deeds, so it is recorded.
The purchase value is the value declared for Spanish inheritance tax, plus the related inheritance costs. So if you sell soon after inheriting, the gain is usually small.
Selling your home in Spain?
Send us your purchase deed and the offer you have received. Before you sign the deposit contract, we will tell you how much income tax and plusvalía you will pay, whether any relief applies and what you will keep.
Asesoría Orihuela Costa, S.L.
Avenida Adelfas 12, Local 5, Dehesa de Campoamor, 03189 Orihuela Costa (Alicante)
Winter hours (October to June)
Monday to Thursday 9:00 to 17:00; Friday 9:00 to 14:00
Summer hours (July to September)
Monday to Friday 8:00 to 15:00
We handle property sales in Orihuela Costa, Torrevieja, Pilar de la Horadada, San Miguel de Salinas, Guardamar and the rest of the Costa Blanca South. Living outside Spain? See our tax services for non-residents and foreigners.
Last reviewed: 2 November 2026. General information based on Spanish Personal Income Tax Law 35/2006 (articles 33, 35, 38, 49 and 66, and ninth transitional provision), the Spanish Local Finance Law and guidance from the Spanish Tax Agency (Agencia Tributaria). Example figures are illustrative and rounded. This is not a substitute for advice on your own case.




