What Is CNC Machining? A Shop-Floor Guide to How It Works

CNC machining is an automated manufacturing process in which a computer controls machine tools — mills, lathes, drills, grinders — from a programmed set of instructions instead of a machinist’s hands. CNC stands for Computer Numerical Control. It is a subtractive process: a part is produced by cutting material away from a solid block of stock, which is the opposite of additive processes like 3D printing that build material up layer by layer.
This guide explains what CNC machining is, how the process actually works from design file to finished part, which machine types exist, what materials they cut, and — just as importantly — where CNC is not the right answer. Each branch has its own deeper guide: the machine types, the materials and the G-code language.
What does CNC stand for?
CNC = Computer Numerical Control.
The name carries the whole idea in two parts:
- Numerical — the machine is driven by numbers: coordinates, speeds and feeds, expressed in a programming language called G-code.
- Computer control — a computer (the machine’s controller) reads those numbers and moves the tool and the workpiece automatically, cycle after cycle, with no human turning a handwheel.
This was not always how machines worked. Numerical control dates to the late 1940s and 1950s, when machinists began driving machines from punched tape instead of manual levers. The first numerically controlled milling machines were demonstrated at MIT in 1952, building on work by John T. Parsons for machining complex helicopter-blade shapes. Adding a computer to that tape-based control — giving us the “C” in CNC — followed in the late 1950s. The principle has not changed since: a part is defined as numbers, and a machine cuts to those numbers.
How CNC machining works: from CAD file to finished part
The process looks the same whether the part is a one-off bracket or a production run: a design becomes a program, the machine is set up to match that program, and the cut is executed automatically. In practice there are five stages.
1. Design the part (CAD)
The part starts as a 2D or 3D digital model in CAD (computer-aided design) software. The design needs to respect what cutting tools can actually do — sharp internal corners are hard to produce because tools are round, and thin walls deflect under cutting forces. Thinking about manufacturability at this stage, not after the drawing is locked, is what separates parts that machine cleanly from parts that fight you all the way.
2. Program the toolpaths (CAM)
The CAD model is brought into CAM (computer-aided manufacturing) software, where a programmer:
- selects the cutting tools (end mills, drills, inserts),
- defines the toolpaths — the exact routes each tool takes through the material,
- sets the cutting parameters: spindle speed, feed rate, depth and width of cut,
- sequences the operations so the part is rough-cut first, then finished.
The choice of machine matters here: the program is written for a specific machine, and the part needs to be reachable by the tools on that machine.
3. Verify and post-process
Before anything cuts metal, the CAM software simulates the toolpaths to catch crashes, gouges and missed features. The verified toolpaths are then translated by a postprocessor into the G-code format that the target machine’s controller understands. Using the wrong postprocessor is a classic way to get a machine that moves in the wrong direction — this step is why the same program does not run on every machine.
4. Set up the machine
Setup is where experienced shops win or lose time. The operator:
- fixes the stock securely to the machine — fixturing in a vise, clamps or on a pallet,
- mounts the right tools and measures their lengths,
- locates the part’s zero point (work offsets) so the machine knows where the material actually sits,
- loads the program, sometimes running a dry run before the first cut.
Setup effort is real and often underestimated: it is the reason CNC is not automatically cheaper than manual work for very small quantities.
5. Cut, then check
The machine executes the program: roughing removes most of the material quickly, finishing passes bring the part to final size and surface, and coolant controls heat at the cut. Once the part is out, it is inspected against the drawing — and that measurement feeds back into the next run, because a part that measures differently than programmed tells you the setup, the tool or the program needs correcting.
The main types of CNC machines
CNC machines split into two broad families: chip-making machines (mills and lathes, which physically cut with rotating tools) and machines that remove material another way (laser, plasma, waterjet and EDM). Within the chip-making family you will meet these most often:
| Machine | What it does | Typical parts |
|---|---|---|
| CNC mill / VMC | A rotating cutting tool moves over a stationary (or moving) workpiece | Brackets, housings, molds, pockets, slots |
| CNC lathe / turn center | The workpiece rotates while a stationary tool cuts it | Shafts, bushings, bosses, any axially symmetric part |
| Mill-turn | A lathe with live tooling — turns the part and mills it in one setup | Complex round parts that also need flats, slots or cross-holes |
| Swiss-type lathe | Bar stock feeds through a guide bushing for long, slender, precise parts | Medical, watch and electronics components |
| CNC router | High-speed, open-frame mill for softer material | Wood, plastic, composites, sign work |
Outside the chip-making family: EDM erodes conductive metal with electrical discharges (ideal for hardened steel and sharp internal corners), grinders remove tiny amounts with abrasive wheels for the tightest tolerances and finishes, and laser / plasma / waterjet cut sheet and plate — laser for precision, plasma for thick steel, waterjet for heat-sensitive materials that must not be thermally distorted.
Why axes matter
A standard mill moves in three linear axes — X, Y and Z. 4- and 5-axis machines add rotation, letting the tool reach the part from more angles in one setup. More axes mean fewer setups and the ability to cut complex freeform shapes, at the cost of more complex programming and a bigger machine investment. For a first pass through the subject: if the part is mostly “2.5D” — flat features, pockets, drilled holes on a few faces — a 3-axis machine with a couple of setups may be all you need.
What materials can be CNC machined?
CNC covers a wide material range: aluminum, steel, stainless steel, brass, copper, titanium and other alloys on the metal side; engineering plastics such as ABS, nylon, acetal (POM) and PEEK; plus composites and wood. Because CNC starts from solid stock, the finished part keeps the mechanical properties of the original material — important for structural parts where strength and fatigue behavior matter, and one of the reasons machining remains the default for load-bearing components rather than 3D printing.
Material choice and cutting tool interact: harder and gummier materials wear tools faster, cut slower, and demand better coolant strategy. That is not a reason to avoid them, but it is why “can this material be CNC machined?” and “what does machining it actually cost?” are different questions.
Advantages of CNC machining
- Repeatability. Once the program is proven, the hundredth part is made the way the first one was. Human judgment stops being a variable in the cut.
- Precision and consistency. General-purpose machines hold tolerances in the range of a few thousandths of an inch (about a tenth of a millimetre) on well-set-up jobs, and precision machines go considerably tighter.
- Less skilled touch required at the machine. Setup and programming take skill; running the cycle does not. One operator can supervise several machines.
- Unattended running. Programmed machines can run lights-out — through breaks, second shift and overnight — which is where automation really pays.
- Complex geometry in one setup, especially with multi-axis machines.
- Design changes are cheap to make once the part is programmed: update the program, not the tooling.
Where CNC is not the answer
Being honest about the limits is what makes a buying guide useful:
- Setup and programming are a real cost. For a single simple part, a manual machine is often faster than programming, proving out and setting up CNC. CNC pays when quantity, complexity or repeatability justify the front-loaded effort.
- It is subtractive, so there is waste. Chips, swarf and coolant are part of the deal, and material is paid for even when it is cut away.
- Geometric constraints. Round tools mean internal corners have a minimum radius and thin walls deflect; some geometries are impractical or impossible to machine and belong to another process.
- Not a raw-material technology. If the part should be forged, cast, welded or injection-moulded, machining is often the finishing step rather than the whole story.
CNC vs manual vs 3D printing — which way to go?
| CNC machining | Manual machining | 3D printing | |
|---|---|---|---|
| Repeats parts identically | Yes, run after run | No — depends on the machinist | Yes, but process varies |
| Material strength | Solid stock, full material properties | Same | Layer-dependent, weaker in Z |
| Tolerances | Tight, repeatable | Good but variable | Loose by comparison |
| Best for | Production, precision, metal | One-off simple work | Complex internal geometry, low volume |
| Surface finish | Machined — often final | Machined | Usually requires finishing |
The processes are complements, not competitors: many parts are printed or cast near-net-shape and then CNC-machined on the critical faces.
Where you will find CNC machined parts
Virtually every precision-manufacturing industry runs on CNC: aerospace and defense, medical devices, automotive and EV powertrains, mold and die, oil and gas equipment, electronics enclosures, and the job shops that serve them all. The tell-tale signs of a CNC part are precision, tight tolerances, and surfaces or features repeated across thousands of units.
CNC terms you will hear
- Stock / workpiece — the block of raw material a part is cut from.
- Fixture / workholding — whatever holds the stock still: vise, clamps, pallet.
- Spindle — the motor that rotates the tool (on a mill) or the workpiece (on a lathe).
- Axes — the controlled directions of movement (X, Y, Z linear; A, B, C rotary).
- G-code — the language of coordinates and commands the controller executes.
- Toolpath — the route a cutting tool takes through the material.
- Roughing vs finishing — removing bulk material quickly, then cutting to final size and finish.
- Dry run / prove-out — testing a program and setup without cutting material, or on scrap.
Every term on this page — and hundreds more — is defined in the CNC glossary.
Frequently asked questions
What is the difference between a CNC mill and a CNC lathe? A mill holds the workpiece still and moves a rotating cutting tool over it. A lathe rotates the workpiece against a stationary tool. If the part is round and symmetric, a lathe is usually the natural fit; if it has flats, pockets and holes on multiple faces, a mill.
Do you need to know programming to use CNC? To program parts you need CAM skills. To operate a proven setup, far less — the program does the thinking, but the operator still sets tools, finds zero and watches the cut.
Is CNC machining only for metal? No. Plastics, composites, wood and foam are all machined routinely. Metals are simply where the precision and repeatability advantages matter most.
How accurate is CNC machining? Accuracy depends on the machine, the setup and how the part is held, not on “CNC” in the abstract. Well-set-up general-purpose machines commonly work in the range of a few thousandths of an inch, with precision machines going tighter; repeatability run-to-run is usually even better than absolute accuracy.
Does CNC machining cost a lot? The cost of a part is driven mainly by material, size and complexity, the number of setups and tool changes, and quantity — not by a single price tag. Economies appear with repeat orders and unattended running. It is a topic of its own — the machine-cost drivers guide walks through it — and a buying decision worth making on part specifics rather than on averages.
Bottom line
CNC machining is best understood as a discipline rather than a single machine: turn a part into numbers, let a computer drive a cutting tool to those numbers, and the result repeats. It earns its place wherever precision, repeatability and metal matter — and it is best avoided for the simple one-off where the setup cost outweighs the part. Start from the geometry of your parts, decide whether quantity and tolerances justify programming and setup, and the rest of the decisions follow.
This guide is part of the CNC Media guides library — practical reference content for engineers and shop managers, kept current and updated as processes evolve.