I’ve recently been considering selling an apartment I own but don’t live in, and when I started researching the taxes involved, it all became overwhelming! The tax system here feels incredibly complex and convoluted. I spent several days breaking it down and wanted to share my findings with others who are also planning to sell. Let’s discuss it together—please let me know if I’ve misunderstood anything or if you know of better ways to save on taxes.

The Two Main Taxes for Sellers
Simply put, as a seller, you’re primarily dealing with two taxes: one paid to the national tax agency (Agencia Tributaria), which is the capital gains portion of the IRPF (Personal Income Tax), and another paid to the local city council, called Plusvalía Municipal. These two taxes are calculated completely differently and are collected by different authorities, so issues related to selling property for immigration need to be considered separately.
1. Personal Income Tax - Capital Gains Tax
This tax is essentially paid on the profit you make from selling your property. The calculation logic is simple: Profit = Selling Price - . The ‘various costs’ related to buying property in Madrid are crucial here; they include the taxes you paid when you bought the property, agency fees, notary fees, and even the cost of major renovations you’ve undertaken while you owned it. The calculated profit is then taxed according to the following rates:
| Profit Bracket | Tax Rate |
| 0 - 6,000 | 19% |
| 6,000.01 - 50,000 | 21% |
| 50,000.01 - 200,000 | 23% |
| Over 200,000 | 26% |
However, there are situations where you can be exempt from this tax! For example, if you are a tax resident, sell your main residence, and reinvest the entire proceeds into a new main residence within two years of the sale, the profit can be exempt. Additionally, seniors over 65 who sell their main residence are completely exempt from this tax, even if they don’t buy a new home!
2. Municipal Capital Gains Tax (Plusvalía Municipal)
This tax is a bit more annoying. Its full name is ‘Tax on the Increase in Value of Urban Land,’ which means, regardless of whether you made a profit or loss on the sale, you must pay tax if the official value of the land has increased during your ownership. This tax is paid to the city council where the property is located. Each municipality has its own calculation method and tax rate. The good news, however, is that the law changed in 2021, so if you actually sold at a loss, you can now apply for an exemption from this tax. There are usually two methods to calculate this tax, and you can choose the one more favorable to you. It’s best to have an asesor (consultant) help you with the calculation.
Before selling, you must calculate all these taxes clearly; otherwise, the net proceeds from your Spanish property might be much less than you expect. In particular, make sure to keep all your renovation invoices and documents from the original purchase—they are the proof you’ll need to save on taxes later! Have you encountered any other pitfalls or have any tax-saving tips from your own experience selling property? Feel free to leave a comment and share!