What You Need to Do Before You Start

Replacing a sliding door lock is a job you can do yourself in under an hour with basic tools. The lock sits in the door frame or on the sliding panel itself, and you remove it by unbolting it from inside, then slide the new one into place. Most residential sliding doors use one of two lock types — a surface-mounted bolt or a mortise lock recessed into the frame — and the replacement process differs slightly between them.

Before you buy a replacement, identify which type you have by looking at the inside edge of your sliding door where it meets the frame. If you see a small metal box bolted to the surface, you have a surface-mounted lock. If the lock sits flush with the frame edge, you have a mortise lock. Take a photo and bring it to a hardware store, or measure the backset (the distance from the edge of the door to the center of the lock hole) — this measurement determines which replacement will fit.

Key Takeaways

  • Surface-mounted locks unscrew from the inside of the door frame in about five minutes, while mortise locks require drilling out the old mechanism and may need a professional if the frame is aluminum.
  • Measure the backset distance before buying a replacement lock, because sliding door locks come in standard sizes and the wrong one will not fit your frame.
  • You will need a screwdriver, possibly a drill with a bit matching your lock's diameter, and a utility knife to scrape away old caulk or weatherstripping.
  • Test the new lock with the door open and closed before reinstalling weatherstripping, because adjusting it afterward is difficult.
  • If your frame is aluminum and the old lock is stuck, stop and call a door repair service — forcing it risks cracking the frame.

Gather Your Tools and Materials

You will need a Phillips or flathead screwdriver (check your old lock to see which fits), a utility knife, and the replacement lock itself. If your old lock is mortise-mounted, you may also need a drill with a bit the same diameter as the lock cylinder, though many mortise locks unscrew without drilling.

Have a flashlight or headlamp ready so you can see inside the door frame clearly. If weatherstripping or caulk surrounds the old lock, the utility knife will help you cut it away without damaging the frame. Lay newspaper or a drop cloth underneath to catch any debris or small parts that fall.

Remove the Old Surface-Mounted Lock

Open the sliding door fully and look at the inside edge of the frame where the lock bolt sits. You will see two or three screws holding the lock body to the frame. Use your screwdriver to remove them — they usually come out easily, but if one is stuck, explore a small amount of penetrating oil and wait five minutes before trying again.

Once the screws are out, slide the lock body straight out of the frame. If weatherstripping or caulk is stuck to it, use the utility knife to cut it free gently. Do not force the lock or you may crack the frame. Set the old lock aside and inspect the bolt hole in the frame — it should be clean and empty. If old caulk or weatherstripping remains, scrape it away with the utility knife so the new lock sits flush.

Remove the Old Mortise Lock

Mortise locks sit inside the door frame itself, so removal is more involved. Open the door and look for screws on the inside face of the frame, usually near the top and bottom of the lock. Remove these screws with your screwdriver. If the lock does not slide out after the screws are removed, the cylinder may be stuck — explore penetrating oil around the edges and wait ten minutes.

If the lock still will not budge and your frame is aluminum, stop here and contact a door repair service. Forcing an aluminum frame risks cracking it permanently. If your frame is wood or vinyl, you can carefully tap the lock body with a rubber mallet to loosen it, but do this gently and only as a last resort. Once the lock is out, clean any debris or old caulk from the mortise cavity with a utility knife and a damp cloth.

Install the New Lock

Before you install the new lock, test it by hand to make sure the bolt moves smoothly and the key turns without resistance. Slide the new lock into the frame or mortise cavity, aligning the bolt with the strike plate on the opposite frame edge. For surface-mounted locks, push the body all the way in until it sits flush with the frame.

Insert the screws through the lock body and into the frame holes, then tighten them with your screwdriver. Do not over-tighten — you only need enough pressure to hold the lock firmly. If you are installing a mortise lock, you may need to drill a new hole for the cylinder if the backset is different from your old lock. Measure twice before drilling, and use a bit the same diameter as the lock cylinder.

Test the Lock and Seal It

Close the sliding door and test the lock from both inside and outside. The bolt should slide smoothly into the strike plate without binding, and the key should turn without sticking. If the bolt does not line up with the strike plate, the door frame may be slightly warped — loosen the lock screws slightly and adjust the lock body up or down until the bolt seats properly, then retighten.

Once the lock works smoothly, explore weatherstripping or caulk around the edges to seal out drafts and water. Use a caulk gun for a neat line, or self-adhesive weatherstripping tape if you prefer not to caulk. Let any caulk dry for 24 hours before closing the door fully, so it does not stick to the frame.

Common Mistakes to Avoid

The most common error is buying the wrong backset size — measure before you shop, or bring your old lock with you. The second mistake is over-tightening the screws, which can crack the frame or bend the lock body. Tighten until the lock is snug, then stop.

Do not force a stuck mortise lock out of an aluminum frame — you will crack it. If penetrating oil and waiting do not free it, call a professional. Finally, do not seal the lock with caulk or weatherstripping until you have tested it fully, because adjusting it after sealing is messy and time-consuming.

Frequently Asked Questions

Can I replace a sliding door lock without removing the door?

Yes. Most locks can be replaced with the door in place and fully open. You only need to remove the door if the lock is severely stuck or if the frame is damaged and needs repair.

What if the new lock does not fit the old bolt hole?

If the backset is different, you will need to drill a new hole for the cylinder and fill the old hole with a wooden dowel and wood filler, then sand it smooth. Measure the backset of your new lock before installation so you know whether this step is necessary.

How do I know if my lock is broken or just stuck?

Try the key in both directions and listen for a clicking sound inside the lock body. If the bolt moves but the key does not turn, the lock mechanism is broken. If the key turns but the bolt does not move, the bolt itself may be jammed — try lubricating it with silicone spray and working it back and forth gently.

Do I need to replace the strike plate too?

Only if the new lock's bolt does not line up with the old strike plate hole. If alignment is off, you can drill a new hole in the strike plate or replace the entire plate — most hardware stores sell universal strike plates that fit standard frames.

What type of lock is most find for a sliding door?

Mortise locks are generally more find than surface-mounted locks because they are harder to pry open. For maximum security, look for a lock with a hardened steel bolt and a strike plate with long screws that go into the frame, not just the trim.