Window repair

How to Replace a Window Lock

Direct answer: To replace a window lock, first confirm the lock itself is damaged or worn out, then remove the old hardware, match the replacement carefully, install the new lock, and test that the window closes, latches, and stays secure.

Most window lock replacements are straightforward if the sash and frame are still in good shape. The key is using a replacement that matches the mounting holes, latch style, and handedness of your existing lock.

Before you start: Match the replacement part to your exact window before ordering.

Last reviewed: 2026-04-04

Step-by-step fix

Step 1: Make sure the lock is the real problem

  1. Open and close the window fully to see whether the sash is sitting square in the frame.
  2. Try locking and unlocking the window several times while watching the lock and keeper meet.
  3. Look for obvious lock damage such as a cracked body, loose lever, bent latch, missing screws, or a lock that will not hold even when aligned.
  4. Check whether the window only fails to lock because paint, dirt, swelling, or sash misalignment is preventing full closure.

If it works: You have confirmed the window lock is broken, loose, or too worn to latch reliably.

If it doesn’t: If the lock looks intact but the sash does not line up with the keeper, address the alignment or sticking problem first. Replacing the lock alone may not fix it.

Stop if:
  • The sash, frame, or meeting rail is cracked, rotted, badly warped, or pulling apart.
  • The window glass is loose or cracked near the lock area.
  • The window will not close far enough for the lock to reach the keeper because of frame movement or structural shifting.

Step 2: Match the replacement before removing anything

  1. Take clear photos of the existing lock and keeper from the side and from above.
  2. Measure the lock body, screw-hole spacing, and the distance between the lock and keeper when the window is fully closed.
  3. Note whether the lock is centered, offset, left-handed, or right-handed if the design is not symmetrical.
  4. Compare the new window lock to the old one before installation so you do not create new holes unnecessarily.

If it works: You have a replacement window lock that matches the old hardware closely enough to install and latch properly.

If it doesn’t: If the new part does not match the hole spacing or latch style, pause and get the correct replacement instead of forcing it to fit poorly.

Stop if:
  • The replacement requires major drilling, cutting, or frame modification you are not comfortable doing.
  • The old lock appears to be part of a larger specialty hardware system that the new part does not match.

Step 3: Remove the old lock and keeper

  1. Support the sash so it stays steady while you work.
  2. Back out the screws from the lock first, then remove the keeper if it also needs replacement.
  3. Set the old screws aside in case the new hardware does not include matching ones.
  4. Clean the mounting area with a dry cloth so you can see the wood, vinyl, or metal surface clearly.

If it works: The old lock hardware is off and the mounting surfaces are exposed and clean.

If it doesn’t: If a screw is stripped, grip it carefully with pliers or use a hand screwdriver for better control before trying again.

Stop if:
  • The screw holes are badly blown out, the surrounding material is crumbling, or the sash surface breaks while removing the hardware.
  • You uncover hidden rot, corrosion, or damage that will not hold new screws securely.

Step 4: Prep the mounting area and position the new lock

  1. Test-fit the new lock over the existing holes without tightening anything yet.
  2. If the old holes in a wood window are slightly loose, repair them before reinstalling so the screws can bite properly.
  3. Place the keeper in its matching position and close the window gently to confirm the lock and keeper line up.
  4. Make small position adjustments now so the lock can engage without forcing the sash.

If it works: The new lock and keeper sit flat, line up cleanly, and appear ready to latch when the window is closed.

If it doesn’t: If the lock almost lines up but binds, loosen the pieces and adjust them slightly before driving the screws tight.

Stop if:
  • The lock cannot sit flat because the sash or frame is distorted.
  • The latch misses the keeper by too much to correct with minor adjustment.

Step 5: Install the new window lock

  1. Fasten the lock with the screws started by hand first to avoid cross-threading or crooked placement.
  2. Tighten the screws until snug, but do not overtighten and strip the mounting surface.
  3. Install or tighten the keeper the same way.
  4. Operate the lock several times with the window open and then with the window closed to make sure the mechanism moves freely.

If it works: The new window lock is mounted securely and the latch moves smoothly without wobble.

If it doesn’t: If the lock feels stiff or the latch rubs, loosen the screws slightly, realign the hardware, and retighten evenly.

Stop if:
  • The screws will not tighten because the mounting material no longer holds fasteners.
  • The lock body cracks, twists, or binds badly during installation.

Step 6: Test that the repair holds in normal use

  1. Close the window fully and lock it without slamming the sash.
  2. Check that the lock pulls the sash in snugly and that the window does not rattle or pop loose.
  3. Unlock and relock the window several times to confirm repeatable operation.
  4. From inside, press lightly on the sash near the lock to make sure it stays engaged under normal use.

If it works: The window closes fully, locks easily, and stays secure through repeated use.

If it doesn’t: If it still will not lock or stay latched, recheck alignment between the sash and keeper. If alignment is good, the issue may be with the sash, frame, or a mismatched replacement part.

Stop if:
  • The window still shifts enough to defeat the lock after adjustment.
  • The sash or frame movement suggests a larger window repair is needed before the lock can work reliably.

Replacement Parts

Repair Riot may earn a commission from qualifying purchases, at no extra cost to you.

FAQ

Can I replace just the lock and keep the old keeper?

Sometimes, but only if the new lock matches the old keeper exactly. If the latch shape or position is different, replace both pieces so they work together.

Why won't my new window lock line up?

The most common reasons are a mismatched replacement, shifted sash alignment, or a keeper mounted slightly off position. Confirm the window closes fully and compare the new hardware to the old one.

What if the screw holes are stripped?

On a wood window, slightly loose holes can often be repaired so the new screws hold. If the surrounding material is badly damaged or crumbling, the sash may need a more involved repair before a new lock will stay secure.

Do I need to replace the lock if the window is just hard to close?

Not always. If the sash is painted shut, swollen, dirty, or out of alignment, the lock may be fine. Replace the lock when the hardware itself is broken, loose, bent, or worn out.

Are window locks universal?

No. Many look similar, but hole spacing, latch style, size, and handedness can differ. Matching the old part carefully is the best way to avoid a return and a second repair.