Skip to content

Leaving a rented flat early

In a main-home tenancy you can leave once six months of the contract have passed, giving the landlord at least thirty days' notice. If your contract was signed on or after 8 October 2026, leaving this way gives no right to any compensation. If it was signed between 6 June 2013 and 7 October 2026, what your contract says applies: the law allowed agreeing at most one month's rent for each year remaining, and the proportional part if less remains.

Reviewed on 14 November 2026The Pisio team5 min read

When you can leave and how much notice you need

It depends on the date and type of your contract:

Main home, signed from 8-10-2026
After six months, with thirty days' notice. No compensation.LAU, art. 11.1 and 11.3
Main home, signed from 6-6-2013 to 7-10-2026
After six months, with thirty days' notice. Compensation only if the contract provides for it: up to one month's rent for each year remaining, and the proportional part if less remains.LAU, art. 11, 2013 version
Temporary home, signed from 8-10-2026
After one month, with ten days' notice. No compensation.LAU, art. 11.2 and 11.3
Main home, signed from 1-1-1995 to 5-6-2013
Only in contracts of more than five years, once five have passed, with two months' notice. Compensation only if the contract provides for it: up to one month's rent for each year remaining.LAU, art. 11, 1995 version

Each contract follows the law in force when it was signed: the transitional provisions of Law 4/2013 and Royal Decree-law 7/2019 say so, and the Civil Code says laws are not retroactive unless they provide otherwise. Royal Decree-law 29/2026, which removed the compensation, doesn't say it applies to earlier contracts.

When the six months start
The law doesn't say. The safe option is to count them from the date of the contract or, if you were given the home later, from that day, as the length of the contract is counted.LAU, art. 9.1
The notice
Thirty days is a minimum: you can give notice earlier.
Not renewing isn't leaving early
During the mandatory extension you can decide not to renew at the end of the contract or of each yearly extension, with thirty days' notice, and the law provides no compensation for that. If your contract provides for compensation and you are only a few weeks from the end of the year, check whether it is worth giving notice for that date.LAU, art. 9.1
End of contract and rental extensions

An example with numbers

David pays €900 a month and wants to leave 18 months into a contract signed for three years.

Signed on 1-11-2026
Gives thirty days' notice. Compensation: €0.
Signed on 1-3-2025, with a compensation clause
Gives thirty days' notice. A year and a half remains: at most €1,350.
Signed on 1-3-2025, without that clause
Gives thirty days' notice. Compensation: €0.
Rent€900
Time remaining1.5 years
Maximum€1,350

Compensation is calculated on the current rent and on the time remaining of the contract as signed, not of the extensions. If the contract agrees less, what was agreed applies. If it agrees more, the excess isn't valid: anything that worsens the law's rules for the tenant is void (LAU, art. 6).

Before six months

The law gives you no right to leave early before six months (one month for a temporary home). If you need to leave sooner:

Agree it with the landlord
A written agreement ending the contract, with the key handover date and what is paid, if anything.
Propose someone to take over
Assigning the contract requires the landlord's written consent; without it, you can't. If they accept, the person coming in replaces you in the contract.LAU, art. 8.1
Subletting doesn't work
The law only allows subletting part of the home, also with written consent, so it doesn't help you leave.LAU, art. 8.2
If you leave without agreement
The landlord can claim against you for breach of contract under the general rules of the Civil Code. What they can claim depends on the case.

When the reason lies with the landlord

There are cases in which you can leave because of something the landlord does or doesn't do:

They don't do the repairs
If they don't do the repairs needed for the home to stay habitable, or disturb your use of the home, you can terminate the contract.LAU, art. 27.3
They announce improvement works
They have to give you at least three months' notice. If the works affect you, during the month after their notice you can withdraw, and the contract ends two months later, with no works starting before then.LAU, art. 22.2
They breach the contract
You can demand that they comply or ask for termination.LAU, art. 27.1

In these cases it is best to put everything in writing, with dates.

How to give notice

In writing and dated
The law sets no form, but what matters is being able to prove the date the landlord received it. A burofax with content certification or registered post with proof of receipt will do. If you do it by email or message, keep the landlord's reply.
If your partner stays in the flat
If you leave without their consent, the contract can continue in their favour; the landlord can ask them to say whether they want to stay, and they have fifteen days to answer. This applies to a spouse and to a partner who has lived with you for at least two years or with whom you have children.LAU, art. 12

The letter, to copy

Change what's in brackets and send it with proof of receipt.

Template to end the contract early

For the attention of [name of the landlord or agency]. [City], [date].

Subject: early termination of the tenancy agreement for the home at [address].

In accordance with article 11 of the Urban Leases Act, I give notice that I am withdrawing from the contract signed on [signing date]. More than six months have passed since it was formalised. I will hand over the home and the keys on [date, at least thirty days after you receive this letter].

I suggest that on the handover day we check the home together and sign the end-of-tenancy document. The deposit can be returned to account [IBAN].

[Full name, ID number and signature]

The last month and the deposit

You keep paying
The rent, up to the handover date. The deposit can't be used to pay the last month: it covers the state of the home and anything left outstanding.
The end-of-tenancy document
When the contract ends, the state of the home is put in writing in a document signed by both of you. If it isn't signed, or records no damage, the home is presumed to have been returned in good condition unless proven otherwise.LAU, art. 36.7, since 8 October 2026
As you received it
Return the home as you received it, except for what has deteriorated with the passage of time or through unavoidable causes.Civil Code, art. 1561
The utilities
Cancel or transfer whatever is in your name as of the handover date, and keep the last meter reading.
The deposit
If a month passes after you hand over the keys without it being returned, it is owed to you with legal interest. If anything is deducted, ask in writing for the details of what is deducted and why.LAU, art. 36.4
How to get your rental deposit back

