First Home Fixes logo

Home / Doors and Windows

How to Install a Window Lock

4 min read · Updated 28 November 2026 ·

Part of: Floors, walls and doors

Simple diagram for the guide: How to Install a Window Lock
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
  1. Identify the window type
  2. Measure the meeting rail
  3. Check the existing holes
  4. Plan the position
  5. Mark and drill
  6. Fit the lock body
  7. Fit the keeper
  8. Adjust the tension
  9. Add secondary security where it matters
  10. Check the exit windows
  11. Common mistakes
  12. FAQ
  13. When to call a pro
Safety. Windows are both a security point and a life safety exit. A lock that cannot be opened quickly from inside is a hazard, so choose one with a simple thumb turn and keep the window operable. Wear eye protection when drilling near glass, and never strike a chisel toward the pane. If the frame is soft or the sash is loose, fix that before adding hardware.

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

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.

how to install a window lockwindow securitysash lockdouble hung windowhome security

Related guides

Simple diagram for the guide: How to Fix a Window Latch That Will Not LockDoors and WindowsHow to Fix a Window Latch That Will Not LockLearn how to fix a window latch that will not lock: check alignment, tighten screws, adjust or replace the lock, and fix the sash so it closes fully.Simple diagram for the guide: How to Fix a Window That Will Not Stay Up: Balances, CordsDoors and WindowsHow to Fix a Window That Will Not Stay Up: Balances, CordsLearn how to fix a window that will not stay up: find out if the balance or cord failed, clean the tracks, and use quick tricks until you replace the balance.How to Fix a Foggy Double Pane Window: What WorksDoors and WindowsHow to Fix a Foggy Double Pane Window: What WorksLearn how to fix a foggy double pane window: why seals fail, quick checks, options like defogging or glass replacement, and when to call a window pro.Simple diagram for the guide: How to Install a Window StoolDoors and WindowsHow to Install a Window StoolHow to install a window stool that sits level, fits the jambs tight, and closes the gap between the sash and the wall with a clean apron.Simple diagram for the guide: How to Stop a Window From Rattling in the WindDoors and WindowsHow to Stop a Window From Rattling in the WindLearn how to stop a window from rattling: check the lock and sash, add weatherstripping or foam, adjust stops, and use simple tricks for a quiet fit.