Most broken sash and simple casement locks are a DIY job: identify the lock type, photograph it, and measure the faceplate, backset and fastener type before you buy anything. Guidance from the CPSC matters when considering window safety, and multi-point or rotted-frame cases belong with a pro like us at Star Windows Solutions.
TL;DR:
- Before replacing hardware, fully raise the top sash, lower the bottom sash, check that both sides sit level, and inspect screws, the keeper, and gearbox movement.
- Match faceplate dimensions, screw or rivet spacing, backset, and cam count; many espag and shootbolt units swap directly only when those details match.
- A vinyl sash lock with pop rivets takes roughly 10 to 15 minutes to replace; drill carefully to avoid damaging the glass or frame.
- Get professional help when frame rot, damaged rivet holes, or multi point rods prevent secure engagement; repeated hardware failures can signal sash or frame damage.
- Screens do not prevent falls; in homes with children, the CPSC recommends limiting window openings to 4 inches or less and providing an emergency release.
Table of Contents
- How do you identify your window lock and its keeper?
- What should you test before buying parts?
- How do you measure and source the exact replacement part?
- How do you replace the lock on common window types?
- What if the lock still will not engage?
- How do you keep a new lock working?
- What does a pro look for that a DIY swap misses?
- When should you call us for a professional visit?
- FAQ
- Sources
How do you identify your window lock and its keeper?
Start with what you see on the sash. Most homes have one of these:
- Sash lock: a cam latch on the meeting rail of a double-hung window.
- Sliding latch: a small catch that moves sideways on a slider.
- Casement espagnolette (espag): a handle that drives a bar or gearbox along the sash edge.
- Shootbolt or multi-point: several locking points that engage at once.
- Tilt-and-turn: a handle with more than one position.
The keeper is the fixed piece that receives the lock cam. Truth Hardware explains that a new keeper must sit in the exact location and orientation of the original, or the window will not engage smoothly or compress its seal.
Check the fasteners too. Vinyl windows often hold hardware with pop rivets. Check the existing fasteners to determine what your window uses. The fastener type decides which tools you need and how you remove the old lock.
What should you test before buying parts?
Many “broken” locks are really alignment problems. Run through this order:
- Push the top sash fully up and the bottom sash fully down, then try the lock again.
- Check that both sides of the sash sit level in the frame.
- Look for loose screws and stripped holes where the lock mounts.
- Inspect the keeper for wear or a bent edge.
- Work the handle and watch whether the gearbox moves, since a spinning handle with no movement points to gearbox failure.
Window Hardware Direct notes that dropped sashes and disengaged balance shoes often look like lock failures. Addressing those issues may resolve the apparent lock failure before you replace hardware.
Pro Tip: Photograph the lock engaged and open before you touch a screw. Those images settle most ordering questions later.
If the sash, frame or sill is soft or deteriorated, a new lock will not hold. The Building America window rehab guide recommends sash or full window replacement in those cases.

How do you measure and source the exact replacement part?
Take these measurements before you shop:
- Faceplate length and width
- Center-to-center screw or rivet spacing
- Backset, from the center of the spindle to the front edge of the faceplate
- Number and position of cams or rollers on casement systems
Look for a manufacturer name or part number stamped on the faceplate or gearbox. JCP Hardware notes that many espag and shootbolt replacements are straight swaps once backset, faceplate width and cam count match.
Many reported lock failures turn out to be sash alignment problems rather than broken hardware, according to Window Hardware Direct. Measure and test before you spend money.
Bring your photos and measurements to a window-parts dealer, hardware store or online supplier. Replace the keeper along with the lock when the old one is worn, and match the original orientation.
How do you replace the lock on common window types?
You need a drill, a small screwdriver set, a tape measure, and matching rivets or screws.
Vinyl sash with pop rivets
- Drill out the old rivets slowly, stopping at the right depth so you do not reach the glass or frame.
- Lift off the old lock and test-fit the new one.
- Install matching rivets and check the action.
This Old House says this takes roughly 10–15 minutes per window.
Wood or screw-fastened sash locks
- Keep the lock steady while you remove the screws, and catch the keeper when its last screw comes out, as the iFixit guide advises.
- Test-fit the new lock against the old holes.
- Drive the screws snug, never hard.
Casement espag and multi-point
- Confirm handing, backset and rod positions against the old unit.
- Slide the gearbox and rods into the same position.
- Align each cam with its keeper before final fastening.
Test afterward: the handle should move smoothly, the lock should engage fully, and the sash should pull in against the seal with less draft.
Pro Tip: Fasten one screw first, test the action, then add the rest. If anything binds, you can still shift the lock a hair.
What if the lock still will not engage?
Check the keeper position first. Loosen its screws slightly, nudge it, and retest. Then recheck sash alignment.
- Avoid stripping holes or overtightening, and use the fastener type the lock was designed for.
- Retest after each adjustment so you know which change worked.
- Stop and get help if you find rot, a broken frame, several failed parts, or no secure engagement.
Safety matters as much as the lock. Window screens are not designed to prevent falls, and the CPSC recommends limiting openings to 4 inches or less where children live. For child safety, restrict window openings to 4 inches or less and ensure at least one window has an emergency-release mechanism. Our guide to what to inspect on window hardware covers the security side.
How do you keep a new lock working?
- Use a dry lubricant on moving parts, not heavy oil that collects grime.
- Recheck fasteners and alignment after big humidity or temperature swings.
- Replace the keeper when it wears, and confirm it still matches the lock.
- If you keep swapping hardware on the same window, the sash or frame is probably the real problem. See frame rot repair and replacement for what that involves.
Our overview of window lock types and frame materials helps when you reorder.
What does a pro look for that a DIY swap misses?
When we visit, we check frame condition, whether the sash is square, how the multi-point rods line up, and signs of earlier bad repairs. Sometimes the honest answer is sash repair or a new window rather than another lock. Bring photos, your measurements and a list of symptoms, and the estimate goes faster. Where the goal is added security beyond a lock, safety and security film is one retrofit worth a look.
— Artem
When should you call us for a professional visit?
Some windows need more than a new latch, and that is where we step in. We handle window and door hardware replacement, window repair, wood rot and framing replacement, full window replacement, and specialty glass such as smart glass and bulletproof glass.
A pro makes sense for frame rot, multi-point systems that will not align, or rivet holes that are already damaged. Those jobs can benefit from professional experience. Ask us about the estimate and any available payment options before work starts. If your lock problem has turned into a window problem, contact us about an estimate and we will take it from there.

FAQ
What should you do if your window lock is broken?
Test alignment first by pushing the top sash fully up and the bottom fully down. If the lock still fails, identify the type, measure it, and replace it with a matched part. Call a pro if the frame or sash is damaged.
What are the different types of window latches?
Common types include sash locks, sliding latches, casement espag handles, shootbolt systems and multi-point locks. Your window style and frame material decide which one fits.
What is a window lock keeper?
The keeper is the fixed piece that receives the lock cam. Truth Hardware says it must be installed in the same location and orientation as the original for smooth engagement.
How do you secure a window with no lock?
Fit a replacement lock matched to your window type as soon as you can. In the meantime, a window stop that limits the opening adds protection, and the CPSC recommends stops or guards in homes with young children.
Sources
- Cpsc
- Truthparts
- How to Replace the Sash Lock on a Vinyl Window – This Old House
- Building America Top Innovations 2013 Profile – Window Replacement, Rehabilitation, & Repair Guide
