Redding Mobile Locksmith team in branded uniforms beside a fully equipped branded service van at sunset

Home / Field notes / How a pin tumbler lock actually works

Field notes: lock basics

How a pin tumbler lock actually works, part by part

The lock on most front doors, padlocks and mailboxes is a pin tumbler. It is a small mechanical puzzle that your key solves in a fraction of a second. Here is what is going on inside.

The lock you use every day without seeing it

Most people have turned a pin tumbler lock thousands of times and never looked inside one. The design is old, simple and remarkably durable. It sits in the deadbolt on a front door, in the knob on a back door, in many padlocks, in mailbox locks, and in a great number of vehicle door and ignition locks in some form. If you live or work in the North State, a pin tumbler is probably within arm's reach right now.

The reason it has lasted is that the idea is easy to describe. A cylinder that can turn is held still by a set of small pins. The correct key moves those pins to exactly the right positions, and then the cylinder is allowed to rotate. The wrong key leaves at least one pin in the wrong place, and the cylinder stays put. Everything else about the lock is detail around that central idea.

This guide takes the lock apart in words. It explains each part, shows how the key does its job, and then explains why real world conditions, such as dust, cold, wear and age, change how a lock feels. It is written for curious owners, not for people who want to defeat a lock, so it stays with how the thing is meant to work.

The parts you should know by name

A pin tumbler cylinder has a handful of main parts. The outer body is called the cylinder housing or shell. Inside it is a round plug that can rotate. The plug has a slot through which the key enters, called the keyway. In the top of the housing and the plug are vertical holes, called pin chambers, that line up when the plug is in its resting position.

In each chamber sits a stack of small pins pushed down by a spring. The pin that rests against the key is called the key pin. The pin above it is called the driver pin. Each stack is held in place by a spring, which is held in place by the top of the chamber. Most house locks have five or six chambers. Some padlocks and car locks have more or fewer.

At the back of the plug is a part that connects to whatever the lock operates. In a deadbolt it is a cam or tailpiece that turns the bolt. In a knob lock it is a lever that retracts the latch. The plug is what does the work, and the pins are what decide whether it is allowed to.

There is also a retaining arrangement that keeps the plug from sliding out of the front of the housing. A clip, a ring or a cap holds it in place while still letting it turn. When a technician rekeys a lock, this is the part they release so that the plug can be removed and the pins swapped. Understanding it explains why a rekey is a clean, repeatable job rather than a repair done by feel.

  • The housing is the fixed outer body of the cylinder.
  • The plug is the inner cylinder that turns when the lock is operated.
  • The keyway is the slot that the key slides into.
  • Key pins touch the key, and driver pins sit above them.
  • Springs push each pin stack toward the keyway.

The shear line, the idea that makes it all work

Between the plug and the housing there is a thin gap, a boundary where the two parts meet. That boundary is called the shear line. When the lock is at rest, the driver pins sit across the shear line, partly in the plug and partly in the housing, which locks the two together. Think of the pins as small bolts that pin the plug to the housing.

To turn the plug, every pin stack must be lifted so that the gap between the key pin and the driver pin sits exactly at the shear line. When that happens, nothing crosses the boundary, and the plug is able to rotate. If even one stack is a little too high or too low, a piece of pin still crosses the line, and the plug stays locked.

This is the heart of the design. A pin tumbler does not recognize a key by its shape in any magical way. It simply allows rotation when each pin stack has been placed at the right height. The key does that automatically as it slides in.

What the key actually does

A key has a row of cuts along its blade, each at a particular depth. As you push the key into the keyway, the ridges and valleys slide under the key pins. Each cut lifts or lowers its pin to a specific height. The depth of each cut is chosen so that, with the key fully inserted, the gap between each key pin and driver pin lines up with the shear line.

The spring on top of each stack keeps pressure on the pins so they follow the key as it moves. When you pull the key out, the springs push the pins back down, and the driver pins return across the shear line, locking the plug again. That is why a lock re locks itself when the key is removed.

The grooves along the side of the key blade are a second layer of the system. They match the shape of the keyway so that only keys with the right profile can enter. This is why you cannot slide a random key into every lock. Our guide on keyways and key blanks explains this part in more detail.

Redding Mobile Locksmith team in branded uniforms beside a fully equipped branded service van at sunset

Why five or six pins, and why the cuts vary

The number of pins and the number of possible heights for each one determine how many different keys the design can support. With a handful of pins and several depths for each, the number of combinations is large. That gives manufacturers plenty of room to make many distinct key patterns, so that your key does not open your neighbor's lock.

In practice the number is smaller than the theory suggests. Manufacturers follow rules about how much adjacent cuts can differ, since a sharp change in depth would make a key weak or hard to cut. Many locks in a given region also use common patterns. That is one reason people sometimes find that an old key from another house partly works in a new lock. The pins may line up in some positions and not others.

This is also why a rekey makes a useful difference. Changing the pins inside the plug changes which key pattern is needed, even though the housing and the plug remain the same. Our Etna rekeying page explains how this is planned in a real house.

Pin lengths come in graduated steps, each a small fraction of an inch longer than the last. A key cut with deep valleys lets pins sit low, and a key with shallow cuts holds them high. The steps are deliberately small, which is why a key copied with a slightly sloppy cutter can fail even though it looks identical. This is one reason duplicate keys sometimes fail, and the guide on why duplicate keys sometimes fail goes through the causes.

What happens when the plug turns

Once the pins are lined up, you turn the key and the plug rotates with it. At the back of the plug, a tailpiece or cam moves with it. In a deadbolt, the cam pushes a bolt out of the door and into the frame. In a knob lock, it retracts the latch so you can open the door. In a padlock, it releases the shackle.

