GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

CNC Basics

How Does a 4 Axis CNC Machine Work?

A 4 axis CNC machine keeps the X, Y and Z slides of a standard mill and adds one rotary axis, usually A or B, so the part can be indexed to a new face without a second setup. This page explains the mechanics, the CAM side, and how to decide whether your part belongs on a 4 axis mill, a 3 axis machine or a 5 axis center.

12 four-axis mills±0.005 mmØ400 mm rotary tableNo MOQ
how does a 4 axis cnc machine work
Key takeaways

The short answer

One extra axis, one extra directionThe rotary axis turns the part or the table around X, Y or Z. That is the whole difference from a 3 axis mill.
It cuts setups, not just metalFour faces can often be reached in a single program, so fewer fixtures and less re-clamping.
The rotary axis can index or turnIndexing moves between faces and locks. Simultaneous turning feeds while the axis rotates.
Positioning accuracy decides the partIf hole-to-hole true position across faces matters more than 3D blend, 4 axis is the cheaper answer.
Know when it stops workingUndercuts facing away from the spindle still need a 5 axis machine or a second operation.
Mechanics

How a 4 axis CNC machine work: the mechanics

Start with a 3 axis mill. The table moves in X and Y, the spindle moves in Z, and every cut comes from the tool pointing down along one fixed direction. A 4 axis CNC machine adds a rotary axis, named A when it turns around X and B when it turns around Y. On a typical vertical mill the rotary unit is a table at one end of the machine, so the part spins about a horizontal axis while the tool stays vertical.

The common point is one rotary axis on top of X, Y and Z. That axis can be a bolt-on rotary table on a 3 axis machine, or a built-in trunnion on a dedicated 4 axis mill. Either way the control now interpolates four values per block of G-code: X, Y, Z and A. The tool path is no longer limited to one face of the workpiece.

Two modes matter. In indexing mode the rotary axis turns to an angle, clamps, and stays there while the tool cuts. This is how you drill four sides of a manifold block without touching the vise. In simultaneous mode the control moves the rotary axis and the linear axes at the same time, which produces continuous cuts around a cylinder, a cam profile or a helical groove.

The rotary table sets the size limit. A common unit here has a Ø400 mm table, which handles a part roughly 350 mm across and 150-250 mm tall depending on the fixture. Heavier parts need a tailstock on the far end of the table, or the part will deflect under cut and the rotary axis will lose its position.

Accuracy comes from how the rotary axis is driven. A worm gear set gives high torque and good holding, but it wears and can drift over thousands of indexes. A direct-drive or roller-cam unit holds tighter indexing accuracy over a long run. For most parts the achievable tolerance is ±0.005 mm on the linear axes, with the rotary axis contributing a small angular error that turns into a linear error at the part radius.

  • 1
    A axisRotary motion around X. Most common on vertical mills and horizontal machining centers.
  • 2
    B axisRotary motion around Y. Seen on some vertical mills and on multi-tasking lathes.
  • 3
    IndexingTurn, clamp, cut. Best for holes, slots and faces that sit at fixed angles.
  • 4
    SimultaneousTurn while cutting. Best for cylinders, cams, helixes and wrapped contours.
CAM

From CAD model to rotary G-code

The part starts as a solid model. Before any tool path is written, decide the work coordinate system: where the rotary axis sits relative to the part datum. If the CAD origin is not on the rotary centerline, the CAM software has to offset it, and any mistake there shows up as a part that is machined off-center around the A axis.

In CAM, a 4 axis job is either a set of indexed operations or a wrapped tool path. Indexed work is easier to verify: set the rotary angle for each face, pick a 3 axis tool path, and post it with the A value locked. Wrapped work takes a 2D contour and wraps it around a cylinder, or uses a true 4 axis path for a cam or impeller. Wrapped paths need a stock model that matches the real bar diameter, not a nominal size.

The post-processor is the step people skip. A standard 3 axis post will not output A values, and a post for a different machine will output the wrong rotary direction. Test the post on a scrap blank before the first real part. Check that A0 points where you expect, that positive A turns the way the drawing assumes, and that the machine honors the clamp command between indexed operations.

