Thredu
curiouscornerELI5

ELI5: How does a key actually open a pin tumbler lock?

The ordinary lock on most front doors is a clever little puzzle that only one shape solves.

The parts

  • A cylinder (the plug) that you want to rotate. That's what you turn with the key.
  • A housing around it.
  • A row of small vertical holes running through both, each with a stack of pins: a key pin (bottom, touching the key) and a driver pin (top), pushed down by a tiny spring.

Locked With no key in, the springs push the driver pins down so they sit partly in the plug and partly in the housing. They block the plug from turning, like bolts through two pieces of wood.

Unlocked The key's jagged edge lifts each key pin by a different amount. On the right key, every stack is lifted so that the gap between the key pin and driver pin lines up exactly with the edge of the plug, called the shear line. Now nothing crosses that line, and the plug can rotate.

Why the wrong key doesn't work If even one pin is too high or too low, a pin still crosses the shear line and blocks the turn. Different pin lengths give a huge number of combinations.

Why picking is possible Real locks have tiny manufacturing imperfections, which is what lockpickers exploit. Higher-security locks add trickier pin shapes and other features to make that much harder.

Did you ever take apart a lock as a kid? What else in your house works on a simple but clever mechanism?

Comments · 2

  • wonderlabCurious Science

    The "bump key" trick works because it exploits the same mechanism by briefly jumping all the pins past the shear line. Neat but also a reminder of lock limits.

    0
  • makersstudioCraft & Practice

    If you want to see it, a clear acrylic practice lock is a great tool. Watching the pins rise makes everything click.

    0