5-AXIS MACHINING5-axis machining
5-axis machining adds two rotary axes to the three linear axes (X, Y, Z) so you can cut while also changing the tool orientation. We start with the difference between “3+2 (indexed)” and “simultaneous 5-axis,” then cover machine types, NC functions, calibration, and where things tend to go wrong, all checked against public manufacturer and standards documents.
Most parts are fine
with 3+2!
First, the difference.


3+2 machining vs. simultaneous 5-axis machining
5-axis machining
3+2 machining (indexed machining, tilted-plane machining, multi-face machining)
Simultaneous 5-axis machining
5-face machine (not the same as a 5-axis machine)
- A gantry machining center that automatically changes attachment heads (extension heads, 90° angular heads) to machine the top and four sides of a workpiece. The tool orientation only switches between fixed angles; it is not tilted continuously by rotary axes.One source / reference[10]
Try how a 5-axis machine moves
Switch between three machine configurations and watch how the rotary axes (A, B, C) move when the tool tilts. Turn off tool center point control (TCP) to see the tip drift, and pass near vertical to experience the singularity where the C axis suddenly spins.
To write an NC program and cut on a 5-axis machine, try the 5-axis CNC simulator.
The direction (sign) of rotation, the C-axis zero position and the name of TCP (G43.4, M128, TRAORI, etc.) differ by machine and control. This is for understanding how the motion works.
Quick comparison
| 3+2 machining | Simultaneous 5-axis machining | |
|---|---|---|
| Tool orientation | Static (indexed and locked) | Dynamic (changes while cutting)[1][4][2][6][7] |
| How the program is made | You can write an ordinary 3-axis program (fixed cycles can be used) on the tilted plane. It can also be written by hand. | CAD/CAM required[4][6][7][11] |
| Main NC functions | Tilted working plane commands (FANUC Tilted Working Plane / Mitsubishi Electric tilted plane machining command), Siemens CYCLE800, Heidenhain PLANE, Haas G254 (DWO) and G268 | Tool center point control (FANUC/Mitsubishi Electric G43.4 etc.), Siemens TRAORI, Heidenhain M128 / FUNCTION TCPM, Haas G234 (TCPC)[1][5][6][12][13][9][8][11][14] |
| Suited parts (3+2) | Most general parts can be done with 3+2 (up to simultaneous 4-axis). Holes and pockets on tilted faces, multi-face machining, roughing and semi-finishing of 3D shapes, making tools and fixtures | —[2][7] |
| Suited parts (simultaneous 5-axis) | — | Overhanging shapes such as impellers and blisks, turbine and aero-engine parts, aircraft structural parts, free-form surfaces of dies and molds, finishing of deep recesses and shapes with many curvature changes[1][2][7] |
| Difficulties of simultaneous 5-axis | — | The motion is complex, so creating and verifying NC programs takes time; it is hard to read the motion at the machine; and with many moving axes, rigidity is hard to maintain[15] |
What do you gain from 5 axes?
- You can reduce setup changes (re-fixturing the workpiece). Waiting between operations and machining time go down, and accuracy improves because the fixturing error introduced by each re-fixturing disappears.[6][7][16][17]FANUC's development report splits the benefits into two: "reduced waiting between processes and shorter machining time" and "elimination of mounting errors from re-setups." Manufacturers' product pages (Mazak, Okuma) describe it as "process consolidation."
- Tilting a ball end mill lets you avoid cutting with the near-zero surface speed center, which gives a better finish (cutting with the center crushes the material instead of cutting it).[18][15]In an experiment at the Kanagawa Institute of Industrial Science and Technology (KISTEC), the tilted surface came out glossy, but surface roughness Rz was smaller without tilting (lead angle and tilt angle 0°). The conclusion is that the tilt must be chosen depending on whether you prioritize visual surface quality or surface roughness.
- Because the angle between the tool and the surface can be kept constant, the surface roughness stays uniform.One source / reference[6]
5-axis machining pages

5-axis machine configurations
The three types (head-head, table-table, head-table) with their advantages and drawbacks, the names and directions of rotary axes A, B, C, vertical vs. horizontal machines, and multitasking machines.

