Windows are one of the most vulnerable entry points in any home, yet many homeowners overlook them when thinking about security. The factory-installed locks that come with your windows can wear out, swell, or become misaligned over time, leaving your home far less secure than you imagine. Before you invest in expensive security systems, there are practical and affordable DIY solutions that can restore – and in some cases improve – the locking ability of your existing windows. Whether you live in a house you own or a rental where drilling into the frame is not an option, these handson fixes work across different window types and skill levels. If you are planning upgrades around your windows, you might also find value in learning how to build a cedar window planter box to complement your newly secured windows with added curb appeal.
Fixing Single and Double-Hung Window Locks
Single-hung and double-hung windows are among the most common styles found in homes. They operate by sliding vertically, with one or both sashes moving inside the frame. The factory latch that holds these sashes together relies on precise alignment, and over years of use, wood swelling, paint buildup, and general wear cause the sashes to bind or shift. The result is a latch that no longer engages. Fortunately, there are three reliable DIY methods that require only basic tools and a trip to the hardware store.
The Pin Method
This technique uses a sturdy metal pin, such as one taken from a standard door hinge, to physically block the sash from sliding upward. Start by closing the window as far as it will go. Select a drill bit roughly one-eighth inch larger in diameter than the pin, then drill through the top of the lower sash and into the bottom of the upper sash. The oversized hole prevents the pin from binding when you insert or remove it. A useful depth trick is to measure the combined thickness of both sashes, double it, subtract one inch, and wrap masking tape around the drill bit at that distance from the tip. This depth gauge ensures you do not drill through the outer face of the frame. Drive the pin into the hole and you have an instant secondary lock that is invisible from outside.
The Barrel Bolt Method
A standard barrel bolt, the kind used to secure a gate, works equally well on a window sash. Close the window fully, then choose a comfortable height on the vertical edge of the sash frame. Screw the barrel bolt into place about half an inch from the outside edge. Slide the barrel until it contacts the window jamb and mark the spot. Open the window enough to drill a hole at the mark, again using a bit slightly larger than the barrel diameter. Close the window and slide the barrel home. This method works well because the bolt is mounted on the sash itself and engages with the jamb, creating a solid mechanical connection. For additional inspiration on improving your window appearance, consider reading about not so common trim details that can elevate the look of your windows alongside their security.
The Stick Method
This is the simplest approach and the only one that requires no drilling whatsoever. Close the window and measure the gap between the top of the lower sash and the inside edge of the top of the window frame. Cut a length of three-quarter-inch wooden dowel to match that measurement. Wedge the dowel into the gap between the sash and the frame, then push it to one side so it stays out of sight. The dowel prevents the sash from moving in either direction, and no one can open the window until you remove it. This method is ideal for renters who cannot make permanent alterations but still want effective security.
Simple Solutions for Sliding Windows
Sliding windows operate horizontally rather than vertically, but the same principles apply. A horizontal sash can be blocked using either the pin method or the stick method described above. However, sliding windows are often made of aluminum, which is harder to drill and more prone to cracking than wood. This makes the stick method the preferred choice for aluminum frames. Measure the horizontal gap between the edge of the sliding panel and the opposite side of the track, cut a dowel or a length of wood to size, and wedge it tightly in place. It is discreet, removable, and requires zero modification to the window. If you are in the process of selecting new windows or evaluating your current setup, it is worth taking time to learn about different window types so you can make informed decisions about both aesthetics and security.
An alternative for sliding windows is a commercially available sliding window lock that attaches to the track with adhesive or screws. These are compact metal brackets that sit in the channel behind the sliding panel and prevent it from moving beyond a set point. They are inexpensive, easy to install, and widely available at hardware stores.
Securing Casement and Awning Windows
Casement windows hinge on one side and crank outward, while awning windows hinge at the top and push outward from the bottom. Both types function like small doors, and their locking mechanisms rely on the window being pulled tight against a weatherstripped jamb. When the crank mechanism wears out or the seal compresses unevenly, the lock may not engage fully. The most reliable DIY fix is a barrel bolt or a keyed push lock installed directly on the window frame. Close the window using the crank to pull it as tight against the jamb as possible, ensuring the weatherstripping is fully compressed. Mount the barrel bolt at your preferred height, positioning it about half an inch from the jamb. For awning windows, place it at the center of the bottom frame section for maximum hold. Mark where the barrel contacts the jamb, open the window, and drill a hole slightly larger than the barrel diameter. If your lock comes with a strike plate, align it over the hole and screw it into place. The barrel slides into this hole and prevents the window from swinging outward. While working on window hardware, you might also appreciate learning how to upgrade your paper towel dispenser with a similarly simple DIY approach that saves money and improves everyday function.
Keyed push locks offer the same functionality as barrel bolts but add the security of a key. This is useful for ground-floor windows where you want to prevent even a family member from opening the window without authorisation. The installation process is nearly identical.
Choosing the Best DIY Lock for Your Window Type
Not every locking method works well on every window. The material of the frame, the orientation of the sash, and whether you own or rent all influence which approach is best. The table below summarises the options so you can select the right one for your situation.
| Window Type | Best DIY Method | Tools Required | Renter Friendly |
|---|---|---|---|
| Single-hung (wood) | Pin, barrel bolt, or stick | Drill, bit, pin or barrel bolt | Stick only |
| Double-hung (wood) | Pin or barrel bolt | Drill, bit, pin or barrel bolt | Stick only |
| Sliding (aluminium) | Stick or track bracket | Tape measure, saw | Yes |
| Sliding (vinyl) | Track bracket or pin | Drill, bit, pin or bracket | Bracket only |
| Casement (wood/vinyl) | Barrel bolt or keyed lock | Screwdriver, drill, bit | No |
| Awning (wood/vinyl) | Barrel bolt at bottom centre | Screwdriver, drill, bit | No |
When choosing a method, prioritise solutions that do not interfere with the normal operation of the window. A lock that is difficult to disengage becomes a nuisance and may cause you to leave the window unsecured out of frustration. Similarly, avoid methods that could damage the glass or the sealing surfaces. For homeowners who are also tackling other mechanical repairs around the house, the same problem-solving mindset applies to projects such as window regulator clip repair, where a small plastic component can save you from replacing an entire mechanism.
When to Consider Permanent Hardware Upgrades
DIY locking solutions are excellent for restoring security on older windows, but they are not a substitute for addressing the underlying problem. If your window sashes are so swollen that even a pin or barrel bolt cannot hold them securely, or if the frame itself is rotting or warped, the long-term fix is replacement. Modern windows come with integrated multi-point locking systems that are far more secure than anything a retrofit lock can provide. They also include improved weatherstripping that reduces drafts and improves energy efficiency. If you are considering a replacement, a thorough approach to home window replacement covers everything from measuring and ordering to installation and finishing.
For homeowners who are not quite ready to replace their windows but want a stepping stone that improves both security and weather sealing, adding storm windows or applying weatherstripping tape can extend the life of existing windows by several years. Periodic maintenance, including sanding down painted-over sashes and lubricating the tracks, also keeps the original locking hardware functional for longer.
A final note on installation best practice applies regardless of which method you choose. Any hole drilled into a window frame should be slightly oversized to prevent the pin or bolt from jamming due to seasonal wood movement. Always use a sharp drill bit and a steady hand to avoid splintering the frame. For casement and awning windows, ensure the strike hole is deep enough to accept the full length of the barrel so the lock sits flush against the frame. A lock that protrudes can snag on curtains or blinds and may disengage accidentally. Properly executed, these simple modifications can restore a level of security that rivals modern locking systems at a fraction of the cost. Understanding leakproof window flashing principles will also help you ensure that any new installations remain watertight and durable over the long term.
