Owners

Selling an apartment with a tenant in Madrid: what the law says

You can sell a rented apartment in Madrid without waiting for the lease to end. The buyer, in general, takes over the lease for the first five years of the contract (seven if the landlord is a legal entity), and the tenant has a pre-emptive right to buy: you must formally notify the price and terms before selling. If you don't, the tenant can later claim retracto and the deed may not be registered.

What happens to the lease when you sell

Under the Urban Leases Act (LAU), whoever buys a leased home steps into the landlord's rights and obligations during the first five years of the contract, or seven if the previous landlord was a legal entity. If the agreed term was longer, the regime changes depending on the case, and the seller may have to compensate the tenant. Even if the contract said the sale would terminate it, the buyer must honor it during that period.

In practice: the property is sold with the lease still in force, and your buyer must know it from the first viewing.

The tenant's pre-emptive rights (tanteo and retracto)

Before a sale, the tenant of a home has a pre-emptive right to buy:

  • Tanteo: the tenant has 30 calendar days, from the day after notification, to buy on the same terms. The notification must be formal and include the decision to sell, the price and the other essential terms.
  • Retracto: if the tenant was not notified, or the notification omitted a requirement, or the sale closes at a lower price or on less onerous terms, the tenant can exercise it afterwards. It expires 30 calendar days after the buyer formally notifies the tenant of the terms, with a copy of the deed.
  • Registration: to register the sale of a rented home in the Property Registry, you must show that the required notifications were made.

According to the consolidated text of the BOE on the publication date of this guide, the parties cannot agree on the tenant waiving this right. Housing regulations were amended several times in 2026: before notifying, check the current wording of articles 14 and 25 of the LAU.

How to prepare a sale with a tenant

  1. Gather the lease, its extensions, the deposit held and the status of the rent receipts.
  2. Decide the price and terms before notifying: they are the ones the tenant will be able to match.
  3. Notify formally (burofax or notarial deed) and keep proof of the date.
  4. Wait for the tanteo period before accepting an offer that closes the deal.
  5. Inform the buyer of the lease, the rent, the term and the deposit, and reflect it in the deed.

What changes for the buyer and for the price

A buyer who wants to live in the property or renovate it may not want an occupied apartment; another who is looking for an investment may value it. That's why a rented home usually has a different audience. There is no standard discount: it depends on the rent, the time left on the contract and the condition of the property. Compare it with real transactions, not a generic figure; we explain it in how to set the sale price of your apartment in Madrid.

Documents worth having ready

It is the same as for any sale, plus the lease paperwork. Review it in documents to sell an apartment in Madrid and check the nota simple to verify encumbrances.

Frequently asked questions

Can I sell a rented apartment without telling the tenant?

No. You must formally notify the tenant of the decision to sell, the price and the essential terms. If you don't, the tenant can exercise retracto and the sale may not be registrable.

Does the tenant have to leave when I sell?

Not automatically. The buyer steps into the lease for the first five years (seven if the landlord is a legal entity), even if the contract said the sale would terminate it.

How long does the tenant have to decide?

Thirty calendar days from the day after the formal notification, under the LAU.

Can an occupied apartment be sold to an investor?

Yes. It is a common buyer profile, but the buyer must know the lease, the rent and the term from the start.

Official sources

This guide is for information only and does not replace legal advice for each case. Regulations may change: always check the official source.

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