Can I change the locks in my Barcelona rental?
Yes. Once you hold a tenancy, the flat is your home, and you can change the lock cylinder from day one without asking the landlord. Spanish legal and property sources are consistent on this: the tenant may swap the lock, does not need the owner's consent, and simply covers the cost. The right exists to protect your safety, since you can never be sure who held a key before you.
What you're usually changing is the bombín, the removable cylinder the key turns, rather than the whole lock body or the door. That's a quick job for a locksmith, and it's reversible: keep the original cylinder in a drawer so you can put it back later. The one thing to check first is your contract, because some leases add a clause asking you to tell the landlord or hand over a key, and a written promise can bind you even where the default law doesn't.
This is general guidance for renters, not legal advice. Rental law and each contract differ, so check your own lease and confirm anything specific with the Ajuntament, a tenant advice office or a qualified lawyer before you act.
Do I have to give my landlord a copy of the new keys?
No, not while the contract is running. Spanish reporting on tenant rights is explicit that if you change the lock you are not obliged to give the owner a copy of the new keys during the tenancy. The reason sits in the Constitution: article 18.2 makes the home inviolable, so nobody may enter without the consent of the people living there, owner included.
That is the same principle that stops a landlord letting themselves in to "check on things". Holding the title deed does not give the owner a key to your daily life. The practical exception is repairs the landlord is legally responsible for: you have to allow reasonable access to fix a genuine problem, arranged in advance rather than sprung on you. We cover how that access works in the guide on whether your landlord can enter the flat.
Can my landlord change the locks on me?
No, and this is where owners get into serious trouble. While a valid tenancy exists, a landlord cannot lock you out, even for unpaid rent. Changing the lock while you're not there to force you out can be treated as the crime of coercion (coacciones) under article 172 of the Spanish Criminal Code, which carries a prison term of six months to three years or a fine, and entering without consent can amount to trespass of the home (allanamiento de morada).
If a landlord wants the flat back, whether for non-payment, an expired contract or another legal cause, the only lawful route is a court eviction (desahucio). A locked-out tenant should not force their own way back in either; the right move is to keep evidence and get advice fast. Llavai only ever works with licensed agencies rather than private landlords, which cuts out a lot of the informal, rules-optional behaviour that leads to lock-out threats in the first place.
How much does changing a lock cost in Barcelona?
Budget somewhere around €150 for a standard cylinder and up to €250 for a high-security one, based on 2025 locksmith pricing across Spain. Swapping just the bombín is far cheaper than replacing a whole security lock, and doing it in daylight on a normal weekday costs far less than an out-of-hours emergency call, where rates can double.
| Job | Rough price (2025) | Notes |
|---|---|---|
| Standard cylinder (bombín) swap | Around €150 (often €150–200) | The common job for a rented flat; reversible. |
| High-security anti-bumping cylinder | €150–250 | Certified cylinder; more resistant to picking. |
| Locksmith labour | €40–70 per hour | Plus a call-out charge on top. |
| Call-out fee | €30–40 | Emergency or night/holiday rates can double the total. |
Two tips keep the bill sane. First, buy the cylinder yourself from a hardware shop if you're comfortable measuring the door, since it's the labour and urgency that inflate quotes. Second, avoid the flashing-advert emergency locksmiths for a planned change; a local, reviewed cerrajero booked a day ahead is cheaper and less likely to oversell you.
Should I change the lock when I move in?
It's a fair call for peace of mind, especially in a shared building. When you take over a flat you rarely know how many keys are out there: former tenants, the cleaner, the previous owner, an agency, the odd neighbour who watered the plants. Changing the cylinder is the only way to be sure the set you hold is the only set that works.
Weigh it against the cost and your situation. A brand-new build handed over by a single agency is lower risk than a flat that's turned over several tenants. Whatever you decide, do it cleanly:
- Check the contract first for any clause about notifying the landlord or providing a key, and follow it if it's there.
- Keep the original cylinder and its keys in a safe place so you can refit them when you leave.
- Use a reputable locksmith and keep the receipt; it's proof of what you fitted and what it cost.
- Note it in your move-in record alongside the meter readings and photos in your inventory and key handover.
What do I do with the locks when I move out?
Put the flat back the way you got it. Under Spanish rules the tenant returns the property in its original condition, so if you fitted a new cylinder you refit the original one and hand back every key, unless you and the landlord agreed in writing to leave the new lock in place. Leaving an unagreed lock is the kind of change a landlord can charge you to reverse.
That charge comes straight out of your fianza. If you can't restore the original lock, or you hand back fewer keys than you were given, the landlord may deduct the cost of putting things right from your deposit. Line the keys up with the rest of your exit so nothing gets held back: our guide to getting your fianza back walks through the handover, and the moving-out checklist covers everything else on the last day. If you're only now lining up the next place, let Llavai run your Barcelona search so the new keys are sorted before you hand the old ones back.