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

Get Instant Quote

Build guide

How to Build a Desktop 5 Axis CNC Machine

A desktop 5 axis cnc machine is a real project, not a kit you bolt together in a weekend. This guide walks through the frame, the two rotary axes, the control, and the tests that tell you whether the machine actually cuts to tolerance. Written for engineers and advanced makers who already run a 3-axis mill.

Frame stiffness firstTrunnion vs table-headBacklash under 0.01 mmTest part before trusting it
desktop 5 axis cnc machine
Quick answer

Key takeaways

Stiffness beats travelA 300 mm cube machine with a rigid frame holds ±0.01 mm better than a 600 mm machine built on thin plate.
The rotary axes decide everythingAny flex or backlash in A and C shows up doubled in the finished surface.
Pick the configuration earlyTrunnion on the table versus head-mounted C changes the whole frame layout.
Budget the control and spindleA good controller and a ground spindle cost more than the aluminium frame.
Test before you trustA ballbar circle and a test hemisphere reveal real positioning error.
Scope

What a desktop 5 axis cnc machine can and cannot do

A desktop 5 axis cnc machine fits on a bench, runs on single-phase power, and moves a small tool through five coordinated axes. Typical work envelopes land between 200 mm and 500 mm per side. That size suits molds, impellers, dental and medical blanks, small brackets, and one-off prototypes where a second setup would cost more than the part.

The honest limit is stiffness. Cutting forces scale with the tool diameter and depth of cut, while frame stiffness scales with the cube of the section size. A bench frame loses that fight. You can still hit tight numbers on aluminium and plastics, but you will not rough a 20 mm deep pocket in 4140 steel at production rates.

What the two extra axes buy you is reach. A 3-axis machine has to rotate the part by hand to reach a side wall, and every re-clamp adds error. Five axes hold the part once and tilt the tool. On a part with four angled faces, that is four setups saved and four chances of a locating error removed.

So the build target should be stated in terms of parts, not axes. Write down the largest part, the hardest material, and the tightest tolerance you actually need. A machine designed around a 100 mm aluminium impeller looks nothing like one designed around a 300 mm steel fixture plate.

  • 1
    Good fitSmall aluminium and plastic parts with angled features, under 300 mm.
  • 2
    WorkableBrass, mild steel, and titanium with light depths of cut and long cycle times.
  • 3
    Wrong toolProduction runs, deep steel pockets, and anything needing a 20 mm roughing cutter.
Frame

Choosing the frame, linear motion, and spindle

Start with the frame because you cannot fix it later. Epoxy granite, cast iron, and welded steel all work. Epoxy granite damps vibration well and is easy to cast at home, but it needs steel inserts cast in place for every bolt. Welded steel is cheaper, though it must be stress-relieved and machined after welding or it will move for months.

For linear motion, profile rail on a machined surface is the practical choice. Round rail on unsupported shaft flexes in the middle of its travel, which shows up as a taper in the part. Mount the rails on a surface flat to 0.02 mm over their length, and preload the blocks lightly. Over-preloading costs you motor torque and generates heat.

The spindle sets the ceiling on your material list. An ER11 or ER16 air-cooled spindle at 24,000 rpm takes tools up to 8 mm and handles aluminium fine. A 1.5 kW water-cooled spindle runs quieter and holds speed under load. If you want steel, you need a low-speed high-torque spindle or a belt-driven head, and the frame has to grow with it.

Ball screws are the norm for the three linear axes. C7 rolled screws are adequate for hobby work; C5 ground screws hold better leadscrew accuracy. Either way, use angular contact bearings at the fixed end and a floating support at the free end, so thermal growth does not bow the screw.

  • 1
    Rails flat to 0.02 mmCheck with a dial indicator on a granite parallel before tightening.
  • 2
    Light block preloadHeavy preload adds drag and heat without adding accuracy.
  • 3
    Fixed-floating screwsPrevents the screw from bowing as it warms up.
Rotary axes

Trunnion or table-head: picking the two rotary axes

The A axis tilts and the C axis rotates. Where you put them defines the machine. In a trunnion layout, the C axis sits on the machine table and the A axis rides on top of it, carrying the part. The spindle stays vertical and simple. This is the most common desktop configuration because the part is small and the spindle does not have to move in two extra directions.

