A giant cutaway pin tumbler lock in seven steps: springs, pins, the shear line, wrong and right keys, turning and picking.
This giant teaching model is a five-pin cylinder lock set into the edge of an oak door. Watch the front half fade away to show the parts that decide which key can turn it.
Linus Yale Jr. patented the small cylinder lock and its flat key in 1861 and 1865. Most front doors still use his idea.
A brass plug turns inside a fixed housing. Five stacks bridge the two: a key pin, a driver pin and a spring. The thin seam where plug meets housing is the shear line.
With no key in the lock, each spring pushes its stack down until the driver pin straddles the shear line. Try to turn the plug and those five drivers stop it.
A key is a row of heights. Each cut lifts one key pin, but these cuts are wrong: some gaps stop below the shear line and others overshoot it, so the plug stays locked.
On the right key, each cut is exactly as deep as its key pin is long. Slide it in: the pins ride up and down the cuts, and at full depth all five gaps meet the shear line at once.
Nothing crosses the shear line now. The plug turns and carries the key pins with it while the drivers wait in the housing. Its cam swings round and draws the bolt out of the strike.
No lock is machined perfectly. Under light turning force from a tension wrench, one pin binds first. A hook lifts it until its driver clears the shear line and catches with a click, then the next pin binds.
Pin chambers are never drilled in a perfectly straight line, so the pins always bind in some order.
The front half closes and the key comes to rest in the lock. From a front door to a padlock, a pin tumbler lock asks one question: is every gap on the shear line?
Wooden locks from ancient Egypt, around 2000 BC, already held a bolt shut with pins that dropped into it.