Window hardware replacement

How to Replace a Window Latch and Keeper

Direct answer: To replace a window latch and keeper, first confirm the lock hardware is the reason the window will not stay shut or seal tightly. Then remove the old latch and keeper, match the new parts to the old hole spacing and shape, install them snugly, and test that the window closes, pulls in tight, and locks without forcing.

This is a straightforward repair when the sash and frame are still in good shape. The key is using a replacement that matches the old hardware closely enough that the latch grabs the keeper cleanly.

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

Last reviewed: 2026-04-05

Step-by-step fix

Step 1: Confirm the latch and keeper are really the problem

  1. Close the window slowly and watch how the latch meets the keeper.
  2. Check whether the latch is cracked, loose, bent, missing pieces, or no longer catching the keeper.
  3. Wiggle the sash and look for obvious frame damage, a badly warped sash, or hardware that has pulled out of rotten wood or stripped vinyl.
  4. If the window closes squarely but will not stay latched or does not pull in tight, the latch and keeper are a good repair target.

If it works: You have confirmed the lock hardware is worn, loose, broken, or misaligned enough to justify replacement.

If it doesn’t: If the sash is badly out of square, the frame is damaged, or the window binds before it reaches the closed position, fix that root problem first or have the window evaluated.

Stop if:
  • The sash or frame has rot, cracks, or major movement.
  • The window glass is loose or the sash feels unstable.
  • The window will not close into position well enough for new hardware to engage.

Step 2: Match the replacement before removing everything

  1. Open the window enough to access both the latch and the keeper comfortably.
  2. Take a clear photo of the old hardware from above and from the side.
  3. Measure the screw hole spacing, overall length, and the height or profile of the keeper.
  4. Compare those measurements to the new latch and keeper so you do not install parts that cannot meet each other properly.

If it works: You have a replacement set that closely matches the old hardware and mounting pattern.

If it doesn’t: If the new parts do not match the old hole spacing or the latch shape is clearly different, pause and get a closer match before continuing.

Stop if:
  • The replacement hardware is obviously the wrong style and cannot engage the keeper safely.

Step 3: Remove the old latch and keeper

  1. Score around painted hardware with a utility knife if needed so the finish does not tear.
  2. Back out the screws from the latch first, then remove the keeper.
  3. Set the old screws aside in case the new set is missing hardware or the old screws fit better.
  4. Clean the mounting area and scrape away paint buildup, dirt, or debris that could hold the new parts crooked.

If it works: The old hardware is off and the mounting surfaces are clean and ready for the new parts.

If it doesn’t: If a screw spins without backing out, grip the head gently with pliers while turning the screwdriver, or remove the hardware carefully and deal with the stripped hole in the next step.

Stop if:
  • The mounting area breaks apart during removal.
  • The sash or frame material is too damaged to hold screws securely.

Step 4: Repair weak screw holes and position the new parts

  1. Test the old screw holes by hand. If they feel loose, pack each hole with wood toothpicks and trim them flush before reinstalling screws.
  2. Set the new latch in place on the sash and start the screws by hand so they do not cross-thread.
  3. Set the new keeper on the frame where the latch naturally lands when the window is fully closed.
  4. If the new holes do not line up, mark them carefully and drill small pilot holes before driving the screws.

If it works: The new latch and keeper are mounted straight and the screws are snug without stripping.

If it doesn’t: If the screws will not tighten, the mounting material may be too damaged for a simple hardware swap and may need a more durable repair.

Stop if:
  • The sash or frame will not hold screws even after minor hole repair.
  • The new hardware sits crooked because the mounting surface is cracked or deformed.

Step 5: Adjust the keeper so the latch pulls the window in tight

  1. Close the window and try to latch it without forcing anything.
  2. If the latch misses the keeper, loosen the keeper slightly and shift it a small amount until the latch catches cleanly.
  3. If the latch catches but the window still feels loose, move the keeper just enough to pull the sash in tighter.
  4. Tighten all screws once the latch closes smoothly and the sash seats firmly against the frame.

If it works: The latch engages the keeper cleanly and the closed window feels secure and tighter than before.

If it doesn’t: If the latch only works when forced or pops back open, recheck part fit and sash alignment before tightening everything down.

Stop if:
  • The latch must be forced hard to lock.
  • The sash twists or the frame flexes noticeably when you try to latch it.

Step 6: Test the repair in normal use

  1. Open and close the window several times to make sure the latch still lines up after repeated use.
  2. Lock and unlock it a few times using normal hand pressure.
  3. From inside, check that the sash is pulled in evenly and there is no obvious looseness at the meeting point.
  4. If this repair was meant to help with draft or rattling, check again on a breezy day or after the window has been used for a day or two.

If it works: The window now closes, latches, and stays shut in real use without forcing or drifting open.

If it doesn’t: If the latch loosens again, misses the keeper, or the window still leaks air because the sash does not seat evenly, the problem is likely alignment, weatherstripping, or frame wear rather than the latch alone.

Stop if:
  • The hardware repeatedly loosens after a short test.
  • The window still will not stay shut or secure after correct installation of matching parts.

Replacement Parts

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

FAQ

Can I replace just the latch or just the keeper?

Yes, if the other piece is in good shape and matches the new part exactly. In many cases it is easier and more reliable to replace both together so the latch and keeper are designed to engage each other properly.

How do I know I bought the right replacement?

Match the old hardware by style, length, hole spacing, and keeper height or shape. A part that looks close but sits higher, lower, or farther apart can miss the keeper or fail to pull the sash in tight.

What if the screw holes are stripped?

Slightly stripped wood holes can often be tightened up with wood toothpicks or similar filler and the original-size screw. If the surrounding material is badly damaged, the window may need a more solid repair than a simple hardware swap.

Why does the new latch still not line up?

The keeper may need a small adjustment, or the sash may be out of alignment. If the window does not close squarely before latching, replacing the hardware alone will not fully solve the problem.

Will replacing the latch stop a draft?

It can help if the old latch was not pulling the sash tight against the frame. If air still leaks after the new latch is adjusted correctly, worn weatherstripping or frame issues are more likely.