FAQs

Keypad Door Locks and What to Do If You Forget the Code

What to do when you forget the code on a keypad door lock or key safe, why a reset depends on the model, what a factory reset wipes, and when a locksmith is the safe option.

Illustration of a door with a keypad lock, an override key and a spare set of batteries

Forgetting the code to your door or gate is frustrating but it is usually fixable without replacing the lock. Knowing how to reset code locks depends entirely on the make and model of the keypad. Finding the manufacturer instructions is your first step to getting back inside.

Find the make and model first

The right fix depends on the make and model of the lock, so step back from the door and look for a brand name and model number. Finding the manufacturer's instructions is a better use of your time than trying random codes.

Check for a key override

Before you start looking up reset instructions, check if the lock has a physical keyhole. Some keypad locks have a key override for exactly this situation, and the keyhole may be covered, so check the manufacturer's instructions.

If you have the physical key on your key ring or hidden in a safe place, using the key is the simplest way in. Once the door is open you can take your time to reprogram the lock from the inside.

If you do not have the key, or if your lock is completely keyless, you will need to reset the system. Do not try to force the handle or pry the keypad off the door. This will break the lock and could damage the door itself.

The difference between master codes and user codes

To understand how to get back into your lock you need to know the difference between the two types of code it uses. The master code is the main administrative password for the lock. You use the master code to set up the device, change settings and add or delete other codes.

User codes are the everyday passcodes you give to family members, staff or guests so they can open the door.

If you have just forgotten a user code but still know the master code, you do not need to reset the whole lock. You can simply use the master code to delete the forgotten user code and create a new one. If you have forgotten the master code itself, the only way to change it is to carry out a factory reset. A forgotten master code usually means you need access to the back of the lock.

What happens during a factory reset

A factory reset returns the lock to its original settings, and on the locks covered by the manufacturer pages it clears every user code. It is the usual way to regain control of a lock when the master code is lost.

Taking a smart lock as one example, such as a Google Nest x Yale lock, a factory reset means all user passcodes including the master passcode are deleted. All programming features return to their original default settings. Because every code is wiped out, you must create a new master passcode on the lock before setting it up again with the smartphone app.

When a standard digital lock is reset, the lock goes back to the original factory code set by the manufacturer. You should never rely on this default code to keep your door secure. Default codes are easy to find, so change the default straight away and set your own secure master code. Do not rely on default codes or reset steps from random websites.

Why reset steps depend on your exact model

There is no single method that works for every keypad lock on the market. The steps to perform a factory reset are different for every manufacturer and often vary between different models made by the same brand. You must find the specific model number of your lock to get the right instructions.

For many locks, a factory reset requires access to the batteries at the back of the lock. This means you need to be on the inside of the door to take the battery cover off. If you are locked outside and have no other way into the building, you will not be able to perform this reset yourself. A locksmith can get you inside, and you can ask how entry will be gained and whether drilling is likely before they start. Once you are in, you can take the battery cover off and start the reset process.

The Codelocks support page notes that different lock models have different factory default codes. Their instructions show that the only other way a master code could be changed without a reset is if the person already has the existing master code. Do not follow button sequences from random websites. Use the manufacturer's instructions for your model.

Always use the right batteries when you put the lock back together. It is recommended to use 1.5v alkaline batteries, ideally a premium brand rather than a cheaper alternative. The higher the battery capability the greater the battery life.

What to do if you forget a key safe or digital safe code

If you have forgotten the code to a key safe or digital safe, you will usually need a professional. The Master Locksmiths Association (MLA) says digital safes can be opened if you have forgotten the code, and that the cost depends on the security level and the time required.

Most of the time an outdoor key safe can be opened if you have forgotten the keypad code. The MLA says a locksmith will be able to manipulate the combination lock, so the key safe may not need to be damaged. You can read more about choosing police approved key safes to ensure your spare keys remain secure.

Sometimes a locksmith may have to resort to drilling the outdoor safe if manipulation is not possible. Drilling will damage the key safe. The MLA also says sometimes buying a new outdoor key safe is cheaper, so ask for both options. The MLA gives no price for this work.

The MLA says drilling is often the only way to open a good quality digital lock. Ask the locksmith what that would mean for the safe before you agree.

When to call a locksmith for a keypad lock

You will need to call a locksmith if you are locked outside and the reset needs access to the inside of the door. A locksmith can get you inside. Once inside, you can take the battery cover off and follow the manufacturer's instructions to reset the keypad.

You should also call a professional if changing the batteries does not bring the lock back to life. A local locksmith can look at the lock and help you when:

  • The keypad buttons are physically stuck or damaged.
  • The lock mechanism makes a grinding noise but does not open the door.
  • The reset needs access to the inside of the door and you are locked outside.
  • The key override cylinder is jammed or you have lost the physical key.

If you live in a rented property, the lock on your front door belongs to your landlord. A landlord who changes the locks to keep a tenant out without a court order commits illegal eviction, which is a criminal offence. As a tenant, you should check with your landlord before changing locks or carrying out a master reset.

When choosing a locksmith, look for a real local address and check their reviews over time. There is no government licensing of locksmiths in the UK, which means anyone can trade as one. The Master Locksmiths Association (MLA) runs a voluntary approval scheme where approved companies are vetted, have criminal record checks and employ locksmiths who have passed an exam.

You should watch out for national call centres advertising as a local locksmith and passing the job to whoever is nearest. A common warning sign is a very low price quoted on the phone that multiplies as soon as the tradesperson arrives on the doorstep. A rogue operator might insist on cash only, provide no invoice, refuse to show ID and arrive in an unmarked vehicle. They may also drill a lock that could have been opened without damage, forcing you to buy an expensive replacement.

Under the Consumer Contracts Regulations 2013, there is normally a 14-day cancellation period for work arranged at home or by phone. This does not apply where you specifically ask for a visit for urgent repairs, such as being locked out. Extra work sold during that visit, like upgrading other door locks, is not covered by the exception.

What a locksmith will charge to open your door

Locksmiths usually price jobs as labour plus parts, either by the hour or as a fixed price per job. The price is driven by the time of day, your location, the type of lock and how entry is gained. Evenings, nights, weekends and bank holidays cost more than a standard weekday visit. You should always ask for a clear breakdown of costs before you agree to a visit.

The table below shows starting prices for unlocking a door and for replacing a night latch.

Locksmith service

Estimated time

Typical starting price

Locked out, unlock house and open door

About 30 minutes

From £90

Replacing a night latch on a wooden door

About 30 minutes

From £116

The MLA prices do not list keypad locks, so these figures give general context for a lockout visit rather than a price for any keypad job.

These are 2026 'from' prices including VAT, and your local quote will differ. The MLA notes that charges may also be subject to VAT if the locksmith is VAT-registered, so you should always ask whether VAT is included in the price of any work.

Your location in the UK will also affect the final bill. Locksmith prices in London and some surrounding areas are typically around 20 to 25% higher than the national estimates. Many locksmiths charge no separate call-out fee but some do, so you must ask for a total price before any work starts.

The type of lock you have fitted will also dictate the price of any replacement parts. For timber doors, BS3621 is the British Standard for mortice and rim locks, shown by a Kitemark on the lock faceplate. If your keypad operates a multipoint locking mechanism on a uPVC door, you might need a new euro cylinder. The snap-resistant standards for these are TS007 three-star or Sold Secure SS312 Diamond. Insurers often ask what locks are fitted, so you should check your own policy wording before fitting a digital lock.

For opening a digital safe, there is no price structure that locksmiths have to follow. The MLA safe opening page states that the cost depends on the security level and time required. You will need to get a specific quote from a local locksmith based on the make and model of your safe.

How to stop a forgotten code locking you out again

Being locked out is stressful and time-consuming. Once you have reset your lock and have the door open, you should put a few simple habits in place to ensure it does not happen again. Taking a few minutes now will save you a lot of trouble in the future.

If you are upgrading your security, you can read our guide on what to check before fitting a smart door lock. Whether you have a mechanical keypad or a smart lock, follow these steps:

  • Change the default factory code immediately after a reset so nobody else can guess it.
  • Store the master code safely in a secure password manager or a written document hidden inside your home.
  • Set up separate user codes for yourself and your family members so the master code is rarely needed.
  • Keep a spare physical key somewhere safe, such as with a trusted neighbour or family member.
  • Change a user code immediately after sharing it with a temporary visitor or tradesperson.
  • Replace the batteries as soon as the lock shows a low battery warning to prevent a power failure lockout.

Under the Consumer Rights Act 2015, any installation or repair service must be carried out with reasonable care and skill. If you hire a locksmith to fit a new keypad lock and the work is poor, you have a right to have the poor work put right or your money back. Make sure you get a written invoice showing the company name and address so you have proof of the work.

Common questions

Can I reset a keypad lock from the outside?

On some locks a factory reset needs access to the batteries at the back of the lock, which means being inside the door. If you are locked outside and have forgotten the code, you will need a physical key or a locksmith to get you in.

Will removing the batteries reset the lock code?

Not necessarily. Some locks need access to the batteries as part of a factory reset, but the steps differ by make and model, so follow the manufacturer's instructions.

How long does a keypad lockout last?

This depends on the make and model of your lock, so check the manufacturer's instructions rather than testing it by guessing.

Can a locksmith open a digital door lock without breaking it?

Often, but it depends on the lock. Ask the locksmith how entry will be gained and whether drilling is likely before they start.

Your next steps

Before you pay for a professional or attempt to force the door, run through this short checklist. Taking the right steps in order will keep your property secure and save you money.

  • Look for a physical keyhole on the keypad and check if you have the override key.
  • Find the brand name on the lock and search for the model number online.
  • Read the manufacturer instructions to see if a factory reset requires access to the inside of the door.
  • Check your tenancy agreement and ask your landlord before altering any locks if you rent your home.
  • Get a total price including parts, VAT and any out-of-hours charge before you hire a professional.

If you are stuck outside and the reset needs access to the inside of the door, you will need professional help to get in. You can find a locksmith near you to get you back inside quickly and safely.

Find a top rated locksmith near you

1,787 locksmiths across the UK, each ranked on their Google rating and the number of reviews behind it. Start with your county:

All counties and towns · The UK Top 100 locksmiths

Louise Harding
Written by

Louise is a writer and editor for Top Rated Locksmiths, covering locks, home security and lockouts. When she's not writing guides, she plays five-a-side on Tuesday nights.

Looking for a trusted locksmith? Browse our verified listings.

Find a Locksmith