Window hardware replacement

How to Replace a Window Latch or Lock

Direct answer: To replace a window latch or lock, first confirm the latch is the real problem, then match the replacement by style and screw spacing, remove the old hardware, install the new part, and test the window several times to make sure it closes, pulls tight, and locks smoothly.

A worn or broken latch can keep a window from sealing tightly, staying shut, or locking at all. This is usually a straightforward repair if the sash and frame are still in good shape and you take a minute to match the replacement before installing it.

Before you start: Match the replacement part to your exact window before ordering. Stop if the repair becomes unsafe or unclear.

Last reviewed: 2026-03-26

Step-by-step fix

Step 1: Confirm the latch or lock is the actual problem

  1. Open and close the window slowly and watch how the latch or lock lines up with the keeper or mating piece.
  2. Check for obvious signs of failure such as a cracked handle, loose screws, bent hardware, missing parts, or a latch that will not catch even when the window is fully closed.
  3. Press the sash snugly into the frame by hand and try the lock again. If it works only when you force the sash into place, the hardware may be fine and the window may be out of alignment instead.
  4. Look at the surrounding frame and sash for rot, swelling, warping, or loose joints that could keep the lock from lining up.

If it works: You have good reason to replace the window latch or lock because the hardware itself is damaged, worn out, or no longer holds securely.

If it doesn’t: If the latch looks intact but the window is rubbing, sagging, or sitting crooked, address sash alignment, track issues, or frame damage before replacing the hardware.

Stop if:
  • The sash or frame is cracked, rotten, badly warped, or loose enough that new hardware will not hold.
  • The window is high, hard to reach safely, or requires leaning outside to work on it.

Step 2: Match the replacement part before removing the old one

  1. Take clear photos of the existing latch or lock from above and from the side.
  2. Measure the distance between screw holes, the overall length and width, and how far the latch hook or cam reaches when closed.
  3. Compare the handing and shape of the old part to the new one so the handle and catch move the same way.
  4. If the window uses a separate keeper, check whether the old keeper is worn or bent and whether the new latch is meant to work with the existing one.

Step 3: Remove the old latch or lock

  1. Support the window in a stable closed position so the sash does not shift while you work.
  2. If paint is bridging the hardware to the sash, lightly score around the edges with a utility knife first.
  3. Remove the mounting screws and set them aside in case you need them for comparison.
  4. Lift off the old latch or lock and inspect the mounting surface underneath for stripped holes, packed dirt, or damaged wood or vinyl.
  5. Vacuum or brush the area clean so the new part can sit flat.

Step 4: Install the new latch or lock in the same position

  1. Set the new part in place and line up the screw holes without forcing it.
  2. Start all screws by hand first so the part stays centered and the threads do not cross.
  3. Tighten the screws evenly until the hardware is snug and flat against the surface, but do not overtighten and strip the holes.
  4. If you are also replacing the keeper, install it in the matching position and keep it slightly loose until final alignment.
  5. Operate the latch by hand a few times to make sure it moves freely before fully tightening everything.

Step 5: Align the latch so the window pulls closed and locks cleanly

  1. Close the window fully and watch where the latch meets the keeper or strike point.
  2. Adjust the keeper slightly if needed so the latch catches without slamming, lifting, or forcing the sash.
  3. Tighten the keeper once the latch engages smoothly and pulls the sash snug to the frame.
  4. Open and close the window several times, using normal hand pressure, and make small alignment changes until the action feels consistent.

If it doesn’t: If the latch still misses the keeper, recheck whether the sash is sitting square and whether the replacement reach matches the old part.

Step 6: Test the repair in real use

  1. Lock and unlock the window at least five times using normal pressure, not extra force.
  2. Check from inside that the sash is pulled tight enough to reduce movement and obvious gaps at the meeting point.
  3. If this window had minor leaking or rattling before, check whether the new latch improves how tightly the sash seats against the frame.
  4. Recheck the screws after a day or two of normal use and snug them gently if needed.

If it works: The window now closes, stays shut, and locks reliably in normal use.

If it doesn’t: If the new hardware works only when you push, lift, or twist the sash into place, the root problem is likely alignment, frame movement, or sash wear rather than the latch alone.

Stop if:
  • The window still will not stay closed or locked after proper installation and alignment.
  • The sash shifts excessively, the frame moves, or you notice ongoing water damage around the lock area.

Replacement Parts

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

FAQ

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

Sometimes, yes, if the new latch matches the old one closely and catches the keeper cleanly. If the keeper is bent, worn, or shaped differently, replace both so they work together.

What if I cannot find an exact match?

Use the old part's shape, screw spacing, and latch reach as your guide. A close visual match is not enough if the catch point or hole spacing is different.

Why does the new latch still feel hard to lock?

That usually means the sash is not seating squarely in the frame, the keeper needs adjustment, or the replacement part does not match the original reach. The latch should not need heavy force to work.

Do I need to remove the whole window sash?

Usually no. Most window latch or lock replacements are done with the sash in place from inside the home.

Can a bad latch cause drafts or minor leaking?

Yes. If the latch no longer pulls the sash tight, the window may not compress the weatherstripping well. But if the frame is warped or damaged, a new latch alone may not solve it.