Get verified once. Open every door.

Every home in your areas, in one list. Your references go with you.

Building your profile and getting verified is free.

  • You upload your documents only once.
  • Agencies see your verified badge, not your documents.
  • Your documents are only seen by the agency you give permission to, and you can withdraw it.

What people ask most about leaving early.

Can I leave my rented flat before the contract ends?

Yes, once six months of the contract have passed, giving the landlord at least thirty days' notice. You don't need to give a reason.

Do I have to pay compensation if I leave early?

If your contract was signed on or after 8 October 2026, no. If it is earlier, only if the contract provides for it, and at most one month's rent for each year remaining, in proportion if less than a year remains.

What happens if I leave before six months?

The law doesn't give you that right. You can reach a written agreement with the landlord or propose someone to take over the contract, which they have to accept in writing. If you leave without agreement, they can claim against you for breach.

Can they keep the deposit if I leave early?

Not for leaving. The deposit covers damage and anything you owe. If anything is deducted, ask in writing for the details and the receipts.

How do I tell the landlord I'm leaving?

In writing and in a way that records the date they received it: burofax or registered post with proof of receipt. Give the date the contract was signed, say that six months have passed and the day you will hand over the keys.

Can I give less than thirty days' notice?

The legal minimum is thirty days. With less notice you don't meet the requirement and the landlord can claim against you for breach, unless they accept another date in writing. The safest option is to set the key handover at least thirty days after they receive your notice.

My contract says that if I leave early I lose two months of deposit. Is that valid?

Anything that worsens the law for the tenant is void. In contracts from before 8 October 2026, compensation is capped at one month's rent per year remaining; in later ones, there is no compensation. The deposit is still for damage and debts.

What if I have a seasonal contract?

If you signed it on or after 8 October 2026 as a temporary home, you can leave after one month, with ten days' notice, without compensation. If it is earlier, it keeps its own rules until the agreed end: check what your contract says.

Can I leave if the landlord doesn't fix a serious fault?

If they don't do the repairs needed for the home to be habitable, you can terminate the contract. First, tell them in writing and keep the evidence.

Can my partner stay in the flat if I leave?

Yes, if you live together and they haven't consented to your leaving, the contract can continue in their favour. If you aren't married, you need to have lived together for at least two years or to have children in common.

Sources

  1. Law 29/1994, de Arrendamientos Urbanos (BOE-A-1994-26003, consolidated text at 14-11-2026), art. 11, as worded by Royal Decree-law 29/2026 (art. 3.9), in force since 8-10-2026: "1. El arrendatario podrá desistir del contrato de arrendamiento, una vez que hayan transcurrido al menos seis meses, siempre que se lo comunique al arrendador con una antelación mínima de treinta días. 2. En los contratos de arrendamiento de vivienda temporal el arrendatario podrá desistir del contrato una vez que haya transcurrido al menos un mes desde su formalización, siempre que se lo comunique al arrendador con una antelación mínima de diez días. 3. En los dos apartados anteriores el desistimiento del arrendatario así ejercido no generará derecho de indemnización en favor del arrendador."
  2. LAU, art. 11, version in force from 6-6-2013 to 7-10-2026 (Law 4/2013): "Las partes podrán pactar en el contrato que, para el caso de desistimiento, deba el arrendatario indemnizar al arrendador con una cantidad equivalente a una mensualidad de la renta en vigor por cada año del contrato que reste por cumplir. Los períodos de tiempo inferiores al año darán lugar a la parte proporcional de la indemnización."
  3. LAU, art. 11, version of 1-1-1995: "En arrendamientos de duración pactada superior a cinco años, podrá el arrendatario desistir del contrato siempre que el mismo hubiere durado al menos cinco años y dé el correspondiente preaviso al arrendador con una antelación mínima de dos meses."
  4. LAU, arts. 6, 8.1 ("El contrato no se podrá ceder por el arrendatario sin el consentimiento escrito del arrendador. En caso de cesión, el cesionario se subrogará en la posición del cedente frente al arrendador."), 8.2 ("La vivienda arrendada sólo se podrá subarrendar de forma parcial y previo consentimiento escrito del arrendador."), 9.1, 12.1, 12.2 and 12.4, 22.2, 27.1 and 27.3, 36.4 and 36.7 (end-of-tenancy document, since 8-10-2026).
  5. Law 4/2013 (BOE-A-2013-5941) and Royal Decree-law 7/2019 (BOE-A-2019-3108), first transitional provisions: earlier contracts "continuarán rigiéndose por lo establecido en el régimen jurídico que les era de aplicación."
  6. Royal Decree-law 29/2026, of 6 October (BOE-A-2026-20823, in force on 8-10-2026, ratified: BOE-A-2026-23755): art. 3.9 (art. 11 LAU) and the eighth transitional provision it adds to the LAU, for earlier seasonal contracts, which keep "rigiéndose por lo establecido en el régimen jurídico que les era de aplicación hasta la finalización del plazo de duración pactado en el propio contrato".
  7. Civil Code (BOE-A-1889-4763, consolidated text), art. 2.3: "Las leyes no tendrán efecto retroactivo, si no dispusieren lo contrario."; art. 1561: "El arrendatario debe devolver la finca, al concluir el arriendo, tal como la recibió, salvo lo que hubiese perecido o se hubiera menoscabado por el tiempo o por causa inevitable."