The cylinder itself is only the part that decides whether movement is allowed. The rest of the hardware does the physical work of securing the door. A well made cylinder in a weak door or a loose frame still fails when the door is pushed hard. That is why locks and doors are sensibly thought of as a pair. See strike plates and door frames, the overlooked half of a lock for the other half of the picture.

Different lock grades also use different materials and tolerances. A heavy duty deadbolt will use thicker pins, a more solid housing and a better bolt. Our guide on choosing a deadbolt grade in plain words explains how to compare without being lost in jargon.

Why locks wear, stick and fail

Every time a key enters and leaves, it rubs against the pins. Over thousands of uses, that rubbing wears the key's cuts and the tips of the pins. A worn key lifts the pins slightly less than it should, and the lock begins to feel loose, picky or sticky. A worn pin does the same from the other side. The wear is gradual, which is why people often tolerate a lock for a long time before it fails.

Dirt makes it worse. Dust, pollen, lint and tiny metal flakes settle in the chambers and keyway. They add friction and can stop a spring from pushing a pin all the way down. The result is a lock that works sometimes and sticks at others. Our guide on what happens when a key wears down goes further into the key side of the wear story.

Springs also tire. A weak spring may not push a pin firmly against the key, which can cause the lock to feel inconsistent. Corrosion can add to the problem, especially in outdoor locks that face rain, snow and road salt. Regular gentle maintenance, such as using the right lubricant, can prolong life. See lock lubricants, what helps and what hurts for details.

How weather changes the picture

Metal expands when it warms and contracts when it cools. The change is tiny, but a pin tumbler works with tiny tolerances. In hot dry weather, a lock may feel fine one moment and slightly snug the next. In cold weather, lubricant thickens, moisture condenses and any water in the keyway can freeze. The North State sees both extremes, hot dry summers in the valley and cold winters in the mountain towns.

A lock that sticks only in cold weather often has a small amount of moisture or a lubricant that stiffens in low temperatures. A lock that sticks in summer may be suffering from dust that has been baked into a gummy layer. Neither is a mystery once you know how the pins move. Our note on a deadbolt that sticks only in the cold shows how to think about it.

Doors move with the seasons too. A frame that has shifted can push on the bolt, so the key seems stiff even though the cylinder is fine. If a lock feels worse with the door closed than open, suspect alignment before the cylinder. The guide on doors that do not latch covers that case.

Reading your own lock's behavior

You can learn a lot by paying attention. A key that enters smoothly and turns with light pressure suggests a healthy lock. A key that needs a wiggle suggests wear in either the key or the pins. A key that turns but does not move the bolt suggests a problem behind the cylinder. A key that will not enter at all suggests debris, a bent key or the wrong key.

Try the same lock with a spare key. If the spare works better, the original is worn. If both behave the same way, the lock is the problem. Try the key in other locks of the same brand type if you have them. If it feels rough everywhere, the key is the likely cause.

Do not force anything. A pin tumbler is made of small, precise parts, and brute force breaks keys and bends pins. If a lock is acting up, stop and look at the options on our lock repair page.

Keep a short habit of noticing. When a lock is new, pay attention to how the key feels as it goes in, how much force the turn takes, and the sound of the bolt moving. That memory becomes your reference. Months or years later, a change in that feel is an early signal, and you can act while the fix is still small. Locks rarely go from perfect to broken without a long stretch of warning in between.

What this means for choosing and caring for locks

The design explains most practical advice. Quality matters because tighter tolerances and harder metals wear more slowly. Maintenance matters because the pins need to move freely. Key control matters because anyone with a copy of your key can operate the lock. Changing pins by rekeying matters when you do not know who has copies.

It also explains why a lock alone is never the whole answer. The door, frame, strike and hinges all contribute to security. A pin tumbler lock in a flimsy door is like a good padlock on a gate made of string. The pieces need to match.

If you want help assessing what you have, our residential locksmith page describes the work we do at homes, and the request form is the way to reach the team while the phone line is coming soon.

Common questions

What is the shear line in a lock?

It is the boundary between the inner plug and the outer housing. When every pin stack is lifted so the gap between its two pins sits at that boundary, nothing crosses it and the plug can turn. If any pin sits too high or too low, the plug stays locked.

Why do most house locks have five or six pins?

More pins allow more key combinations, but each added pin makes the lock and key bigger and harder to build well. Five or six pins offers a practical balance of variety, strength and cost. Some padlocks and specialty locks use more or fewer, depending on the design.

Why does my lock feel different in winter?

Cold thickens lubricant, shrinks metal slightly and lets moisture collect or freeze in the keyway. Doors and frames also shift with the season. A lock that works in summer may feel stiff or catch in winter. Gentle care and the right lubricant usually help, and persistent trouble is worth a look.

Does a worn key damage the lock?

A worn key lifts the pins less accurately, which can cause sticking and extra rubbing. Over time it can wear the pins more than a fresh key would. Replacing a worn key with a clean cut from a good original is a simple way to protect the lock.

Is a rekeyed lock the same lock?

The housing, plug and hardware stay the same. Only the pins inside change, so a different key pattern is needed. Old keys stop working and a new key operates the lock. It is a common way to deal with lost or shared keys without replacing the whole lock.

Can a pin tumbler lock be repaired?

Often yes. Cleaning, replacing worn pins or springs, or installing a new cylinder can restore a lock that has begun to fail. If the housing is damaged or the lock is badly worn, replacement is usually the better choice. A technician can check the lock and explain the options.

Tell us where you are and what happened.

Request service