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

Get Instant Quote

CNC milling basics

How CNC Milling Machines Work

This guide explains how CNC milling machines work, from G-code and spindle motion to workholding and in-process inspection. It is written for design engineers, manufacturing engineers, and buyers who need to judge whether a part belongs on a mill, what tolerance is realistic, and where a process will fail.

±0.005 mm tolerance16 five-axis centers127 CNC machines3-5 day shipping
How CNC milling machines work on custom auto spare parts with 5-axis machining
Quick answers

Key takeaways

A mill removes material, it does not form itA rotating tool feeds into a clamped block; the shape comes from the toolpath, not from a mold.
Axis count sets the geometry you can reach3-axis cuts one face at a time; 5-axis reaches undercuts and steep walls in one setup.
Tolerance is a system resultMachine, tool, fixture, and thermal state all add error. ±0.005 mm is achievable, not automatic.
Setup count drives cost more than cycle timeEach extra orientation adds a fixture and a datum shift that can stack error.
Inspection closes the loopWithout in-process checks, a drifting tool goes unnoticed until the final report.
Fundamentals

What happens inside a CNC mill

A CNC mill holds a rotating cutting tool in a spindle and moves it relative to a clamped workpiece along controlled axes. The machine does not decide anything. It reads a program of coordinates and feed rates, then drives servomotors to follow that path. The shape of the finished part comes from the path, not from the tool profile, which is why a single end mill can cut a pocket, a slot, and a contoured wall.

The controller is the brain. It reads G-code, interpolates the commanded path, and sends position commands to each axis at a fixed cycle rate, often 1 kHz or faster. Feedback from encoders or glass scales tells the controller where the axis actually is, and the drive corrects the difference hundreds of times per second. This closed loop is why a mill can hold ±0.005 mm on a good day, and why it can also drift when the loop is disturbed by heat, chips, or a loose tool.

Cutting happens by shear. The tool edge presses into the material until the stress exceeds the material's shear strength, and a chip slides up the rake face. Heat leaves with the chip, not with the workpiece, which is why chip evacuation matters more than coolant volume in most aluminum jobs. If chips recut, the edge wears fast and the surface finish degrades from Ra 0.8–1.6 μm to something visibly torn.

  • 1
    ControllerReads G-code, closes the position loop, applies look-ahead and feed override.
  • 2
    SpindleHolds the tool, provides rpm and torque. Speed and rigidity limit what you can cut.
  • 3
    AxesLinear X, Y, Z plus rotary A, B, C. More axes mean more reachable geometry.
  • 4
    FixtureHolds the part still. A weak setup moves under load and ruins tolerance.
Axis motion

How axes and toolpaths shape the cut

A 3-axis mill moves the tool in X, Y, and Z. It cuts one face per setup, so a part with features on five sides needs five orientations. That is fine for plates, brackets, and housings with open geometry. It is slow and error-prone for parts with angled faces or deep undercuts, because each re-clamp shifts the datum and adds stack-up error.

A 4-axis mill adds a rotary table, usually about the X or Y axis. The part can be indexed to new faces without re-clamping, which cuts setup count and improves concentricity on cylindrical features. A Ø400 mm rotary table is common for mid-size work. You still need a 3-axis-style approach for each indexed position, so tool access is better but not unlimited.

A 5-axis mill adds two rotary axes, either in the spindle head or in a trunnion table. The tool can approach the part from almost any direction, which means steep walls, undercuts, and compound angles can be cut in one setup. It also lets you keep the tool tilted so the cutter engages the material at a better angle, which reduces chatter on thin walls. The trade-off is programming cost, fixture complexity, and the need for accurate post-processing.

The CAM system converts the CAD model into a toolpath. It picks tool sizes, stepover, stepdown, and feed rates, then outputs G-code for a specific machine and post-processor. A toolpath that looks efficient on screen can still fail in the machine if it demands more spindle torque than available, or if the tool cannot reach a corner without a long, flexible overhang.

  • 1
    3-axisSimple, rigid, low cost per setup. Limited to one face per orientation.
  • 2
    4-axisAdds indexing around one rotary axis. Good for cylindrical and multi-face parts.
  • 3
    5-axisReaches undercuts and compound angles. Best for complex, high-value parts.
  • 4
    ToolpathDefines engagement. Aggressive paths raise cutting force and deflection.
Tolerance and finish

What tolerance and finish you can actually hold

Tolerance is not a single machine number. It is the sum of machine positioning error, tool wear, fixture rigidity, thermal drift, and measurement uncertainty. A well-maintained 5-axis center can hold ±0.005 mm on a rigid part with a stable setup. The same machine on a thin, unsupported wall may struggle to hold ±0.05 mm because the part moves, not the machine.

Surface finish follows the same logic. A fine finish of Ra 0.2–0.8 μm requires a sharp tool, a stable setup, and a light finishing pass. A high-finish cut at Ra 0.8–1.6 μm is a realistic target for most production parts. As-machined surfaces at Ra 1.6–3.2 μm are common when cycle time matters more than appearance. If a drawing calls for a mirror finish, ask whether the function needs it or whether it is cosmetic.

Material changes the rules. Aluminum 6061 and 7075 cut freely at high spindle speeds. Stainless 316 and 17-4PH work-harden, so the tool must keep moving and the feed must not be too light. Titanium Ti-6Al-4V conducts heat poorly, so the edge runs hot and tool life drops fast. Inconel is worse. On these materials, a conservative stepdown and a rigid setup matter more than a fast spindle.

