Keyway Machining for Precision Shafts: Splines and Broaching
A keyway cut a few tenths too wide will rock under load, and the shaft will start to fret long before the drawing says it should. Keyway machining looks like the simplest feature on a shaft, which is why it so often gets the least engineering attention. Splines and broached features get the same treatment, even though they are where tolerance stack-ups and tool wear show up first. This guide covers how each feature gets made, where each method breaks down, and which shaft feature tolerances matter most once the part is in service.
Table of Contents
Quick Takeaways
Key Insight | Explanation |
|---|---|
Control keyway width first | Width drives fit and fretting. Call out a fit class and the key's own tolerance on the same drawing so the machinist knows which side governs. |
Broaching is a volume tool | A broach is a fixed profile. It pays back only when you repeat the same standard keyway size in through bores. |
Plan the exit before a blind cut | Blind keyways trap chips and limit cutter runout. Decide the runout and chip path during setup planning, not after the first bad part. |
Splines carry torque across several faces | Use a spline when torque is high, reverses often, or the joint is assembled repeatedly. Expect higher tooling and inspection cost. |
Finish the radiused ends with cross-feed | Widen the radiused ends past nominal, then take the final pass with a self-aligning tool so the slot stays parallel and clean. |
Measure position, not just width | Pin gauges confirm width. A CMM program tied to the drawing datum confirms position and parallelism. |
Keyway Geometry and Tolerances
Every keyway is defined by four dimensions: width, depth, length, and position. Width and position do most of the damage when they drift, so they deserve the tightest attention on the drawing. Depth matters too, but it usually shows up as a fit problem during assembly rather than a field failure.

A slot that is too wide lets the key rock under cyclic torque. That movement produces fretting wear on the contact faces, and the wear rarely stops once it starts. A slot that is too shallow cuts the bearing area under the key and drives up shear stress in the key itself.
Width Fit and Key Rocking
In a shop, width is the dimension that drifts first. A keyway milled with a worn cutter or a loose arbor can measure fine on the first part and then run oversize across the batch. Call out the width with a fit class and reference the key stock tolerance on the same drawing, so the fit is defined from both sides.
A keyway is only as good as the fit it creates, and the fit is only as good as the tolerance that everyone in the shop can read.
Depth, Position, and Bearing Area
Depth controls how much of the key sits in the slot and how much load the key can carry. Position is the angular orientation in the bore or on the shaft, and an off-center keyway shifts the load onto one face of the key. The result is misalignment that looks fine on the inspection report and fails in service.
Blind keyways add a second problem. Chips and cutter runout have nowhere to go, so the depth has to be controlled by the setup as much as by the cutter. Plan the runout geometry before you commit to a blind feature in a hub.
Pro tip: Dimension keyway width with a fit class and put the key's stock size on the same drawing. A slot tolerance by itself leaves the machinist guessing which side of the fit governs.
Broaching Keyways in Production
Broaching uses a multi-tooth tool that is pushed or pulled through a pre-drilled bore. Each tooth cuts slightly deeper than the one before it, so the full keyway forms in a single stroke. Most broached keyways are internal, cut into the hub bore that mates with the shaft.
Setup is where broaching earns its reputation. The part is fixtured on a vertical or horizontal broaching press, and a guide bushing aligns the broach on centerline. Once the setup is proven, each part takes seconds to cut, which makes the method hard to beat for repeat work.
Setup and Guide Bushing Alignment
The guide bushing does more than align the tool. It keeps the broach from wandering at entry, and entry is where most size problems start in a through bore. Check the pilot hole diameter and its squareness to the face before the first stroke, because a bad entry will repeat on every part in the run.
Wiping the bushing and the pilot hole is a small habit that prevents a surprising number of scrap parts. Chips trapped between the bushing and the bore scratch the broach land and change the cut.
Where Broaching Breaks Down
Broaching works well when the keyway is a standard size, the bore is through, and the broach can exit the far end. It works poorly when the keyway is nonstandard, because a new size means new tooling. Blind bores are a different problem, since there is no exit path for the tool or the chips.
Material matters as well. Softer steels and nonferrous materials such as aluminum and bronze are where high-speed steel broach life is generally acceptable. Harder alloys push you toward different tooling or a different method, and the cost per part changes quickly.
Milling and Keyseating Shaft Keyways
External keyways on shafts are usually milled, either with an end mill on a vertical mill or with a keyseater. The shaft has to be set up so its centerline matches the spindle before the first cut, and that alignment is where most external keyways go wrong. A keyway that starts off-center will stay off-center through the whole part.
Long shafts make this harder. When the shaft is longer than the mill table, support both ends on V-blocks or stands, indicate the centerline along the length, and confirm the setup at both ends before committing to the cut. Skipping the second check is how a keyway ends up with a slight twist.
Preliminary Cut and Symmetrical Allowance
A patented method for machining shaft keyways (US5185917A) describes a sequence that matches what careful shops already do. The keyway is first roughed with a keyway mill, leaving a symmetrical allowance on the walls for finishing. Keeping that allowance even on both sides matters, because a one-sided allowance pushes the cutter off centerline during the finish pass.
The same document describes finishing the radiused ends with a cross-feed of the mill, so the radius region ends up wider than the nominal width. That widened end gives the final pass room to run clean without binding at the ends of the slot.
The Final Pass With a Self-Aligning Tool
The final cut in that method uses a self-aligning cutting tool mounted on the spindle so it can turn freely and move along the keyway. The tool follows the slot walls instead of forcing a fixed path, which reduces the taper that rigid tools can leave. It suits shafts where a straight, parallel slot matters more than cycle time.
Pro tip: Check the radiused ends with a radius gauge before the final pass. If the ends are too tight, the self-aligning tool will not clear them, and the cut will finish with a step at each end.
Spline Machining Versus Keyways
A spline is, in effect, a set of keyways cut as one feature. Engineers on technical forums describe it the same way, and the mechanics follow from that. Because the torque spreads across several contact faces instead of one key, the induced stress at any single location drops.

