Home / Blog / How Pin Tumbler Locks Work

How a Pin Tumbler Lock Actually Works

Most house, shop and gate locks in Redding use the same inner design, the pin tumbler cylinder. This guide builds a clear picture of the parts inside, how a key moves them, why rekeying works, and what wear and weather do to the whole assembly.
Illustrative photograph

The small parts hidden inside the round brass barrel

When you look at the front of a common door lock, you see a round metal face with a narrow slot for the key. That slot is called the key way. Behind it sits the cylinder, a short brass barrel that is the heart of the lock. Inside the cylinder are only a few kinds of part, and once you can picture them, the whole device makes sense. The two main bodies are the housing and the plug. The housing, sometimes called the shell, is the outer part that stays fixed in the door. The plug is the inner round piece that has the key way cut into it, and it is the part that turns when you turn the key.

If the plug could turn freely, any key or even a stick would open the lock. What stops it are the pins. Inside the cylinder there is a row of small holes drilled from the top, passing through the housing and down into the plug. In each hole sits a stack of small metal pieces and a spring. At the bottom is a key pin, which touches the key. Above it sits a driver pin, and above that a spring pushes down on the stack. The springs push the pins down so that the stack straddles the boundary between the plug and the housing. That boundary is called the shear line. With the pins resting there, the driver pins block the plug from turning, because they stick across the shear line like small bolts.

Most residential cylinders have five or six of these pin stacks lined up along the key way. Each stack has its own key pin, with a length that differs from the others. The key pins are cut to specific lengths, and the combination of lengths is what makes your lock different from your neighbor's. The driver pins are usually all the same length, and the springs are identical. A cylinder is therefore a set of small plungers, each with a spring behind it, arranged in a row and each blocking the plug until the right lift is applied.

There is also a tailpiece or a cam at the back of the plug. When the plug turns, this part turns with it and moves the bolt or the latch in the door. In a deadbolt, the tailpiece rotates a mechanism that slides the bolt out of or into the door edge. In a knob lock, the cam retracts the latch. The cylinder does not push the bolt by itself, it only releases the mechanism so that turning becomes possible.

A retaining clip or a cap at the back of the plug keeps it from sliding out of the housing. Small details like this hold the whole thing together, and they are what a locksmith works with when rekeying. The materials are mostly brass for the plug and housing, since brass machines well and resists rust, and hardened steel for parts that must withstand wear.

The pin tumbler design is old in concept and has been refined for generations. It is cheap to make, reliable, and easy to rekey. That explains why it appears on houses, apartments, shops, padlocks and gates. In the Redding area, you will find it on older ranch homes with brass hardware, on newer subdivisions with modern deadbolts, and on rural gates with padlocks. The details of finish and strength differ, but the interior idea is the same.

This page is general education. It explains how locks work so that you can make good choices as an owner. It is not a guide to defeating locks, and the work described elsewhere on this site, such as lockouts and rekeying, is for owners with proof of ownership.

What the key actually does when you slide it in and turn

Now picture the key. A key is a flat piece of brass with a pattern of ridges and valleys cut along one edge. As you slide it into the key way, the ridges pass under the pin stacks. Each stack is pushed upward by the part of the key beneath it. A high ridge pushes its key pin up a long way. A low valley lets the key pin sit lower. When the key is fully inserted, each pin stack has been lifted by exactly the amount needed for its key pin to reach the top of the plug and for the driver pin to sit just above the shear line. At that moment, the break between the key pin and the driver pin lines up with the shear line in every stack at once.

When that happens, nothing blocks the plug. The key pins are entirely inside the plug, the driver pins are entirely inside the housing, and the boundary between the plug and housing is clear all the way along. You can now turn the key, and the plug rotates freely, carrying the tailpiece with it and moving the bolt. This is what happens in the fraction of a second after you insert the correct key. It is a mechanical match between the pattern on the key and the lengths of the pins.

