How to Rekey a Lock in 11 Steps

Unlock a new skill with this DIY project

The exterior of a house with a wooden front door
Photo: Iriana Shiyan / Adobe Stock
The exterior of a house with a wooden front door
Photo: Iriana Shiyan / Adobe Stock
Kate Fann
Written by Kate Fann
Contributing Writer
Updated October 20, 2023
Get quotes from up to 3 pros!
Enter a zip below and get matched to top-rated pros near you.

Whether you lost your keys (again) or just moved into your dream home, rekeying your locks is a smart decision. It’ll give you added peace of mind and help you learn a new skill at the same time. 

While you can always choose to hire a locksmith instead, this DIY is a fairly straightforward project. Learn how to rekey a door lock below, and what to do if it’s a deadbolt or smart lock.

How Locks Work

Before you start the process of rekeying a lock, it's useful to know how a traditional door lock works. Most doorknobs and deadbolts feature a pin and tumbler lock. 

The lock contains a steel cutaway that holds a cylindrical plug and several springs and pins that allow a uniquely cut key shape to turn the lock. The length of the pins must match the depth of the unique grooves in the key for the lock to work.

To rekey locks using a different existing key, you would dismantle the lock and the pins, all of which vary in length. Remove and place the pins to match and fit the new key you wish to use for that lock.

How to Rekey a Lock

A locksmith changing a door lock
Photo: MartinPrescott / iStock / Getty Images Plus / Getty Images

You can complete the process of rekeying a traditional pin and tumbler lock in as little as 10 steps. The project could take one day out of your weekend, but you’ll still have plenty of time to relax with friends and family in your security-enhanced home when you’re done. 

1. How to Prep for Rekeying a Door Lock

To rekey locks, you need to purchase a rekeying kit that is specific to your brand of doorknob or deadbolt. If you have varying brands, you don't need to worry about ending up with different keys. You can use the same key for each regardless of brand.

The rekeying kit comes with everything you need to complete this task, such as tiny picks and tweezers, a key gauge, an assortment of pins and springs, and any other tools you’ll need to disassemble and reassemble the lock.

2. Remove the Door Knob

This step will vary by maker, but you can expect to align the holes in the cylinder and then either insert the key and turn it a quarter-turn to the right or turn the knob counterclockwise. Then, using the remover tool that comes with the rekeying kit, you'll remove the doorknob from the shank. 

3. Remove the Cylinder Lock

Next, you'll remove the cylinder from inside the knob by pushing the cylinder back. 

4. Remove the Clip Ring

The cylinder has a C-shaped clip holding it in place. Remove the C-shaped clip using the tool provided in your rekeying kit.

5. Remove the Key Plug

Using the follower tube supplied in the rekeying kit, remove the key plug from its housing. The follower tube will stay in place as you remove the key plug, so the pins and springs don't pop out prematurely. 

6. Remove the Old Pins

This step is best done on a flat, clean surface. Drop the old pins from the plug and place them to the side to avoid mixing the new pins with the old pins. Remove the old key and insert the new key.

7. Insert the New Pins

Following the instructions with the rekeying kit and using the included tweezers, insert the new pins, ensuring they are flush against the plug.

8. Reinsert the Plug

Place the plug back into the cylinder, which will slowly push the follower tube as you insert it. Remove the follower tube completely and test to ensure the key turns.

9. Reattach the Clip Ring

Replace the C-clip using the provided tool until it snaps into place.

10. Reattach the Knob to the Door

Reinsert the cylinder into the knob. Attach the knob to the door. 

11. Test the Lock

Ensure the knob feels secure and then test to confirm the new key works.

Rekeying Deadbolt Locks

The steps for rekeying a deadbolt lock are similar to a traditional pin and tumbler lock. If the brand of lock is the same as the doorknob, you can use the same rekeying kit. However, if they are different brands, you'll need to purchase the correct rekeying kit.

  • Remove the deadbolt from the door and repin the same way you would a doorknob. 

  • Ensure the bolt is out before removing the screws holding the deadbolt to the door. 

  • Remove the cylinder and then the endcap before taking out the retainer pin. 

  • Follow the same steps for repinning a doorknob. 

  • Then, replace the cylinder, retainer pin, and endcap before returning it to the housing. Double-check that the bolt is out and then reattach the lock to the door.

If your home currently doesn't have deadbolts, consider installing a deadbolt to increase home protection. To keep all the keys for your locks the same, opt for the same brand of deadbolt as your doorknobs.

Rekeying Smart Locks

Whether or not it's possible to rekey a smart lock varies based on the type of smart lock and the brand. Some smart locks don’t use keys, while others come with a physical backup key, which replaces or fits over an existing door lock. If you have a smart lock and are considering rekeying, it's best to determine the steps specific to the brand of your lock.

When to Rekey a Lock vs. Replace a Lock

One of the reasons homeowners choose to rekey door locks is to enhance security, particularly in the case of new homeowners. While the former owners will surrender their keys, other sets could still be out there—after all, people tend to give spare keys to petsitters, family members, and close friends. 

Even if you’re moving into a brand new home, it's a good idea to rekey the locks. During the construction and selling process, it's likely a variety of people—from contractors to realtors—had access to the keys.

You also might rekey a home in order to streamline a bulky keychain. You can make it so that you have one single key for every door and lock instead of multiple. If you’re changing a concierge service (such as a housekeeper or babysitter), it’s also a good idea to rekey your home.

However, if your keys are stolen, you might want to call an emergency locksmith near you instead of DIYing this task to have your locks rekeyed ASAP. When it comes to rekeying vs. replacing your lock, the cost to change a lock is usually higher than rekeying, which may impact your decision. 

Tips for Rekeying Door Locks

A man rekeying a lock
Photo: Antonio_Diaz / iStock / Getty Images Plus / Getty Images

If you are rekeying your entire house, you can simplify the process by rekeying the locks all at once. Just keep all the pins separated so each set stays with the original lock.

The rekeying process involves handling tiny pins. Avoid taking on this task with small children or pets nearby. If you are a person with vision impairment, consider using a magnifying glass to help with the process.

Before throwing away your old keys, ensure the new ones work properly.

Frequently Asked Questions

Rekeying door locks yourself costs a fraction of what you would expect to pay a locksmith. On average, it costs between $80 to $160to hire a local locksmith to rekey your house. For a DIY solution, you can expect to spend $11 to $25 on a rekeying kit.

Need professional help with your project?
Get quotes from top-rated pros.
Learn more about our contributor
Kate Fann
Written by Kate Fann
Contributing Writer
Kate Fann is a content writer with ten years of online writing experience, taking a specialized focus on strategic SEO.
Kate Fann is a content writer with ten years of online writing experience, taking a specialized focus on strategic SEO.
The homeowners guide to Locksmiths
From average costs to expert advice, get all the answers you need to get your job done.