Illustration, made with AI
How do keys open locks?
A key is a secret code cut into metal!
Inside the lock, little pairs of pins block it from turning. The bumps and valleys on the key push each pin to exactly the right height.
When every pin lines up, the lock can turn!
Tell me more
Look closely at a key and you'll see V-shaped valleys along its edge, evenly spaced. The depth of each valley is one part of the code. Inside the lock, springs push the pins down into the valleys. If a valley is too shallow, a pin sticks up and jams the lock. If it's too deep, the pin above drops down and jams it. Only the right key lines up every gap between the pins at the edge of the part that turns, called the shear line. Locks with pins may go back about 4,000 years, to wooden locks in ancient Egypt!
Words to know
- shear linethe line inside a lock where the turning part meets the part that stays still
Try it at home
Lay two different keys side by side. Can you see how their bumps and valleys are different? Each pattern is a different code.


Dig deeper
What else?


Surprise me!