Many owners ask whether they can sell a flat that is rented out. The answer is yes: it is perfectly legal. But the tenant has rights that must be respected, and in October 2026 those rights were strengthened. We explain, step by step, how to do it properly.
You can sell, but the contract remains in force
Selling the home does not end the rental contract. As a general rule, the buyer steps into the position of the former owner: they become the new landlord and must honour the contract on the same terms, including its duration, rent and deposit.
This has two practical consequences:
- For an investor, a rented flat can be an advantage: you buy a property that generates income from day one.
- For someone who wants to live in the home, the flat is less attractive, as they will have to wait for the contract to end.
The tenant's right of pre-emptive purchase
The Urban Leases Act grants the tenant a right of pre-emptive purchase: if you sell, they have priority to buy on the same terms. It works in two stages.
The tanteo: before the sale
The owner must notify the tenant in a verifiable way (usually by burofax with acknowledgement of receipt and certified content) of the decision to sell, the price and the other essential terms of the sale. From the following day, the tenant has 30 calendar days to decide whether to buy on those terms.
That notice expires after 180 calendar days: if the property has not been sold within that period, a new notice must be given.
The retracto: after the sale
If no notice was given, if the notice lacked any requirement, or if the property was ultimately sold for a lower price or on terms more favourable to the buyer than those notified, the tenant may exercise the retracto: step into the purchase on the same terms as it was made. They have 30 calendar days from the date the buyer hands them a copy of the deed of sale.
In addition, to register the sale at the Land Registry, the notifications must be shown to have been made. If the home is not rented, the seller must declare this in the deed.
What changes with Royal Decree-Law 29/2026
Royal Decree-Law 29/2026, published in the BOE on 7 October 2026, has reformed this right:
- The tenant can no longer waive their right of pre-emptive purchase. Previously the waiver could be agreed in the contract; now the law expressly states that the parties cannot agree to it.
- Joint sales: if the home is sold together with other homes, premises or assets, the notice must state the price attributable to the rented home and the objective criteria used to calculate it. That price must also appear in the deed.
- If the home and its rented annexes owned by the same owner (a garage or storage room) are sold at the same time, a tenant who wishes to exercise their right will have to buy the whole package: they cannot buy the home alone.
The tenant's right yields only to the retracto of a co-owner of the home, or to a contractual retracto that was already registered at the Land Registry when the lease was signed.
Another change to note: the length of rental contracts
Royal Decree-Law 28/2026, published the same day, provides that from 15 November 2026 habitual residence rental contracts will be automatically extended for periods of five years (seven if the owner is a company), unless valid notice is given, and that non-renewal by the owner requires six months' notice and compensation, except in specified cases. For anyone who buys a rented home intending to live in it, this may considerably extend the wait. Like the previous one, it is pending ratification.
Step by step: selling a rented flat
- Review the contract: start date, duration, extensions, rent and deposit.
- Value the home taking into account that it is rented: the ideal buyer is usually an investor.
- Notify the tenant by burofax of the price and the essential terms, and wait the 30 days.
- Agree viewings with the tenant: it is their home and no one may enter without their permission.
- Sign the deposit contract (arras) and the deed, stating that the home is rented and certifying the notices.
- Notify the tenant of the change of owner and the new account for paying the rent, and settle in the deed what happens to the deposit.
Practical tips
- Talk to the tenant before sending the burofax. They may be interested in buying, or may prefer to agree an early exit in return for compensation.
- Do not try to force the tenant out. As well as being illegal, it lowers the sale price and creates conflict.
- Have your documents ready: contract, receipts, proof of the deposit payment, energy performance certificate, nota simple and IBI property tax and owners' association receipts.
How AP Invest can help you
At AP Invest Real Estate we handle sales of rented homes in Felanitx, Portocolom and the rest of Mallorca: we value the home, prepare the notice to the tenant with the lawyers we work with, find the right buyer and coordinate the signing before the notary.