If you insert the wrong key, the ridges lift some stacks too high or too low. A stack lifted too high pushes the driver pin past the shear line into the plug, where it blocks rotation. A stack lifted too little leaves the key pin crossing the shear line. Either way, at least one stack is blocking, and the plug will not turn. Even a key that is one position off in a single cut will fail. This is why the key must be accurate.

The tapered shape of the pins helps with smooth action. The tops of the key pins are rounded, so they ride over the ridges of the key without catching. The key way has grooves, called wards, that limit which keys can enter. A key for another lock may not fit the key way at all, because its profile is different. Wards are a first line of filtering, and the pin stacks are the second.

It may help to compare the system to a set of gates. Each pin stack is a gate that opens only when its pin is lifted to the right height. The key lifts all gates at once to their correct heights. If every gate is at its proper height, the passage is clear. If even one gate is off, the passage is blocked. The more gates there are, and the more heights each can take, the more possible combinations the lock has.

A few other features appear in better locks. Some have security pins, which are driver pins with special shapes such as spools or serrations. These shapes make the pins catch at the shear line in ways that complicate unauthorized manipulation. They do not change how your key works, but they add resistance. Other locks add side bars, extra pins on the side, or other devices. These are found on higher security cylinders.

None of this requires you to memorize terms. The key point is that a key is a physical code. Its shape tells the pins where to stop. When the code matches, the lock opens.

Cuts, depths and the numbers behind a key

Every key has a pattern of cuts, and each cut is made to a particular depth. In the industry, depths are numbered so that a key can be described as a series of digits. A key with five cuts might be described by five numbers, each showing how deep the cut is at one position. The numbers are not secret in themselves, but together they form the code for that key. This code can be read from a key or from a lock and used to cut a new key.

The depths are measured in small, standard steps. A cut that is deeper lets the key pin sit lower, and a shallower cut holds the key pin higher. The difference between steps is small, usually a fraction of a millimeter, so tolerances matter. If a cut is slightly off, the pin may not reach the shear line. This is why a poorly cut copy may feel rough, may need jiggling, or may fail to turn. It is also why copies of copies drift. Each generation can add small errors.

Key makers sometimes talk about bitting. The bitting is the code of the cuts. A manufacturer defines which codes are allowed for a key way, and certain combinations are avoided because they would make the key weak or could cause two adjacent cuts to be too different in depth. A rule called the maximum adjacent cut specification limits how steep the change between neighboring cuts can be, since a key with extreme jumps would be hard to produce and could damage the pins.

The number of possible codes for a lock depends on how many pins it has and how many depths are available. A five pin lock with several depths per pin has thousands of possible combinations. A six pin lock has many more. That sounds like many, but in a neighborhood where a single builder installed the same type of lock in many homes, some codes may repeat. This is one reason people rekey locks when moving into a new home, since previous keys may be out there.

When a locksmith cuts a key by code, they use a machine that sets each cut to the right depth. When they copy a key, they trace the existing key using a duplicating machine. When they originate a key from a lock, they decode the lock by determining the height of each pin, then cut a key to match. These methods rely on the same idea: the key must lift each pin stack to the shear line.

Here is a way to think about reading a key.

  • Count the cuts: this tells you how many pin stacks the lock has.
  • Compare their depths: deeper cuts correspond to shorter key pins at that position.
  • Check the shoulder: the flat step where the blade meets the head sets how far the key enters.
  • Look at the profile: the shape of the blade must match the key way.

This is only a sketch. Real keys come in many profiles and families, and locksmiths keep catalogs of key blanks and codes. The thing worth knowing as an owner is that a key is a precise object. Rough handling, wear, or bending can change how it lifts the pins.

Understanding the code also clarifies why a well made copy matters. A copy should lift every pin to the same height as the original. If you have a key that works poorly, a fresh cut by code or from the lock can restore smooth action. If the original is worn, copying it passes along the wear. A technician can help you decide.

