Toolpath

Also known as: tool path

On this page 7

A toolpath (also written tool path) is the calculated route that a cutting tool or laser beam follows relative to the workpiece, including its position, depth, direction and speed at every point. In CNC & laser cutting, toolpaths are generated by CAM software from a 2D drawing or 3D model and converted into G-code that the machine controller executes line by line.

The toolpath is where design intent meets physical reality: the same part can be cut quickly and cleanly or slowly and with broken bits, depending on how its toolpaths are planned.

How CAM software generates a toolpath

CAM software builds a toolpath by offsetting the target geometry by the tool radius and then dividing the material removal into passes that respect the chosen depth and width of cut. For a router with a 6 mm end mill, the tool center must travel 3 mm outside a profile to leave the drawn edge exactly where the designer placed it.

The program then orders the moves, inserts rapid moves between cuts, adds plunge or ramp entries and applies feeds and speeds to each segment. A post-processor finally translates this internal plan into the G-code dialect of the controller, such as Grbl or LinuxCNC, because each controller interprets some commands differently.

The following table lists the parameters that define almost every milling toolpath.

ParameterMeaningTypical hobby router range
StepdownDepth removed per pass0.5 to 1 x tool diameter in wood
StepoverLateral overlap between adjacent passes40 to 60 percent for pocketing
Feed rateSpeed of the tool through material1,000 to 3,000 mm/min
Plunge rateVertical entry speedAbout 30 to 50 percent of feed
Safe heightClearance for rapid moves3 to 5 mm above stock
Tool compensationOffset inside, outside or on the lineOutside for parts, inside for holes
Core toolpath parameters for routing and milling

Main toolpath strategies

Toolpath strategies are families of motion patterns, each suited to a particular geometry and stage of machining. Makers typically combine several strategies on one part, starting with fast material removal and finishing with precise passes.

StrategyWhat it doesTypical use
Profile or contourFollows the outline of a shapeCutting parts out of sheet
PocketClears an enclosed area to a depthRecesses, trays, inlays
Adaptive clearingKeeps tool engagement constantFast roughing in aluminum or hardwood
DrillingPlunges at defined pointsHoles matching drill diameter
V-carveVaries depth with a V-bit to match widthSigns and lettering
3D parallel finishingScans a surface in closely spaced linesRelief carving and molds
Laser vector cutTraces lines at full powerCutting plywood or acrylic
Common toolpath strategies and their uses

Adaptive clearing, also known as high-efficiency or trochoidal milling, deserves special mention. Instead of fixed offsets, it uses curved, looping motions that keep the radial engagement low and constant, which allows deeper cuts, cooler tools and less chatter on small, flexible hobby machines.

Toolpaths on laser cutters compared with milling

A laser toolpath controls a beam with no physical tool diameter, so it differs from a milling toolpath in several important ways. The beam still removes a narrow strip called the kerf, typically 0.1 to 0.3 mm wide, and precise parts need a kerf offset just as milled parts need radius compensation.

AspectCNC router or millLaser cutter
Material removalMechanical cutting by rotating flutesVaporization or melting by the beam
Width of cutTool diameter, often 3 to 6 mmKerf of about 0.1 to 0.3 mm
Inside cornersAlways rounded by tool radiusNearly sharp
Depth controlMultiple stepdown passesPower, speed and pass count
Raster engravingRarely usedCommon line-by-line scanning
Typical softwareCAM such as Fusion or Carbide CreateLightBurn or vendor software
Milling and laser toolpaths compared

Galvo lasers add another variation: mirrors steer the beam at very high speed, so toolpath order and jump delays matter more than mechanical acceleration. Gantry-based CO2 and diode lasers, by contrast, are limited mainly by axis acceleration in tight curves.

Choosing the right toolpath settings

Good toolpath settings start from the material, the tool and the rigidity of the machine, and only then from the desired finish. A light belt-driven router cannot use the stepdown that a rigid steel mill handles easily, even with the same end mill.

  • Use climb milling on rigid machines for a better finish, and conventional milling where backlash is a concern.
  • Leave a finishing allowance of 0.2 to 0.5 mm in roughing, then remove it with a light final pass.
  • Add tabs or onion skins to profile cuts so that parts do not shift or fly loose at breakthrough.
  • Ramp or helix into material instead of plunging straight down with end mills that lack center-cutting geometry.
  • Simulate the toolpath before cutting to catch gouges, missed areas and collisions with clamps.

Chip load, the thickness of material each flute removes, links feed rate, spindle speed and flute count. Keeping chip load in the range recommended for the tool prevents both rubbing, which overheats the edge, and overloading, which snaps small bits.

Toolpath errors and how to avoid them

Most failed cuts trace back to a toolpath that does not match the physical setup. The table below pairs frequent symptoms with their usual causes and remedies.

SymptomLikely causeFix
Parts are undersizedProfile set on the line instead of outsideSet compensation to outside
Tool crashes into clampWorkholding not included in stock setupModel clamps and raise safe height
Burned edges in woodFeed too low for spindle speedIncrease feed or lower RPM
Broken small end millExcessive stepdown or full-width slottingReduce stepdown or use adaptive clearing
Wrong depth overallZ zero set on spoilboard instead of stock topMatch CAM origin to machine zero
Toolpath problems, causes and fixes

A disciplined routine of checking origin, units and tool number before every job prevents the majority of these errors, and an air cut above the stock is a cheap test for unfamiliar toolpaths.

Stripped to the essentials

A toolpath is the route a cutting machine follows, written out step by step. Think of it as turn-by-turn directions for a drill bit or a laser: go here, go this deep, move at this speed, lift up, move to the next spot.

Software creates these directions from a drawing, and the machine follows them exactly. The machine does not know what the part should look like, it only follows the route, so a wrong route produces a wrong part even when the drawing is perfect.

Where it is applied

A small furniture workshop cuts cabinet sides from 18 mm birch plywood on a 1,200 by 1,200 mm CNC router with a 6 mm two-flute compression bit. In CAM, the operator creates a pocket toolpath for shelf dados at 6 mm depth, then a profile toolpath outside the line at full depth in three passes of 6 mm, with four tabs per part.

The first test cut shows burn marks, so the feed is raised from 1,500 to 2,400 mm/min at 18,000 RPM, which brings chip load into the recommended range. With the adjusted toolpaths, a full sheet takes about 22 minutes, the shelves fit the dados without sanding, and the tabs keep every part in place until the final cleanup.