The trade is cost and precision. Keyways minimize tooling cost and setup time, while splines require tighter geometry control and dedicated tooling. If the application only transmits moderate torque and the shaft will rarely be disassembled, a single keyway is usually the better answer.
Why Splines Spread the Load
A single key concentrates the load on one face of the slot and one section of the key. Splines distribute that load across multiple teeth, so the contact area is larger and the peak stress is lower. That is why splines show up in drivetrains where torque reverses often or the joint has to be taken apart repeatedly.
Backlash is the other factor. With enough clearance, a single key can rattle under reversing torque, while a properly fit spline holds position better. The fit class of the spline, not just its tooth count, controls how much movement you get.
Cost, Setup, and Geometry Control
Spline machining asks for more of everything: more tooling, more setup time, and more inspection. Internal splines are often broached, while external splines are commonly hobbed or milled, and each route needs its own process control. A spline that is slightly off in pitch or tooth form can fail to assemble at all, which is an expensive way to learn about a tolerance.
In practice, a spline job starts with the mating part. Get the mating spline drawing and its fit class before quoting the shaft, because a mismatch there costs more than any single machining step.
Broached Features in Precision Shafts
Broaching is not limited to keyways. Any feature with a consistent profile along the axis, including splines and some internal shapes, can be cut in one pass if the tooling supports it. The catch is that the feature inherits the tool's geometry, so every flaw in the broach shows up in every part.
That makes broached features a process-control problem more than a machining problem. The first part can look perfect while the tool is already drifting, and the drift only appears when you measure the run instead of the first piece. Plan periodic checks from the start rather than adding them after the first scrap.
Pilot Hole Quality and Entry
The pilot hole determines how the broach enters the part. If the hole is out of round or the entry chamfer is inconsistent, the first teeth load unevenly, and the feature can come out with a taper or a bellmouth at one end. Confirm the pilot hole before the broach is loaded, not after the first bad part.
Alignment is the other half. A worn or dirty guide lets the broach sit off the bore centerline, and the error is repeatable. That repeatability is good news for the setup, but bad news if nobody checks it.
Broach Wear and Size Drift
Broach teeth wear gradually, so the feature size drifts over the run. Measure the width on a set schedule and record the part count between checks, so you can see the rate of drift. When the trend approaches the limit, sharpen or replace the tool before it produces parts outside the tolerance band.
Keep the first-piece and last-piece results in the same record. A broach that holds size at the start and loses it at the end is telling you the tool needs attention, even when every part still passes.
Shaft Feature Tolerances That Matter
Most drawings list too many tolerances for keyways and splines and too little about how the parts actually fit. The useful tolerances control fit, position, and runout relative to the shaft's datum. Start there, and the rest of the drawing becomes easier to defend.
Some tolerances matter more than others. Width and position control torque transfer and rocking. Parallelism and runout control whether the key seats evenly along its length. Overspecifying every dimension adds cost without improving function.
Width and Fit Between Key and Slot
Specify the keyway width with a fit class that matches the key stock and the application. A looser fit is acceptable where the load is light and the joint is assembled often, while a tighter fit suits high torque and reversing loads. Tell the machinist which dimension governs, because the key and the slot both carry tolerance.
Do not chase tolerance beyond what the fit needs. A tighter width on a low-torque keyway usually adds inspection and tooling without making the assembly any better.
Position, Parallelism, and Runout
Position tells you where the keyway sits relative to the datum axis. Parallelism tells you whether the walls run true along the length, and runout tells you whether the feature rotates true with the shaft. Each of these can fail even when the width is perfect.
A keyway that is parallel to the axis but offset slightly still transmits load to one face. The assembly passes a width check and fails a position check, which is why both need to be on the drawing.
Pro tip: Reference position and parallelism to the same datum you use for the bearing journals. If the keyway is toleranced to one datum and the shaft runs on another, the inspection can pass while the assembly still binds.
Inspection of Keyways and Splines
Keyway and spline inspection looks simple until you have to prove it. A width gauge checks one dimension, but the feature has several that matter, and a single go/no-go check will miss position and parallelism. Plan the inspection method when you write the process, not when the parts reach the inspection bench.

