
Safety First
Window repairs are generally low-risk, but keep your fingers clear of the space between the sash and frame while adjusting or testing the lock. A window can shift or drop unexpectedly, especially if it already has balance or alignment problems.
If you’re working on an upper-story window, do all repairs from inside the house. Never lean outside or place a ladder against the exterior just to reach the lock.
Time
15-45 Minutes
Difficulty
Easy
Cost
$0-$25
🧰 Tools & Materials
Tools
- Phillips screwdriver
- Flathead screwdriver
- Tape measure
- Flashlight
- Vacuum or small brush
- Pliers
- Utility knife, if paint or caulk is interfering with the sash
Materials
- Replacement window lock or latch, if needed
- Replacement screws, if existing screws are stripped or missing
- Wood toothpicks and wood glue, if screw holes are stripped in a wood window
- Silicone-based window lubricant, optional
Signs Your Window Lock Needs Attention
A window that won’t lock doesn’t necessarily need a new lock. Often, the lock is fine and the window sash simply isn’t lining up correctly.
Common signs include:
- The lock turns partway but won’t fully engage.
- You have to push down or pull on the window to get it to lock.
- The two halves of the lock no longer line up.
- The window looks closed but there is still a small gap between the sashes.
- The lock feels loose or wobbly.
- The latch moves normally but doesn’t catch the keeper.
- The lock is cracked, bent, or broken.
- One side of the window sits slightly higher than the other.
If the window locks when you push, pull, or lift the sash into position, that’s a strong clue that alignment—not the lock itself—is the problem.
Before You Start
Start by figuring out what type of window you’re working with.
Most double-hung and single-hung windows use a sash lock mounted where the upper and lower sashes meet. Sliding windows usually have a latch mounted along the side or center of the sash. Casement windows use a completely different locking mechanism.
Open and close the window several times before removing anything.
Watch what happens as the window reaches the fully closed position. Check whether the sash sits squarely in the frame and whether anything prevents it from closing the last fraction of an inch.
Also inspect the lock itself.
Try to determine whether:
- The lock and keeper are misaligned.
- The mounting screws are loose.
- Dirt or debris is preventing the window from closing.
- Paint buildup is interfering with movement.
- The sash appears crooked.
- The lock itself is damaged.
Don’t buy a replacement lock yet. Many windows that won’t lock can be fixed with cleaning or a small adjustment.
If you do need a replacement, remove the existing lock and take it with you when shopping. Window locks come in different sizes, mounting-hole spacing, offsets, and styles.
💡 Pro Tip: Take a clear photo of the lock before removing it. That gives you a reference for its original position and orientation.
Step 1: Make Sure the Window Is Fully Closed
Unlock the window and open it several inches.
Then close it again firmly but gently.
For a double-hung window, make sure the bottom sash is pushed completely down and the upper sash is pushed completely up.
This is easy to miss. Sometimes the upper sash slides down slightly over time, leaving the window looking closed even though the two sashes aren’t positioned correctly.
Try pushing the upper sash upward with one hand while pushing the lower sash downward with the other. Then try the lock again.
What You Should See: The lock and keeper should move closer to their proper alignment when both sashes are fully seated.
If Yours Looks Different: If one sash immediately moves back out of position or won’t stay where you put it, the window may have a balance or sash problem rather than a lock problem. See How to Fix a Window That Won’t Stay Open.
Step 2: Clean the Window Tracks and Sill
Open the window and inspect the tracks and bottom of the frame.
Look for:
- Dirt
- Small stones
- Dead insects
- Paint chips
- Pieces of weatherstripping
- Caulk
- Other debris
Even a surprisingly small obstruction can prevent a window from closing the final 1/8 inch or so, which may be enough to keep the lock from engaging.
Vacuum or brush out the tracks.
If old paint is preventing a wood window from closing completely, carefully remove only the loose or excessive buildup that’s interfering with movement.
Close the window and test the lock again.
💡 Pro Tip: Don’t force the lock to pull a partially open window closed. Window locks are designed to secure the sash, not act as clamps. Forcing one can bend or break the hardware.
Step 3: Check the Lock and Keeper Alignment
Close the window and look closely at the two pieces of the lock.
On a typical sash lock, one half contains the rotating latch and the other half is the keeper that the latch grabs.
Slowly operate the lock while watching where the pieces meet.
You may find that the latch:
- Hits above the keeper.
- Hits below the keeper.
- Doesn’t reach far enough.
- Contacts the keeper before it can rotate.
- Barely catches one edge.
Try gently pushing or pulling the sash while operating the lock.
If the lock suddenly works when you move the sash slightly, you’ve confirmed an alignment problem.
What You Should See: The rotating portion of the lock should enter the keeper smoothly and pull the two sashes snugly together.
Step 4: Tighten the Lock Hardware
Check every screw holding the lock and keeper in place.
If any are loose, tighten them with the appropriate screwdriver.
Don’t overtighten them. Window hardware—especially hardware mounted to vinyl frames—can crack or strip if you crank down too hard.
After tightening the screws, close the window and test the lock.
Problem: The screw just spins. The screw hole may be stripped.
On a wood sash, you can often repair a lightly stripped hole with wood glue and wooden toothpicks. Allow the glue to dry, trim the toothpicks flush, and reinstall the screw.
For vinyl or aluminum windows, avoid improvising with oversized screws unless you’re certain there’s enough material behind the mounting point. A longer or larger screw can damage the sash or glass assembly.
Step 5: Adjust the Lock or Keeper
If the window closes completely but the lock still doesn’t line up, you may be able to reposition the hardware slightly.
Before removing anything, use a pencil to mark the current position of the lock or keeper.
Loosen the mounting screws just enough that the hardware can move.
Shift it slightly toward the direction needed for the latch to engage. Usually, a very small adjustment is enough.
Tighten the screws and test the lock.
Don’t drill new holes immediately. Try using whatever adjustment is available through the existing screw holes first.
What You Should See: The latch should move into the keeper without requiring excessive force.
If Yours Looks Different: Some locks have virtually no adjustment available. If the mounting holes fix the hardware in one exact position, replacement hardware with the correct offset may be necessary.
Step 6: Check Whether the Sash Is Crooked
If adjusting the lock doesn’t solve the problem, stand back and look at the window itself.
Compare the gaps around the sash.
They should be reasonably even. If one side sits noticeably higher than the other, or the sash looks tilted inside the frame, the lock may only be showing you a larger problem.
Raise the window several inches and slowly lower it again.
Pay attention to whether:
- One side moves before the other.
- The sash feels unusually heavy.
- The window binds on one side.
- The sash won’t remain level.
- You hear something moving or rattling inside the frame.
These symptoms can indicate a problem with the window balances, pivot shoes, sash cords, or other supporting hardware, depending on the window design.
Don’t reposition the lock dramatically just to compensate for a crooked sash. Fixing the underlying sash problem is usually the better repair.
Step 7: Replace a Damaged Lock
If the window closes correctly and everything lines up but the lock itself is cracked, bent, seized, or worn out, replace it.
Remove the mounting screws and lift off the old lock.
Compare the replacement carefully with the original.
Check:
- Screw-hole spacing
- Overall width
- Latch direction
- Keeper height
- Offset between the two pieces
Whenever possible, reuse the existing mounting holes.
Install the new lock and keeper loosely at first. Close the window, check the alignment, and operate the lock before fully tightening everything.
If Yours Looks Different: If the replacement lock lines up with the screw holes but won’t reach the keeper, you probably have the wrong offset or style. Don’t force it. Compare the new hardware with the original again.
Step 8: Test the Window and Lock
Open and close the window several times.
Each time, make sure the window reaches its fully closed position without needing excessive force.
Then operate the lock.
It should move smoothly and pull the sashes together snugly without requiring you to force the handle.
Finally, with the window locked, gently try to open it.
The sash should remain securely closed.
Check the window from several angles for any obvious gaps that weren’t there before. If the window closes and locks correctly but you can still feel air leaking around it, see How to Fix a Drafty Window.
If the lock works only when you push, lift, or twist the sash into position, there’s still an alignment or window-hardware problem that should be corrected.
🛑 Common Mistakes to Avoid
- Forcing the lock closed. If the latch requires excessive pressure, find out why the pieces aren’t aligning.
- Replacing the lock before checking the window. The sash is often the actual problem.
- Ignoring the upper sash. On double-hung windows, an upper sash that has slipped down can prevent the lock from lining up.
- Moving the lock too far. Small alignment adjustments are usually all that’s needed.
- Overtightening screws in vinyl windows. You can strip the mounting point or crack the frame.
- Drilling new holes too quickly. Confirm the sash is positioned correctly before permanently relocating hardware.
- Using the wrong replacement lock. Similar-looking locks can have different hole spacing and offsets.
❓ FAQs
Why does my window lock only if I push down on it?
The sash probably isn’t reaching its fully closed position on its own. Check the tracks for debris and make sure both sashes are completely seated. If the sash sits crooked or moves back after you position it, the balance system may need attention.
Why won’t my window lock even though it’s completely closed?
The lock and keeper may be slightly misaligned, the mounting screws may be loose, or the lock itself may be worn or damaged. Watch the latch closely while operating it to see where the interference occurs.
Can I just move the window lock to a new position?
Sometimes, but only after confirming the window itself is properly positioned. Moving the lock to compensate for a crooked sash can hide the real problem and may prevent the window from sealing correctly.
Do I need the exact same replacement window lock?
Not necessarily the same brand, but the replacement needs compatible mounting-hole spacing, dimensions, latch direction, and offset. Bringing the old hardware with you is the easiest way to compare replacements.
Should I lubricate a window lock that’s hard to turn?
If the hardware is simply stiff, a small amount of silicone-based lubricant may help. But don’t use lubricant to compensate for a latch that’s binding because the parts are misaligned.
Why did my window suddenly stop locking?
Check whether the upper sash has slipped down, the lock screws have loosened, debris has entered the track, or the sash has shifted. A sudden change often means something moved rather than the lock itself wearing out overnight.
📞 When to Call a Professional
Consider calling a window repair professional if:
- The sash is visibly crooked and you can’t correct it.
- The window won’t stay in position.
- A balance, pivot shoe, sash cord, or internal mechanism appears broken.
- The frame itself is warped or damaged.
- The glass or insulated glass unit appears loose.
- The window has significant rot around the lock or frame.
- Replacement hardware can’t be securely mounted.
- An upper-story window requires exterior access to complete the repair safely.
A lock that won’t engage is often a simple DIY adjustment. But if the window itself isn’t sitting correctly in the frame, repairing the sash or balance system will usually give you a better long-term fix than simply moving the lock.
