Back to the blog
Investment

Selling property in Spain: taxes and costs for the seller in 2026

Vladimir Shokov By Vladimir ShokovFounder, EVS PROPERTY GROUP 22 November 2026 · 10 min read
Selling property in Spain: taxes and costs for the seller in 2026

The taxes and costs involved in selling property in Spain come down to a handful of items: tax on the gain (income tax if you are resident, non-resident income tax if you are not), the municipal plusvalía, cancelling your mortgage, the energy performance certificate, the agency fee and, depending on what is agreed, the notary and the year's IBI. The item that really matters is the tax on the gain, and it can be zero if an exemption applies.

This guide covers what a seller normally pays in Marbella, Málaga, Benalmádena, Fuengirola, Estepona or Mijas, how the capital gain is calculated and how residents and non-residents differ. At the end there is a worked example so you can see the real difference in figures.

What costs does the seller have when a house is sold?

The table summarises the most common costs of selling a house, who normally pays them and what they depend on. It is a general guide: every sale has its own agreements and its own tax position.

Cost Who normally pays What it depends on
Income tax (resident) or non-resident income tax The seller The capital gain, tax residence and any exemptions that apply
Municipal plusvalía The seller; if non-resident, in practice it is withheld at the notary Whichever method is lower (objective or real); nothing is due if the sale is at a loss
Mortgage cancellation The seller The outstanding balance, any early repayment fee in the contract, the deed, the registry and sometimes a gestoría
Energy certificate The seller Set by the technician who issues it
Agency fees On the Costa del Sol, usually the seller Whatever is agreed in the sales mandate; VAT at 21% is added
Notary for the sale In practice on the Costa del Sol, the buyer usually pays The agreement between the parties; by default the Civil Code splits the costs
Annual IBI property tax Whoever owned the property on 1 January; usually shared pro rata with the buyer The pro rata arrangement agreed

What taxes do you pay when you sell a house?

There are two main taxes. The first is charged on the gain you make: income tax if you are tax resident in Spain and non-resident income tax if you are not. The second is the municipal plusvalía, which taxes the increase in the value of the land and is paid to the town hall. Then there is the year's IBI, which is not a sales tax but does affect the settlement with the buyer.

How much income tax is due on selling a home?

If you are tax resident, the capital gain goes into the savings tax base and is declared in the tax return for the year after the sale. The scale published by the Spanish tax agency (AEAT) for the 2025 return, the latest available, is as follows.

Slice of the gain Rate
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%

The rates apply by slice: each euro is taxed only at the rate of its own slice, not at the top rate. It is worth checking the scale in force when you file.

How is the capital gain on a property sale calculated?

The capital gain is the difference between the sale value and the acquisition value. The sale value is the price less the costs and taxes of the sale that the seller pays, such as the municipal plusvalía and fees. The acquisition value is the purchase price plus the costs and taxes of the purchase and any improvements.

  • Repairs and mortgage interest are not added.
  • If the property was let, depreciation is deducted.
  • Inflation adjustment coefficients have not applied since 1 January 2015.
  • For purchases made before 31 December 1994 there is a transitional regime that reduces part of the gain, with limits; your adviser works it out.

What changes if the seller is not resident in Spain?

A non-resident pays 19% on the gain, whatever their country of residence. The buyer withholds 3% of the price and pays it in with form 211 within one month. The seller then files form 210 within three months after that deadline (in practice, up to about four months from the deed) to pay the difference or claim a refund if too much was withheld.

The reinvestment exemption for a main home is open only to residents of the EU or EEA whose property sold was their main home in Spain. Many foreign owners on the Costa del Sol are selling a second home, and in that case the exemption normally does not apply.

What is the municipal plusvalía and how is it paid?

The municipal plusvalía (IIVTNU) is paid by the seller. If the seller is a non-resident individual, the buyer acts as substitute taxpayer and in practice it is withheld at the notary. It is calculated by two methods and the lower result is paid.

  • Objective method: the cadastral value of the land times a coefficient based on years of ownership (up to 20 years) and times the municipal rate, which cannot exceed 30%.
  • Real method: the actual gain attributable to the land.

If you sell at a loss nothing is due, but you must prove it with the deeds. Rural land is not taxed. From 1 December 2026 new maximum coefficients apply under Royal Decree-law 29/2026: they rise for owners of up to 16 years and fall for those with 17 years or more. Rates and procedure depend on each town hall.

Is it possible to sell without paying tax on the gain?

