Renting · · 23 min read
Leaving a rented flat before the contract ends in Spain in 2026: tenant withdrawal, 30 days’ notice, compensation, deposit and what changed with Royal Decree-law 29/2026
When you can leave a rented flat in Spain before the contract ends and how to do it properly: withdrawal after six months with 30 days’ notice, the compensation that can no longer be agreed since 8 October 2026, what happens before six months, contracts from before 2013 and 2019, temporary housing and rooms, the burofax, handing back the keys and the deposit, assignment and subletting, work transfers and what depends on the 12 November vote.

“I’ve got a job in another city”, “we’ve found a bigger place”, “I can’t keep up with this rent any more”. There are many reasons for wanting to leave a rented flat before the contract ends, and they nearly always come with the same questions: can I leave whenever I want? How much notice do I have to give? Do I have to pay a penalty? Will I get my deposit back? In Spain’s Urban Leases Act (LAU, Ley de Arrendamientos Urbanos), leaving early has a name: desistimiento, the tenant’s withdrawal from the contract. And in October 2026 its best-known rule changed.
In this guide we explain, using the rules published in the BOE (Spain’s Official State Gazette) as of 31 October 2026, when you can withdraw and how to give notice, what happens if you have been there less than six months, why the date you signed matters, what happens with temporary housing and rooms, how to get your deposit back and whether you can leave someone else in your place. What happens when the contract reaches its end is covered in “Your Rental Contract in Spain Is Ending in 2026…”; here we talk about leaving early.
The essentials in one minute
- In a main-home lease you can leave before the contract ends once six months have passed, giving at least 30 days’ notice (LAU, article 11.1), with no need to give reasons.
- Since 8 October 2026, that withdrawal gives the landlord no right to compensation (article 11.3, as worded by Royal Decree-law 29/2026). Before, the parties could agree one month’s rent for each year remaining, pro rata.
- In temporary housing (for work, studies or another specific reason), you can leave once a month has passed since signing, with ten days’ notice and no compensation.
- Before six months, the law does not protect you: leaving is a breach of contract and the landlord can claim the losses it causes. Negotiating works best.
- If your contract predates 8 October and has a compensation clause, the decree does not say expressly what happens to it. Get advice before you leave.
- Give notice in a way that proves content and date, such as a burofax. When you hand over the keys, put the condition of the home in writing: from that day there is one month to return your deposit.
What withdrawing means and what the law says today
Withdrawing means ending the contract on your own initiative before the agreed date. For a main home, the LAU has allowed it since 2013 on two conditions: a minimum time on the contract and advance notice. This is what article 11 says today:
The tenant may withdraw from the lease contract once at least six months have passed, provided that they notify the landlord at least thirty days in advance.
Urban Leases Act, article 11.1 (our translation)
Note three things. You do not need to explain why you are leaving. The 30 days are a minimum: you can give more notice, but the contract cannot require longer, because article 6 of the LAU declares void any clause that leaves the tenant worse off than the law, unless the rule itself allows it. According to the lawyer interviewed by elDiario.es, the contract can set a shorter notice period. And while the notice runs, the contract remains in force and rent is paid up to the date you leave.
The October 2026 change is in paragraph 3 of the same article:
In the two preceding paragraphs, the tenant’s withdrawal exercised in this way shall not give rise to any right to compensation in favour of the landlord.
Urban Leases Act, article 11.3, as worded by Royal Decree-law 29/2026 (our translation)
“Exercised in this way” means meeting the conditions: six months and 30 days for a main home, or one month and ten days for temporary housing. The BOE note on this article says its current wording comes from article 3.9 of Royal Decree-law 29/2026, published on 7 October and in force since the 8th. It had previously been amended by Royal Decree-law 26/2026, repealed when Congress did not validate it on 2 October (OCU, the Spanish consumers’ organisation); according to Garrigues, the new decree keeps what the earlier one said about temporary and room lets.
What used to be paid: agreed compensation
In contracts signed between 6 June 2013 and 7 October 2026, article 11 added that the parties could agree that a tenant who withdrew would compensate the landlord with one month of the current rent for each year of the contract left to run, and that periods of less than a year gave rise to the proportional part. Three keys: it was only owed if the contract said so; one month per year was the maximum; and it was calculated in proportion to the time left. With that wording and rent of €1,000 a month, it worked out like this:
| Agreed contract term | When you leave | Time left | Maximum compensation, if agreed |
|---|---|---|---|
| 1 year | After 6 months | 6 months (half a year) | €500 |
| 1 year | After 9 months | 3 months (a quarter of a year) | €250 |
| 3 years | After 18 months | 18 months (a year and a half) | €1,500 |
| 5 years | After 2 years | 3 years | €3,000 |
Examples using the wording of article 11 introduced by Law 4/2013 and rent of €1,000/month. How the time left is counted in one-year contracts that roll over is disputed; the one-year example follows the one given by the lawyer interviewed by elDiario.es (3-8-2026). In contracts signed since 8-10-2026, €0.
What if your contract predates 8 October and has that clause?
As of 31 October 2026, this question has no settled answer. Royal Decree-law 29/2026 does not say expressly what happens to compensation clauses in main-home contracts signed earlier: according to Sepín’s analysis, its transitional rules refer to seasonal contracts. Earlier reforms of the LAU did address it: both Law 4/2013 and Royal Decree-law 7/2019 provided that contracts entered into before they came into force “will continue to be governed by the legal regime that applied to them”.
So there are two possible readings, and we are not yet aware of any court decisions on them: that the signed clause still holds, because the contract is governed by the law of its date, or that it cannot apply to withdrawals after 8 October, because the law no longer allows that compensation. If your contract includes it, work out what it would mean, talk to the landlord before giving notice and, if a lot of money is at stake, consult a lawyer.
Older contracts: why the signing date matters
The LAU has changed several times, and with each reform the general rule has been that contracts stay under the law in force when they were signed. Before you leave, find the date of your contract:
| If you signed… | When you can withdraw | Notice | Compensation | Minimum term |
|---|---|---|---|---|
| Under the 1994 LAU, up to 5-6-2013 | Only in contracts agreed for more than 5 years and once they have lasted at least 5 | 2 months | Could be agreed: 1 month per year remaining, pro rata | 5 years, with annual renewals |
| From 6-6-2013 to 5-3-2019 (Law 4/2013) | After 6 months | 30 days | Could be agreed: 1 month per year remaining, pro rata | 3 years, plus 1 year’s renewal |
| From 6-3-2019 to 7-10-2026 (Royal Decree-law 7/2019) | After 6 months | 30 days | Could be agreed: 1 month per year remaining, pro rata (see the previous section) | 5 years, or 7 if the landlord is a company, plus up to 3 years’ renewal |
| Since 8-10-2026 (Royal Decree-law 29/2026) | After 6 months | 30 days | No | 5 years, or 7 if the landlord is a company |
| Temporary housing, since 8-10-2026 | 1 month after signing | 10 days | No | More than 31 days and, as a general rule, up to 12 months |
LAU, articles 9, 10 and 11, in each version published in the BOE (2010 text, Law 4/2013, Royal Decree-law 7/2019 and consolidated text of 7-10-2026).
If your contract dates from before June 2013 and was agreed for five years or less, article 11 as it then stood did not allow you to withdraw mid-contract, but you could choose not to renew at the end of each year, giving 30 days’ notice. Today most of those contracts have gone past their legal term, and we explain their rules in “Your Rental Contract in Spain Is Ending in 2026…”.
Not renewing at the end of the year is not the same as withdrawing
In contracts signed since March 2019, during the first five years (seven if the landlord is a company), a contract agreed for a shorter term renews each year, compulsorily for the landlord but not for you: article 9.1 says the renewal takes place “unless the tenant informs the landlord, at least thirty days before the end date of the contract or of any of the renewals, of their wish not to renew it”.
If you signed for one year on 1 March 2026 and want to leave when that year is up, it is enough for the landlord to receive your notice at least 30 days before 1 March 2027. This is not a withdrawal, and the law provides for no compensation; leaving mid-year, on the other hand, is. If the anniversary of your contract is only a few weeks away, compare the two options.
If you have been there less than six months
Before six months, the LAU does not recognise a right to withdraw. If you leave anyway, you are in breach of contract and the general rules of the Civil Code on breach come into play (articles 1101 and 1124), as lawyer Antonio Navarro Selfa explains in Law&Trends (14-10-2026). The landlord can claim the damages your departure causes, and the decree does not regulate this case.
How much? The law gives no figure. According to lawyer Juan Ortolá, interviewed by elDiario.es (3-8-2026), some courts hold that the tenant must pay the months left until six are reached, and the Supreme Court considers that the loss actually caused must be compensated: if the landlord re-lets quickly, it need not be every month. The same lawyer points out that force majeure, which could release you, is interpreted very narrowly and does not include losing your job or being transferred.
Negotiating works best: propose a date, offer to pay until a new tenant moves in, help find one or agree an amount, and put it in writing with the leaving date and how the deposit will be returned.
Temporary housing, seasonal lets and rooms
Since 8 October 2026, the LAU regulates temporary housing: that of someone who is “temporarily away from their usual home, for a justified and provable reason” (article 2.3), such as a job or studies in another city. The contract must state that reason, which has to be “real and provable”, and it is for the landlord to prove it (article 7.2). For these contracts, article 11 has its own rule:
In temporary housing lease contracts, the tenant may withdraw from the contract once at least one month has passed since it was signed, provided that they notify the landlord at least ten days in advance.
Urban Leases Act, article 11.2 (our translation)
Here too there is no compensation (article 11.3). And, according to the Law&Trends analysis, if the reason is not properly stated in a temporary contract, it loses its temporary nature and is governed by the main-home rules from the day it was signed; the six months and 30 days would then apply.
What about “seasonal” contracts (de temporada) signed before 8 October? The law treated them as leases for a use other than housing, governed by what was agreed, failing that by title III of the LAU and, in the alternative, by the Civil Code (article 4.3). According to Sepín and Law&Trends, they keep that regime until the end of the agreed term and then expire with no renewal. If you want to leave early, check what your contract says about early departure; if it says nothing, you have no legal right to withdraw like the one for housing, and it is a matter for negotiation.
Rooms are similar. Since 8 October, the LAU expressly includes renting a room, which will be a main home or temporary housing depending on its purpose, so the article 11 rules we have just seen apply. For earlier room contracts, many signed under the Civil Code, it is not clear whether those minimums now apply, as we explain in “Renting a Room in Spain in 2026…”; the reference point is what you signed.
How to tell the landlord you are leaving
The law does not require a particular format, but it does require the landlord to receive the notice with the minimum advance. If there is ever a disagreement, you are the one who will have to prove you gave notice in time. So use a method that records the content and the date:
- Burofax: according to Correos, it certifies sending, delivery and content. It can be sent online.
- Registered letter with acknowledgement of receipt: it records delivery and the date of receipt but, according to Correos, does not certify the content of the letter.
- Email: it may be valid if the contract sets an address for notices, according to the lawyer interviewed by elDiario.es.
- By hand: take two copies of the letter and ask the landlord to sign yours to confirm receipt, with the date.
- Instant messaging, or only to the agency: better not. If the agency does not act on the landlord’s behalf, send it to the landlord too.
A short letter is enough, including:
- Your details, the landlord’s, the address of the home and the date of the contract.
- That you are withdrawing under article 11.1 of the LAU (or 11.2 for temporary housing).
- The exact date you will leave the home and hand back the keys, at least 30 days (or 10) after the notice reaches the landlord.
- Your proposal to check the home together on that day, and the account for returning your deposit.
If you live with your spouse and only you signed the contract, bear in mind article 12 of the LAU: if you withdraw without their consent, the lease can continue in their favour. The landlord can ask them to say what they want to do and, if they do not reply within fifteen days, the contract ends. The law has similar rules for a partner you live with.
Moving out: keys, condition of the home and deposit
The day you leave matters as much as the notice, because handing back the keys starts the clock on the deposit. According to the Madrid regional government, the landlord must return it within one month of the contract ending and the keys being handed back.
Since 8 October 2026 there is also a new rule on the condition of the home at the end. The preamble of Royal Decree-law 29/2026 says it strengthens the “record of the condition of the home at the end of the contract”. According to Sepín’s analysis (15-10-2026), at the end of the contract the condition of the home must be recorded in writing in a document signed by both parties and, if it is not signed or does not list any damage, it is presumed, unless proven otherwise, that the tenant returned it in good condition.
The deposit covers what you owe at the end, such as unpaid rent or utilities or damage beyond normal wear and tear, not a penalty for leaving if you have withdrawn as the law sets out. This is what to settle on the last day:
| What | How to put it in writing | What it is for |
|---|---|---|
| Condition of each room | Dated photos or video, compared with the move-in inventory if there was one | Telling normal wear and tear from damage |
| Furniture and appliances | List of what stays and whether it works | Avoiding deductions for something that was already like that |
| Electricity, water and gas meters | Reading and photo of each meter | Splitting the last bills correctly |
| Keys and remotes | How many you hand over, to whom and on what day | Fixing the day the deposit month starts |
| Move-out document | Signed by both, with the date, the condition of the home and anything agreed | Since 8-10-2026, if it lists no damage, the home is presumed returned in good condition, unless proven otherwise |
In the Madrid region, the landlord lodges the deposit with the Social Housing Agency (Agencia de Vivienda Social) and reclaims it at the end of the contract; in Catalonia, with INCASÒL. That does not change the deadline the landlord has with you; we cover it in “Rental Deposits in Madrid and Barcelona in 2026…”.
Leaving someone in your place: assignment and subletting
If you do not want to wait, or you have been there less than six months, a common way out is to propose someone to replace you. The LAU regulates two arrangements in article 8, and in practice there is a third:
- Assignment of the contract (cesión): another person takes your place in the same contract. You need the landlord’s written consent and, if given, the new tenant “will be subrogated to the position of the assignor with respect to the landlord”: they take on the contract as it stands.
- Subletting (subarriendo): it can only be partial, for example one room, and also requires written consent. The price cannot exceed the rent and the subtenant’s right ends when yours does, so it is no way to leave altogether.
- New contract: most often, you and the landlord agree to end yours and the landlord signs a new one with the person you put forward or with whoever they choose.
Assigning or subletting without that written consent is a breach of contract. You can put forward candidates; choosing is up to the landlord.
If you are leaving because of a work transfer
For a main home, the law has no special rule for a work transfer: article 11 applies, as for any other reason. If you have been there six months, you give 30 days’ notice and leave and, in contracts signed since 8 October, with no compensation. If less, the transfer does not exempt you: according to the lawyer interviewed by elDiario.es, it is not force majeure and the advice is to negotiate. Two ideas:
- Check whether your contract has a transfer or early-departure clause: if it favours you, it applies; if it leaves you worse off than the law, article 6 makes it void.
- If you rent for a set period in the new city, check whether it fits as temporary housing: the reason must be stated in the contract and you will be able to withdraw after a month with ten days’ notice.
What the landlord can do
If you are a landlord and your tenant tells you they are leaving, these are your options within the law:
- Check that the notice meets the deadlines. If it does, the contract ends on the date given without your agreement being needed.
- Collect rent up to the leaving date and check the home with the tenant that day, with a condition document signed by both.
- Return the deposit within one month of the keys being handed back, deducting only what you can justify.
- For contracts predating 8 October with a compensation clause, assess with a lawyer whether it is enforceable before claiming it, because the decree does not make this clear.
- If the tenant leaves before six months, claim the losses it causes you; re-letting quickly reduces them and, according to elDiario.es, the courts take this into account.
- Accept or refuse an assignment or a replacement, in writing, and, if the tenant lived with their spouse, ask the spouse whether they want to stay (article 12).
What you cannot do is require longer notice than the law provides or keep the deposit without justifying the deductions.
Does anything change with the 12 November vote?
As of 31 October 2026, the rule that withdrawal gives rise to no compensation has been in force since 8 October, but it depends on Royal Decree-law 29/2026 being validated. As Parliament has been dissolved for the general election on 29 November, the vote falls to the Standing Committee of the Congress of Deputies and, according to EFE (27-10-2026), it is scheduled for 12 November.
If it is validated, article 11 stays as it is today. If not, the decree would be repealed from the day the decision is published in the BOE, as happened with Royal Decree-law 26/2026, and, going forward, article 11 would revert to its previous wording: six months, 30 days and the option of agreeing compensation, without the specific rule for temporary housing. The decree does not say what would happen to notices sent while it was in force.
The other decree of 6 October, Royal Decree-law 28/2026, only amends article 10 of the LAU, on renewal at the end of the contract, and does not touch withdrawal. Its text says it will come into force on 15 November 2026, and it is also awaiting validation.
How we do it at Llavely
Leaving early goes better when everything has been in writing from the start. Llavely is renting in reverse: the tenant creates a verified profile once, and it is landlords and agencies who invite them to view their home. Our team checks identity and income; the documents are deleted afterwards and only the result is kept. Landlord and tenant talk through the chat and sign the contract on the website, so the start date and what you agreed are on record. When you move in, the landlord carries out the photo inventory on Llavely, covering every room and the meter readings, and the tenant reviews it and either accepts it or notes anything that does not match; it can be printed or saved as a PDF. At the end, the home is compared with that inventory and nobody has to argue from memory about what was already there.
If you are a landlord and your tenant leaves, you can list the home again for free and see verified candidates ranked by affinity. If you are a tenant and moving, you receive invitations without proving the same things for every listing. Llavely does not handle payments: rent and deposit are paid directly to the landlord. A member of our team reviews every home in under 24 hours before it is published. Renting is open in the provinces of Madrid and Barcelona and is free, with all features, for tenants, landlords and agencies; for tenants, always free. In the rest of Spain you can join the waiting list with your areas and we will let you know when we open.
If you are looking for your next flat, create your profile for free. If you have a home to let, list it for free. And if you are thinking of selling a home in the Madrid region, you can also do it with us for 2.5% + VAT, all included, and ask for your free valuation.
Frequently asked questions
Can I leave a rented flat in Spain before the contract ends?
Yes, if it is your main home and at least six months of the contract have passed, giving 30 days’ notice and with no need to give reasons (LAU, article 11.1). In temporary housing, once a month has passed since signing and with ten days’ notice.
How much notice do I have to give my landlord to leave?
At least 30 days for a main home and ten for temporary housing. The contract cannot require longer notice, because article 6 of the LAU voids clauses that harm the tenant. While the notice runs, you keep paying the rent.
Do I have to pay compensation if I leave before the contract ends?
If you withdraw after the six months and with proper notice, since 8 October 2026 the law says the landlord is owed no compensation. Before, it was only owed if agreed, up to one month’s rent per year remaining, pro rata, and the decree does not clarify what happens to those clauses in earlier contracts. The rule depends on the validation vote scheduled for 12 November.
What happens if I leave the flat before six months?
The law gives you no right to leave earlier, so it is a breach of contract and the landlord can claim the losses it causes. Some courts have held that rent must be paid up to six months; the Supreme Court looks at the actual loss. It is best to negotiate an exit in writing.
Can the landlord keep my deposit if I leave early?
The deposit covers what you owe when you leave, such as unpaid rent or damage beyond normal wear and tear, not a penalty if you have withdrawn as the law sets out. It must be returned within one month of handing back the keys; put the condition of the home in writing that day.
Can I leave a seasonal let or a room early?
If yours is a temporary housing contract signed since 8 October 2026, yes: after one month, with ten days’ notice and no compensation. Earlier seasonal contracts keep their regime until the end of the agreed term, and what the contract says applies. Rooms let since 8 October follow the LAU; for earlier ones, what was signed.
How do I tell the landlord I am leaving the flat?
In writing, using a method that records content and date. The burofax is the most common because, according to Correos, it certifies sending, delivery and content. State the contract, that you are withdrawing under article 11 of the LAU and the exact leaving date.
Sources
- The Standing Committee validates the royal decree-law on the social function of housing and repeals the one on extending rental contracts for a main home (Congress of Deputies press release, in Spanish, 12 November 2026)
- Law 29/1994 of 24 November on Urban Leases (LAU), consolidated text: articles 2, 4, 6, 7, 8, 9, 11 and 12 (BOE – Spain’s Official State Gazette, last updated 7 October 2026)
- Law 29/1994 on Urban Leases, version of 23 December 2010: original articles 9 and 11 (BOE)
- Law 4/2013 of 4 June on measures to make the housing rental market more flexible and promote it: new article 11 and first transitional provision (BOE, 5 June 2013)
- Royal Decree-law 7/2019 of 1 March on urgent housing and rental measures, consolidated text: articles 9 and 10 of the LAU and first transitional provision (BOE)
- Royal Decree-law 29/2026 of 6 October adopting urgent measures to protect the social function of housing and expand the supply of affordable housing (BOE, 7 October 2026)
- Royal Decree-law 28/2026 of 6 October on urgent measures to strengthen the stability of main-home lease contracts, consolidated text (BOE, 7 October 2026)
- Rental deposits: lodging with the Social Housing Agency and return (Madrid regional government, last updated 28 October 2026)
- Registered letter or burofax? How to choose the right service (Correos, 9 June 2026)
- What has changed in the LAU 29/1994 after the publication of Royal Decree-law 29/2026?, by Félix López-Dávila Agüeros (Sepín, 15 October 2026)
- The reform of the Urban Leases Act by Royal Decree-law 29/2026 (I), by Antonio Navarro Selfa (Law&Trends, 14 October 2026)
- Regulation of housing and temporary housing leases in Royal Decree-law 29/2026 (Garrigues, 8 October 2026)
- How to leave a rental before the contract ends: the right of withdrawal explained by lawyer Juan Ortolá (elDiario.es, 3 August 2026)
- Congress expects to debate the housing decrees the day after the general strike (EFE in Infobae, 27 October 2026)
- Repeal of Royal Decree-laws 26/2026 and 27/2026: what happens to rentals (OCU, 2 October 2026)