Simulation is not optional. Verify the full program, including the rotary moves, in the CAM simulator or on the machine's dry-run mode. Look for three things: tool holder collisions with the rotary table or tailstock, rapid moves that swing the part through the tool, and any cut where the tool reaches past the table edge. Those three cause most 4 axis crashes.

  • 1
    Set the originPut the CAD origin on the rotary centerline, or record the offset in the setup sheet.
  • 2
    Choose index or wrapIndexed faces are simpler to prove out. Wrapped paths need true 4 axis output.
  • 3
    Prove the postCut a scrap blank first. Confirm rotary direction, A0 position and clamp behavior.
Trade-offs

What 4 axis buys you, and what it does not

The main gain is fewer setups. Every time a part comes off the table and goes back on, you lose position and add an hour of proving. On a manifold block with holes on four sides, a 4 axis machine drills all four faces from one program. Position error between faces drops, and the operator has less to get wrong.

The second gain is access to cylindrical features. Cross holes, wrapped slots, keyways around a shaft, and helical oil grooves are all natural 4 axis work. On a 3 axis machine these need a custom angle plate or a lathe operation. On a 4 axis mill they are just another indexed or wrapped path.

The limit is direction. The tool still points down along Z on most 4 axis vertical mills, so it cannot reach an undercut that faces up at 45° on the back side of a wall. A 5 axis machine tilts the tool and reaches those faces. If your part has sculpted surfaces, deep pockets with five-sided access, or impeller blades, 4 axis will not finish it.

The other limit is stiffness. Rotary tables add a compliant joint between the part and the machine bed. Heavy interrupted cuts can chatter more than on a 3 axis machine with the part bolted straight to the table. If your part is short, dense and needs heavy roughing, sometimes a 3 axis setup on a rigid fixture cuts faster than a 4 axis setup.

Cost per hour is higher than 3 axis and lower than 5 axis. Programming time is the hidden variable: a wrapped 4 axis path can take two to three times longer to program than an indexed one. For low quantities, keep the number of indexed faces small and let the operator flip the part instead of paying for wrapped paths.

  • 1
    Good fitShafts, manifolds, valve bodies, brackets with angled faces, housings with cross holes.
  • 2
    Poor fitThin-walled parts that vibrate, undercut faces, twisted blades, parts bigger than the table swing.
  • 3
    Watch the tailstockLong parts need support at both ends, or the rotary axis loses position under cut.
Quality

Tolerances, surface finish and inspection

Linear axes on a well-maintained 4 axis mill hold ±0.005 mm (about ±0.0002 in) on size and position. The rotary axis adds an angular error, and that error grows with part radius. A 20 arc-second error is roughly 0.01 mm at a 100 mm radius and 0.02 mm at 200 mm. On a 300 mm part, that error can push hole-to-hole true position past 0.03 mm.

Surface finish depends on the path. Indexed operations finish like a normal 3 axis cut: Ra 0.8–1.6 μm is routine, and Ra 0.2–0.8 μm is reachable with a fine stepover and a sharp tool. Simultaneous 4 axis paths leave a different pattern because the tool contact point moves along the surface, so program a smaller stepover than you would on a flat face.

Inspection has to catch the rotary error, not just the linear size. Measure hole-to-hole true position across at least two faces, and check any feature that was cut at an indexed angle. On a CMM, align to the part datum, then report angular position as well as linear position. A part that measures good on one face can still be rotated by 0.05° relative to the next face.

For production runs, keep the setup the same across the batch and re-check the A zero every 20-30 parts. Thermal growth in the table and the machine frame moves the rotary centerline slowly. On tight parts, a quick re-indicate of a gauge feature takes two minutes and catches drift before it becomes scrap.

  • 1
    Size and position±0.005 mm on linear axes. Re-check the A zero during long runs.
  • 2
    Rotary errorGrows with part radius. Measure true position across faces, not just on one face.
  • 3
    FinishRa 0.8–1.6 μm routine; use a smaller stepover on simultaneous paths.
Setup

