
What costs and taxes do you pay when selling a home in Spain?
Thinking of selling your home? Find out which taxes and costs you will pay in Spain: municipal capital gains tax, income tax, mortgage cancellation and agency fees.
5 Oct 2026 · 6 min read · Huspy Team
Selling a home does not mean you receive the full agreed price. As the owner, you will need to account for a number of costs and taxes when selling a home, which can reduce the final amount you take away.
The main ones are the municipal capital gains tax (plusvalía municipal), personal income tax (IRPF) on the capital gain, any mortgage cancellation costs and the costs associated with the sale itself.
What costs do you pay when selling a home?
Before you sell your home, it is worth budgeting for the following:
- Plusvalía municipal: a local tax on the increase in value of urban land.
- IRPF: if you make a capital gain, you may have to pay tax on it.
- Mortgage cancellation: if there is still an outstanding loan.
- Estate agency fees: if you use an agency, as agreed with them.
- Energy performance certificate: required to sell the property.
- Other costs: paperwork, any certificates you may need and outstanding payments.
Plusvalía municipal: what it is and how much you pay
The plusvalía municipal, officially the Tax on the Increase in Value of Urban Land (Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana, IIVTNU), is levied on the increase in the value of the land between the time you acquired it and the time you transfer it.
In a sale, it is generally the seller who pays it. The amount depends on the cadastral value of the land, how long you have owned it and the rules set by the local council.
Do you have to pay plusvalía if you sell the property for less than you paid for it?
If you can prove that there has been no increase in the value of the land, the transfer is not subject to this tax.
Income tax on selling a home: how much do you pay?
When you sell a home, you may make a capital gain or a capital loss, which you must include in your income tax return.
As a general rule, the gain is calculated by subtracting the acquisition value from the transfer value, taking into account any costs, taxes and improvements that are deductible for tax purposes.
It is not simply the difference between the price you paid and the price you sell for.
When is the gain exempt from IRPF?
In some situations, the gain may be exempt:
- Sellers aged over 65: when they sell their main residence and meet the legal requirements.
- Reinvestment in a main residence: if the proceeds are used to buy or renovate another main residence, within the established deadlines and conditions.
If only part of the proceeds is reinvested, the exemption may apply proportionally.
Mortgage cancellation costs
If there is still a mortgage on the property, you can sell it, but you will need to coordinate the sale with your bank to pay off the outstanding debt.
There are two separate steps:
- Financial cancellation: paying off the outstanding loan capital and, where applicable, any agreed early repayment charges.
- Registry cancellation: removing the mortgage charge from the Land Registry (Registro de la Propiedad) with the relevant documentation.
The sale price can be used to clear the debt, provided the amount and the terms of the transaction allow it.
Estate agency fees
If you sell your home through an estate agency, you will need to factor in its fees.
These vary depending on the agency and the services you engage. Before the property goes on the market, review the terms of the agreement, the amount or percentage agreed and when the fees become payable.
Other costs when selling a house
On top of the main taxes, there may be other costs:
- Energy performance certificate: required to sell the property.
- Certificate of occupancy (cédula de habitabilidad): where required by regional regulations.
- Certificates and paperwork: if you need to request additional documents.
- Homeowners' association (comunidad de propietarios): any outstanding service charges.
- Property tax (IBI): check it has been paid and agree how it is split between buyer and seller, where applicable.
How much money will I have left after selling my house?
To work out how much you will actually receive, subtract the applicable costs and taxes from the sale price.
For example, if you sell a property for €300,000, you will need to take into account:
- The outstanding mortgage capital, if any.
- The plusvalía municipal.
- Any income tax due on the capital gain.
- Estate agency fees, if you have used an agency.
- Any other outstanding or sale-related costs.
What remains is the net amount you will receive once the sale completes. To calculate it accurately, you need to know the purchase price and date, the associated costs and the owner's tax situation.
Frequently asked questions about the costs of selling a home
Who pays the plusvalía municipal when selling a house?
In a sale, it is generally the seller. The tax is paid to the local council where the property is located.
Do I have to pay income tax when I sell my home?
It depends on whether you have made a capital gain and whether you qualify for a tax exemption.
Can I sell a property that still has a mortgage?
Yes. You can use part of the sale price to pay off the outstanding debt and have the mortgage removed from the Land Registry.
Which costs can I deduct when calculating the gain for IRPF?
Certain costs and taxes linked to the purchase and the sale can be taken into account, as well as the cost of improvements that meet the tax requirements. It is important to keep all invoices and receipts.
How much does it cost to sell a flat in Spain?
There is no single figure. It depends on the sale price, the plusvalía municipal, any capital gain, the outstanding mortgage and the services you engage.
Sell your home with Huspy
Thinking of selling your home? At Huspy, we can help you find out what it is worth, prepare it for sale and find the right buyer.
Find out how much your home could be worth with Huspy.