5-axis NC functions
Tool center point control, tilted-plane commands and 3D tool radius compensation. A comparison of commands by NC maker, G93 inverse time feed, tool length and center of rotation, and RTCP accuracy.

Calibration, collision, workholding and tools
Location errors of the rotary axes (center offset and tilt), R-test, ballbar and touch probe, kinematics calibration and heat, accuracy test standards, collision checking, 5-axis vises, and how to tilt a ball end mill.

Common 5-axis mistakes
Singularities (which orientation makes the C axis swing), the two solutions of a rotary axis and the long way around, feed units, tool length error, forgetting to cancel a tilted plane, and calibrating while cold. A checklist to verify on the shop floor.

5-axis CNC simulator
Run G43.4, G43.5 and G68.2 programs in the browser and cut in 3D — side holes and undercuts included — with warnings for TCP-off drift, singularities and holder collisions. Four exercises.

5-axis calculations
The F value for G93 inverse time feed, the tilt angle of a ball end mill, angles from a direction vector, the shortest way to turn a rotary axis, the effect of a center-of-rotation offset, and C axis speed near a singularity.

CAD/CAM
CAM workflow, toolpath types, a list of software, data formats (STEP, IGES, Parasolid), coordinate systems and post-processors.
★JIMTOF 2026 New 5-Axis & Mill-Turn Machines
World premieres including DMG MORI INH 63 FD, Mazak INTEGREX NEO, Okuma new 5-axis MCs, and Matsuura MX-850T PC4.
5-axis machining terms
| Term | English | Meaning |
|---|---|---|
| 5-axis machinegojiku kakoki | 5-axis machining center | A machining center that adds two rotary axes to the three linear axes and can cut while also changing the tool orientation.[1][3] |
| 3+2 machiningsan purasu nijiku kako | 3+2-axis machining / tilted plane machining | Machining in which the rotary axes set the tool orientation and lock, and the three linear axes cut. Also called indexed machining or tilted-plane machining.[4][5][7] |
| Simultaneous 5-axis machiningdoji gojiku kako | simultaneous 5-axis machining / 5-axis simultaneous | Machining that interpolates the three linear axes and two rotary axes simultaneously, changing the tool orientation while cutting.[2][6][7] |
| Indexed machiningwaridashi kako | multi-face machining | Machining in which a rotary axis is indexed to a fixed angle and locked, and cutting is done in that orientation. Mitsubishi Electric uses the term to include multi-face and tilted-plane machining.[7][4] |
| 5-face machininggomen kako | 5-face machining / 5-sided machining | Machining the top and four sides in a single setup. It is done both on gantry machines that swap attachment heads (5-face machines) and with 3+2.[10][25] |
| Process consolidationkotei shuyaku | Combining operations that were spread across several machines and setups into one machine and fewer setups.[6][17][16] | |
| Tool center point controlkogu sentan-ten seigyo | tool center point control (TCP) / TCPM (Heidenhain) / TCPC (Haas) / TTPC (Mazak) / RTCP: Rotation Tool Center Point (Beckhoff, Cimatron) | A function in which the NC automatically calculates the linear-axis compensation so that the tool tip follows the programmed position even when rotary axes turn.[1][6][13][9][14][26][27] |
| 5-axis transformationgojiku henkan | 5-axis transformation / TRAORI (Siemens) | An NC function that converts the tool tip position and orientation written in workpiece coordinates into the motion of each machine axis. Corresponds to Siemens' tool center point control.[1][2] |
| Tilted working plane commandkeishamen kako shirei | tilted working plane (TWP) / inclined surface machining command / PLANE (Heidenhain) / CYCLE800 (Siemens) / feature coordinate system G268 (Haas) | A function that defines a coordinate system along a tilted face so you can machine it as if it were the XY plane.[5][7][13][1][11] |
| Tilted coordinate systemkeisha zahyokei | tilted coordinate system / feature coordinate system | The coordinate system along the machining surface that is defined in tilted-plane machining.[7][11] |
| Tool axis direction controlkogu jiku hoko seigyo | tool axis direction control / tilted working plane indexing | A function that automatically indexes the rotary axes so the tool is perpendicular to the tilted plane, and links the tilted coordinate system to the rotary axes.[28][7] |
| Work coordinate systemwaku zahyokei | workpiece coordinate system (WCS) | A coordinate system referenced to the workpiece origin. Programs are usually written in it, and the NC converts it to the machine coordinate system (MCS).[1][11] |
| Machine coordinate systemkikai zahyokei | machine coordinate system (MCS) | A coordinate system referenced to the machine origin.[1][19] |
| Kinematicskinemateikusu | kinematics / machine kinematics | The geometry of how the machine axes are arranged and the positions and orientations of the rotary axes. The NC calculates the tool tip position using the registered kinematics.[1][29] |
| Head-head typeheddo heddo gata | head-head kinematics / head rotation type | A configuration with both rotary axes on the spindle head side.[2][6][3] |
| Table-table typeteburu teburu gata | table-table kinematics / table rotation type | A configuration with both rotary axes on the table side. The trunnion type is the typical example.[2][6][3] |
| Head-table type (mixed type)heddo teburu gata | head-table kinematics / mixed kinematics / mixed type | A configuration with one rotary axis on the spindle head side and one on the table side.[2][6][3] |
| Trunnion tabletorunion teburu | trunnion table | A table with a tilt axis plus a rotary axis, in which the rotary table is supported at both sides and tilted.[30][17][16] |
| Tilt-rotary table (swivel rotary table)chiruto rotari teburu | tilt-rotary table / swivel rotary table / tilting rotary table | A table that combines a tilting axis and a rotating axis into one. The name used by Mazak, DMG MORI, GROB, Hermle and others.[16][31][25][32] |
| Swivel headsuiberu heddo | swivel head | A spindle head that tilts (swivels) on a rotary axis.[33][1] |
| Tilt axiskeishajiku | swivel axis | A rotary axis that tilts the tool or the workpiece. The A axis or the B axis, depending on the machine.[34][22] |
| Center of rotation (pivot)kaiten chushin | center of rotation / pivot point / MRZP (Haas: machine rotary zero point) | The center about which a rotary axis turns. If the center of rotation held by the NC differs from the real machine, machining that moves the rotary axes will show errors.[9][35][28][36] |
| Pivot lengthpibotto cho | pivot length | (On machines whose spindle head tilts) the distance from the center of rotation of the tilt axis to the spindle end (the tool reference).[37] |
| Kinematics calibration (measuring the rotary axis center)kinemateikusu kosei | kinematics calibration / rotary axis position calibration / KinematicsOpt (Heidenhain) / CYCLE996 (Siemens) | Measuring the center and orientation of the rotary axes with a reference sphere and touch probe, and correcting the NC's machine configuration parameters.[1][28][29] |
| Reference sphere (calibration sphere)kijun kyu | datum sphere / calibration sphere | A sphere with an accurately known radius. It is fixed on the table and measured during kinematics calibration.[29][28][30][37] |
| Ballbarboru ba | ballbar | A telescoping measuring instrument with a ball at each end. It measures the change in distance between the tool tip and the workpiece during circular moves or simultaneous 5-axis motion.[14] |
| Singularitytokuiten | singular point / singularity | An orientation where the tool direction becomes parallel to the axis line of a rotary axis (for example, B=0° with the tool straight down on a B/C head). The angle of that axis becomes undetermined, and it swings widely when the tool passes nearby.[6][38][39] |
| Inverse time feedgyaku jikan okuri | inverse time feed (G93) | A way of commanding feed in which F means ‘the block is completed in 1/F minutes.’ Used in 4- and 5-axis CAM output.[40][21][41] |
| Direction vectorhoko bekutoru | direction vector / tool orientation vector / A3/B3/C3 (Siemens) / I/J/K (FANUC type II) | The tool orientation expressed as X, Y, Z components. It does not depend on the machine configuration, unlike writing rotary axis angles.[1][6] |
| Lead anglerido kaku | lead angle / LEAD (Siemens) | The angle the tool is tilted in the feed (travel) direction.[18][1] |
| Tilt anglechiruto kaku | tilt angle / TILT (Siemens) | The angle the tool is tilted in the direction perpendicular to the feed direction (Siemens defines TILT as a rotation about the surface normal).[18][1] |
| Surface normal vectormen no hosen bekutoru | surface normal vector | A vector perpendicular to the machining surface. Used as the reference for 3D tool radius compensation and LEAD/TILT. Output by CAM.[1][13] |
| 3D tool radius compensationsanjigen kogu-kei hosei | 3D cutter compensation / 3D tool radius compensation | A function that compensates the tool radius in three dimensions using the surface normal and the tool orientation.[1][5][13] |
| Tool orientation controlkogu shisei seigyo | tool posture control / vector interpolation of orientation | A function that interpolates between the tool orientations at the start and end points so that side milling produces a flat surface.[5][6][36] |
| Workpiece setup error compensationwaku setchi gosa hosei | workpiece setup error compensation / G54.4 (FANUC) | A function that measures the position and rotation offset of the placed workpiece and corrects the path so you can machine without changing the program.[5][6][36][42] |
| Post-processorposuto purosessa | post processor | Converts CAM toolpaths into NC code for that machine and NC. For 5-axis, one is needed for each machine configuration.[1] |
| Barrel toolbareru kogu | barrel cutter / barrel end mill / circle segment cutter | A tool whose profile is barrel-shaped when rotated, with a large radius cutting edge on the periphery. Allows large depths of cut in 5-axis and indexed machining.[43] |
| Gripping depthtsukamishiro | clamping depth / gripping depth | The height at which a vise grips the workpiece. 5-axis vises have a small one, a few mm.[44][45] |
| Nutating axisnyuteito jiku | nutated axis | A rotary axis that is not orthogonal to the linear axes (tilted at an angle). For example, a 45° head.[1] |
| Multitasking machine (mill-turn)fukugo kakoki | multitasking machine / mill-turn | A machine that does turning and milling (including simultaneous 5-axis) on one machine.[6][46] |
| Axis average linejiku heikinsen | axis average line | The straight line obtained by averaging the position and orientation of the center of rotation over one full turn of the rotary axis.[47][48][49] |
| Location errorsichi no gosa | location errors / position-independent geometric errors (PIGE) | Offset in the position and orientation of the axis average line. It comes from assembly misalignment and is treated as constant regardless of angle. Symbols contain a 0, as in E_X0C.[47][48][50] |
| Error motionsgosa undo | error motions / position-dependent geometric errors (PDGE) | Errors that fluctuate around the axis average line as the axis turns. There are six: radial, axial, tilt, and angular positioning.[47][50][51] |
| R-testaaru tesuto | R-test | An accuracy-measuring instrument for 5-axis machines. A reference sphere on the spindle is surrounded by three displacement sensors, which measure the sphere's X, Y and Z displacement at the same time.[52][53][47] |
| Volumetric accuracykukan seido | volumetric accuracy | How accurate the relative position of the tool and workpiece is anywhere within the working volume.[54][49] |
| Numerical compensationsuchi hosei | numerical compensation / volumetric compensation | Cancelling measured geometric errors with correction data in the NC. It requires repeatable positioning.[47][55][56] |
Frequently Asked Questions
- Q. When should I use 3+2 (positional) 5-axis machining vs. simultaneous 5-axis machining?
- Most 5-axis shop work (often 70–80% of parts) uses 3+2 positional machining: indexing the two rotary axes to orient the part, clamping the brakes, and cutting with rigid 3-axis toolpaths. Simultaneous 5-axis is reserved for impellers, blisks, ports, and deep mold cavities where continuous tool tilting is needed to avoid holder collision and maintain surface finish.
- Q. What is Tool Center Point (TCP) control (G43.4 / M128 / TRAORI)?
- TCP control continuously compensates the linear X/Y/Z axes as the rotary axes tilt so that the cutting tool tip stays on the programmed path relative to the workpiece. It is called G43.4 on FANUC, M128 or FUNCTION TCPM on Heidenhain, and TRAORI on Siemens SINUMERIK.
- Q. What causes witness steps where two 3+2 indexed surfaces meet?
- Steps between indexed faces are primarily caused by kinematics errors (mismatch between the rotary axis pivot coordinates stored in the CNC and the actual mechanical center), tool-length offset errors, or thermal drift. Periodic ball-bar / probe kinematics calibration eliminates the pivot offset.
Sources
The 5-axis machining pages are based on public manuals and technical documents from NC and machine tool makers, public pages of standards bodies, and reports from universities and public research institutes. Whether an NC command is available depends on the model and options, so always check your machine's instruction manual.
- Siemens AG, “Milling with SINUMERIK — 5-axis machining Manual, Edition 05/2009 (DocOrderNo. 6FC5095-0AB10-0BP1)”
- Siemens AG, “SINUMERIK live: Programming dynamic 5-axis machining directly in SINUMERIK Operate (2018)”
- Japanese Standards Association (JSA), “JIS B 6336-6:2018 Test conditions for machining centres — Part 6: Accuracy of feeds, speeds and interpolations (ISO 10791-6:2014), preview”
- Siemens AG, “SINUMERIK live: Multi-face machining milling (3+2 axes) (2017)”
- FANUC America Corporation, “5-Axis Machining — CNC systems for high-performance machine tools (MBA-025-EN_03_1308, 2013)”
- Fuji Technology Press (author: Masako Sudo, FANUC Corporation), “Development Report: Advanced Control Technologies for 5-Axis Machining, Int. J. of Automation Technology Vol.1 No.2, pp.108-112, 2007 (DOI 10.20965/ijat.2007.p0108, CC BY-ND 4.0)”
- Mitsubishi Electric Corporation, Naoki Nakamura, “Improved usability of indexed machining on the ‘MITSUBISHI CNC M700V Series’,” Mitsubishi Denki Giho Vol.85 No.4 (2011)
- Haas Automation, Inc., “G254 Dynamic Work Offset (DWO) (G-code reference page)”
- Haas Automation, Inc., “G234 Tool Center Point Control (TCPC) (G-code reference page)”
- Okuma Corporation, “MCR-A5C II product information (5-face gantry machining center)”
- Haas Automation, Inc., “G268 / G269 Feature Coordinate System (G-code reference page)”
- Mitsubishi Electric Corporation, “NC Specification Selection Guide M800V/M80V/E80/C80 Series (BNP-A1244 ENG D)”
- DR. JOHANNES HEIDENHAIN GmbH, “TNC 640 User's Manual Conversational Programming, NC Software 340590-01 / 340591-01 / 340594-01, 4/2012 (892903-20)”
- Renishaw plc, "Application note: ISO 10791-6 using QC20 ballbar"
- Hokkaido University, Makoto Yamada, “A Study on Spindle-Tilting Machining with a 5-Axis NC Machine Tool,” abstract of doctoral dissertation (Engineering) (2006)
- Yamazaki Mazak Corporation, “5-axis machine VARIAXIS C product information”
- Okuma Corporation, “MU-4000V product information”
- Kanagawa Institute of Industrial Science and Technology (KISTEC), Tomohiro Yokota, “A Study of Machined Surface Quality in Ball End Milling,” KISTEC Research Report 2020
- ISO, “ISO 841:2001 Industrial automation systems and integration — Numerical control of machines — Coordinate system and motion nomenclature (standard introduction page)”
- Japanese Standards Association (JSA), “JIS B 6310:2003 Industrial automation systems and integration — Numerical control of machines — Coordinate system and motion nomenclature (ISO 841:2001), preview”
- National Institute of Standards and Technology (NIST), “The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000)”
- Nidec Corporation / Nidec OKK Corporation, “Launch of the VB-X350 5-axis vertical machining center from our subsidiary (October 6, 2023)”
- Okuma Corporation, “MU-10000H product information”
- Makino, “5-axis vertical machining centers (product list)”
- GROB-WERKE GmbH & Co. KG, "Universal machining center G350"
- Beckhoff Automation, "TwinCAT CNC Programmierung: Rotation Tool Center Point (RTCP)" (in German)
- Cimatron (Sandvik Group), "Cimatron 2026 Online Help: RTCP Settings"
- FANUC Corporation, “FANUC Series 30i/31i/32i-MODEL B Plus catalog (English edition FS30i-BPlus(E)-01)”
- DR. JOHANNES HEIDENHAIN GmbH, “TNC 640 User's Manual Programming of Measuring Cycles for Workpieces and Tools, NC Software 34059x-18, 10/2023 (1303409-23)”
- Okuma America Corporation (Okuma), “MU-V Series 5-Axis Vertical Machining Centers catalog”
- DMG MORI (US site), “DMU 50 3rd Generation product page”
- Maschinenfabrik Berthold Hermle AG, "The milling and turning centre – C 42 / C 42 MT"
- Yamazaki Mazak Corporation, “5-axis machine VTC-800/30 product information”
- Makino, “5-axis horizontal machining centers (product list)”
- Renishaw plc, "Brochure: AxiSet Check-Up — Fully automated tests for accurate and consistent results"
- Osaka Institute of Technology, Faculty of Engineering, Department of Mechanical Engineering, Precision Engineering Laboratory (Yukitoshi Ihara Laboratory), “A Study of Machining Accuracy Test Methods for 5-Axis Machining Centers (research introduction poster)”
- Yamazaki Mazak Corporation, “5-axis machine VORTEX i-V product information”
- Google Patents (applicant FANUC), “US11003157B2 Numerical controller for machine tool with installation error compensation unit”
- ICAM Technologies, “How to eliminate unnecessary rotary moves due to singularity (2014)”
- Haas Automation, Inc., “G93 Inverse Time Feed Mode (G-code reference page)”
- Siemens AG, “SINUMERIK 840D sl/828D Fraisage ISO, Manuel de programmation 02/2012 (6FC5398-7BP40-3DA0, French edition)”
- FANUC America Corporation, “Advanced Machining Tips & Tricks | 5-axis CNC (introduction page for an explainer video series)”
- Union Tool Co., “UT End Mill Newsletter, April 2022 vol.12 ‘My Focus: Barrel Tools (1)’”
- Kitagawa, “V75V 5-axis centering vise (product list page)”
- LANG Technik GmbH, “41111: Makro•Grip Stamping Jaws (product page)”
- Yamazaki Mazak Corporation, “INTEGREX i-H multitasking machine product information”
- Japan Society for Precision Engineering (S. Ibaraki), “Measurement and Compensation of Motion Errors of Five-Axis Machine Tools (review)”, Journal of the Japan Society for Precision Engineering 78(9) (2012) (in Japanese)
- Fuji Technology Press (S. Ibaraki, Y. Ota), “Error Calibration for Five-Axis Machine Tools by On-the-Machine Measurement Using a Touch-Trigger Probe, Int. J. of Automation Technology 8(1) (2014)”
- Japanese Standards Association (JSA), “JIS B 6190-1:2016 Test code for machine tools — Part 1: Geometric accuracy of machines operating under no-load or quasi-static conditions (ISO 230-1:2012), preview”
- University of Birmingham (Z. Jiang), “Characterising Geometric Errors in Rotary Axes of 5-axis Machine Tools (PhD thesis, 2015)”
- Japanese Standards Association (JSA), “JIS B 6190-7:2019 Test code for machine tools — Part 7: Geometric accuracy of axes of rotation (ISO 230-7:2015), preview”
- Japan Society for Precision Engineering (Y. Ihara, M. Tsutsumi, T. Eguchi, S. Ibaraki), “A Study of Measurement and Compensation Techniques for Volumetric Accuracy of 5-Axis Machine Tools”, Journal of the Japan Society for Precision Engineering 85(10) pp.809-812 (2019) (in Japanese)
- Hiroshima University, Ibaraki Laboratory, “Research introduction: R-test”
- Fuji Technology Press (S. Ibaraki, W. Knapp), “Indirect Measurement of Volumetric Accuracy for Three-Axis and Five-Axis Machine Tools: A Review, Int. J. of Automation Technology 6(2) (2012) (abstract)”
- Singapore Standards eShop, “ISO/TR 16907:2015 Machine tools — Numerical compensation of geometric errors (abstract)”
- Google Patents (applicant FANUC), “US8283884B2 Numerical controller controlling five-axis machining tool”