How a five axis machining center actually moves and cuts
This page explains the kinematics, the RTCP compensation and the setup logic behind a five axis machining center. It is written for process engineers and buyers who need to judge whether a part belongs on a five-axis machine or not.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
Key takeaways
What the five axes of a five axis machining center really are
A five axis machining center carries three linear axes and two rotary axes. X, Y and Z place the tool tip in space. A, B or C rotate either the spindle head or the table. That is the whole definition. The extra capability comes from the fact that the tool can now approach a surface from an angle instead of straight down the Z axis.
The two rotary axes are named by the axis they turn around. A rotates around X, B rotates around Y, and C rotates around Z. Most vertical machines use a trunnion table that tilts in A and spins in C, so the part moves while the spindle stays upright. Gantry and horizontal machines often swing the spindle head instead, and the part stays still.
Machine builders describe the layout as table-table, head-head, or head-table. Table-table means both rotary axes sit under the workpiece. Head-head means both sit in the spindle. Head-table splits them. Each layout changes the work envelope, the rigidity, and how much mass has to accelerate during a cut.
For the engineer, the layout matters more than the axis count. A machine with a 500 × 500 × 450 mm envelope and a Ø400 mm rotary table suits a 300 mm impeller or a knee implant. A 4,000 × 400 × 150 mm travel machine suits long aerospace stringers that would never fit on a trunnion.
- 1Three linear axesX, Y, Z move the tool tip in Cartesian space.
- 2Two rotary axesA, B, C tilt or index the part or the spindle.
- 3Simultaneous vs indexedTrue simultaneous control moves all five axes at once through the cut.
How the CNC and CAM close the loop on a five axis machining center
The CNC reads a block of G-code and solves the inverse kinematics for that moment. It converts the requested tool-tip position and tool-axis direction into a set of linear and rotary axis positions. This happens thousands of times per second, because the rotary axes move in degrees while the linear axes move in millimeters.
The post-processor in CAM software does the opposite job offline. It takes the tool path from the CAM system and writes axis commands the specific machine can run. Tool length, gauge length, pivot distance and rotary limits all live in that post. A post built for one trunnion layout will not run correctly on a different machine.
Feed rate control is the part that catches people out. A rotary axis commanded at 10°/s moves the tool tip at a very different linear speed depending on how far the tip sits from the pivot. The control has to limit the programmed feed so the surface speed at the cutting edge stays inside the tool's window. If it does not, the tool rubs on the inside of a contour and burns on the outside.
Singularity is the other trap. When the tool axis lines up with a rotary axis, the control cannot resolve the two rotary angles separately. The machine may demand a violent swing to escape. Good CAM software keeps the tool axis a few degrees away from that alignment and spreads the rotary motion across many blocks.
- 1Inverse kinematicsThe control converts tool-tip position into axis positions in real time.
- 2Post-processorMachine-specific pivot and gauge data must be correct or the path is wrong.
- 3SingularityTool axis parallel to a rotary axis causes unresolved angle commands.
RTCP and tool tip compensation in practice
RTCP stands for rotary tool center point. It is a control function that keeps the programmed point at the tip of the tool as the rotary axes turn. Without RTCP, the programmer has to calculate where the tip goes after every rotary move, and a single error of a few tenths of a millimeter will scrap the part.
With RTCP active, the operator enters the tool length and the pivot distance once. The control then adjusts the linear axes on the fly so the tip stays on the commanded path. This is what makes five-axis contouring practical on a shop floor rather than only in a simulation room.
The same principle applies to the workpiece side. If the part is not sitting exactly at the rotary center, the control can compensate through a work offset. On a Ø400 mm rotary table, a 0.05 mm offset error at the center becomes roughly 0.05 mm of error at the cut, but the same offset at 200 mm radius can add angular error. That is why we dial in the trunnion center before the first cut.
RTCP also affects finish. When the tool tilts, the contact point between the ball nose and the surface moves along the tool radius. If the control does not track that contact point, the effective stepover changes and the surface shows banding. Keeping the stepover constant in the CAM path, with RTCP on the machine, gives a finish in the Ra 0.8–1.6 μm range on aluminum.
- 1RTCP onProgram the tool tip, not the pivot. The control handles the rest.
- 2Pivot distanceMeasure it, do not trust the datasheet value after a crash.
- 3Contact point trackingPrevents stepover drift and visible banding on curved surfaces.
Which parts belong on a five axis machining center, and which do not
A part belongs on a five axis machining center when it has features on multiple faces, when the tolerance stack between those faces is tight, or when a deep cavity needs a short tool. A hydraulic manifold with ports on five sides is a classic fit. So is a titanium bracket with a curved flange that would need three fixtures on a three-axis mill.
The gain is not only setup count. Tilting the part lets a stubby end mill reach the bottom of a deep pocket. A three-axis machine would need a long tool, and a long tool deflects. On a 4,000 mm travel machine, a 3 mm diameter tool at 60 mm gauge length will chatter long before it cuts. Tilt the part 30° and the same feature can be cut with 30 mm of gauge length.
Some parts do not benefit. A flat plate with holes on one face is cheaper on a three-axis machine. A prismatic housing with four perpendicular faces and loose tolerances is often faster on a four-axis mill with an indexer, because indexing is rigid and the control work is simpler.
The rough rule we use: if the part needs three or more setups on a three-axis machine, or if two of those setups share a tolerance under ±0.02 mm, five-axis is worth quoting. If it needs one setup and the tolerance is ±0.1 mm, it is not.
- 1Good fitMulti-face features, tight stack-up, deep cavities, contoured surfaces.
- 2Poor fitSingle-face plates, loose-tolerance prismatic parts, simple turned shafts.
- 3Breakeven checkThree or more setups on a three-axis machine is the usual tipping point.
Fixture and probe work before the spindle turns
The first cut is the easy part. The setup is where five-axis jobs succeed or fail. The part has to be located in a way that lets the rotary axes reach every feature without the tool holder colliding with the trunnion, the vise, or the table. We model the holder and the fixture in CAM for this reason.
Zero point systems help. A quick-change pallet with a repeatability under 0.005 mm lets the same part move between a five-axis center and a CMM without losing the datum. That matters when the feature is a bearing bore with a ±0.005 mm tolerance and the inspection has to prove it.
Probing closes the loop on the machine. Touch off the part on the trunnion, set the work offset from the probed points, and let the control correct for the actual position. This is faster than indicating by hand and it removes operator-to-operator variation. On a part with a 0.01 mm true position callout, probing is not optional.
Chip evacuation needs a plan too. When the part tilts, chips fall into pockets and onto the rotary table. Through-spindle coolant at 70 bar clears deep holes, but shallow pockets on a tilted face may need an air blast and a pause in the path. We add those pauses in CAM, not at the machine.
- 1Holder collision checkModel the holder and fixture, not just the tool.
- 2Probe the datumUse on-machine probing for any true position under 0.02 mm.
- 3Chip planTilted faces trap chips. Program the air blast and pauses.
Three-axis, four-axis and five-axis: which one fits the part
Use the part geometry and tolerance as the deciding input.
| Part feature | Three-axis | Four-axis | Five-axis |
|---|---|---|---|
| Flat plate, holes on one face | Best fit | Overkill | Overkill |
| Shaft with cross holes | Two setups | Best fit | Works, not needed |
| Housing, four perpendicular faces | Three or more setups | Good fit | Good fit |
| Impeller or bladed disk | Not practical | Not practical | Only option |
| Deep pocket, short tool required | Long tool, chatter | Limited reach | Best fit |
| Curved flange, tight stack-up | Fixture stack error | Partial access | Best fit |
| Prototype, one piece | Lowest cost | Middle cost | Higher cost, fewer setups |
When to choose five-axis and when to stay on three
If the part needs three or more setups, shares a tolerance tighter than ±0.02 mm across faces, or has a deep cavity that forces a long tool, choose a five axis machining center. If it is a flat plate with holes on one face, stay on a three-axis machine and spend the money on inspection instead.
Questions engineers ask about five-axis work
Does a five axis machining center hold tighter tolerance than a three-axis machine?
Not by itself. The tolerance comes from the machine geometry, the thermal stability, and the setup. A five-axis machine removes the error that stacks up when a part moves between fixtures, so the finished part often measures closer to nominal.
On a single feature cut in one setup, a well-maintained three-axis machine can hold ±0.005 mm just as well. The five-axis advantage shows up across multiple faces.
What is the difference between 3+2 and simultaneous five-axis?
In 3+2, the two rotary axes index to a position and lock, then the three linear axes cut. The control treats it as a three-axis cut at an angle. It is rigid and simple.
In simultaneous five-axis, all five axes move together through the cut. This is what produces a true contoured surface such as an impeller blade. It also demands RTCP and a correct post-processor.
Why does the finish look banded on a curved surface?
Most often the stepover is changing as the tool tilts. If the CAM path holds a constant linear stepover but the tool contact point drifts, the effective stepover varies.
Check that RTCP is active, that the tool length in the control matches the CAM model, and that the pivot distance is measured rather than taken from a datasheet.
Can every part be cut on a five axis machining center?
Physically, many can. Economically, many should not be. A simple plate costs more on a five-axis machine because the hourly rate is higher and the programming takes longer.
We quote the process that gives the lowest total cost for the tolerance required, not the process with the most axes.
How do you handle a part that is too long for a trunnion table?
We use machines with long linear travel and a smaller rotary envelope. Travels of 4,000 × 400 × 150 mm cover long stringers and rails that would never fit on a 500 mm trunnion.
The rotary axes then work on the ends and on local features, while the linear axes carry the length.
What material removal rates are realistic on a five-axis center?
The same as a comparable three-axis machine for the same tool and material. Five-axis does not make the spindle stronger. It changes the tool orientation and the number of setups.
On aluminum 6061 with a 16 mm end mill, roughing is limited by the spindle and the fixture, not by the axis count.
Send us the part and we will tell you if it needs five axes
We review the model and the tolerances, then quote the process that fits. DFM feedback and a quotation come back within 12 hours.
12-hour quoteDFM analysis included100% inspectionNDA on request