Owners

How much does it cost to sell an apartment in Madrid: costs and taxes

Selling an apartment in Madrid has a cost that almost never matches what the owner imagines when setting the price. The main expenses are the plusvalía (the municipal tax on the increase in value of urban land) municipal, IRPF on the capital gain, cancellation of the mortgage if there is one, the energy efficiency certificate, and the agency's fees. Knowing them before setting a price avoids surprises at closing.

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 valuation

Keep reading

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.

WhatsApp