Why rekeying works and what it changes inside

Once you understand the pin stacks, rekeying becomes easy to picture. Rekeying means changing the key pins in the cylinder so that a different key fits, without replacing the lock itself. When a technician rekeys a lock, they remove the plug from the housing, take out the old key pins, and put in new ones of different lengths. The new pins match the cuts of a new key. The driver pins and springs stay the same, and the housing stays in the door. When the plug goes back, the lock works with the new key, and the old key no longer lifts the pins to the right heights.

The elegance of this is that the old keys become useless without any change to the door hardware. It is quick, because it works at the level of the cylinder. In many cases the lock can be removed from the door, rekeyed on a bench, and replaced in minutes. Often the work can be done at the door with the plug removed through the front. The technician uses a small tool to turn the plug a little and release it, a process that depends on having the correct key or on special procedures for a locked cylinder.

Rekeying is a good solution when keys have been lost, when you move into a new home, after a tenant leaves, after a breakup or a dispute, or when many people have had copies of your key. It is also helpful when you want several locks on a property to share one key, which is called keying alike. A technician can set all the cylinders to the same key pattern so that one key opens the front door, the back door and the garage. This reduces the bunch of keys you carry.

The opposite arrangement is a master key system, used in some businesses and apartment buildings. In a master key system, each lock has extra pieces in the pin stacks, called master wafers, that allow two different keys to open the lock. One key is the individual key for that lock, and the other is the master key that opens many locks. This adds complexity and reduces security slightly, since there are more combinations that can open each lock, but it is convenient for managers.

Rekeying differs from replacing. Replacing the lock installs a new set of hardware. Rekeying reuses the existing hardware. If the lock is in good condition, rekeying is usually the simpler and more economical path. If the lock is worn or damaged, or if you want a stronger lock, replacement may be better. A technician can examine your hardware and advise.

Here is how the choices compare.

  • Rekey: changes the key, keeps the lock, and cuts off old keys.
  • Key alike: sets several locks to one key for convenience.
  • Replace: installs new hardware, useful when the old lock is worn or weak.
  • Add a master: allows a second authorized key, more suited to businesses.

Rekeying is for owners and authorized occupants. A technician will ask for proof of ownership or permission. If you rent, check with your landlord first. A quote comes after talking by phone, and a job with unusual hardware may need a visit in person. No prices are given here.

How wear, dirt and weather change a lock's feel over the years

A pin tumbler lock is a small mechanical machine, and like any machine, it wears. Each time you insert and remove the key, the pins ride over the key's ridges. Over thousands of cycles, the contact surfaces round off. The key cuts become slightly worn, the pin tips become slightly flattened, and the fit loosens. A lock may begin to feel rough, to catch, or to need a little jiggling. The key may start to turn only in a certain position. These are early signs of wear.

Dirt makes matters worse. The key way is an opening that collects dust, lint, pollen and grit. In the Redding area, dry summers bring fine dust, and fire season can bring ash and smoke particles. These get into the key way and settle on the pins and springs. Dirt mixes with old lubricant to form a gummy paste. The pins stick, the springs weaken, and the lock becomes stiff. The remedy is cleaning and the right kind of lubricant.

Use a dry lubricant made for locks. Graphite powder and similar products reduce friction without attracting dirt. Avoid heavy oils and general purpose sprays, which can collect dust. Apply a small amount into the key way, insert and withdraw the key several times to spread it, and wipe off any excess. Do this once or twice a year. If the lock remains stiff, have it serviced. A technician can remove the plug, clean the pins and springs, and reassemble.

Weather also matters. Temperature changes cause metal to expand and contract, and moisture causes corrosion. Locks exposed to rain or sprinklers can rust, especially steel parts. Brass resists rust, but steel springs and pins can corrode. A lock on a door facing the afternoon sun can get hot, and thermal cycling can loosen screws. A lock on a shaded side can stay damp. Cold can thicken lubricants and slow springs. In winter, moisture can freeze inside a lock, which is why people sometimes find a lock stuck on a cold morning.

