CNC machining shaft manufacturing: main considerations
A shaft is a long, slender part whose accuracy is set before the first cut. This page explains how datums, stock, workholding and heat treatment decide roundness, runout and concentricity. Read it if you specify or buy turned and milled shafts and need to judge which features belong on a lathe, which on a mill, and which the process cannot hold.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
Why a shaft behaves differently from a block
A shaft is defined by its length-to-diameter ratio. A block sits in a vise and stays where you put it. A shaft with a 10:1 ratio bends under its own cutting force, and the deflection changes as the tool moves along the axis. On a 500 mm long, Ø30 mm steel shaft, a few hundred newtons of radial force can push the middle 0.02 mm away from the tool. That error appears in the diameter measurement even though the machine is accurate.
The second effect is thermal. Turning generates heat at the cutting edge and the workpiece grows as it warms. A 300 mm steel shaft grows roughly 0.003 mm for every 1 °C of temperature rise. If you measure the part hot and then again after it cools, the diameter reads differently. Shops that hold tight limits either control the coolant temperature or finish after the part has stabilised.
The third effect is datum shift. Once the shaft is turned between centers and then moved to a mill for a keyway or cross hole, the new setup inherits whatever error the first setup left. Concentricity between two diameters machined in two setups is usually worse than either diameter alone. This is the reason a mill-turn center exists: the part never loses its grip, so the relationship between features survives.
The practical consequence is that shaft work is planned around support and sequence, not around cutting speed. Before choosing a toolpath, decide where the part is held, how many times it moves, and whether heat treatment sits before or after finish machining. Those three answers determine whether the drawing is manufacturable at the stated tolerance.
- 1Length-to-diameter ratioAbove 8:1, expect to add a steady rest or tailstock support.
- 2Thermal growthSteel grows about 0.003 mm per 1 °C over 300 mm.
- 3Setup countEvery new setup costs concentricity, not just time.
Datum choice and workholding for CNC machining shaft manufacturing
A turned shaft normally starts as bar stock or a forging. The first operation faces both ends and cuts the center holes, because those holes become the datum for everything that follows. Center holes are not a formality. If they are drilled off-axis or with a damaged 60° cone, the shaft runs out in every later operation and no amount of tool compensation fixes it.
Between centers, the part is driven by a dog or a face driver while the tailstock supports the free end. This is the most accurate way to turn a long shaft because the part is located only by its two center holes. It also limits what you can do: you cannot cut the ends where the centers sit, so those areas need a second operation on a chuck.
For parts with a large flange or a shoulder, a three-jaw chuck or a collet is faster. Soft jaws bored to the actual stock diameter hold better than hard jaws, and they reduce marking on finished surfaces. When the part is long relative to its diameter, a steady rest supports the middle and stops the shaft from whipping at higher spindle speeds.
Mill-turn centers change the arithmetic. The part is held once in a collet or a hydraulic chuck, the spindle indexes, and turning, milling, drilling and cross-hole work happen in the same setup. Concentricity between a bearing seat and a cross hole depends on the machine's indexing accuracy instead of on how carefully the operator re-indicated the part on a second machine.
- 1Center holes firstFace and center-drill both ends before any diameter is turned.
- 2Soft jaws or colletsBore jaws to the real stock size to protect finished surfaces.
- 3Steady restAdd support above roughly 8:1 length-to-diameter.
- 4One-setup mill-turnBest route when cross features must align with a bearing seat.
Tolerances that matter: roundness, runout and concentricity
A diameter tolerance and a roundness tolerance are not the same requirement. A shaft can measure Ø20.00 mm across one chord and Ø19.99 mm across another, passing the size check while the bearing still fits loosely. Roundness is controlled by rigidity, spindle condition and how the part is supported. On a well-supported shaft, a fine turning pass with a sharp insert and a small depth of cut holds roundness inside 0.005 mm on most steels.
Runout describes how far a surface moves away from a true axis during one rotation. It is the number that matters for a bearing seat, a seal lip or a gear mounting diameter. Runout accumulates from center-hole error, chuck error and any bending that happened during machining. A shop can hold total runout of 0.01 mm on a supported shaft, but only if the reference diameter and the measured diameter were cut in the same setup or on the same centers.
Concentricity is stricter than runout because it also considers the position of the axis, not just the surface movement. When a drawing calls for 0.005 mm concentricity between two bearing journals at opposite ends of a 400 mm shaft, the realistic route is to turn both journals between centers in one operation, then protect the centers through any later step.
Surface finish interacts with all three. A Ra 0.8–1.6 μm finish on a bearing seat helps the fit behave predictably; a Ra 1.6–3.2 μm as-machined finish is normal for non-functional diameters. Pushing to Ra 0.2–0.8 μm usually means a separate finishing pass with a small nose radius, lower feed and a rigid setup, not just a slower spindle.
- 1Size is not formA diameter can be in tolerance while roundness is out.
- 2Runout needs one referenceMeasure against a diameter cut in the same setup.
- 3Finish costs a passRa 0.2–0.8 μm is a separate operation, not a feed change.
Keyways, flats and cross holes on a turned shaft
A keyway is a broached or milled slot with a width tolerance and a depth measured from the opposite side of the shaft, not from the slot floor to the nearest surface. That measurement convention is a common source of argument between drawing and inspection. Standard keyways follow a published table, so the width and depth are fixed by the shaft diameter and do not need to be invented.
Milling a keyway on a shaft that has already been finish-turned risks burrs and a raised edge along the slot. Deburring with a hand stone or a chamfer tool is part of the operation, not a cleanup step. If the keyway is cut before heat treatment, the slot distorts slightly during quenching and the width can close or open by a few hundredths of a millimeter. Cut it after hardening if the width matters.
Cross holes are drilled on the mill or the mill-turn center. A hole drilled through a round surface starts on a curved face, so the drill walks unless it is spotted with a center drill or a spot drill first. For holes that must intersect an internal bore, the drill break-through can push a burr into the bore. Deburring from the inside is hard, so plan the order: drill the cross hole before the bore is finished, or use a controlled feed at break-through.
Flats and wrench features are simple to mill but they interrupt the turned surface. Every flat removes material from one side and slightly changes how the shaft behaves under load. On a thin-walled or small-diameter shaft, a deep flat can be the weakest section. Engineers should check the remaining wall before calling out a large flat for cosmetic reasons.
- 1Keyway depthMeasured from the opposite side of the shaft, per the key table.
- 2Heat treat orderCut tight-tolerance keyways after hardening.
- 3Spot before drillingA curved entry surface makes the drill wander.
- 4Check flatsA deep flat can remove the strongest section.
Heat treatment, stress relief and the order of operations
Heat treatment is where a shaft stops being a machined part and becomes a set of competing requirements. Hardening raises wear resistance on journals and splines, but it also moves the part. Quenching and tempering introduce distortion that depends on section change, material hardenability and how the part is supported in the furnace. A shaft with a sharp shoulder and a thin long section will move more than a uniform bar.
The usual answer is rough machine, heat treat, then finish machine. Roughing leaves 0.3–0.5 mm on diameters that will be finished later, enough to clean up the distortion without removing the hardened case on a case-hardened part. For through-hardened shafts, the finishing cut has to remove hardened material, which pushes the shop toward ceramic or CBN inserts and lighter passes.
Stress relief is a separate step from hardening. Cold-drawn or heavily machined bar carries residual stress that releases as material is removed, so a long shaft can bow after roughing even without any heat treatment. A stress-relief cycle between roughing and finishing reduces that movement. On a 4,000 mm shaft, this is often the difference between a part that stays straight and one that needs straightening.
Straightening is a legitimate operation but it leaves its own residual stress. A straightened shaft may pass inspection and then move again when it is machined or used. When the drawing demands tight straightness over a long length, it is better to control the sequence and the stock condition than to rely on straightening at the end.
- 1Rough, treat, finishLeave 0.3–0.5 mm for the post-treatment finishing pass.
- 2Stress reliefSchedule it between roughing and finishing on long shafts.
- 3StraighteningFixes the number, not the underlying stress.
Matching material and machine to the shaft
Material choice drives the cutting strategy more than the drawing does. Free-machining stainless such as 303 turns cleanly and holds a good finish, which makes it a common choice for shafts that will not be welded. Austenitic 304 and 316 work-harden if the tool rubs, so the feed has to stay above a minimum chip load and the tool cannot dwell. Duplex and 17-4PH sit between the two: harder, but stable once a proper insert grade is selected.
Alloy steels 4140 and 4340 are the standard choice for loaded shafts. They respond well to heat treatment and give good fatigue behaviour at the section sizes used in pumps, gearboxes and drive systems. Low-carbon 1018 machines easily but cannot be hardened by heat treatment alone, so it suits non-wearing features.
Aluminium shafts are common in automation, packaging machines and prototypes. 6061-T6 and 7075 machine fast and can be anodised, but the modulus is roughly one third that of steel, so the same geometry will deflect more under the same load. If a shaft is stiffness-driven rather than strength-driven, aluminium may not be the answer even though it is easier to machine.
Machine selection follows length and feature count. A Ø400 mm rotary table and 5-axis capability handle flanged shafts and angled features in one setup. For very long parts, the 4,000 × 400 × 150 mm travel envelope covers most pump and drive shafts, though the tailstock and steady rest decide what can actually be held straight.
- 1303 vs 304303 turns freely; 304 work-hardens if the tool rubs.
- 24140 and 4340Standard for loaded, heat-treated shafts.
- 3AluminiumMachines fast but deflects about three times more than steel.
- 4Size envelope4,000 mm maximum processing size covers most drive shafts.
Which process fits the shaft feature
Use this to route features before quoting.
| Feature | Best process | Typical limit | Watch out for |
|---|---|---|---|
| Long straight diameter | Turning between centers | Runout 0.01 mm on supported shafts | Center-hole condition drives everything |
| Bearing journal pair | One-setup turning or mill-turn | Concentricity near 0.005 mm | Never split across two chucks |
| Keyway, standard width | Milling or broaching after turning | Width per key table | Cut after hardening if width matters |
| Cross hole through bore | Mill-turn, spot drill first | Position set by indexing | Burr pushed into the finished bore |
| Flats and wrench features | 3-axis milling | Depth limited by wall thickness | Deep flat weakens the section |
| Hardened wear surface | Rough, heat treat, finish | 0.3–0.5 mm finishing stock | Distortion follows section change |
| Fine bearing seat finish | Separate finishing pass | Ra 0.2–0.8 μm | Needs rigid, short overhang setup |
| Prototype shaft, 1–50 pcs | 3-axis or 4-axis turning | No minimum order quantity | Do not over-specify cosmetic finish |
The short version
If the shaft is long and straight, hold it between centers and turn it in one setup; if it carries cross holes, keyways or angled features that must align with a bearing seat, move it to a mill-turn center and keep it in one grip. Choose heat treatment only for surfaces that actually wear, and always leave finishing stock for after the furnace.
Shaft manufacturing questions engineers ask
What length-to-diameter ratio needs a steady rest?
Above roughly 8:1, the shaft starts to deflect and vibrate under normal turning forces. A steady rest or tailstock support is the usual fix.
The exact threshold depends on material, depth of cut and spindle speed. A stiff 4140 shaft tolerates more than a thin-walled aluminium tube of the same ratio.
Should the keyway be cut before or after heat treatment?
If the keyway width has a tight tolerance, cut it after hardening. Quenching moves the slot by a few hundredths of a millimeter, which is enough to fail a width check.
If the keyway is non-critical and the part is large, cutting before treatment is cheaper because the material is still soft and the tool life is better.
Can a shaft be turned and milled on one machine?
Yes. A mill-turn center holds the part in a collet or hydraulic chuck, turns the diameters, then indexes the spindle for milling and cross drilling.
The benefit is not speed. It is that concentricity between the bearing seat and the cross features depends on the machine's indexing accuracy rather than on a second setup.
How do we specify runout on a drawing?
Give the datum diameter and the measured diameter, and state total runout rather than a vague note about concentricity.
The datum must be a surface that was machined in the same setup as the measured surface, or the tolerance cannot be verified reliably.
Does aluminium make sense for a rotating shaft?
It does when the load is light and the goal is low inertia or fast production. 6061-T6 and 7075 machine quickly and can be anodised.
It does not when stiffness drives the design. Aluminium deflects about three times more than steel at the same geometry, so the shaft may need a larger diameter, which cancels the weight advantage.
What information speeds up a shaft quote?
Send the 2D drawing with datums and tolerances, the material and heat-treatment callout, the quantity, and the surfaces that actually need a fine finish.
Marking which diameters are functional and which are clearance features lets us route the part instead of quoting every surface to the tightest tolerance on the sheet.
Send the drawing, get a process route back
We review shaft drawings for datum choice, setup count and heat-treat sequence, then quote with a manufacturing route attached. Quotation and free DFM analysis within 12 hours; parts ship in 3–5 days once production starts.
12-hour quote100% inspectionNo minimum order quantityNDA on request