Keypad and Code Locks

How to Program a Keypad Door Lock

Step-by-step guide to programming a keypad door lock: finding the master code, changing it, adding and deleting user codes, and fixing common problems.

On this page
  1. Programming a keypad lock: the short version
  2. Before you start
  3. Step 1: Find the master code
  4. Step 2: Enter programming mode
  5. Step 3: Change the master code
  6. Step 4: Add user codes
  7. Step 5: Test every code
  8. Step 6: Delete codes you no longer need
  9. Common problems
  10. Keep the setup secure

Programming a keypad lock: the short version

Programming a keypad door lock follows a similar pattern on most models, but the button sequence differs by brand and model. The usual order is: find the master code, change it, enter programming mode, add user codes, test each one, and delete any codes you no longer need. Use the manual for your exact model for the sequence.

Before you start

  • Get the manual. Most manufacturers post PDFs on their websites.
  • Put in fresh batteries, so the lock doesn’t fail partway through.
  • Note the code length rules. Some locks require user codes to match the length of the master code, and some limit how many user codes you can store.
  • Check whether your model needs the door open or the interior cover removed during programming.
  • If you are still installing the lock, read how to install a new door lock first. For a deadbolt, see how to install a deadbolt in your door before you begin.

Step 1: Find the master code

Most keypad locks ship with a factory master code listed in the manual. Because those codes are widely published, change it right away. If you did not set a master code and the factory code no longer works, check whether the manual describes a reset. A reset often erases all stored codes, so plan to re-add everything afterward.

Step 2: Enter programming mode

On many models, you enter the master code and then press a key or button to start programming. On others, you press a physical Program button, usually on the inside of the lock. Many models flash a light or beep to show they are ready for input.

Step 3: Change the master code

Enter the new master code, then enter it again to confirm. Pick a code that is hard to guess, and stop using the old one. Write the new master code down and store it somewhere safe, not on the lock or the door.

Step 4: Add user codes

Once you are in programming mode, enter the new user code, usually 4 to 8 digits depending on the model, and confirm it. Some models ask you to choose a slot number, or to press the Program button a set number of times to pick the slot. Look for a success signal, such as a green light and a single beep. If there is no success signal, the code was not saved.

Step 5: Test every code

Test each new code from outside, and check that the bolt retracts and extends as expected. It helps to test with the door open at first, in case the bolt doesn’t move the way you expect. Also test that a wrong code is rejected.

Step 6: Delete codes you no longer need

Enter programming mode, enter the code you want to remove, and re-enter it to confirm, following the steps in the manual. Some manuals note that the master code can’t be deleted this way. Delete codes as soon as someone stops needing access, such as a contractor or a former housemate.

Common problems

  • Code won’t save: the code may be the wrong length, the sequence may have been interrupted, or the batteries may be low.
  • Keypad locked out: wait for the lockout to end, or follow the manual’s reset procedure. Don’t keep trying codes, since that can extend the lockout.
  • Codes disappeared: on some models, a battery change or a reset clears the memory. Check the manual.
  • Bolt doesn’t move: check the batteries first. If they are fine, the door may be out of alignment or the bolt may be binding against the strike. Call a locksmith if the problem continues.

Keep the setup secure

Don’t use easy codes such as 1234 or repeated digits, and don’t write codes on the lock itself. Limit user codes to the people who really need access, and review them every few months. Replace batteries on a schedule. For how the whole system fits together, see how a door code lock system works.

The complete guide to keypad and code locks

How a Door Code Lock System Works
Read the guide

Keep exploring

Guides from other topics

All topics →