Physical abuse is a factor too. Forcing a key, using a bent or worn key, hanging heavy key rings on the key in the lock, or slamming doors puts stress on the cylinder. Bent keys can damage the pins. A key that breaks off can leave a fragment inside. Treat the lock gently, and it will last.

The housing and mounting matter as well. A cylinder that is loose in the door can wobble, and that changes how the key lifts the pins. Check the screws that hold the lock. Make sure the door and strike are aligned so that the bolt moves easily. A bolt that binds puts extra load on the plug and wears the pins faster.

Here are signs that a lock needs attention.

  • The key needs jiggling or extra force.
  • The key turns only when pulled out slightly.
  • The lock feels gritty or sticky.
  • The key leaves a shiny dust or metal flakes.
  • The cylinder wobbles in the door.
  • The lock freezes or sticks in cold or damp weather.

Acting early prevents bigger problems. A cleaned and lubricated lock with a fresh key can feel like new. If the lock is badly worn, replacement is a sensible choice. Either way, understanding the inside of the lock helps you recognize what is happening.

What a clear picture of the lock does for you as an owner

Knowing how a pin tumbler lock works is more than trivia. It changes how you look after your keys, how you talk to a locksmith, and how you judge advice. When someone says your lock needs rekeying, you can picture what is being done. When a key refuses to turn, you can reason about which part is at fault. When a locksmith explains that a cylinder is worn, you know what that means.

Take care of your keys, since the key is the code. Avoid bending or abusing them. Replace a worn key with a fresh cut, from the code or the lock, not a copy of the worn key. Keep track of how many copies exist and who holds them. When copies are lost or given away, consider rekeying so that the old keys no longer work.

Take care of your locks. Clean them gently, use a dry lubricant sparingly, and check mounting screws. Keep the door aligned so that the bolt slides without force. If a lock begins to stick, act early. A small service call now may prevent a lockout later.

Think about the grade and quality of the hardware. A lock has to resist force as well as turn smoothly. The pins are only part of its strength. The bolt, the strike plate, the screws and the door frame matter just as much. A strong cylinder in a weak door is not a strong system. A technician can advise on the whole assembly. Another page on this site explains how to read the grade stamped on deadbolts.

Use the knowledge to ask good questions. When you talk to a provider, you can ask whether they will rekey or replace, whether the lock has security pins, how many pins the cylinder has, whether the key is a restricted profile that cannot be copied freely, and what grade the hardware is. A provider who explains these things clearly is likely to do good work.

Remember the limits. This page explains how the inside of a lock works in order to help owners. It does not teach how to defeat a lock. Entering a home, vehicle or business that is not yours is a crime, and a responsible locksmith works only for owners and authorized occupants, with proof. If you are locked out of your own property, the right step is to call a provider, show proof, and let them do the work.

If you are curious, the next step is to look at your own key and lock with fresh eyes. Count the cuts on your key. Notice the shape of the key way. Think about the five or six small pin stacks behind the face. You will see that a lock is a clever, simple machine, and one that rewards a bit of care.

Here is a short summary to keep.

  • The plug turns only when every pin stack lines up at the shear line.
  • The key is a physical code of cut depths.
  • Rekeying changes the pins so old keys no longer work.
  • Dirt, wear and weather change how a lock feels over time.
  • A good lock needs a strong door, strike and screws too.

A quote comes after talking by phone, and a complicated job needs a visit in person. If you want help with a stiff lock, a lost key, or a rekey, call and describe what you see, and be ready to show that the property is yours or that you have permission to be there.

Talk to us

Want your locks rekeyed or checked? Call to talk it through and get a quote by phone.
Call (530) 319-6935
Call (530) 319-6935