Tax on selling a home in Spain: Everything you need to know
Selling a property in Spain has various tax implications that should be considered to avoid surprises when filing your tax return. In this article we look in depth at the tax on selling a home and the most relevant taxes, how they're calculated and what tax considerations to bear in mind so you only pay what's necessary.
1. What is the tax on selling a home?
The tax on selling a home refers to the taxes an owner must pay when selling a property. There are different taxes depending on the type of home, how long it's been owned and other personal factors. The main tax is personal income tax (IRPF), but municipal capital gains tax and other levies also need to be considered.
2. Personal Income Tax (IRPF)
One of the most important aspects of the tax on selling a home is personal income tax (IRPF), which applies to the capital gain made on selling a property.
How is the capital gain calculated?
The capital gain is the difference between the sale price and the purchase price of the home. Certain extra costs can also be included in the calculation, such as notary fees, transfer taxes, estate agency fees and the cost of improvements made to the property.
-
Purchase price: Calculated by adding the property's purchase price and the costs of acquisition (notary, registry, transfer taxes).
-
Sale price: The price the property sells for, minus the costs of sale, such as estate agency fees.
Tax according to the gain made
The tax on selling a home varies according to the capital gain made. If the property has been the seller's main residence, they may benefit from certain tax exemptions.
-
Main residence: If you sell your main residence and reinvest the gain in another main residence within two years, the tax can be reduced or even waived entirely. If not, the gain is taxed at between 19% and 23%, depending on its size.
-
Not your main residence: If the property isn't considered your main residence, the tax on selling a home doesn't have the same tax advantages, and the seller must pay tax on the capital gain made.
3. Tax on the Increase in Value of Urban Land (IIVTNU)
Another important tax in the tax on selling a home is the municipal capital gains tax. It's calculated according to the increase in value of the land the property stands on from the date of purchase to the date of sale.
The land's cadastral value affects the calculation, and it's important to bear in mind that how long the owner has held the property also plays a crucial role. The longer they've owned it, the greater the increase in value and therefore the amount of municipal capital gains tax payable.
Exemptions and reliefs on municipal capital gains tax
You may not always have to pay municipal capital gains tax, as in some cases it's zero or reduced. In some municipalities, for example, there are reductions for those selling for less than they paid or for sales between close relatives.
4. Withholding for non-residents
If the owner isn't tax resident in Spain, a withholding is applied to the property's sale price. This 3% withholding must be paid to the Tax Agency to ensure the tax obligations arising from the sale are met. The aim is to make sure non-residents comply with their tax obligations.
5. Exemption for over-65s
For owners over 65, there's a full exemption from the tax on selling a home if certain requirements are met. If the owner has sold their main residence and is over 65, the gain from the sale isn't subject to income tax.
In addition, if the money from the sale goes into a lifetime annuity or certain other investments, they may also qualify for a full income tax exemption.
6. Reinvestment in a main residence
In some cases, if the owner reinvests the gain from selling the home in buying a new main residence, a deduction o exemption in the tax on selling a homemay apply. To benefit from it, the owner must buy a new home within two years.
7. When is it a good idea to sell a home?
The decision to sell a property depends on many factors, and tax on selling a home is just one of them. If you've owned it for many years and its value has risen significantly, you'll probably have to pay tax on the capital gain. However, in some cases selling can be a viable financial strategy if you reinvest the gain in a new property.
You should also consider the property market: if house prices are high, it may be a good time to sell.
8. Tips to optimise the tax on selling a home
To optimise the tax on selling a home, it's important to follow some tips that can reduce the tax impact of the transaction. These include:
-
Making sure all the costs of buying, improving and selling the property are correctly accounted for.
-
Considering selling the home once you've turned 65, if possible.
-
If reinvesting, making sure you meet the deadlines for buying the new main residence.
Conclusion: How should you manage the tax on selling a home?
The tax on selling a home is a complex process that needs careful management to avoid tax problems in the future. Knowing the taxes involved, the possible exemptions and deductions, and planning the sale properly are essential steps to comply with tax regulations efficiently.
If you're thinking of selling your home, it's important to have the support of experts in property taxation and real estate to make sure everything is handled correctly and optimally. With proper planning, you can maximise the profit from the sale and keep the tax burden to a minimum.
If you need professional advice on the tax on selling a home, don't hesitate to get in touch. Our team includes tax experts and property advisors who will guide you through the whole process efficiently and transparently.