In a table-head layout, the C axis is on the spindle head and the A axis tilts the table. This spreads the mass differently and can reach taller parts, but the head now carries a rotary axis that must stay rigid under cutting load. For a bench machine, that added mass on the Z axis is hard to control.

The rotary axes need a gearbox or a direct-drive torque motor. A worm gear set gives high reduction and holding torque at low cost, but it has backlash that you must measure and compensate. A harmonic drive has near-zero backlash and high stiffness, at a price. A direct-drive torque motor has no gear at all and the best dynamics, but it needs a proper encoder and a controller that supports it.

Whatever you pick, the A axis carries the part and the C axis carries the A axis. Every error in C is amplified by the distance to the cutting point. Keep the part close to the C axis centerline, and the error stays small.

  • 1
    TrunnionSimplest layout for parts under 150 mm, vertical spindle.
  • 2
    Table-headBetter for tall parts, harder to keep rigid on a bench frame.
  • 3
    Harmonic driveNear-zero backlash, higher cost, good for finishing.
Control

Control, drives, and closing the loop

Five axes means the controller must interpolate five motors at once. LinuxCNC, Mach4 with a suitable motion controller, and industrial controls such as Siemens or Fanuc all do it. LinuxCNC is the usual choice for a home build because it handles kinematic transforms and does not hide the machine configuration from you.

Use closed-loop steppers or AC servos, not open-loop steppers. On a 5-axis machine, a lost step on the C axis rotates the whole part and ruins the job silently. Closed-loop drives report position error and stop the program. Servos cost more but hold torque at speed and tolerate the inertia of a trunnion.

The kinematic model is the part most builders get wrong. The controller needs to know where the A and C axes sit relative to the spindle gauge line and the part origin. Measure those offsets and enter them accurately. A 0.05 mm error in the pivot offset shows up as a visible step where two toolpaths meet.

Tuning matters as much as hardware. Set the velocity and acceleration limits conservatively at first. A machine that jerks on direction changes will chatter and leave marks. Raise acceleration only after the frame stops ringing.

  • 1
    Closed loop onlyOpen-loop steppers hide position loss until the part is scrap.
  • 2
    Measure pivot offsetsEnter them in the kinematic model; do not estimate.
  • 3
    Tune slow, then fastStart at half the acceleration you think you need.
Accuracy

Aligning the axes and testing real accuracy

Square the machine before you cut anything. Indicate the C axis rotation to within 0.005 mm on a test cylinder, then sweep the A axis pivot and adjust until the table surface is parallel to X within 0.01 mm over 100 mm. Tram the spindle to the table in both X and Y.

Measure backlash on every axis with a dial indicator and a known move. A typical target is under 0.01 mm on the linear axes and under 0.02 degrees on the rotary axes. If the worm gear has more, either compensate in the controller or accept it and finish-cut in one direction only.

A ballbar test gives you a picture of the whole machine at once. It shows squareness error, backlash, and servo mismatch as a distorted circle. Run it before and after tuning so you can see whether a change helped. A test hemisphere or a small impeller cut in aluminium is the practical version of the same check.

Measure the test part on a coordinate measuring machine or with a micrometer and a surface plate. Look at roundness, step height at toolpath junctions, and surface finish. A finish of Ra 1.6 μm is a realistic target for a well-built bench machine on aluminium. If you are seeing Ra 3.2 μm or worse, something is loose or the parameters are too aggressive.

  • 1
    Square firstC axis to 0.005 mm, table parallel to X within 0.01 mm over 100 mm.
  • 2
    Backlash targetsUnder 0.01 mm linear, under 0.02° rotary.
  • 3
    Cut a test partA small hemisphere shows step height and roundness at a glance.
Build order

