A door lock works by aligning internal pins with the key’s cuts so the cylinder can rotate and move the bolt.
Nearly every mechanical door lock, from a basic interior knob to a heavy deadbolt, relies on the same core idea: small internal parts physically block the mechanism until the correct key clears the path. Understanding the few moving pieces makes it much easier to diagnose a sticky lock or pick the right hardware for a door. The classic pin-tumbler design is the best place to start because it explains most locks you’ll encounter.
The Anatomy of a Standard Cylinder Lock
Most common door locks are pin-tumbler cylinder locks. The main parts are the cylinder (the plug that turns), the keyway (the slot for the key), and a set of spring-loaded pins inside. These pins sit in two stacks: key pins touch the key itself, and driver pins sit above them, pushed down by small springs.
When no key is inserted, the driver pins sit across the shear line — the boundary where the plug meets the outer housing — which physically prevents the cylinder from rotating. This is the lock’s resting state.
What Happens When the Key Turns?
The process is quick but precise. When you insert the correct key, its pointed cuts and valleys lift each key pin to a specific height. The key’s unique bitting pattern aligns every key pin with the shear line, pushing the driver pins completely out of the plug and into the housing above.
- Insert the key fully into the keyway.
- The key lifts the pins so each break between key pin and driver pin sits exactly at the shear line.
- The plug is now free to rotate because nothing bridges the boundary.
- Rotation moves a cam or tailpiece at the back of the cylinder.
- The cam retracts the bolt or latch, pulling it out of the strike plate on the door frame.
An incorrect key leaves at least one pin misaligned across the shear line, so the plug stays locked and the bolt does not move. When you remove the correct key, the springs push the pins back down, and the mechanism relocks itself automatically.
Why Some Locks Feel Stiff or Fail to Open
Two problems explain most lock failures. The first is a key that does not match the lock. If the internal pin heights or lever cuts are wrong, the shear line never aligns and the cylinder will not turn. The second, more common issue, is misalignment between the bolt and the strike plate. Over time, a door can sag on its hinges, causing the bolt to scrape against the plate instead of sliding cleanly into it. When that happens, the lock mechanism is fine — the surrounding hardware is the problem.
Misalignment shows up as a latch or deadbolt that sticks, grinds, or takes extra force to throw. The fix is usually adjusting the strike plate position or tightening the hinge screws, not replacing the lock. UCL’s technical specification for mechanical locking and door ironmongery notes that correct alignment is fundamental to smooth operation, and it also clarifies that terminology can vary — different manufacturers sometimes use “bolt,” “latch,” and “tang” inconsistently.
Choosing a Lock for a Specific Door
Most residential doors use one of a few lock types. Knob locks have the latch mechanism built into the handle and are common on interior doors. Deadbolts use a solid metal bolt that extends deeper into the frame, making them a stronger exterior choice. Rim locks mount on the surface of the door and are often seen on older homes or sheds. Disc tumbler locks are more common in padlocks and some cabinets.
Secured by Design, a UK police-initiative standards body, recommends that an exterior door lock assembly support keyless egress — meaning you can exit freely using an inside thumb-turn while the outside still requires a key. This practical feature means you never have to fumble for a key during an emergency, and you can step outside briefly without fully locking yourself out. The more secure entry points are covered in our roundup of the best basement door locks, which compares tested models for exterior basement entries where moisture and forced entry are real concerns.
For any exterior door, the lock itself is only half the equation. The bolt needs to reach deep into a solid strike plate, and the plate must be screwed into the door frame, not just the trim. A short bolt or a loosely mounted plate undermines even the strongest cylinder.
References & Sources
- UCL Estates. “Mechanical Locking and Door Ironmongery Specification.” Details lock types, terminology, and alignment requirements.
- Secured by Design. “Locks & Associated Hardware.” Outlines security standards and keyless egress guidance for locks.
- Federal Register. “Federal Motor Vehicle Safety Standards: Door Locks and Door Retention Components.” Reference for mechanical locking principles in regulated components.