Inspection closes the loop. We check raw material, monitor in process, and inspect 100% before shipment, with reports on request. That does not replace a first-article inspection on your side. For critical features, agree on the measurement method before cutting, because a CMM reading and a micrometer reading can differ by more than the tolerance itself.

  • 1
    Rigid setup firstA stable fixture buys more accuracy than a tighter machine spec.
  • 2
    Control heatWarm-up cycles and stable coolant reduce thermal drift on long runs.
  • 3
    Match finish to functionDo not pay for Ra 0.2 μm on a non-sealing surface.
  • 4
    Agree on inspectionDefine the method and the datum before the first cut.
Workflow

Step by step: from model to finished part

  • 1
    1. Review the model and define datumsCheck wall thickness, tool access, and corner radii. Pick a primary datum that matches how the part will be inspected. Corners smaller than the tool radius cannot be cut; add a note or change the design before quoting.
  • 2
    2. Choose stock and workholdingSelect material grade and stock size. Allow 0.5–1.5 mm per side for cleanup on machined faces. For thin plates, use vacuum or soft jaws to avoid bowing. For long parts, support the overhang or the part will lift during heavy cuts.
  • 3
    3. Build the CAM programRough with a larger tool, then semi-finish, then finish. Use stepdown between 0.5×D and 1.0×D for aluminum, less for stainless and titanium. Keep tool overhang short. Verify the post-processor matches the machine's rotary configuration.
  • 4
    4. Set the tool and probe the partLoad the correct tool and measure its length and diameter. Probe the stock to establish work offsets. Check that the tool number, offset, and program all agree. A mismatch here is the most common cause of a crashed first cut.
  • 5
    5. Dry-run and cut the first partRun the program in air or with a raised Z to confirm motion. Then cut with reduced feed override, typically 50–70%, and watch the load meter. Increase feed only after the cut sounds stable and chips evacuate cleanly.
  • 6
    6. Measure and adjustInspect critical dimensions immediately. If a dimension is off by more than 0.02 mm, check tool wear, work offset, and thermal growth before changing the program. Adjust wear offsets rather than rewriting the toolpath.
  • 7
    7. Run production with in-process checksInspect at defined intervals, not only at the end. Track tool life and replace on a schedule. Log the readings so a drift is visible before parts go out of tolerance.
Selection guide

Which configuration fits your part

Match the part geometry to the machine before you request a quote.

Part featureBest configurationWatch out for
Flat plate, holes on one face3-axisDatum shift if flipped for a second side
Cylindrical part with cross holes4-axis with rotary tableIndexing error between positions
Compound angles, undercuts5-axis simultaneousHigher programming and fixture cost
Thin wall under 1 mm5-axis with tilted toolChatter and deflection without support
Deep pocket, small corner radius3-axis with long-reach toolTool deflection at high overhang
Large frame 4,000 mm long3-axis with long travelThermal growth over long cuts

The takeaway for your next part

Choose the machine by geometry and setup count, not by axis count alone. If a part needs three orientations, a 5-axis center usually wins on total cost and accuracy. If it is a flat plate with holes, a 3-axis mill is faster and cheaper.

FAQs

Common questions about CNC milling

How does a CNC mill know where the part is?

The operator establishes work offsets by touching off or probing the stock. Those offsets tell the controller where the part datum sits in machine coordinates.

If the stock moves or the fixture shifts, the offsets are wrong and every feature shifts with them. That is why probing before the first cut matters.

Can a 3-axis mill cut a 5-axis part?

Sometimes, if the part can be repositioned between setups. Each new orientation needs a fixture and a datum, and the errors stack.

For compound angles and undercuts, a 3-axis machine may need custom fixtures that cost more than the 5-axis time saved. Compare total cost, not just machine rate.

Why does my part measure differently on a CMM?

The CMM and the machine may use different datums, temperatures, or probe forces. A part measured at 20 °C can differ from one measured on a warm shop floor.

Agree on the datum, the temperature, and the measurement method before production. Otherwise both readings can be correct and still disagree.

What causes chatter on a thin wall?

Chatter comes from insufficient rigidity. The tool pushes the wall, the wall springs back, and the cycle repeats at a frequency that leaves marks.

Fix it by supporting the wall, reducing tool overhang, tilting the tool on a 5-axis machine, or lowering radial engagement. Adding more feed is rarely the answer.

How do you decide the stepdown and stepover?

Start from the tool diameter and the material. For aluminum, a stepdown of 0.5×D to 1.0×D is common with a healthy stepover. For stainless and titanium, reduce both until the load meter stays steady.

Then listen to the cut and check the chip shape. Thin, powdery chips usually mean the feed is too light for the material.

Does more spindle speed always mean faster cutting?

No. Speed must match the tool, the material, and the rigidity of the setup. Too much speed with a long overhang causes chatter and rapid edge wear.

The fastest safe cut is the one that keeps chip load per tooth in range and evacuates chips before they recut.

Send us your drawing

We review your model, flag tool-access and tolerance risks, and return a quotation with free DFM analysis within 12 hours. Uploads are secure and confidential, and an NDA is available on request.

12-hour quote100% inspection±0.005 mm toleranceNo minimum order quantity

Follow our work

More from GreatLight

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