Yes, but only in specific cases. There is no holding period that exempts you by itself. The exemptions for a resident are these:

  • Reinvestment in a main home: the gain is exempt if you reinvest the proceeds in another main home within two years of the sale. If you reinvest only part, the exemption is proportional, and if there was a mortgage the outstanding loan is deducted from the amount to reinvest.
  • Over-65s selling their main home: the gain is exempt, with no cap and no obligation to reinvest. A main home is one lived in for at least three continuous years (with exceptions) that is the main home at the time of sale or was up to any day in the previous two years.
  • Over-65s selling another asset, such as a second home: exempt if the proceeds go into a life annuity within six months, up to a maximum of €240,000.

How much does the seller keep? A worked example

The figures are illustrative. A home was bought for €250,000 plus €25,000 of purchase costs and taxes, so the acquisition value is €275,000. It is sold for €400,000 with €10,000 of selling costs. The gain is 400,000 − 10,000 − 275,000 = €115,000.

Item Resident seller Non-resident seller With full exemption
Gain €115,000 €115,000 €115,000
Calculation €1,140 + €9,240 + €14,950 €115,000 × 19% Exempt
Total tax on the gain €25,330 €21,850 €0
Withheld by the buyer (3% of €400,000) Not applicable €12,000 Not applicable
Still to pay with form 210 Not applicable €9,850 Not applicable

For the resident, the scale gives €6,000 at 19% (€1,140), €44,000 at 21% (€9,240) and €65,000 at 23% (€14,950). Full exemption applies to complete reinvestment in a new main home, or to a seller over 65 selling their main home: in both cases, €0 of income tax on the gain.

What else needs sorting out before signing the sale?

  • Outstanding mortgage: it must be cancelled financially and at the land registry before or at the sale. That means the outstanding balance, a possible early repayment fee under the contract, the cancellation deed, the registry and sometimes a gestoría. The amounts depend on your loan.
  • Energy performance certificate: it is compulsory to sell an existing home (Royal Decree 390/2021). A copy must be given to the buyer with the contract and the rating must appear in adverts.
  • Community of owners: in the deed you must declare that you are up to date with payments or state what you owe, and provide the community's debt certificate. The property answers for debts of the current year and the three previous calendar years.
  • Other usual documents: a nota simple, the latest IBI receipt, the community certificate and, if requested, a first occupation licence or equivalent.

Who pays the notary, the IBI and the agency?

By default, article 1455 of the Civil Code says the costs of executing the deed fall on the seller and those of the first and later copies on the buyer, unless agreed otherwise. In practice on the Costa del Sol it is usually agreed that the buyer pays for the sale deed, but the seller always pays to cancel their own mortgage.

The IBI bill for the year of sale falls on whoever owned the property on 1 January, because the tax accrues on the first day of the year. It is usual to agree a pro rata split with the buyer for each party's days of ownership.

Agency fees are not set by any law: they are agreed in the sales mandate and carry VAT at 21%. On the Costa del Sol it is usual for the seller to pay them. Before you sign, get in writing what the service includes.

Conclusion: do the sums before setting the price

The costs of selling a home can be forecast fairly accurately if you know your tax residence, your acquisition value and whether any exemption applies. With that you can set a realistic price and know what you will keep. Your tax adviser should confirm the tax position in each case.

If you are thinking of selling in Marbella, Málaga, Benalmádena, Fuengirola, Estepona or Mijas, EVS Property can help you organise the paperwork and plan the sale calmly. Get in touch and we will talk it through.

Frequently asked questions

How much is paid when you sell a house?

It depends on the gain and your tax residence. A resident applies the savings scale, from 19% to 30%. A non-resident pays 19% on the gain. On top come the municipal plusvalía, any outstanding mortgage, the agency and the other costs in the table.

How can you avoid paying plusvalía?

It is only not payable if there was no gain, that is, if you sell at a loss and prove it with the deeds. Otherwise, what you can do is use the more favourable calculation method, objective or real, and pay the lower.

What costs does the seller have when a house is sold?

Normally the tax on the gain, the municipal plusvalía, cancelling the mortgage if there is one, the energy certificate and the agency fees. Depending on the agreement, also the deed and a share of the year's IBI.

Who pays the notary costs, the buyer or the seller?

By default the Civil Code splits the costs, but the parties can agree otherwise. On the Costa del Sol the buyer usually pays for the sale deed. The seller always pays for cancelling their own mortgage.

How long must you own a home to avoid paying tax on the gain?

No holding period exempts you by itself. The exemptions are reinvestment in a main home within two years, and the sale of a main home by someone over 65.

What next? The most useful thing after reading is to look at the real market: browse properties by city or tell us on WhatsApp what you are looking for — area, budget, timing — and we will prepare a tailored selection, with no obligation.

You may also find useful: sell your property invest on the Costa del Sol free valuation monthly price report

Related articles