Buying a rented property can be a highly interesting financial investment if you are looking to obtain returns from day one. By acquiring a rented property as an investment, you obtain immediate monthly rental income and save yourself the process of searching for and screening a new tenant.
However, the situation changes radically when you intend to buy an apartment with a tenant to live in it. The popular belief that the transfer of ownership automatically terminates prior contractual obligations is incorrect. The sale of a rented property does not instantly cancel the lease, nor does it grant the new owner the power to evict the occupant immediately.
In the vast majority of cases, a subrogation of conditions occurs. The buyer becomes the substitute landlord, having to respect the terms, rents, and guarantees previously established. Therefore, before taking any firm step, it is crucial to carry out an exhaustive legal and documentary analysis. In this guide, we detail all the technical aspects you must verify before formalizing the sale.
What happens to the lease when the property is sold?
As a fundamental principle in the Spanish legal system, the buyer subrogates to the lease and fully assumes the contractual position of the former landlord. This implies inheriting an indissoluble block of rights and obligations.
For leases entered into after the reform of March 6, 2019, the law establishes a mandatory protection period for the tenant. The buyer of the property must obligatorily respect the lease during the first 5 years of the contract's validity (if the original landlord was an individual) or 7 years (if it was a legal entity).
If the original contract stipulated a duration period exceeding these minimums, the new owner might also be obliged to respect it according to the scenarios regulated in Article 14 of the Ley de Arrendamientos Urbanos. Therefore, the acquisition of a leased property does not legally authorize the owner to:
- Increase or update the rent outside the agreed legal limits.
- Demand the signing of a new contract with different conditions.
- Modify or cancel the extensions that protect the tenant.
The investor acquires the property strictly subject to the conditions of the lease agreement in force.

The date of the lease agreement is fundamental
The regulations applicable to a leased property are not uniform; they are determined by the exact date the contract was formalized. In Spain, the Ley de Arrendamientos Urbanos (LAU) has undergone multiple legislative reforms, and the protection safeguarding tenants varies drastically depending on the date of the document:
- Contracts signed before January 1, 1995: Subject to mandatory lifetime extensions (the well-known old-rent contracts or renta antigua). They require an extremely meticulous legal analysis.
- Contracts signed between 1995 and June 2013: Mandatory minimum duration of 5 years, with additional tacit extensions.
- Contracts signed between June 2013 and March 2019: Minimum duration period of 3 years of mandatory legal extension.
- Contracts signed from March 6, 2019, onwards: Current mandatory protection period of 5 years (individual landlord) or 7 years (corporate landlord), plus an additional 3 years of tacit extension if neither party notifies their intention not to renew within the legal notice period.
For this reason, to calculate exactly when the property will be free of occupants, it is insufficient to look only at the term stated on the first page of the document. You must examine the extensions, the supplementary regulations governing the contract, and any prior notifications made.
Can the buyer evict the tenant because they need the property?
Not automatically or at their own discretion. The acquisition of the property does not legally validate contract termination for generic personal need.
Current regulations allow the landlord to claim the apartment to use it as a permanent home for themselves, for their first-degree relatives by blood, or for their spouse in cases of separation or divorce. However, for contracts formalized under the umbrella of current legislation (since March 2019), the following conditions must be met simultaneously:
- That at least the first year of the lease has elapsed.
- That the landlord exercising the action is an individual.
- That said cause of need and its justification were specified expressly and literally in the clauses of the original lease agreement.
- That a reliable notification is sent to the tenant justifying the cause at least two months in advance.
If the original contract signed by the seller did not expressly include the necessity clause, the subsequent buyer will not be able to claim this right to terminate the contract early. Relying solely on this resource to occupy the property in the short term after acquisition carries a very high legal risk.
Buying to invest versus buying to live in
The strategic approach varies substantially depending on the purpose of the real estate acquisition:
1. Buying a leased property as an investment
If the goal is purely financial, the lease agreement represents an element of value, as it provides cash flows from the moment the deed of sale is signed. However, you must perform rigorous control over several key concepts:
- Real net rent: Verify the applicable contractual rent, its CPI (IPC) formulas, and the actual financial payment history.
- Financial guarantees: Review the mandatory security deposits (fianzas), bank guarantees, or transferable additional deposits.
- Proven solvency: Request consolidated financial documentation proving the tenant's exemplary payment behavior.
2. Buying an apartment with a tenant to live in
If your priority is self-promotion or your own residential relocation, the existence of the lease agreement represents a temporary obstacle that is legally insurmountable in the short term. There is no quick legal mechanism to terminate an active contract within the minimum mandatory legal period.
In this context, the signing of the sale contract should always be fully conditioned on the delivery of the property completely empty and without occupants. It is advisable to always perform the appropriate checks before buying a property to verify that the handover of keys can take place without legal contingencies.
Essential documentation you must request
Safety in the transaction depends entirely on a detailed analysis of the tenant's file. Before any transaction, it is imperative to perform a complete real estate due diligence. Formally demand the following supporting information from the seller before signing the deed:
- Lease agreement before buying: The complete contractual document, including annexes, photographic inventories, and subsequent agreements.
- Deposited legal fianza: Verification of the mandatory deposit of the fianza (security deposit) in the corresponding regional entity (for example, INCASÒL in Catalonia or IVIMA in Madrid). The lack of deposit can lead to administrative sanctions affecting the new buyer.
- Proof of solvency and payments: Bank certification or accounting receipts corresponding to the last twelve monthly payments made without delay.
- Contractual communications: Notifications of rent updates in accordance with the relevant government reference index.
- Waiver of the right of first refusal: A reliable document proving that the tenant has been informed of the conditions or has declined their preferred option to purchase the property.
It is also essential to request all documentation before signing an arras contract to legally secure the preliminary financial agreement.

