Setting CNC zero is the moment when your digital toolpath is tied to a real point on the material. Get that point right and the cutter follows the job exactly where the CAM software expects it. Get it wrong and even perfect toolpaths can cut off the stock, carve too deeply, miss the surface, or drive into the spoilboard.
Machine home and work zero are not the same thing
A CNC router normally uses at least two coordinate references. Machine coordinates are based on the machine's fixed home position, usually established with homing switches. Work coordinates describe the location of the current job. X0 Y0 Z0 in your CAM file is the work zero you must reproduce on the router.
Homing tells the controller where the gantry is within its total travel. Zeroing tells it where the part is. You should generally home after startup so soft limits, repeatable parking moves, and machine-position commands have a reliable reference. Homing alone does not locate your stock.
Most hobby controllers use a work coordinate system such as G54. Controllers based on Grbl support G54 through G59 and calculate work position from machine position and stored offsets. LinuxCNC likewise distinguishes the machine coordinate system from multiple work coordinate systems. The terminology may differ in Carbide Motion, gSender, Mach, Masso, Onefinity Controller, or another sender, but the principle is the same.
The rule that prevents most zeroing mistakes
The origin in CAM and the zero on the machine must identify the same point. If your CAM setup uses the top-left corner of the stock, setting the router at the lower-left corner is wrong even if all three DRO values read zero. If CAM uses the center, the machine must be zeroed at the center. If CAM defines Z-zero on the spoilboard, touching off on the material surface introduces an error equal to the material thickness.
Before walking to the machine, open the CAM setup and write down:
- The selected XY datum: lower-left, upper-left, center, or another defined point.
- Whether Z-zero is at the top of the stock or at the machine bed/spoilboard.
- The actual stock width, length, and thickness entered in the job setup.
- The work coordinate system expected by the posted file, usually G54.
- The tool number, diameter, and stick-out used to create the toolpath.
Autodesk Fusion defines the WCS origin in the manufacturing setup and allows a stock-box point to be selected. Vectric software similarly stores an XY datum and a top-of-material or machine-bed Z-zero choice. Those selections are instructions, not suggestions: reproduce them physically at the router.
Which XY-zero location should you choose?
| XY origin | Best use | Main limitation |
|---|---|---|
| Lower-left corner | Rectangular stock, signs, simple one-off jobs | The corner must be square, accessible, and correctly oriented |
| Stock center | Round blanks, symmetrical designs, centered carvings | Requires accurate centerlines or probing |
| Fixture corner or locating stop | Repeat production and reusable jigs | Fixture position must be stable and documented |
| A machined reference feature | Two-sided work and precision setups | Needs a dependable locating strategy |
The lower-left corner is usually easiest for beginners because positive X moves right and positive Y moves away from the operator on many router layouts. Do not assume that orientation, however. Jog each axis and confirm the actual positive direction shown by your controller.
Top-of-stock versus spoilboard Z-zero
Z-zero on top of the material
This is the most intuitive method. Touch the tool to the stock surface and set Z to zero. It is often best for engraving, V-carving, surfacing, and work where the visible top surface controls depth. The drawback is that warped or inconsistent stock creates changing cut depth across the job.
Z-zero on the spoilboard or machine bed
This method references the bottom of the stock. It is useful for through-cuts because the final depth stays consistent relative to the spoilboard even when material thickness varies. The tool must be able to touch the reference surface safely, and the stock thickness in CAM must be accurate enough to avoid an excessive first pass.
Neither method is universally better. The correct method is the one defined in CAM and physically reproduced on the machine. If you routinely cut profiles from sheet goods, spoilboard zero can improve consistency. If you carve shallow details into a finished face, top-of-stock zero is usually safer.
Before zeroing: make the setup trustworthy
- Home the machine and confirm there are no alarms.
- Measure the actual stock, especially its thickness.
- Secure the workpiece so it cannot shift while touching off or cutting.
- Install the exact tool used in the CAM operation and tighten the collet correctly.
- Remove dust from the reference edges, top surface, touch plate, and spoilboard.
- Confirm that the machine has enough X, Y, and Z travel for the planned job.
A loose workpiece or poorly seated cutter can invalidate a perfect zero. Review the safe bit-change and collet-care guide before installing the tool, and use the CNC router beginner's guide if the difference between setup, toolpath, sender, and controller is still unclear.
How to set X and Y zero manually
Manual edge setting works on almost every router and needs no electronic probe. Use a small jog increment near the stock. Never rapid directly toward an edge when the bit is at material height.
- Raise Z so the cutting edges clear the top of the stock.
- Jog near the chosen corner, staying several millimeters away.
- Lower the tool until the cylindrical shank or cutting edge is at the side of the material.
- Use paper, a feeler strip, or careful visual alignment while jogging in small increments.
- If touching the outside of an edge, account for the tool radius. The spindle centerline is one radius away from the edge.
- Move the cutter centerline to the programmed origin and set the relevant axis to zero.
- Repeat for the second axis, then retract Z before any longer move.
How to set XY zero at the center of the stock
Mark accurate diagonals on rectangular stock, or use measured centerlines from both edges. For greater accuracy, probe two opposing X edges and average their coordinates, then repeat for Y. On round stock, probe opposite sides or use a fixture with a known center. Set X0 and Y0 only after the spindle centerline is physically over the calculated center.
Center zero is forgiving when the blank is slightly oversized because equal margin is distributed around the design. It does not correct rotation. If an edge is not parallel to the machine axes, the design may still run crooked. That is a squaring or alignment issue covered in How to Square, Tram, and Calibrate a CNC Router.
How to set Z zero with the paper method
- Place ordinary paper on the selected Z reference surface.
- Jog down in progressively smaller steps. Switch to 0.1 mm or 0.001–0.005 inch increments near the surface.
- Slide the paper gently after each move. Stop when the tool just begins to drag.
- For basic woodworking, set Z to zero at that point or enter the measured paper thickness if your controller supports a precise offset.
- Raise Z a safe distance and command a cautious return near Z0 to verify the result.
Do not place fingers under the cutter. Keep the spindle off, use a long strip of paper, and move only in tiny increments near contact.
How to set zero with an XYZ touch probe
A touch plate can set Z only, X and Y, or all three axes depending on its design and controller software. Follow the manufacturer-specific routine because the controller must know the plate thickness, edge geometry, probe direction, and cutter diameter.
- Connect the probe and ground clip as designed.
- Test the circuit before probing. Many senders show a probe indicator when the plate touches the tool.
- Place the block in the exact position required by the selected routine. A block sitting fully on top for Z-only probing is not positioned the same way as a corner probe.
- Select the correct tool diameter and probe routine.
- Start with adequate clearance and watch the entire move.
- After probing, remove the plate and clip before jogging or starting the spindle.
Carbide 3D notes that its BitZero V2 uses an insulated base and active probing. That does not make every plate interchangeable: wrong dimensions or placement produce an offset equal to the setup error.
Zeroing after a tool change
If the replacement tool has a different length, Z must be re-established unless the machine uses a properly configured tool-length measurement system. X and Y normally remain unchanged because the stock has not moved. Do not casually press “Zero All” after a tool change; doing so can destroy the established XY reference.
When a controller uses a fixed tool setter, understand whether it updates a tool-length offset or redefines work Z. Those operations are not identical. Test the workflow above the stock before trusting it on a paid project.
How to verify zero before the first cut
- Retract to a safe Z height.
- Confirm the DRO shows the intended work coordinates—not machine coordinates.
- Jog to X0 Y0 and confirm the spindle center matches the CAM origin.
- Move near the far X and Y limits of the programmed job at safe Z to confirm the toolpath fits the stock and machine travel.
- Return above zero and approach Z0 slowly. Verify the tip reaches the expected surface.
- Run the file with the spindle off and Z raised, or use a sender's boundary/outline function.
This dry check belongs beside the CNC router preflight checklist. It takes less time than replacing ruined material or resurfacing a gouged spoilboard.
What correct zero looks like in common jobs
- Sign carved from rectangular stock: XY at the chosen corner, Z on the top surface.
- Centered round plaque: XY at the true center, Z at the top.
- Sheet profile cutting: XY at a repeatable corner or fixture stop, Z often on the spoilboard.
- Two-sided part: XY referenced from locating pins or a symmetric fixture; Z follows the CAM strategy for each setup.
- Repeat production: G54 or another work offset tied to a fixed jig, with Z verified after every tool or stock change.
Zeroing mistakes and what they cause
| Symptom | Likely cause | Correction |
|---|---|---|
| Entire job shifted sideways | Wrong XY corner or no cutter-radius compensation | Match the CAM datum and re-establish the cutter centerline |
| Tool cuts too deeply everywhere | Wrong Z reference, probe thickness, or tool length | Stop, inspect the CAM Z choice, and re-probe |
| Tool cuts air | Z-zero set below the CAM reference or stale offset active | Verify active work offset and Z-zero surface |
| Depth changes across the job | Warped stock, uneven spoilboard, poor tramming, or stock movement | Flatten, secure, and calibrate before rezeroing |
| Position changes after restart | Machine was not re-homed or an offset was restored | Home, select the intended WCS, and verify stored offsets |
Do not confuse a zeroing error with a cutting error
If only certain areas are too deep, the cause may be stock flatness, spoilboard condition, gantry twist, or spindle tram rather than zero. If the first pass is correct but later passes overload the tool, review the CNC depth-per-pass guide. If the tool vibrates or the finish becomes wavy, use the CNC chatter troubleshooting guide.
Work offsets, G54, and G92 in plain language
A work offset stores the distance between machine zero and the job origin. G54 is the usual default, while G55 through G59 can hold additional fixtures or setups. This makes repeatable work possible without redefining the machine's home position.
G92 adds another coordinate offset and can be useful in advanced workflows, but it can also create confusing position errors if it remains active unexpectedly. LinuxCNC documentation specifically warns that persistent G92 values can affect displayed positions after homing. Beginners should use the sender's normal work-zero controls and avoid mixing offset systems until they understand exactly what the controller stores.
A repeatable zeroing routine
- Home: Establish reliable machine coordinates.
- Confirm CAM: Identify XY datum, Z reference, stock dimensions, and WCS.
- Secure: Clamp the stock and verify clearance.
- Install: Fit the correct cutter with safe stick-out.
- Set XY: Use the chosen corner, center, probe, or fixture reference.
- Set Z: Touch the exact top or bottom reference selected in CAM.
- Retract: Remove probes and raise the tool.
- Verify: Check the DRO, jog to zero, outline the job, and air-cut when uncertain.
- Run: Start conservatively with a hand near feed hold or emergency stop.
Final takeaway
Correct CNC zeroing is not simply pressing three zero buttons. It is the deliberate transfer of the CAM origin to the physical setup. Home first, use a repeatable reference, match the CAM datum exactly, distinguish top-of-stock from spoilboard Z, compensate for probe and cutter geometry, and verify the boundary before cutting. Make that sequence a habit and most mysterious “the file was right but the cut was wrong” failures disappear.