A door lock works by using a key or thumb turn to rotate a cylinder plug, which aligns pins or discs to release a cam that retracts the latch or deadbolt. The latch is the spring-loaded, beveled piece that holds the door closed and is retracted by a handle, while the deadbolt is a solid, square-ended bolt that extends into the frame for security and is operated only by the cylinder.
The Basic Anatomy of a Door Lock
Most residential door locks consist of two main assemblies: the lock body (or chassis) inside the door and the strike plate on the frame. The lock body contains the cylinder, the latch or bolt mechanism, and the handle or knob. The cylinder is the part that accepts the key; it houses the plug (the rotating core) and the pin or disc stacks that prevent rotation without the correct key. The latch and deadbolt are the moving parts that engage the strike plate to keep the door closed and locked.
In a typical cylindrical lock (common in North America), the cylinder and knob are integrated into a single unit that fits through a cross-bore hole in the door. In a mortise lock (common in Europe and older buildings), the lock body is a rectangular box mortised into the door edge, with separate cylinder and handle assemblies. Tubular locks, often used on exterior doors, have a separate deadbolt and latch, each with its own cylinder or thumb turn.
How the Cylinder Works: Pins, Springs, and the Shear Line
The cylinder is the heart of the lock's security. In a pin-tumbler cylinder, the plug (the rotating part) is drilled with a series of vertical chambers. Inside each chamber sits a bottom pin (key pin) and a driver pin (top pin), pushed down by a spring. When no key is inserted, the driver pins sit partly in the plug and partly in the cylinder housing, blocking rotation. When the correct key is inserted, its cuts lift each bottom pin and driver pin so that the gap between them—the shear line—aligns exactly with the plug's rotation point. The plug can then turn freely.
If the wrong key is used, at least one pin pair will not align at the shear line, and the plug remains locked. This is why a key with the wrong cut pattern cannot open the lock. Higher-security cylinders may use security pins (spool or serrated pins) that make picking more difficult, or they may use a different mechanism entirely, such as a disc-detainer cylinder (common in Europe) where flat discs rotate to align a gate, or a wafer cylinder (common in cars and cabinets) where spring-loaded wafers must be lifted to the correct height.
The Latch: Spring-Loaded Convenience
The latch is the spring-loaded component that keeps the door closed when it is not locked. It has a beveled face (the curved part) that allows the door to close and latch automatically as it swings shut. When the door closes, the beveled latch slides over the strike plate, compressing the spring, and then snaps into the strike plate's hole, holding the door shut. Turning the handle retracts the latch by pulling it back into the lock body, allowing the door to open.
Latches are not designed for security on their own; they can often be slipped with a credit card or similar tool if the door is not deadlocked. Many residential locks include a “deadlocking” feature: a small plunger or trigger that, when the door is closed, prevents the latch from being pushed back by a tool inserted between the door and frame. This is why a closed but unlocked door can still resist simple slipping techniques.
The Deadbolt: Solid Security
The deadbolt is a solid, rectangular bolt that extends from the door edge into the strike plate. Unlike the latch, it has no spring and no beveled face; it must be manually extended or retracted by turning a key or thumb turn. Because it is solid and extends deeply into the frame (typically 1 inch or 25 mm), it provides much greater resistance to forced entry than a latch alone. Deadbolts are classified by their throw (the distance the bolt extends) and by their ANSI/BHMA grade (Grade 1 being the highest residential security, Grade 2 and Grade 3 lower).
Some deadbolts are “single-cylinder” (key on one side, thumb turn on the other) and some are “double-cylinder” (key on both sides). Double-cylinder deadbolts are sometimes used on doors with glass panels to prevent an intruder from breaking the glass and turning the thumb turn, but they can be a safety hazard in a fire because they require a key to exit. Building codes in many areas restrict their use on egress doors.
How the Parts Work Together
When you insert the key and turn it, the cylinder plug rotates. In a tubular or cylindrical lock, the plug's rotation moves a cam or tailpiece that retracts the latch or deadbolt. In a mortise lock, the plug turns a thrower that moves the bolt mechanism inside the lock body. The handle (or knob) is connected to the latch retractor; turning the handle moves a spindle that pulls the latch back, independent of the cylinder. In a deadbolt, there is no handle connection—only the cylinder or thumb turn operates the bolt.
The strike plate on the frame is just as important as the lock itself. It must be securely anchored with long screws (at least 3 inches or 75 mm) into the wall stud or framing, not just the door trim. A weak strike plate allows an intruder to kick the door open even if the lock itself is strong. The strike plate's hole must align precisely with the latch or bolt; misalignment is a common cause of doors that won't latch or lock properly.
Common Lock Mechanisms Compared
- Pin-tumbler cylinder: The most common residential lock in North America. Uses bottom and driver pins; susceptible to picking and bumping if not equipped with security pins.
- Disc-detainer cylinder: Common in Europe. Uses flat rotating discs; resistant to bumping but can be picked with special tools.
- Wafer cylinder: Found in cars, cabinets, and low-cost locks. Uses spring-loaded wafers; less secure than pin-tumbler.
- Lever lock: Uses levers instead of pins; common in older British locks. Not typically rated for high security.
- Electronic and smart locks: Use a motor or solenoid to retract the bolt, activated by keypad, smartphone, or biometric reader. Still rely on a mechanical latch or bolt.
Common Problems and Maintenance
Locks are mechanical devices and can fail in predictable ways. A key that becomes hard to turn often indicates a worn key, a dry or dirty cylinder, or misalignment between the door and frame. Graphite powder is sometimes recommended for lubricating pin-tumbler cylinders, but it can attract dirt over time; a dry PTFE or silicone-based lubricant is generally preferred by locksmiths. Never use oil or grease, which can gum up the pins.
A latch that doesn't catch may be due to a misaligned strike plate, a worn latch spring, or a door that has swollen or sagged. A deadbolt that won't extend fully may be misaligned with the strike plate hole, or the bolt may be obstructed by debris. In cold weather, metal doors and frames can contract, causing temporary misalignment. Regular inspection of screws and strike plates, and occasional lubrication, can prevent most problems.
Frequently Asked Questions
Can a door lock be opened without a key?
Yes, in several ways: picking, bumping, using a lock bypass tool, or exploiting a weak strike plate. High-security cylinders and proper installation make these methods much harder. Electronic locks can sometimes be bypassed if not properly secured.
What is the difference between a latch and a deadbolt?
A latch is spring-loaded and holds the door closed; it can be retracted by the handle. A deadbolt is a solid bolt that must be manually extended or retracted and provides much stronger security.
Why does my key turn but the door won't open?
This usually means the cylinder is turning but the cam or tailpiece is not engaging the latch or bolt, often due to a broken part inside the lock body or a misalignment between the lock and the door frame.
Are double-cylinder deadbolts safe?
They can be a safety hazard in a fire because they require a key to exit. Many building codes restrict their use on egress doors; single-cylinder deadbolts with a thumb turn are generally recommended for homes.
How often should locks be lubricated?
Once a year, or whenever the key becomes stiff. Use a dry lubricant designed for locks; avoid oil or graphite if possible.
Can I rekey a lock myself?
Yes, rekeying kits are available for common pin-tumbler cylinders. It involves removing the cylinder, replacing the pins to match a new key, and reassembling. It requires some care but is a common DIY task.