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 actual problem, then match the replacement by style and screw spacing, remove the old hardware, install the new part without overtightening, and test that the window closes, latches, and unlocks smoothly.

A worn or broken latch can leave a window hard to secure even when the sash and frame are still fine. This job is usually straightforward if you take a photo first, keep the screws organized, and make sure the new part matches the old one closely.

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

Last reviewed: 2026-04-04

Step-by-step fix

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

  1. Open and close the window slowly and watch how the latch or lock lines up with the mating piece.
  2. Try operating the latch with the window open. If the handle, cam, hook, or lever feels loose, cracked, jammed, or does not move the catch fully, the hardware is likely the problem.
  3. Check for obvious frame or sash issues like sagging, swelling, or a window that has to be forced into place before it will latch.
  4. Take a clear photo of the hardware from above and from the side before removing anything.

If it works: You have confirmed the latch or lock is damaged, worn out, or no longer engaging correctly, and the window itself is not obviously out of shape.

If it doesn’t: If the latch works normally when the window is aligned by hand, adjust or inspect the window alignment and strike area before replacing the hardware.

Stop if:
  • The sash or frame is cracked, rotted, badly warped, or loose in a way that keeps the window from closing square.
  • The glass is loose or damaged near the hardware.
  • The window is in an unsafe location where opening or supporting it creates a fall risk.

Step 2: Match the replacement part before you remove the old one

  1. Compare the old latch or lock to the new one by overall shape, handing, finish, and how it engages the keeper or strike.
  2. Measure the distance between screw holes center to center and compare it to the replacement.
  3. Check whether the latch mounts on the sash, the frame, or both, and make sure the replacement is meant for the same setup.
  4. If the old part has a separate keeper or strike, inspect that piece too and replace it if it is bent, worn, or does not match the new latch.

If it works: You have a replacement that matches the old hardware closely enough to install without forcing new alignment problems.

If it doesn’t: If the screw spacing or latch style does not match, pause and get the correct part before removing the old hardware.

Stop if:
  • The replacement would require drilling new holes into a thin vinyl, aluminum, or wood section that looks weak or damaged.
  • The old hardware appears to be part of a larger locking system you cannot safely disassemble.

Step 3: Remove the old latch or lock

  1. Close and support the window so it cannot shift while you work. Use painter's tape if needed to keep a movable sash from sliding.
  2. Remove any trim caps covering the screws with a flat screwdriver, prying gently to avoid marring the surface.
  3. Back out the mounting screws with the correct screwdriver and keep them together in case the new part does not include replacements.
  4. Lift off the old latch or lock and, if needed, remove the keeper or strike on the opposite side as well.
  5. Wipe away dirt, old paint buildup, or debris from the mounting area so the new part can sit flat.

If it works: The old hardware is off and the mounting surface is clean, intact, and ready for the new part.

If it doesn’t: If a screw is stripped, use needle-nose pliers for extra grip or switch to a better-fitting screwdriver bit before the head gets worse.

Stop if:
  • The screw holes are blown out, the mounting surface crumbles, or hidden rot or corrosion is exposed behind the hardware.
  • Removing the hardware causes the sash or frame to shift in a way that suggests a larger window problem.

Step 4: Install the new latch or lock

  1. Set the new part in place and start all screws by hand before tightening any of them fully.
  2. If you are replacing both the latch and keeper, loosely mount both pieces first so you can fine-tune their alignment.
  3. Tighten the screws evenly until the hardware is snug and stable, but do not overtighten and strip the mounting holes.
  4. Reinstall any trim caps and make sure the latch handle or lock lever moves freely through its full range.

If it works: The new latch or lock is mounted securely, sits flat, and moves without binding.

If it doesn’t: If the latch rubs or does not sit flat, loosen the screws slightly, realign the part, and retighten evenly.

Stop if:
  • The screws will not tighten because the mounting holes no longer hold.
  • The new hardware binds even when loosely aligned, suggesting the part is not a true match.

Step 5: Align the latch with the keeper and test operation

  1. Close the window gently and watch where the latch meets the keeper or strike.
  2. Adjust the keeper slightly if needed so the latch engages cleanly without slamming, lifting, or forcing the sash.
  3. Lock and unlock the window several times, then open and close it again to make sure the hardware still lines up after movement.
  4. Listen for scraping or clicking that suggests the latch is only partly catching.

If it works: The window closes normally and the latch or lock engages and releases smoothly every time.

If it doesn’t: If the latch only works when you push or lift the sash by hand, the window likely needs alignment work in addition to the new hardware.

Stop if:
  • The sash must be forced hard to latch, which can crack the new hardware or damage the window.
  • The keeper cannot be aligned because the sash or frame is visibly out of square.

Step 6: Make sure the repair holds in normal use

  1. Use the window a few more times over the next day or two, including a full close, latch, unlock, and reopen cycle.
  2. Check that the screws stay snug and the latch does not loosen or shift after repeated use.
  3. Confirm the window feels secure when latched and does not pop open from normal vibration or light pressure.
  4. Keep the old part until you are sure the replacement fits and works reliably.

If it works: The new latch or lock holds the window securely and continues to work smoothly in real use.

If it doesn’t: If the new hardware loosens, misses the keeper, or feels strained after a few cycles, recheck alignment and part match before using the window normally.

Stop if:
  • The window still will not secure even with correctly installed new hardware, pointing to a frame, sash, or balance problem beyond the latch itself.

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, but only if the new latch engages the old keeper cleanly. If the shapes do not match or the old keeper is worn, replace both pieces together for a more reliable repair.

What if I cannot find an exact match?

Match the mounting style, handing, screw spacing, and how the latch grabs the keeper. If those do not line up, keep looking. A close-looking part that engages differently usually causes more trouble than it solves.

Why does the new latch still not catch?

The most common reason is window misalignment, not bad new hardware. If the sash has to be pushed, lifted, or forced into place before the latch reaches the keeper, the window needs adjustment or repair beyond the latch.

Should I reuse the old screws?

You can if they are straight, clean, and still hold well. If the new part includes matching screws in good condition, use those instead. Avoid longer or wider screws unless you know they are safe for the window material.

Do I need to seal around the new latch or lock?

Usually no. Most window latches and locks mount dry against the sash or frame. Sealant can interfere with fit, trap dirt, and make future service harder unless the original design clearly used it.