How to Install a Window Lock
Part of: Floors, walls and doors

- Difficulty
- Easy
- Time
- 30 to 90 minutes per window
- Tools
- tape measure, pencil, drill, screwdriver, chisel, utility knife, center punch, level, eye protection
- Call a pro if
- The window frame is rotten or loose, the window is tempered or unusual glass, or the window is the only egress from a bedroom and a lock would block it.
In this guide
- Wear protection
Knowing how to install a window lock is a small security upgrade with a comfort bonus. A worn sash lock lets the sashes separate slightly, which is where a lot of winter drafts come from. A new lock pulls them together and makes the window harder to open from outside.
The install is quick if the lock matches the window. The mistakes come from drilling in the wrong place or choosing the wrong type.
1. Identify the window type
Double hung windows use a sash lock at the meeting rail. Sliding windows use a similar lock on the meeting stile. Casement windows use a multi point lock or a handle with a keeper. Awning windows and hoppers have their own hardware. Buy a lock made for your window type.
2. Measure the meeting rail
Measure the width and thickness of the rail where the lock goes. A lock that is too wide overhangs and looks wrong; one that is too narrow will not pull the sashes together. Note the distance between the sashes when closed, since some locks are designed for a specific gap.
3. Check the existing holes
If you are replacing a lock, match the screw spacing to the old one where possible. Otherwise fill the old holes with wood filler or a glued dowel, let it cure, and drill fresh. Reusing enlarged holes leads to a lock that works loose.
4. Plan the position
Center the lock on the meeting rail. On a double hung window, the lock sits on the upper surface of the lower sash's top rail, with the keeper on the upper sash. Check that the lock does not interfere with the sash cords or the balance shoes.
5. Mark and drill
Hold the lock in place and mark the screw holes with a pencil or an awl. Use a center punch to keep the bit from wandering on metal or hard wood. Drill pilot holes slightly smaller than the screws. Wrap a piece of tape on the bit as a depth guide so you do not drill into the glass.
6. Fit the lock body
Set the lock in place and drive the screws snug, not overtight. If the lock sits proud because the rail is not flat, shim it or bed it in a small amount of caulk rather than forcing it. Check that the latch moves freely through its full swing.
7. Fit the keeper
Close the window, engage the latch, and mark the keeper position on the upper sash. The keeper should hold the sashes tight without pulling them out of alignment. Test the fit, then fasten it. Some locks come with an adjustable keeper, which is worth having on an older window.
8. Adjust the tension
Open and close the window several times with the lock engaged. The sashes should meet with a slight compression and no rattle. If the window is hard to latch, move the keeper a fraction rather than forcing the lock. A lock that needs force will break or strip its screws.
9. Add secondary security where it matters
On a ground floor window, a lock alone is not much of a barrier. A vent lock or a pin that limits how far the window opens gives ventilation without letting someone climb in. For a sliding window, a cut piece of dowel in the track is a cheap and effective secondary measure.
10. Check the exit windows
Walk through the house and identify which windows are the required emergency exits from bedrooms. Those must open easily from inside without tools and without a key. If a lock would interfere, use a different product or move the lock to another window.
Common mistakes
- Drilling through the rail into the glass because the bit was too long.
- Buying a lock that is too wide or too narrow for the meeting rail.
- Locking a bedroom's only exit window.
- Reusing old screw holes and ending up with a loose lock.
- Forcing the keeper so the sashes bind.
- Ignoring a rotten meeting rail, which will not hold screws.
FAQ
What kind of lock fits a double hung window?
A sash lock, mounted at the meeting rail, with a keeper on the upper sash. Most hardware stores carry several widths.
Can I add a lock to a window that never had one?
Yes, if the meeting rail is solid. Mark carefully and predrill.
Do window locks stop drafts?
They help, because they pull the sashes together. Weatherstripping does more.
Are keyed window locks a good idea?
Only where you keep the key nearby. In a bedroom, a keyed lock on the exit window is dangerous.
What about sliding windows?
Use a lock made for the meeting stile, plus a secondary bar or pin in the track.
Related guides
- How to Fix a Window Latch That Will Not Lock: Learn how to fix a window latch that will not lock: check alignment, tighten screws, adjust or replace the...
- How to Fix a Window That Will Not Stay Up: Balances, Cords: Learn how to fix a window that will not stay up: find out if the balance or cord failed, clean the tracks,...
- How to Fix a Foggy Double Pane Window: What Works: Learn how to fix a foggy double pane window: why seals fail, quick checks, options like defogging or glass...
- How to Install a Window Stool: How to install a window stool that sits level, fits the jambs tight, and closes the gap between the sash and...
- How to Stop a Window From Rattling in the Wind: Learn how to stop a window from rattling: check the lock and sash, add weatherstripping or foam, adjust...