Setting up a 4 axis job, step by step

  • 1
    1. Check the part against the work envelopeMeasure the largest diameter and the longest axial cut. On a Ø400 mm table keep the part under about 350 mm swing and 150-250 mm tall unless you add a tailstock. Longer parts need support at both ends.
  • 2
    2. Mount and indicate the rotary tableClean the table face and T-slots. Indicate the table face and the center bore to within 0.01 mm. Any runout here is copied into every face you machine around the axis.
  • 3
    3. Set the part on centerClamp the blank in a 3-jaw chuck, a collet block or a fixture plate. Indicate the part to the rotary centerline within 0.02 mm. For a bar part, leave 5-10 mm of stock at the chuck end for the second operation.
  • 4
    4. Touch off all four axesSet X, Y and Z from the part datum, then set the A zero by rotating to a known flat or a gauge pin. Record every offset in the setup sheet. Do not trust the previous job's numbers.
  • 5
    5. Load tools and set lengthsKeep tool stick-out as short as the part allows. Long tools chatter more on interrupted cuts around the rotary axis. Measure each tool on the presetter or in the spindle, and check that no holder can reach the table at the highest Z.
  • 6
    6. Dry-run the first partRun with rapids at 25-50% and the spindle off, or in the simulator. Watch every rotary move. Stop if the counterweight, chuck jaw or tool holder comes within 20 mm of the table or tailstock.
  • 7
    7. Cut the first face and measureTake a light pass, then measure size and position before running the rest. Check hole-to-hole true position across two faces; that is where rotary index error shows up first.
  • 8
    8. Adjust and run the batchApply cutter compensation if the first part is off by 0.02-0.05 mm, then run the batch. Re-check the A zero every 20-30 parts on long runs, since thermal growth moves the table.
Selection

3 axis vs 4 axis vs 5 axis: which one fits the part

Pick the lowest axis count that reaches every feature in one setup. More axes cost more per hour and need more programming time.

Part feature3 axis4 axis5 axis
Flat plate with top and side holesTwo setupsOne setup, indexedNot needed
Shaft with cross holes at 90°Hard to holdIdeal, index and drillWorks, costs more
Cam profile or helical grooveNot possibleSimultaneous 4 axisWorks, not required
Cylinder with wrapped slotsNot possibleIdealWorks, costs more
Deep undercut facing awaySecond setupMay not reachIdeal
Impeller with twisted bladesNot possibleLimitedRequired
Large frame, 4,000 mmGoodLimited by tableLimited by table
One-off prototype, simpleCheapestOnly if one setup saves timeOverkill

The verdict

If every feature can be reached after an index and the part fits the rotary table, 4 axis is the cheaper, faster answer. If a face points away from the spindle, stop and quote it as 5 axis or plan a second setup.

FAQs

Frequently asked questions

Is the 4th axis always the A axis?

No. The name follows the rotation direction. A turns around X, B turns around Y, C turns around Z. Most vertical 4 axis mills use A because the rotary table sits with its centerline along X.

Some horizontal machining centers use B as the pallet rotation. When you read a drawing or a setup sheet, check which axis letter is used and which way positive rotation turns the part.

Can a 3 axis mill be converted to 4 axis?

Yes, with a bolt-on rotary table and a control that supports a fourth axis. The table has to match the machine's control and drive, and the post-processor has to be updated.

The result is usually less rigid than a built-in 4 axis machine, and the work envelope shrinks because the table takes bed space. It is fine for light indexing work and prototypes.

How do I know if my part needs 4 axis or 5 axis?

List every face that has a feature. If all of them can be reached with the tool pointing down along Z after an index, 4 axis is enough. If any feature faces away from Z and cannot be reached by turning the part, you need 5 axis or a second setup.

Sculpted surfaces, impeller blades and deep pockets with five-sided access almost always need 5 axis.

What is the maximum part size on a 4 axis machine?

It depends on the rotary table and the machine travel. A Ø400 mm table handles a part about 350 mm in diameter and 150-250 mm tall, depending on the fixture and tailstock.

Long parts can be supported at both ends, but part length then competes with the X travel of the machine.

Does 4 axis machining cost more than 3 axis?

The hourly rate is higher, but the total job cost can be lower because setups drop. On a part with features on three or four sides, one 4 axis setup often beats three 3 axis setups.

For a simple flat part, stay with 3 axis. The extra axis adds programming time without saving a setup.

What causes chatter on a 4 axis mill?

The rotary table is a compliant joint. Long tool stick-out, heavy interrupted cuts, and parts held only at one end all make it worse.

Shorten tool stick-out, add a tailstock for long parts, reduce depth of cut, and check that the table clamp is engaged during indexed cuts.

Send us the part and we will tell you the axis count

Upload a STEP file and we return a quotation and a free DFM analysis within 12 hours, with a clear note on whether the part runs on a 4 axis, 5 axis or 3 axis machine. Uploads stay confidential and an NDA is available on request.

12-hour quote100% inspection±0.005 mmNo MOQ

Follow

More CNC machining notes

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC