1. Plusvalía municipal
It is the Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana. It is handled by the Ayuntamiento de Madrid and, in a sale, it is paid by the seller. It does not tax the actual profit on the transaction but the increase in the value of the land, and the deadline to file it is short: it is best to plan for it before closing.
2. IRPF: the capital gain
The sale generates a capital gain or loss, which is the difference between the transfer value and the acquisition value, adjusted for expenses. It is declared in the tax return for the year of the sale. Some situations qualify for an exemption, such as reinvesting the proceeds in a new primary residence, or the sale of a primary residence by people over 65. Each case depends on specific requirements, so it is best to consult a tax advisor before selling.
3. Outstanding mortgage
If the apartment has a mortgage, it is cancelled with part of the price. You need to ask the bank for the outstanding debt certificate, and there may be a cancellation fee depending on the contract. The registry and notarial cancellation is an additional expense that should be planned for.
4. Energy efficiency certificate
It is mandatory to sell or advertise a property. It is issued by a qualified technician, has a validity period, and is registered with the regional authority. It is a small expense compared to the rest, but without it the sale cannot be closed with confidence.
5. Homeowners' association and IBI
The buyer will ask for the certificate showing you are up to date on community fees, and approved or planned derramas are reviewed. The IBI is usually prorated between seller and buyer by the days each one owned the property. It is common to agree this in the contract.
6. Agency fees
At Olara RE, fees are agreed in writing before we begin, under an exclusive mandate. This is the expense most worth comparing against what it includes: photography, floor plan, dossier, valuation with real comparables, and buyer screening. A low fee without preparing the asset often ends up costing more in the final price.
7. When each item is paid
- Before closing: energy certificate, community certificate and mortgage debt certificate.
- At closing: mortgage cancellation and the agency's fees.
- Afterward: plusvalía municipal (with its own deadline) and IRPF on your income tax return.
Frequently asked questions
Who pays the plusvalía municipal when selling an apartment in Madrid?
The seller pays it. It is filed with the Ayuntamiento de Madrid, within the deadline set by the regulations.
Do I have to pay taxes if I sell my primary residence?
There may be a capital gain for IRPF purposes, but there are exemptions, such as reinvesting in a new primary residence or sales by people over 65. It depends on the requirements in each case.
Is an energy certificate required to sell?
Yes. It is required to sell or advertise a property and must be valid.
How much does it cost to cancel the mortgage when selling?
It depends on the lender and the contract: cancellation fee plus notary and registry costs. Ask your bank for the outstanding debt certificate before setting the price.
Official sources
This guide is for information only and does not replace tax or legal advice for your specific case.
Want to sell your apartment in Madrid?
Non-binding estimate with real comparables from your area. If the listing is exclusive, we don't charge the owner a commission.
Request a valuationKeep reading
- Arras when selling an apartment: types and what if someone backs out
- Canceling the mortgage when selling an apartment in Madrid
- Homeowners' association when selling: debts and certificate
- Complete guide to selling your apartment in Madrid
- Real estate glossary
Areas where we sell: Barrio de Salamanca · Recoletos · Chamberí · Almagro · Centro · Justicia · Chamartín · El Viso · Retiro · Jerónimos · Tetuán · Ciudad Lineal · Arganzuela · Aravaca · Pozuelo de Alarcón · Boadilla del Monte · Majadahonda · Las Rozas · Torrelodones · Alcobendas-La Moraleja · San Sebastián de los Reyes · Tres Cantos.