Step by step: building the machine

  • 1
    1. Define the part envelopeWrite down the largest part, hardest material, and tightest tolerance. Size the frame around a 300 mm cube unless you have a reason to go bigger. A bigger envelope with the same wall thickness will flex more.
  • 2
    2. Build and stress-relieve the frameWeld or cast the base, then stress-relieve it and machine the rail mounting surfaces flat to 0.02 mm. Do not skip the relief step; unwelded steel moves for months and takes your alignment with it.
  • 3
    3. Install the three linear axesMount profile rails with a dial indicator on a granite parallel. Set ball screw preload lightly. Check that each axis moves freely by hand before you connect a motor, so you separate mechanical drag from drive problems.
  • 4
    4. Build the A and C rotary assemblyAssemble the worm gear or harmonic drive into its housing, then measure runout on the mounting face. Target under 0.01 mm. Shim or scrape the housing until the C axis centerline is square to the table within 0.01 mm over 100 mm.
  • 5
    5. Mount the spindle and check tramTram the spindle in X and Y to within 0.01 mm over a 100 mm sweep. Re-check after a warm-up run of 20 minutes at 12,000 rpm, because the spindle housing grows as it heats up.
  • 6
    6. Wire drives and configure the controllerUse closed-loop steppers or servos. Enter the pivot offsets and the tool gauge line into the kinematic model. Set acceleration at half your target value and raise it only after the machine stops ringing on direction changes.
  • 7
    7. Measure backlash and squarenessIndicate each axis and record backlash. Run a ballbar circle and save the plot. Adjust compensation until linear backlash is under 0.01 mm and rotary backlash is under 0.02 degrees.
  • 8
    8. Cut a test part and inspect itMachine a small hemisphere or impeller in 6061 aluminium with a 6 mm three-flute carbide cutter, 12,000 rpm, 0.05 mm per tooth, 0.5 mm stepover. Measure roundness, step height, and finish before cutting anything you care about.
Configuration

Desktop 5-axis configurations compared

Pick the layout that matches your part, not the one that looks best in a build log.

LayoutBest forWeak pointRigidity
Trunnion on table (AC)Parts under 150 mm, molds, small impellersPart mass loads both rotary axesGood for its size
Table-head (C on head)Tall parts, deep cavitiesExtra mass on the Z axisHarder to control
Worm gear rotaryLow-cost builds, low-speed indexingBacklash needs compensationModerate
Harmonic drive rotaryFinishing cuts, tight roundnessHigher cost per axisHigh
Direct-drive torque motorFast indexing, best dynamicsNeeds good encoder and controllerHigh

Build it if the machine is the point

A desktop 5 axis cnc machine rewards patience in the frame and the rotary axes, and punishes shortcuts everywhere else. If you need parts rather than a project, buy the machining time.

FAQs

Questions builders ask

Can a desktop 5 axis cnc machine hold ±0.005 mm?

On small aluminium and plastic parts with light cuts, a well-built bench machine can get close. That number depends on thermal stability and the measuring setup as much as the frame.

In practice, ±0.01 mm is a realistic working tolerance for a home build, and it holds only if you control temperature and let the machine warm up before the finishing pass.

Do I need a fourth and fifth axis, or can I just tilt the part by hand?

If the part has one or two angled features, hand tilting on a sine plate is faster and cheaper. Every re-clamp costs you setup time and introduces a locating error.

Five axes pay off when the part has many faces, when the surfaces must blend, or when you will make the same part more than a handful of times.

Which materials are realistic on a bench machine?

6061 and 7075 aluminium, brass, plastics such as POM and PEEK, and light cuts in mild steel. Titanium and 17-4PH stainless are possible but slow, and tool life drops fast.

Keep depth of cut under one third of the cutter diameter in aluminium and much lower in steel. If the machine chatters, reduce the axial depth before you reduce the feed.

How do I know if backlash is my problem or the toolpath is wrong?

Cut a circle and measure the diameter at four points. If two opposite points are off in the same direction, that is backlash or squareness. If the error follows the toolpath direction, look at the CAM settings.

A ballbar plot separates the two quickly. Run it before you change any CAM parameter.

Is it worth building one instead of buying a used industrial machine?

Build it if the machine itself is the goal, or if you need a specific small envelope that no used machine offers. Used industrial 5-axis machines are heavy and need three-phase power and floor space.

If your goal is parts rather than a project, buying machining time from a shop that already runs 16 simultaneous 5-axis centers is usually faster and cheaper than a year of building.

What should I do when the machine is done and I need production parts?

Use the bench machine for prototypes and fixtures, and send production volumes to a shop with larger travels and a full inspection process. Mixing the two keeps your build time for the work that only you can do.

Send the same CAD file with a tolerance callout, and compare the shop's first article against your bench machine's output.

Send us the part you were going to build the machine for

Upload a STEP file and we will return a quotation and a free DFM analysis within 12 hours. No minimum order quantity, from one prototype to 10,000+ parts.

12-hour quote100% inspectionNDA on request

Follow

More from the shop floor

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