How to Zero Edges of a Part on a CNC Machine
Edge zeroing sets the work coordinate system to the real edges of the blank, so every cut lands where the CAM file says. This guide shows how to zero edges on a CNC machine with four proven methods, the parameter ranges that keep them repeatable, and the mistakes that scrap parts.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
Key takeaways
What edge zeroing actually sets
Edge zeroing tells the control where the physical edges of the blank sit inside the machine envelope. The cutter path in the CAM file is written around a datum, usually a corner or the center of the stock. If the control's work offset does not match that datum, every feature shifts by the same error. A 0.05 mm mistake on the edge becomes a 0.05 mm mistake on every hole, pocket, and face.
The task is different from tool length setting. Tool length defines where the tip sits along Z. Edge zeroing defines X and Y, and sometimes Z when the top face is the datum. On a 3-axis mill you touch two edges. On a 4-axis or 5-axis machine with a rotary table, you also need the center of rotation, which you find once and store in the control.
Edge zeroing is not the same as workpiece zeroing. Workpiece zeroing is the broader idea of placing the part in the machine. Edge zeroing is the measurement step that gives that placement a number. Two operators can clamp the same block in the same vise and still get different offsets if one touches a burr and the other touches clean stock.
How accurate does it need to be? Match the method to the tightest feature on the print, not to the machine's best possible number. If the drawing calls for ±0.05 mm on hole positions, a good edge finder is enough. If it calls for ±0.005 mm, you need a probe or a laser and a clean, deburred edge.
- 1Datum choiceCorner datum suits plate work; center datum suits round or symmetric parts.
- 2Stock conditionSaw-cut edges carry burrs and taper. Face and deburr before you touch off.
- 3Offset tableStore X and Y separately so a single axis can be corrected later.
Manual edge finder: how to zero edges on a CNC machine by hand
The mechanical edge finder is still the most common tool in job shops. A spring-loaded tip runs out of true until it touches the work, then snaps concentric. Spin it at 500–1,000 rpm in the spindle. Jog the axis in 0.01 mm steps until the tip kicks sideways, then stop.
The contact point is one tip radius from the true edge, so you must shift the axis by half the tip diameter. A 10 mm tip means a 5 mm shift. Do this in the offset page, not by moving the part. Feed slowly in the last 0.05 mm; approaching at rapid speed bends the tip and ruins repeatability.
Repeat the touch twice and compare. If the two readings differ by more than 0.01 mm, the edge is not clean or the tip is worn. Wipe the edge with a stone and try again. A good edge finder on a deburred face will repeat within ±0.005 mm, which is close to the practical limit of the method.
This method is the right call for one-off prototypes, soft materials, and any job where the tolerance is looser than ±0.02 mm. It is a poor choice for production runs where every minute of spindle downtime costs money.
- 1Speed500–1,000 rpm keeps the tip stable without whipping.
- 2Shift valueHalf the tip diameter, entered in the work offset.
- 3Repeat checkTwo touches should agree within 0.01 mm.
Touch probe: repeatable edge zeroing for production
A spindle-mounted touch probe measures the edge by contact and writes the offset automatically. The stylus touches the face, the control records the trigger point, and the probe routine calculates the edge position. Typical probing feed is 100–200 mm/min for the approach and 20–50 mm/min for the final contact.
The advantage is repeatability. A calibrated probe on a clean edge holds ±0.002–0.005 mm, and it does not depend on the operator's eye or reaction time. You can probe four edges, find the center, and set the rotation of the part in a single cycle. On a 5-axis machine, the same routine locates the part in the rotary coordinate system.
Two things break probe accuracy. The first is a dirty stylus tip; a chip the size of a grain of sand adds several microns. The second is probing speed that is too high. Hit the edge fast and the stylus deflects before the control sees the trigger, so the recorded point sits behind the real edge.
Probing pays off when the batch is larger than a handful of parts, when the part is too large to reposition easily, or when the feature tolerance is tighter than ±0.02 mm. It also removes operator variance, which matters when several shifts run the same job.
- 1Approach feed100–200 mm/min, then 20–50 mm/min for contact.
- 2Stylus careWipe the tip before every cycle; replace after any crash.
- 3Best fitBatches, large parts, and tolerances under ±0.02 mm.
Manual offset calculation for odd-shaped parts
Not every part has a square edge to touch. Castings, weldments, and rough blanks often have draft, taper, or an irregular profile. In those cases you measure the actual stock with a height gauge or calipers, then calculate the offset by hand and enter it in the control.
The workflow is simple but unforgiving. Measure the distance from a known feature to the edge you want as the datum. Record the number on paper. Subtract or add the tool radius if you touched with a cutter rather than a probe. Enter the result in the work offset and verify with a test cut or a dial indicator sweep.
The risk here is arithmetic, not hardware. Write the sign convention down before you start. On most controls, moving the part in the positive direction means the offset moves in the negative direction. Getting that backwards shifts the whole job by twice the error.
Use this method when the datum is a bore, a boss, or a machined face that the probe cannot reach. It is slower than probing and depends on a careful operator, but it works on geometry that no edge finder can touch.
- 1Record firstWrite measurements down before entering any offset.
- 2Check the signConfirm direction convention on the control before running.
- 3VerifySweep a dial indicator or take a light test cut.
Laser edge detection for delicate and thin parts
A laser edge detection system measures the edge without contact. The beam breaks at the part boundary, and the control records the position. Because nothing touches the work, there is no deflection and no risk of marking a polished or thin-walled part.
Typical accuracy is ±0.002–0.005 mm on a clean, vertical edge. The beam needs a sharp transition, so a chamfered, rounded, or burred edge shifts the reading. Sheet metal under 1 mm thick and finished surfaces are the usual candidates.
The trade-off is setup. The laser unit must be calibrated to the spindle centerline, and that calibration drifts when the machine crashes or the tool holder is changed. Recheck it against a known gauge block before a tight job. Laser systems also cost more than an edge finder, so they make sense on machines that run delicate work often.
Dust and coolant mist interfere with the beam. Keep the lens clean and use air blow-off during measurement. On a dirty shop floor, a probe may be the more reliable choice even when the part is delicate.
- 1No contactIdeal for polished, thin, or fragile parts.
- 2Edge qualitySharp vertical edges only; chamfers shift the reading.
- 3HousekeepingClean lens and air blow-off keep the beam reliable.
Common mistakes when you zero edges on a CNC machine
The most frequent error is touching a burr. A rolled edge from sawing or shearing can sit 0.05–0.1 mm proud of the true face. You measure the burr, the offset is wrong, and the first feature is off before the cutter even loads. Stone or file the edge first.
The second is forgetting the tip radius. The edge finder triggers at the contact point, not at the centerline. Skip the half-diameter shift and every X and Y position moves by 5 mm on a 10 mm tip. The error is large enough to scrap the part on the first hole.
The third is trusting a single touch. One reading can be good, but you have no way to know. Touch twice and compare. If the numbers disagree, the edge or the tool is at fault, and running the job will only confirm the problem.
The fourth is ignoring thermal drift. A spindle that has run for two hours is warmer than one that just started. On a long cycle with tight tolerances, re-probe the datum at the start of each batch, or let the machine warm up before the first touch-off.
- 1Deburr firstA burr can add 0.1 mm to a measured edge.
- 2Apply tip radiusHalf the tip diameter, in the correct direction.
- 3Two touchesAgreement within 0.01 mm is the pass condition.
- 4Warm-upLet the spindle reach steady temperature before tight work.
Step by step: zero edges on a CNC machine
Follow the order. Skipping the deburr or the repeat check is what causes most scrapped first parts.
- 1Clean and deburr the datum edgesStone the X– and Y– faces and wipe with a lint-free cloth. Any burr over 0.02 mm will bias the touch.
- 2Seat the part and check clamp pressureTap the blank down against the vise jaw or fixture stops. Over-clamping a thin plate bows it and lifts the far edge.
- 3Load the correct tool or probeFor an edge finder, use a 10 mm tip at 500–1,000 rpm. For a probe, confirm the stylus is straight and the tip is clean.
- 4Touch the X– edge and record the valueJog in 0.01 mm steps for the last 0.05 mm. Stop when the tip kicks or the probe triggers. Note the machine position.
- 5Touch the Y– edge the same wayUse the same feed and the same step size. Do not rush the second axis because the first one felt easy.
- 6Apply the tip radius shiftMove each axis by half the tip diameter in the correct direction and enter the result in the work offset table.
- 7Repeat both touches to confirmTwo readings should agree within 0.01 mm with an edge finder, or 0.005 mm with a probe.
- 8Verify with the opposite edgesSweep the X+ and Y+ faces and compare the measured span with the drawing. A mismatch means the part is not square or not seated.
- 9Run a dry pass before cutting metalCheck the first toolpath in air or with a single light cut. Confirm the position before committing to the full cycle.
Comparing four ways to zero edges on a CNC machine
Pick the lowest-cost method that still meets the tightest tolerance on the print.
| Method | Typical repeatability | Best for | Main limitation |
|---|---|---|---|
| Manual edge finder | ±0.005–0.01 mm | One-off prototypes, soft materials | Depends on operator feel and reaction |
| Touch probe | ±0.002–0.005 mm | Batches, large parts, 5-axis work | Needs clean stylus and slow final feed |
| Manual offset calculation | ±0.01–0.02 mm | Castings, weldments, irregular datums | Arithmetic and sign errors |
| Laser edge detection | ±0.002–0.005 mm | Thin, polished, or delicate parts | Needs calibration and a clean lens |
Match the method to the tolerance on the print
If the tightest position tolerance is looser than ±0.02 mm, a manual edge finder is enough. If it is tighter, or the batch is larger than a few parts, use a probe and verify the result against the opposite edge before cutting.
Frequently asked questions
What is the difference between edge zeroing and workpiece zeroing?
Workpiece zeroing is the whole act of placing the part in the machine and defining its coordinate system. Edge zeroing is the measurement step inside that process.
You can clamp a part perfectly and still zero the edges badly. The clamp holds the part; the edge measurement decides where the control thinks the part is.
How often should I re-zero edges during a machining job?
Re-check at the start of each batch and after any fixture adjustment. On a long cycle with tight tolerances, re-probe every few hours as the machine warms.
If the part is re-clamped between operations, treat it as a new setup and zero again. Never assume the offset carried over.
Can edge zeroing be fully automated?
Yes, with a spindle probe or laser and a control macro. The routine can touch four edges, find the center, and set rotation without operator input.
Automation still needs a clean edge and a calibrated stylus or beam. It removes the human error, not the physical error in the stock.
What factors affect the accuracy of edge zeroing?
Edge condition is the biggest one. Burrs, chamfers, and draft shift the contact point. Tool or stylus condition, feed rate at the final approach, and machine thermal state all add error.
Clamp pressure matters on thin parts. Over-clamping bows the plate and lifts the edge you are measuring.
Should I use a corner datum or a center datum?
Corner datums suit rectangular plates and parts with straight reference faces. They are faster to touch off and easy to verify.
Center datums suit round, symmetric, or rotary parts. On a 4-axis or 5-axis machine, the center of rotation is usually the natural datum.
Send us your part and the tolerance callouts
We quote and return a free DFM analysis within 12 hours, and every batch is inspected before it ships.
12-hour quote100% inspectionNo minimum order quantity