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.
| Parameter | Meaning | Typical hobby router range |
|---|---|---|
| Stepdown | Depth removed per pass | 0.5 to 1 x tool diameter in wood |
| Stepover | Lateral overlap between adjacent passes | 40 to 60 percent for pocketing |
| Feed rate | Speed of the tool through material | 1,000 to 3,000 mm/min |
| Plunge rate | Vertical entry speed | About 30 to 50 percent of feed |
| Safe height | Clearance for rapid moves | 3 to 5 mm above stock |
| Tool compensation | Offset inside, outside or on the line | Outside for parts, inside for holes |
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.
| Strategy | What it does | Typical use |
|---|---|---|
| Profile or contour | Follows the outline of a shape | Cutting parts out of sheet |
| Clears an enclosed area to a depth | Recesses, trays, inlays | |
| Adaptive clearing | Keeps tool engagement constant | Fast roughing in aluminum or hardwood |
| Drilling | Plunges at defined points | Holes matching drill diameter |
| V-carve | Varies depth with a V-bit to match width | Signs and lettering |
| 3D parallel finishing | Scans a surface in closely spaced lines | Relief carving and molds |
| Laser vector cut | Traces lines at full power | Cutting plywood or acrylic |
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.
| Aspect | CNC router or mill | Laser cutter |
|---|---|---|
| Material removal | Mechanical cutting by rotating flutes | Vaporization or melting by the beam |
| Width of cut | Tool diameter, often 3 to 6 mm | Kerf of about 0.1 to 0.3 mm |
| Inside corners | Always rounded by tool radius | Nearly sharp |
| Depth control | Multiple stepdown passes | Power, speed and pass count |
| Raster engraving | Rarely used | Common line-by-line scanning |
| Typical software | CAM such as Fusion or Carbide Create | LightBurn or vendor software |
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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Parts are undersized | Profile set on the line instead of outside | Set compensation to outside |
| Tool crashes into clamp | Workholding not included in stock setup | Model clamps and raise safe height |
| Burned edges in wood | Feed too low for spindle speed | Increase feed or lower RPM |
| Broken small end mill | Excessive stepdown or full-width slotting | Reduce stepdown or use adaptive clearing |
| Wrong depth overall | Z zero set on spoilboard instead of stock top | Match CAM origin to machine zero |
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.