How to Replace a Door Lock: Knobs, Deadbolts and Smart Locks

Replace a door lock in about an hour: measure the backset and bore, remove the old knob, set the new latch, fit both halves and test.

The last owner’s keys are still out there, a spare went missing, or the back door knob wobbles every time you turn it. You want a lock that works today, and you would rather not wait days for a locksmith. Most home locks come out with nothing more than a screwdriver.

This guide shows you what to measure, which lock to buy and how to swap a keyed knob in about an hour. It also covers deadbolts, handlesets, sliding doors, keypad codes and quick repairs, so you know exactly how to replace a door lock on any door in your home.

Measure Before You Buy a New Lock

Most failed lock swaps start in the store, not at the door. Take these numbers with a tape measure before you replace a door lock, because the new one only fits the old holes when they match.

How to replace a door lock: what to check firstWhere to measureCommon US sizes
BacksetDoor edge to the center of the big face hole2 3/8 in or 2 3/4 in
Bore holeDiameter of the big hole through the door face2 1/8 in
Edge boreHole in the door edge for the latch1 in
Door thicknessFace to face across the edge1 3/8 in interior, 1 3/4 in exterior
Latch edge shapeFaceplate on the door edgeSquare corners, round corners or a round drive-in latch

Most new knobs and deadbolts have an adjustable latch that fits both common backsets, and many include more than one faceplate. If the old holes are oversized or an odd shape, ask a locksmith whether a repair plate or a new door makes more sense.

Door Lock Types and Where Each One Goes

The function of a lock matters as much as its size, because a privacy knob on a side door leaves your home open. Use this table to match each lock to its door before you replace a door lock.

Lock typeHow it worksWhere it is used
Passage knob or leverLatches only, no lockHalls and closets
Privacy knob or leverButton inside, emergency release outsideBedrooms and bathrooms
Keyed knob or leverKey outside, button insideBack, side and garage entry doors
Single-cylinder deadboltKey outside, thumb turn insideMost exterior doors
Double-cylinder deadboltKey on both sidesDoors with glass near the lock, where code allows
HandlesetGrip and thumb latch outside, usually with a deadboltFront doors
Keypad or smart lockCode, app or key, battery poweredFront and garage entry doors
Mortise lockLarge lock body set into the door edgeOlder homes and commercial doors

Check the package for an ANSI/BHMA grade from the Builders Hardware Manufacturers Association, where Grade 1 is the toughest and Grade 3 the most basic. Higher grades must pass more demanding cycle and strength tests, so Grade 2 or better suits an exterior door.

Tools You Need to Change a Door Lock

A swap in existing holes needs very little gear. A new install, where the door has no holes yet, adds a few cutting tools.

  • Phillips screwdriver, plus a small flat screwdriver or hex key if the lock calls for one
  • Tape measure, pencil and the new lock’s instructions, which show how to replace a door lock with that model
  • For a new install only: a drill, a hole saw kit with 2 1/8 in and 1 in cutters, and a 1 in chisel
  • Safety glasses for any drilling or chiseling

The drill you use to hang shelves will run a hole saw just fine. Keep the old lock until the new one works, in case you need a spare screw.

How to Replace a Door Lock in 8 Steps

These steps cover a keyed knob or lever going into a door that already has standard holes. Keep the door open the whole time so you cannot lock yourself out.

  1. Remove the interior screws. The first job when you replace a door lock is backing out the two long screws on the inside plate; if none show, press the small slot on the knob neck with a flat screwdriver.
  2. Pull the two halves apart. Hold the outside knob as you pull the inside one free, then slide both out.
  3. Unscrew and remove the latch. Take out the two faceplate screws on the door edge and pull the latch straight out.
  4. Set the new latch to the measured backset. Twist or slide the adjustable latch to 2 3/8 or 2 3/4 in to match your door.
  5. Install the latch with the angled side facing the strike. The slanted face should point toward the jamb the door closes against.
  6. Fit the outside and inside halves through the latch. Push the outside half in first so its spindle passes through the latch, then line up the inside half.
  7. Tighten the screws evenly and test with the door open, then closed. Snug each screw a little at a time, since overtightening can bind the latch.
  8. Adjust or replace the strike plate. Use the longer screws the lock maker supplies or recommends so they bite into the framing behind the jamb.

Long strike screws make a kicked door harder to force, but stop once they are snug. Renters should read the lease and get the landlord’s okay before they change out door locks.

While the door is open, check the weatherstripping on the frame for flat, torn or gappy spots and replace it now. The sealing tips in our guide on how to reseal windows apply to doors too, and a tight seal also helps when you soundproof a room.

How to Replace a Doorknob

Interior doors use the same eight steps with fewer parts, because passage and privacy knobs have no key. After you change a doorknob on a bathroom, make sure the emergency release hole faces the hallway.

A door knob with lock or a door handle with lock goes in exactly the same way, although many levers must be flipped to point the right direction. If you change door knobs and locks on every exterior door, buy keyed alike sets so one key opens them all.

How to Replace a Deadbolt Lock

A deadbolt throws a solid bolt about a full inch into the jamb, compared with roughly half an inch for a spring latch. Swapping one takes about as long as a knob, and it is the most important step when you replace a door lock on an outside door.

Replacing an Old Deadbolt in Existing Holes

To replace a deadbolt, remove the two inside screws, pull off the thumb turn and outside cylinder, then unscrew the bolt from the door edge. Set the new bolt to your backset, slide it in with any “up” mark facing up, and pass the cylinder’s flat tailpiece through the bolt before you attach the thumb turn.

Check that the bolt slides fully out and back with the door open. If you change a door lock and deadbolt on the same day, finish one before you open the other box so parts never get mixed.

How to Install a New Deadbolt on a Door

