CNC Machining Shaft: How Geometry Drives the Process
A shaft looks like the simplest part in a drawing set. One diameter, two ends, a keyway. Then you add a shoulder, a thread, a bearing seat and a 0.02 mm runout callout, and the process plan stops being obvious. This page explains how a CNC machining shaft gets its form, where turning runs out of reach, and which features force a second operation.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
Key takeaways
What counts as a CNC machining shaft
A shaft is a rotating or fixed member that carries torque, locates other parts, or holds a precise axis between two points. That definition covers a lot of parts: motor output shafts, gearbox input pins, pump spindles, drive axles, hinge pins, spindle noses and stepped transmission shafts. The geometry is usually a set of coaxial cylinders with shoulders, grooves, threads and one or two features cut across the axis.
When engineers ask about a CNC machining shaft, they usually mean a part produced by turning a bar or a forging on a lathe, then finishing the cross features and the critical diameters on a mill or a grinder. The process works because a lathe holds the part on its own axis while the tool moves along it. Every pass is measured from that same axis, so coaxial features come out concentric without repositioning.
The part is simple in shape but demanding in relationships. Diameter is easy to measure and easy to hold. What breaks a shaft in service is rarely the diameter: it is runout between a bearing seat and a coupling, a keyway cut off center, a shoulder that is not square to the axis, or a fillet that is too sharp and starts a fatigue crack.
- 1Rotating shaftsCarry torque between a drive and a load; balance and runout matter.
- 2Fixed pins and spindlesLocate parts; diameter and straightness carry the function.
- 3Stepped shaftsDifferent diameters for bearings, seals, gears and retaining features.
Turning sets the axis, milling adds the features
Turning removes material with a single-point tool while the workpiece rotates against it. For a shaft, that has one big consequence: the machined surface is generated from the spindle axis, so every diameter cut in the same setup shares that axis. A bearing seat and a coupling seat turned in one pass sequence will be concentric to within the machine's own error, not to within the operator's ability to re-chuck the part.
Consistency depends on workholding. Short shafts can be held in a chuck, but a chuck grips on three or four points and can distort a thin wall or an unsupported end. Longer shafts are better held between centers, with a chamfered center hole at each end. Center holes are also the datum that a cylindrical grinder or an inspection fixture will use later. If the drawing needs a 0.01 mm runout on a bearing seat, plan on center holes from the first operation.
Milling enters when a feature does not sit on the axis: a keyway, a flat, a cross hole, a slot, a hex, a bolt pattern on an end flange. Those cuts interrupt the turned surface and remove the balance that turning created. On a four-axis or five-axis machine the part can be indexed and machined in the same setup, which keeps the cross features referenced to the same axis. On a three-axis mill, the part is re-clamped, and the reference shifts.
- 1Turn firstEstablish diameters, shoulders and center holes from one axis.
- 2Mill secondCut keyways, flats, cross holes and end patterns.
- 3Grind lastOnly for tight tolerance or fine finish on specific seats.
Length-to-diameter and what it does to the cut
The length-to-diameter ratio, usually written L/D, is the fastest way to predict whether a shaft will be easy or painful. It is the unsupported length divided by the smallest diameter in that span. Up to about 5:1, a shaft behaves like a stiff bar and normal turning parameters work. Between 5:1 and 10:1, cutting force starts to push the part away from the tool, so the tool takes a lighter cut than the feed rate suggests and the diameter drifts.
Past roughly 10:1, the part bends under its own cutting load and begins to vibrate. The symptom is chatter: a rippled surface, uneven sound, and a diameter that varies along the length. The usual fixes are a steady rest or a tailstock to add support, a lower depth of cut with more passes, a sharper insert with a positive rake, or a follow rest that travels with the tool. None of these remove the underlying problem. They manage it.
Long shafts also sag under their own weight, and the sag changes as material is removed. A shaft that measures straight on the machine can relax after unclamping. When straightness is called out, plan a stress-relief step for the bar stock and a finishing pass with light depth of cut after the part has cooled.
The other geometric limit is the feature that cannot be reached. A deep groove behind a large shoulder, an internal bore that runs most of the part length, an undercut with a square corner. Each of these needs a tool with enough reach and enough stiffness, and the reach is usually what limits the diameter tolerance.
- 1L/D under 5:1Standard chucking or collet work; full depth of cut available.
- 2L/D 5:1 to 10:1Tailstock support, reduced depth of cut, watch diameter drift.
- 3L/D over 10:1Steady rest required; chatter and straightness dominate.
Tolerance, runout and surface finish on shaft features
A tolerance on a diameter controls size. A runout callout controls the relationship between two features, and it is the harder one to hold. Total indicated runout of 0.02 mm between a bearing seat and a shaft end means the two surfaces must be measured from a common axis, usually by rotating the part between centers. If those features were cut in different setups, the setup error adds directly to the runout. That is why the process plan, not the tolerance number, decides whether the callout is achievable.
Surface finish follows the same logic. A turned surface carries a helical feed mark whose depth depends on feed per revolution and tool nose radius. A finer feed and a larger nose radius produce a smoother surface but also raise cutting force, which is a problem on a slender shaft. Roughly, turning can hold Ra 1.6–3.2 μm in normal production, and Ra 0.8–1.6 μm with a finishing pass and a sharp insert. Below that, cylindrical grinding is the practical route.
Grinding removes a small amount of material with an abrasive wheel and produces Ra 0.2–0.8 μm on a seat, with tighter size control. It also corrects small runout left by turning, provided the part has center holes and enough stock. Grinding is a finishing operation, not a repair for a bad setup. If the shaft was turned with too much eccentricity, the grinder will simply follow a smaller but still eccentric axis.
Hardness changes the sequence. A shaft that is heat treated after rough machining will move, so leave stock and finish the critical diameters after treatment. Materials above roughly 45 HRC are usually ground rather than turned.
- 1Diameter toleranceTurning can reach ±0.005 mm on short, stiff features.
- 2RunoutCut related surfaces in one setup; measure between centers.
- 3FinishRa 1.6–3.2 μm turned; Ra 0.2–0.8 μm ground.
Material choice and how it changes the cut
Mild and medium carbon steels such as 1018, 1045 and 4140 are the default for shafts. They machine predictably, take a good turned finish, and can be induction hardened or through hardened where wear resistance is needed. 4140 and 4340 hold strength at larger sections, which matters when the shaft carries bending load rather than pure torque. A36 is common for non-critical pins but does not hold a fine finish well.
Stainless grades behave differently. 303 is the easiest to turn and is often chosen for shafts with no corrosion requirement beyond appearance. 304 and 316 resist corrosion but work harden quickly, so a light finishing pass with a dull tool will produce a hard skin that shortens insert life. 17-4PH gives high strength after aging with modest distortion, and it is a common choice for pump and valve shafts. 440C is used where hardness and wear resistance matter, and it is usually ground after heat treatment.
Aluminum shafts suit low-load, low-inertia applications. 6061-T6 and 7075 turn fast and hold a clean finish, but the elastic modulus is around one third that of steel, so deflection appears at much lower cutting force. That means shorter depth of cut and more support for the same L/D. Hardcoat anodizing adds wear resistance on a bearing surface but changes the diameter, so mask or allow for the coating thickness in the drawing.
Titanium and nickel alloys such as Ti-6Al-4V and Inconel cut slowly, generate heat at the edge, and work harden if the tool rubs. They are chosen for specific corrosion or temperature requirements, and the process plan should allow for lower cutting speeds, rigid tooling and more coolant.
- 1Carbon and alloy steel1018, 1045, 4140, 4340; predictable turning, hardenable.
- 2Stainless303 for machinability, 304/316 for corrosion, 17-4PH for strength.
- 3Aluminum6061-T6 and 7075; fast cutting, but deflects about three times more.
- 4Titanium and InconelSlow speeds, rigid setup, generous coolant.
Balance, straightness and inspection
Any shaft that spins fast needs its mass centered on the axis of rotation. Turning produces a surface that is round, but a keyway, a flat, a cross hole or an offset feature moves the center of mass. At low speed the effect is small. As speed rises, the unbalance force grows with the square of the rotational speed, so a modest offset that is invisible at 500 rpm can drive vibration at 10,000 rpm.
The practical response is to keep cross features symmetric where possible, to place them near a supported end rather than mid-span, and to specify a balance grade only when the application needs one. Balancing is a separate operation, and adding it to a shaft that does not need it adds cost without benefit. The engineer's question is not whether the part is balanced, but whether the running speed makes unbalance matter.
Straightness is measured against a datum axis, usually the two center holes or the two end journals. A dial indicator run along the part between centers shows the total deviation. On long shafts, gravity alone bends the part during measurement, so the support positions and the measurement method have to be agreed before the number means anything. Two inspectors using different supports can report different straightness for the same part.
Inspection follows the same discipline. Diameters are checked with micrometers at marked positions along each seat, not at one spot. Runout is checked with the part rotated between centers or in V-blocks, depending on which datum the drawing calls. Surface finish is checked with a portable tester on the actual seat. Reports are available on request, and every part is inspected before shipment.
- 1Unbalance forceGrows with the square of rotational speed.
- 2Straightness datumDefine the support points before measuring.
- 3Inspection positionsMeasure each seat at several points, not one.
Which process route fits which shaft
Match the route to the feature that carries the function, not to the whole part.
| Shaft condition | Typical route | Why |
|---|---|---|
| L/D under 5:1, no tight runout | Turn only, chuck or collet | Stiff enough for full depth of cut in one setup |
| Keyway or cross hole on a short shaft | Turn, then 4-axis mill | Indexing keeps cross features on the turned axis |
| Bearing seat with tight runout | Turn between centers, grind seat | Center holes give one axis for turning and grinding |
| Slender shaft, L/D over 10:1 | Turn with steady rest, finish pass light | Support controls deflection and chatter |
| Hardened shaft above 45 HRC | Rough turn, heat treat, grind | Grinding holds size after distortion |
| Long shaft near 4,000 mm | Turn on large travel machine, support mid-span | Travel and support limit the achievable straightness |
| Prototype, one piece | Turn plus mill, no dedicated fixture | No tooling cost, geometry changes are cheap |
| Volume run over 10,000 parts | Turn plus mill with soft jaws or fixtures | Repeatable location beats hand setup |
When turning alone is enough, and when it is not
If the shaft is short, coaxial and carries no cross features, turning handles the whole part. If it has a keyway, a tight bearing runout, or a slender span, plan a second setup or a grinding step from the start, because no amount of care on the lathe will fix a process that is missing an operation.
Shaft questions engineers ask
Can a long shaft be turned without a steady rest?
Sometimes, but the risk rises quickly. Below about 5:1 length-to-diameter a chuck or collet holds the part stiff enough for a normal cut. As the ratio climbs, the part deflects away from the tool, the diameter drifts, and chatter appears. A steady rest or tailstock adds support at the cost of setup time. For a one-off part it is usually worth it; for a run of parts it is mandatory.
Why does my shaft measure on size but fail the runout check?
Diameter and runout are different measurements. Diameter is a local size at one cross section, while runout compares two features around a common axis. If the bearing seat and the coupling seat were cut in separate setups, the re-chucking error shows up as runout even when both diameters are within tolerance. Cutting the related surfaces in one setup, or grinding them from the same center holes, is the usual fix.
When is grinding needed instead of turning?
When the drawing calls for Ra below about 0.8 μm, when the size tolerance is tighter than turning can hold on that feature, or when the shaft is hardened above roughly 45 HRC. Grinding also corrects small runout left after turning, as long as the part has center holes and enough stock. It adds an operation, so specify it only on the seats that need it.
Does a keyway affect balance?
Yes, but the amount depends on the shaft diameter, the running speed and how much material the keyway removes. A narrow keyway on a large shaft at low speed is usually not a concern. A wide keyway on a small, fast-rotating shaft can be. Where balance matters, keep the cut near a supported end and specify a balance grade only if the application requires it.
What material should I choose for a wear-resistant shaft?
For moderate wear, a medium carbon steel such as 1045 or 4140 that can be induction hardened is the common route. For corrosion plus wear, 17-4PH after aging or 440C after hardening and grinding are typical. Aluminum shafts with hardcoat anodizing work for low-load applications but the coating changes the diameter, so the drawing has to allow for it.
How do I specify a shaft so the quote comes back accurate?
Give the overall length, each diameter with its tolerance, and which features are functional. Mark the datum for any runout callout, and say whether the part runs between centers or in V-blocks. Note the material condition, any heat treatment, and which surfaces need a specific finish. If a feature is not critical, say so; that gives the shop room to choose a more efficient process.
Send the drawing and get a process plan
We review the geometry, flag the features that need a second setup, and quote the route that holds the tolerances you actually need.
12-hour quote and DFM3–5 day shipping100% inspection