article
Keys and Keyways: How a Pulley Grips a Spinning Shaft
The little block that stops a pulley spinning uselessly on its shaft: what keys and keyways are, how they carry torque, and why they can act as a fuse.
Published Jun 20, 2026
Imagine you slide a fan blade onto the spinning rod of a motor, switch the motor on, and the rod whirls around madly while the blade just sits there, barely turning. The motor is doing its best, but the blade is going nowhere. Something is missing between the two: a tiny part whose only job is to make sure that when the rod turns, the blade is forced to turn with it. That little part is called a key, and the slot it lives in is called a keyway. Once you know they are there, you start spotting them inside almost every machine you own.
The problem keys were invented to solve
Most machine parts that spin are mounted on a round metal bar called a shaft (a rotating rod that carries turning power from one place to another). A wheel, a gear, or a pulley (a grooved wheel that a belt runs over) is slipped onto the shaft so they can turn together.
But here is the trouble. A plain round shaft is smooth and slippery. If you just push a pulley onto it, the shaft can spin happily inside the hole while the pulley stays still, like a pencil spinning inside a loosely closed fist. The shaft turns, the pulley does not, and no useful work gets done.
What we really want is for the shaft and the pulley to be locked together so they must turn as one. We could weld them, but then we could never take them apart to fix or replace anything. We need a lock that is strong but can still be undone. That is exactly what a key gives us.
An everyday way to picture it
Think about a door handle. Inside the handle is a square hole, and through it runs a square metal rod called a spindle. Because the hole is square and the rod is square, turning the handle is forced to turn the rod, which pulls the latch back. If that rod were round instead of square, the handle would just spin uselessly and the door would never open.
A key does the same trick, but for a round shaft. Instead of making the whole shaft square, engineers cut a small straight slot along it and drop in a little rectangular block of metal. That block, the key, sticks up out of the shaft and slides into a matching slot in the pulley. Now neither piece can turn without dragging the other along. The round shaft behaves as if it had grown a flat square corner, just where it is needed.
The real parts and their names
Let me name the pieces properly, because engineers are fussy about this. The little block of metal itself is the key (a small bar, usually rectangular, that links a shaft to the part mounted on it). The slot cut lengthways into the shaft to hold the key is the keyseat, and the matching slot inside the hole of the pulley or gear is the keyway. In everyday talk people call both slots "keyways," and that is fine.
The part with the hole that goes onto the shaft, like the centre of the pulley or gear, is called the hub (the thick middle ring that grips the shaft). So the full sandwich, from the inside out, is: shaft, then key sitting half in the shaft and half sticking up, then hub wrapped around the outside. The key is the bridge between the two.
Most keys are a simple rectangle or square in cross-section, made of steel. They are cheap, easy to fit, and easy to replace. That last point matters more than it sounds, and we will come back to it.
How a key actually carries the load
When the motor twists the shaft, the shaft does not pull the hub along by friction or by magic. It pushes on the side of the key, and the key pushes on the side of the hub's slot. The whole turning effort travels through the key like water through a narrow pipe.
That turning effort is called torque (the strength of a turn, found by multiplying the turning force by its distance from the centre). The key feels this as a sideways squeeze. Engineers worry about two ways the key might give up under that squeeze.
The first is shear (when one part is pushed so hard sideways that it tries to slice apart, like scissors cutting paper). The shaft pushes the bottom of the key one way and the hub holds the top of the key the other way, so the key could be sheared straight across its middle. The second is bearing failure (when a surface gets crushed because too much force is squashed onto too small an area). The side of the key, or the side of the slot, could simply be crushed flat. A good key is sized so it loses to neither.
A tiny worked example
Let me invent a small machine so we can watch the numbers. A pulley is fixed to a shaft with a steel key, and the shaft carries a torque of 30 N·m (a newton-metre is the unit of twisting effort). The shaft has a radius of 0.015 m, which is 15 millimetres from the centre to the surface where the key sits.
First, how hard does the shaft push on the key? We turn torque into a force by dividing by the radius, because the key sits at the shaft's surface:
30 N·m ÷ 0.015 m = 2000 N pushing on the key.
That is a serious shove, about the weight of a small car pressing on a block the size of a chewing-gum stick. Now, will the key be sheared across? Say our key is 0.008 m wide (8 mm) and 0.025 m long (25 mm). The area trying to resist the slicing is the width times the length:
0.008 m × 0.025 m = 0.0002 m² of metal across the cut.
The shear stress (force spread over the area resisting the slice) is the force divided by that area:
2000 N ÷ 0.0002 m² = 10 000 000 N/m² = 10 MPa (a megapascal, MPa, is a million newtons spread over a square metre).
A plain steel key can safely take many times more shear stress than 10 MPa before it gives way, so this key is comfortably strong. If the torque were much higher, an engineer would simply choose a wider or longer key to spread that 2000 N over more metal and bring the stress back down.
The clever bit: the key is meant to be the weakest link
Here is something that surprises people. Engineers often choose a key on purpose so that, if the machine is ever badly overloaded, the cheap little key shears first, before the expensive shaft or gear is damaged.
It is the same idea as the fuse in your home's electrics. A fuse is built to blow before the wiring behind the walls catches fire. The key plays fuse for the spinning parts: better to snap a key you can swap out in five minutes than to crack a gear or twist a shaft that costs a fortune and takes days to replace. That is why being easy to replace is a feature, not an accident.
Where you see this in real life
- Electric fans. A key locks the blade hub to the motor shaft so the blade cannot lag behind when the motor speeds up.
- Cars and motorbikes. Keys hold pulleys, sprockets, and timing gears onto the engine's shafts so they all turn in perfect step.
- Lawnmowers. A soft key often links the blade to the engine, and it is built to shear if the blade hits a rock, saving the engine.
- Power tools. Drills, grinders, and saws use keys to fix gears and chucks onto fast-spinning shafts.
- Conveyor belts and pumps. Big pulleys and impellers are keyed to their shafts so they can carry heavy loads without slipping.
- Bicycles and toys. Even small geared mechanisms use a little key or a flat to stop a wheel spinning freely on its axle.
Why engineers care
A key is one of the cheapest parts in a whole machine, yet getting it wrong brings everything to a halt. Make the key too small and it shears in normal use, so the pulley slips and the machine stops doing its job. Make the keyway with sharp corners and you create a stress concentration (a spot where force crowds together far above the average), which is exactly where a fatigue crack loves to start in the shaft. So engineers size the key for the torque it must carry, round the corners of the slot to keep the shaft strong, and decide in advance whether they want the key to be a tough survivor or a sacrificial fuse.
That is the quiet cleverness of keys and keyways. A part you could lose in your pocket is what lets a motor's spin become a fan's breeze, a car's speed, or a pump's flow, and it does it in a way you can take apart and put back together whenever you need to.
Curious how engineers work out the forces inside a fixing, or how tight a real joint needs to be? You can try the calculators over at enggtools.in, where the everyday ideas hiding inside machines turn into numbers you can play with yourself.