At SCPM, keyway and spline inspection is part of the same job as machining. Our CMM programming covers position and parallelism against the datum the shaft is actually indexed from, so the report reflects how the part will be assembled. You can review our precision machining and inspection services for more detail.
Gauging Width and Depth
Go and no-go pin gauges are the standard check for keyway width, and they are fast enough to use at the machine. Depth is usually checked with a depth gauge or a step gauge referenced to the shaft. Gauges are only as good as their calibration, so keep them on a documented schedule.
For splines, plug or ring gauges check the major and minor diameters and the tooth form as a combined fit. A spline can pass a diameter check and still fail to assemble, which is why the composite check matters.
Measuring Position on a CMM
A coordinate measuring machine finds position and parallelism more reliably than a manual setup on the bench. The program has to reference the same datum scheme as the drawing, or the numbers will be precise and meaningless. Confirm that the datum on the part matches the datum in the program before you trust a single result.
Calibration matters as much as the program. SCPM is A2LA accredited, and our MetroLab division offers calibration support, which keeps the measurement chain traceable from the gauge to the final report.
Choosing the Right Shaft Feature
The right feature depends on bore type, torque, and assembly frequency, and those answers usually point in one direction. Bore type is the first filter. A through bore opens the broaching option, while a blind bore pushes you toward milling or a different method.
Once bore type is settled, compare torque and how often the joint is assembled. A milled keyway covers most light-to-moderate jobs. Broached internal keyways win on repeat runs of standard sizes, and splines take over when a single key cannot carry the load.
Feature Approach | Best Use | Main Tradeoff |
|---|---|---|
Milled shaft keyway | Light to moderate torque, standard keys, short runs or one-off shafts | Relies on setup alignment and finishing passes to hold parallelism |
Broached internal keyway | Repeat runs of standard keyway sizes in through bores | Fixed tooling profile, poor fit for blind bores or nonstandard sizes |
Spline | High or reversing torque, frequent disassembly, load spread across several faces | Higher tooling, setup, and inspection cost with tighter geometry control |
If the answer still isn't clear, send the torque range, the assembly frequency, and the bore geometry together before the drawing is released. A ten-minute review at that stage costs far less than rebuilding tooling after the first run.
Frequently Asked Questions
What is a common cause of keyway failure?
A frequent cause is a slot that is too wide or off-center, which lets the key rock and fret under cyclic load. The fretting wear then enlarges the slot, so the problem grows over time instead of staying at its original size.
Is broaching always faster than milling a keyway?
Broaching is faster per part once the setup is proven, but it only pays off on repeat runs of standard keyway sizes in through bores. For a single shaft or a nonstandard size, milling is usually the more practical route, even though each part takes longer.
When should I choose a spline instead of a keyway?
Choose a spline when the torque is high, reverses often, or the joint has to be assembled and taken apart repeatedly. A spline spreads the load across several contact faces, which lowers stress, but it costs more to tool and inspect.
How do you check keyway position on a shaft?
Position is best checked on a coordinate measuring machine that references the same datum as the drawing. Width is checked with go and no-go pin gauges, but those gauges cannot confirm where the keyway sits relative to the axis.
Why does a keyway pass inspection but still cause assembly problems?
Usually because one dimension was checked and another was not. A keyway can have the correct width and still be offset, non-parallel, or referenced to the wrong datum, and each of those conditions shows up later as a fit problem.
Tell us about a keyway or spline problem you have run into on a production shaft and how you solved it.
We would love your feedback and any insights you would share with others. What perspective would you add?
References
Patent describing a rough, finish, and self-aligning pass sequence for shaft keyways
Guide comparing methods and tools for machining internal keyways
Comparison of spline and keyway differences, applications, and setup costs
Engineering forum discussion on how splines spread torque compared with keyways




Comments