Locks and keys in 3D

A standing 3D flowchart panel explains a pin tumbler lock: key inserted, pins lift to shear line, cylinder turns, bolt retracts.Drag to turn

A lock is a mechanism that holds a bolt in place until the correct key, code or signal releases it. The most common household type is the pin tumbler lock, in which a key lifts small pins to the exact heights that let a cylinder turn.

A bolt, a cylinder and a set of obstacles

A door lock has two jobs. A bolt, a metal bar, slides into the door frame to hold the door shut. A separate mechanism decides who is allowed to move that bolt.

In a pin tumbler lock, the deciding part is a round cylinder called the plug. The plug sits inside a fixed outer body called the shell. Turning the plug moves the bolt, but only if the plug is free to rotate.

How the pins let the plug turn

Small holes run from the top of the shell down into the plug. Each hole holds a pair of pins stacked on top of each other: a key pin below and a driver pin above. A spring at the top pushes the pair downward. With no key inserted, the driver pins straddle the gap between plug and shell, called the shear line, and block the plug from turning.

The key has cuts of different depths along its blade. When the key is pushed in, each cut raises its key pin by a set amount. The correct key lifts every pair so that the gap between key pin and driver pin sits exactly at the shear line. The plug is then free, and turning the key moves the bolt.

A worked count of possible keys

Suppose a lock has 5 pin positions and the key has 6 possible cut depths at each position. The number of different key patterns is 6 x 6 x 6 x 6 x 6 = 7,776. A lock with 6 positions and the same depths gives 7,776 x 6 = 46,656.

Real locks have fewer usable combinations than this arithmetic suggests. Makers limit how much neighbouring cuts may differ, because very steep cuts weaken the key or stop it sliding in. Adding a pin position multiplies the count, which is why more pins usually means more variety.

Common misconceptions

A lock does not recognise a key as a whole shape. It only checks that each pin is lifted to the right height. A key that is a rough match will not turn the plug, but a worn key can sometimes still work.

Another belief is that a lock makes a door secure by itself. Strength also depends on the door, the frame, the hinges and the strike plate. Pin tumbler locks can often be defeated by picking or bumping, so they deter casual entry more than determined attack.

Where locks and keys appear

Pin tumbler cylinders are found in many house doors, padlocks and cabinets. Other designs include the wafer lock, common in cabinets and vehicles, and the lever lock, used in some older and European doors.

Electronic locks replace the key cuts with a code, card or phone signal. Many still use a motor to move a bolt, so the bolt idea stays the same while the deciding part changes.

Key terms

Bolt
The metal bar that slides into the door frame to hold the door closed.
Plug
The rotating cylinder inside the lock that the key turns.
Shear line
The gap between the plug and the shell, which must be clear of pins for the plug to turn.
Key pin
The lower pin in each pair, which touches the key.
Driver pin
The upper pin in each pair, pushed down by a spring.
Bitting
The pattern of cut depths along a key blade.

Common questions

Why does a copied key sometimes fail?

A copy may have cuts that differ slightly in depth from the original. If any pin pair is lifted a little too high or too low, it stays across the shear line and the plug will not turn.

Why do locks stick in cold weather?

Moisture inside can freeze, and dirt or old lubricant can thicken. Either one stops pins and springs moving freely. A dry graphite or suitable lock lubricant is usually recommended over oil.

Does a lock with more pins always resist picking better?

Not always. More pins raise the number of key combinations and usually make picking slower. Quality of manufacture and special security pins also matter.

Learn this with a tutor

Sidechair's AI tutor will teach this topic in 3D. Join the waitlist for early access.

We'll only email you about Sidechair. Read our privacy policy.