My Landlord Is Selling My Rented Flat: What Happens to My Contract?
The sale of a rented property is one of the situations that generates the most uncertainty in the Spanish real estate market. Many tenants, upon receiving the news that their landlord wants to sell the property, fear finding themselves on the street overnight or suffering a drastic change in their living conditions. However, Spanish legislation, structured mainly around the Ley de Arrendamientos Urbanos (LAU) (Urban Leasing Act), offers a robust protection framework for the tenant, although the final outcome will depend on key factors such as the date the contract was signed and its registration in the Registro de la Propiedad (Property Registry). Below, we analyze in depth what happens to your rental contract if they sell your flat, what your rights are, and how you should act step-by-step.
The Legal Framework: What Does the Law Say About the Sale of a Rented Flat?
To understand what happens when a rented home is sold, we must look to the Ley 29/1994, de 24 de noviembre, de Arrendamientos Urbanos (LAU). This law has undergone various reforms over the years, the most recent and significant being the one introduced by the Ley 12/2023, de 24 de mayo, por el derecho a la vivienda (Right to Housing Act).
The general principle governing the Spanish legal system is that the buyer of a rented home must respect the current rental contract, subrogating themselves to the rights and obligations of the seller (the former landlord). However, the application of this principle varies depending on the date the contract was formalized.
1. Contracts Signed From March 6, 2019 (Current Regime)
If your rental contract was signed on or after March 6, 2019, you are under the umbrella of the current regulation. Article 14 of the LAU clearly establishes that the buyer of a rented home is subrogated to the rights and obligations of the landlord during the first 5 years of the contract's validity (or 7 years if the previous landlord was a legal entity/company).
This means that, *even if the rental contract is not registered in the Registro de la Propiedad**, the new buyer is obliged by law to respect it and keep you as a tenant under the same conditions (rent, fianza* [security deposit], duration) until the minimum term of 5 or 7 years is met.
If the contract was agreed for a duration exceeding those 5 or 7 years, and the new buyer meets the requirements of *Article 34 of the Ley Hipotecaria (Mortgage Act) (a good-faith buyer who registers their title), the buyer is only obliged to tolerate the lease until that minimum term is met. For the remaining contract time, the seller must compensate the tenant with an amount equivalent to one month's rent for each year of the contract left to be fulfilled* (provided that such compensation was agreed upon in the contract).
2. Contracts Signed Between June 6, 2013 and March 5, 2019
During this period, the reform of the LAU promoted in 2013 was in force, which was much less protective of the tenant. In these cases, if the rental contract *was not registered in the Registro de la Propiedad** before the home was sold, the new buyer (provided they acted in good faith) had the right to terminate the rental contract (applying the Civil Code principle of "venta quita renta"* [sale defeats lease] from Article 1571).
If the buyer decides to terminate the contract, the tenant has a period of 3 months from the time they are notified of the sale to vacate the property, and can demand compensation from the seller for the damages caused.
The Tenant's Preferential Rights: Right of First Refusal (Tanteo) and Redemption (Retracto)
When the owner decides to put the property up for sale, the tenant is not a mere spectator. Article 25 of the LAU grants them the right of preferential acquisition, which is divided into two distinct phases or rights: the right of tanteo (first refusal) and the right of retracto (redemption).
The Right of Tanteo
This is the tenant's right to buy the home before anyone else, matching the conditions and price that the owner has agreed with a third party.
- The owner is obliged to notify the tenant of their intention to sell, detailing the price and conditions of the transfer.
- The tenant has a period of 30 calendar days (counting from the day following the notification) to exercise their right to purchase.
The Right of Retracto
If the owner sells the property to a third party without giving prior notification to the tenant, or if they do so by misrepresenting the actual price or conditions of the sale, the tenant can exercise the right of retracto.
- This allows the tenant to "step into the shoes" of the buyer, acquiring the property for the same price the buyer paid.
- The period to exercise the retracto is 30 calendar days from the time the buyer formally notifies the tenant of the sale (by delivering the public deed) or from the time the tenant becomes aware of it.
> Important Exception: The right of tanteo and retracto can be waived by the tenant in the rental contract itself (which is a very common clause). However, even if this right has been waived, the landlord is still obliged to communicate their intention to sell the property to the tenant at least 30 days prior to the date the sale is formalized.
Step-by-Step Practical Steps: What Should You Do If Your Landlord Sells the Flat?
If you find yourself in this situation, it is essential to remain calm and act with legal rigor. Follow these chronological steps to protect your rights:
- Review the date of your rental contract: Locate your physical or digital contract and check the exact date of signing to determine which version of the LAU applies to you (before or after March 6, 2019).
- *Check the Registro de la Propiedad: Request a Nota Simple* (property registry extract) of the property from the Property Registry to verify if your rental contract is registered (something uncommon in standard residential leases, but crucial if your contract is prior to 2019).
- Analyze the sale notification: When the landlord communicates their intention to sell, check if the document includes the sale price and the conditions of the transaction. Verify if you expressly waived the right of tanteo and retracto in your contract.
- *Decide if you want to buy (exercise the tanteo): If you have the financial capacity and are interested in the property, you have 30 calendar days to respond by burofax* (certified registered mail) stating your desire to acquire the home under the offered conditions.
- Demand the identification of the new owner: Once the sale is completed, the new owner must reliably notify you of the acquisition. You have the right to demand a simple copy of the purchase deed to know the identity of the new landlord and the bank account number where you must pay the rent from that moment on.
- Do not sign a new contract if it does not suit you: The new owner cannot force you to sign a new contract with different conditions (such as a rent increase). Your original contract remains valid, and the name of the landlord simply changes.
Concrete Examples with Real Figures
To illustrate how these rules apply in practice, we analyze two very common scenarios:
Example 1: Contract Signed in 2021 (Full Protection)
- Tenant: María.
- Monthly rent: €900.
- Contract signing date: May 15, 2021 (agreed duration of 5 years, until May 2026).
- Situation: In January 2024, the owner sells the flat to a private investor for €180,000. María's rental contract is not registered in the Property Registry.
- Result: Since the contract was signed after March 2019, the new buyer is obliged by law (Article 14 of the LAU) to subrogate themselves to María's rental contract. The new owner cannot evict María or raise her rent from €900 (except for the corresponding annual update based on the IPC [Consumer Price Index] or the legal limit applicable under the Housing Act). María has the right to remain in the flat until May 2026.
Example 2: Contract Without Mandatory Extension and Compensation
- Tenant: Carlos.
- Monthly rent: €1,200.
- Contract signing date: January 10, 2020 with an agreed duration of 8 years (until January 2028). The original landlord was an individual.
- Situation: In February 2025 (when the 5 years of mandatory extension marked by law for individuals have already elapsed), the owner sells the flat to a good-faith buyer who registers the purchase in the Registry. Carlos's contract was not registered. The new owner wants the property to live in it.
- Result: Since the legal guarantee period of 5 years has already elapsed, the new buyer can terminate the rental contract. However, as the original contract was for 8 years and there were 3 years left to be fulfilled, Carlos has the right to demand compensation from the original seller of one month's rent for each remaining year of the contract. In this case, Carlos will receive compensation of €3,600 (equivalent to 3 months' rent at €1,200 per month) and must vacate the property.
Mistakes You Must Avoid
Making mistakes during the property sale process can weaken your legal position or cause you to lose money. Avoid the following mistakes at all costs:
- Stopping rent payments upon learning of the sale: This is the most serious mistake. If you stop paying rent under the pretext that "the flat is going to be sold," the owner (or the new buyer) can initiate an eviction procedure for non-payment of rent according to the Ley de Enjuiciamiento Civil (LEC) (Civil Procedure Act), immediately losing all your legal protection.
- Accepting verbal agreements with the new owner: Any change in the rental conditions, the payment account, or the commitment to an early departure must be put in writing in a document signed by both parties. Words are blown away by the wind.
- Vacating the property at the first call or letter from the landlord: Many owners try to scare tenants with intimidating burofaxes demanding they leave the property because "the flat has been sold." Remember that, unless a judge rules otherwise in a sentence, no one can force you to vacate your home if your contract is protected by the LAU.
- *Not claiming the return of the fianza from the correct landlord: When the flat is sold, the former landlord must transfer the security deposit (which in its day should have been deposited in the corresponding regional body, such as IVIMA in Madrid or INCASÒL in Catalonia) to the new owner. At the end of the contract, it is the new owner who is obliged to return the fianza* to you, not the old one.
Frequently Asked Questions (FAQ)
Can the new owner raise my rent after the purchase?
No. The new owner is subrogated to exactly the same position as the previous landlord. This means they must respect the conditions agreed in your original contract, including the monthly rent. They can only apply the annual rent updates that were provided for in the contract and always respecting the current legal limits (such as the cap on rent updates of 3% for the year 2024 established by the Right to Housing Act).
What happens if the new owner needs the flat to live in it themselves?
Article 9.3 of the LAU allows the landlord to deny the mandatory extension of the contract if they need the home for themselves or for their first-degree relatives by blood or adoption, or for their spouse in the event of separation or divorce. However, for the new owner to exercise this right, three strict requirements must be met:
- At least the first year of the contract's duration must have elapsed.
- This possibility of recovering the home due to necessity must have been expressly included in the rental contract.
- The new owner must give the tenant at least 2 months' prior notice.
Do I have to show the flat to potential buyers while I am renting?
You are not obliged by law. The rented home enjoys the protection of the inviolability of the home established in the Spanish Constitution. The owner cannot enter the property without your consent, nor can they force you to open the door to visits from real estate agencies or potential buyers. However, it is usually recommended to reach an amicable agreement and set a reasonable visiting schedule in exchange for a good relationship with the landlord.
What happens if my rental contract is "old rent" (renta antigua)?
Contracts entered into before May 9, 1985 are governed by the LAU of 1964 and enjoy a lifetime forced extension regime for the tenant. In the event of the sale of the home, the new buyer is fully subrogated to this old rent contract, being obliged to respect it under exactly the same conditions, with a very strong right of tanteo and retracto in favor of the tenant.
In Summary
- If your contract is after March 6, 2019, the new buyer is obliged to respect it during the first 5 years (or 7 years if the seller was a company), whether or not the rental is registered in the Property Registry.
- You have the right of preferential acquisition (tanteo and retracto) to buy the flat under the same conditions as a third party, unless you have waived this right in your rental contract.
- If you have waived the tanteo, the landlord must notify you of the sale at least 30 days prior to the signing of the deed.
- The new owner cannot modify the conditions of your contract unilaterally or force you to sign a new document.
- Never stop paying the rent and always demand that they notify you in writing of the details of the new owner and the new bank account for payments.
General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.
Have a specific legal question?
Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.
Ask for freeThis is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.