To install a deadbolt where none exists, or to install a new door lock on any blank door, tape the paper template from the box to the door, usually 6 to 12 inches above the knob. Cut the 2 1/8 inch face hole with a hole saw, drilling halfway from each side so the wood does not splinter, then drill the 1 inch edge hole.

Chisel a recess for the faceplate and fit the bolt. Mark where the bolt meets the jamb, drill about 1 inch deep or to the depth in the instructions, then chisel and mount the strike plate. Wear safety glasses the whole time, and check for wires before drilling near a doorbell or alarm sensor. In a home built before 1978, test the door and jamb paint for lead before drilling or chiseling, and follow EPA lead-safe practices.

Single vs Double Cylinder Deadbolts

A single-cylinder deadbolt has a thumb turn inside, while a double-cylinder model needs a key on both sides. The double version stops someone reaching through nearby glass, but it can slow your family’s escape in a fire.

The International Residential Code, section R311.2, says a home’s egress door must open from inside without a key or special knowledge or effort, and some local codes restrict double-cylinder locks for that reason. Check with your local building department before you install one.

How to Change a Front Door Lock

Front doors usually carry a deadbolt above a knob, lever or handleset. To change a front door lock, replace both with the steps above and keep them on the same key.

How to Install a Door Handleset

A front door handleset pairs a tall exterior grip and thumb latch with a deadbolt and an interior knob or lever. Most fit the standard 2 1/8 inch holes, and many need a small extra hole for the bottom of the grip, which the template marks.

To install a door handleset, fit both latches in the door edge, mount the exterior grip and pass its spindle through the lower latch. Attach the interior trim, tighten the through bolts evenly and test both locks with the door open.

Changing the Locks on a New House: Replace or Rekey?

The Associated Locksmiths of America advises changing or rekeying your locks as soon as you take possession of a home, even a new build, because builders and past owners may still hold keys. Rekeying swaps the pins inside each cylinder so old keys stop working, and you keep the hardware.

When you change house locks that are in good shape, rekeying is usually cheaper: a DIY rekey kit runs an estimated $15 to $25, a locksmith about $50 to $200, and new locksets start around $40. Replace instead when the locks are worn, sticky or a low grade, which is often true when you change the locks on your house after years of use or change locks on a new house with basic builder hardware.

Other Door Locks You Can Fix or Swap

Not every lock is a knob or a deadbolt. These notes show how to replace a door lock on the rest of your doors.

How to Change a Door Lock Cylinder

On most modern knobs and deadbolts the cylinder is built in, so you rekey or replace the whole lock. Some designs release the cylinder with a control key or a tool from the lock maker, and mortise cylinders usually unscrew after you loosen a set screw on the door edge.

To change a cylinder lock without key access, work from inside, where standard home locks keep their screws. If the door is locked and nobody has a key, call a locksmith rather than drilling.

How to Replace a Sliding Glass Door Lock

Most sliding patio door locks are small mortise latches held in the door edge by two screws, with the handle mounted over them. To replace a sliding door lock, remove the handle screws, clamp the latch hook so the lock cannot fall into the door, then take out the edge screws and angle the lock out.

Set the new lock in, refit the handles and test it against the keeper. To fix a sliding glass door lock that will not catch, check that the gap around the door is even, since adjusting the rollers often fixes a sliding door latch that misses. Bring the old lock mechanism to the store to match its size and screw spacing.

How to Fix a Broken Door Knob or Latch

A loose knob usually needs its inside screws tightened, while a knob that spins without moving the latch has a broken part and should be replaced. If the door will not stay shut, rub chalk on the latch, close the door and see where it hits the strike.

If the latch misses by 1/8 inch or less, file the strike opening; for more, tighten the hinge screws and then move the strike. To install a door latch or replace a worn one, fit the new door lock latch with its angled side facing the strike, as in steps 3 to 5.

How to Change a Keypad Door Lock Code and Batteries

To change a door code lock, most models follow one pattern: enter the master or programming code, press the program or lock button, pick a user slot, then enter and confirm the new code. Beeps or lights confirm the change, so follow the manufacturer’s instructions for your model.

To change the battery in a keypad door lock, open the cover on the inside unit, fit fresh batteries of the listed type and test it, since some models lose their codes. Keep a backup key and spare batteries on hand, and test any new digital door lock code with the door open.

Mortise, Commercial and Garage Door Locks

Many mortise locks in older homes are a locksmith job, because parts are hard to match if you change a mortise lock yourself. A commercial door lock or a garage door lock can involve exit codes or special hardware, so check the maker’s instructions or hire a pro.

Door Lock Replacement FAQ

These are the questions people ask most before they swap a lock. Short answers follow.

Can I replace a door lock myself?

Yes. If the new lock matches your backset, bore and door thickness, a swap takes a screwdriver and about an hour. Call a locksmith for mortise locks, damaged doors or holes that do not match.

How long does it take to change locks on a door?

A knob or lever swap takes 30 minutes to an hour, and a deadbolt in existing holes takes about the same. A new deadbolt with drilling can take one to two hours.

Is it cheaper to rekey or replace a lock?

Rekeying usually costs less because you keep the hardware. Replace the lock when it is worn, broken or too low a grade for an exterior door.

Do all door locks fit standard holes?

Most US home locks fit a 2 1/8 inch bore, a 1 inch edge bore and a 2 3/8 or 2 3/4 inch backset. Older doors and mortise locks often do not, so measure before you replace a door lock.

Measure first, match the lock to the door and follow the eight steps, and you can replace a door lock with a screwdriver in about an hour. Test every lock with the door open and keep the spare keys somewhere safe.

Share this guide

Related Guides

Leave a Reply

Your email address will not be published. Required fields are marked *