The tenant's right of tanteo and retracto
By express legal provision of the Ley de Arrendamientos Urbanos, the tenant enjoys a right of preferential acquisition over the property they inhabit, unless there is a valid clause of express waiver included in the lease agreement itself.
The rights assisting the tenant are divided into two highly important operational phases:
The right of tanteo
Faced with a firm offer of acquisition, the selling owner is obliged by law to make a formal and reliable notification to the tenant, detailing the agreed price, payment terms, and other conditions of the transaction. The tenant has an non-extendable period of 30 calendar days from receipt of the communication to match the offer and exercise their preferential right of acquisition.
The right of retracto
If the owner formalizes the sale to a third party without making the prior notification of tanteo, bypassing it completely, or hiding essential data (e.g., selling for a price lower than that communicated to the tenant), the tenant may legally exercise the right of retracto. This allows them to subrogate to the position of the third-party buyer, canceling the sale made and keeping the property for themselves at the same price agreed with the buyer.
For the deed of sale to access the Property Registry (Registro de la Propiedad) without obstacles, the notary will require an express statement under public faith of the legal notifications carried out, or the provision of the tenant's formal waiver. It is essential to check the registry status of the asset beforehand to mitigate any risk of a judicial claim for retracto.
How to reflect the lease in the arras contract
The preparatory document for the sale must perfectly reflect the possessory status of the property. Under no circumstances should you use generic templates stating that the property is transferred "free of occupants and encumbrances" if a tenant lives in it.
To properly regulate the arras contract, the document must explicitly include:
- The detailed identification of the active lease agreement (date, tenant, terms, and validity).
- The total amount deposited as a mandatory fianza (security deposit), and the obligation to transfer said balance to the buyer at the time of signing.
- Compensation or voluntary vacancy agreements in case the seller has committed to delivering the property empty of tenants.
- The assumption of liabilities for unpaid utilities or other obligations incurred by the tenant prior to the signing of the deed.
Red flags when evaluating a rented property
You must take extreme precautions or pause the transaction if you detect any of the following operational or legal risk indicators:
- The lease agreement is classified as verbal or lacks written support with a reliable date.
- The seller confesses to receiving the usual monthly payments in cash, without issuing the mandatory formal payment receipts.
- There is no official proof of the fianza deposit with the regional regulatory body.
- When visiting the property, the presence of occupants other than the holders formally listed in the contract is verified.
- The seller offers vague verbal guarantees assuring that the tenant "will peacefully leave the property after signing at the notary."
- There is a manifest discrepancy between the official agreed sale price and the amount specified in the prior tanteo and retracto notification sent to the current tenant.
Frequently Asked Questions (FAQ)
Does the sale of a property in itself terminate the lease?
Not in a general way. The new owner of the apartment legally subrogates to the condition of the former landlord and must obligatorily respect all active clauses during the minimum periods dictated by the LAU.
Can I buy an apartment with a tenant if my intention is to live in it?
Yes, but at your own risk regarding the legal duration of the contract. You will not be able to physically access the property immediately. You must wait for the legal terms to be met or condition the final signing of the contract on the seller formalizing and definitively obtaining an early termination by mutual agreement with the handover of keys.
Is the new buyer authorized to increase the rent amount?
No. The buyer is obliged to respect the financial terms of the contract agreed upon by their predecessor. They may only carry out annual updates using the CPI (IPC) or the regulatory index authorized by sector law, if this was stated in the original clauses.
Does the tenant have the power to veto or prevent the sale of the property?
No, the tenant cannot prohibit the owner from freely transferring their assets. However, they do legally hold the preferential right of acquisition through the legal figures of tanteo and retracto, unless there is an explicit waiver agreement in their contract.
Must the fianza be regulated in the transfer?
Yes, as a matter of priority. The buyer will hold the legal ownership of the rental relationship, becoming the final debtor to the tenant for the return of the fianza balance at the end of the contract. Therefore, this liquid capital must be deducted from the price at the time of the public deed or officially transferred between the regional deposit accounts.
Before signing an arras contract
If you are considering a purchase in Barcelona, review the complete guide: Buying an apartment in Barcelona without surprises.

Conclusion
Proceeding with the acquisition of a real estate property subject to an active lease requires performing deep legal and financial due diligence. The risks of not expertly analyzing the lease agreement can lead to assuming locked-in and indefinite contracts, legal claims for preferential acquisition rights, or the inability to live in your new home for years.
If you need to guarantee your legal peace of mind before making any reservation or arras payment, contact expert professionals in the field. At INMODOCS, we comprehensively analyze the lease agreement, its actual extensions, the validity of regional fianza deposits, and prior notifications of preferential acquisition.
No risk such a crucial transaction. To proceed with absolute guarantees of success in the transfer and avoid conflicts, analyzing the rental contract with our team of consultants is the best legal decision.
Disclaimer: This article offers general informative guidelines on Spanish regulations and does not constitute personalized advice. Each case requires a detailed study taking into account the exact contractual text, the applicable legislation based on its chronology, and the specific circumstances of the case.
