You slide your key into the front door, give it a quarter turn, and the deadbolt retracts. The whole thing takes about a second. But inside that brass cylinder, in the fraction of a moment before the bolt moved, five spring-loaded pin stacks had to align to within three thousandths of an inch of a single invisible boundary. If even one pin missed its mark, the cylinder would have refused to turn and the door would have stayed locked.
Your key does not "fit" the lock like a puzzle piece sliding into a matching hole. The key's profile is just a filter. The real security comes from the depth of each cut, which must push each pin stack to a precise height measured in thousandths of an inch.
Most people picture a key and lock the way they picture a jigsaw puzzle: the jagged shape of the key matches a jagged hole, and if the shapes align, the door opens. That model is wrong in an important way. The jagged profile of the keyway (the slot you slide the key into) is just a first filter called warding. It prevents the wrong brand of key blank from even entering. But warding alone would give a lock only a handful of possible keys. The real security, the reason a five-pin lock can have 100,000 possible key combinations, comes from something you cannot see from the outside: a row of tiny pin stacks, each of which must be pushed to a precise height.
A pin tumbler lock is built from two concentric cylinders. The inner one, called the plug, is the part that turns when you use the correct key. The outer one, called the shell (or bible), stays fixed in the door. Drilled vertically through both cylinders are five or six chambers. Each chamber holds a pin stack: a short key pin (bottom) that rests on the key, a driver pin (top) that sits above it, and a spring that pushes the whole stack downward.
The critical boundary between the plug and the shell is called the shear line. When no key is inserted, every driver pin crosses that boundary, physically locking the plug in place. The springs ensure the pins always return to this blocking position. The lock is locked not by a latch or a bar, but by five tiny metal cylinders straddling a gap.
When the correct key slides in, each cut on the key lifts its corresponding key pin by exactly the right amount. This pushes each driver pin upward until its bottom edge sits flush with the shear line. Now every key pin sits entirely inside the plug, every driver pin sits entirely inside the shell, and nothing crosses the boundary. The plug rotates freely, turning a cam (or tailpiece) at its back that retracts the deadbolt. One wrong cut depth, even by 0.015 inches (the width of a single depth increment on a Schlage lock), and at least one driver pin will still straddle the shear line, jamming everything.
How to use: Each pin has a target depth shown in green below its slider. Adjust all 5 sliders to match their targets so the red dots turn green, then press Turn Key to unlock. One wrong pin blocks everything.
Why jiggling works, and why keys wear out
If you have ever jiggled a sticky key to get a lock to turn, you were exploiting the same physics that makes the lock work. Pin chambers are manufactured to a tolerance of about plus or minus 0.003 inches. When a key is new and the pins are clean, each pin stack lands precisely at the shear line. But over years of use, key cuts wear down by fractions of a millimeter. Dirt and debris accumulate in the chambers. Springs weaken. The result is that some pins sit slightly above or below the shear line, close enough that a small wiggle shifts them into alignment. That jiggle is your hand compensating for accumulated wear by applying just enough off-axis force to nudge a borderline pin into place.
This same sensitivity to thousandths-of-an-inch positioning is what makes lock picking possible. In a theoretically perfect lock, all five pins would bind against the shear line simultaneously, and there would be no way to set them one at a time. But manufacturing tolerances mean one pin chamber always protrudes slightly more than the others. When a picker applies gentle rotational pressure with a tension wrench, that one pin binds first while the others remain loose. The picker pushes the binding pin to the shear line, the plug rotates a fraction of a degree, and now a different pin binds. The process repeats until all pins are set.
The flaw that makes every lock work is the same flaw that makes every lock vulnerable
Manufacturing tolerances are the Achilles' heel of every pin tumbler lock. The same imperfections that allow a key to work with normal human force also allow a skilled picker to set pins one at a time.
If a lock were machined to perfect precision, with every pin chamber drilled to identical depth and diameter, all five pins would bind simultaneously. Picking would be impossible because there would be no binding order, no way to distinguish one pin from another. But such a lock would also be nearly impossible to use. The key would require perfect alignment and enormous insertion force. Pins would seize from the slightest speck of dust. The lock would fail in cold weather when metal contracts by millionths of an inch.
So every lock is a compromise. Enough tolerance to function reliably in rain, cold, dirt, and daily wear. Enough precision to resist casual attack. Security pins (spool, serrated, mushroom) do not eliminate the fundamental vulnerability; they multiply the difficulty by creating false sets that mislead the picker and require counter-rotation that risks dropping previously set pins. A lock with five spool driver pins can resist an experienced picker for minutes instead of seconds. But the tolerance trade-off remains: the lock works because it is imperfect, and it can be defeated because it is imperfect.
Every door you walk through today, every deadbolt you turn, every padlock you click shut, trusts its security to the same physics: a handful of spring-loaded pins that must align at an invisible boundary thinner than a sheet of paper. The mechanism was invented 4,000 years ago in Egypt using wooden pins and gravity. Linus Yale Jr. miniaturized it in 1861 with a flat serrated key. And in all that time, the core principle has never changed. Security is not a wall. It is a line, a shear line, where five tiny cylinders either block a rotation or allow it. The difference between locked and unlocked is measured in thousandths of an inch.