Master CNC
Blog · 6 min read · 26 Oct 2026

Mill drilling and boring cycles: G81, G82, G85, G86, G76

Canned cycles do a whole hole in one block: rapid to R, feed to depth, come out. The cycles differ in how they come out, and that decides the finish of the hole.

The common format

G98/G99 G8x X_ Y_ Z_ R_ (P_) (Q_) F_
  • Z: bottom of the hole. R: the rapid plane above the part.
  • G99 returns to R between holes; G98 to the start height (use it to clear clamps).
  • Following blocks with only X and Y repeat the cycle at new positions. G80 cancels.
Mill cycles: G81 drill, G82 dwell, G85 feed out, G86 spindle stop, G76 fine bore, G80 cancel
The retract decides the cycle.

The cycles

CycleDownAt the bottomUpUse for
G81Feed–RapidDrilling, centre drilling
G82FeedDwell PRapidSpot faces, counterbores, chamfers
G83 / G73Peck–RapidDeep holes (see peck drilling)
G84TapReverseTap outTapping (see rigid tapping)
G85Feed–FeedReaming, boring
G86FeedSpindle stopRapidRough boring
G76FeedOrient, shift QRapidFinish boring without a retract mark

Examples

(spot face Ø16, 2 mm deep, 0.3 s dwell)
G99 G82 X20. Y20. Z-2. R2. P300 F80.

(ream Ø10 H7)
G99 G85 X20. Y20. Z-22. R2. F200.

(finish bore Ø40, orient and shift 0.2 mm)
G98 G76 X60. Y40. Z-30. R2. Q0.2 F60.
G80

G76: watch the shift direction

G76 stops the spindle in an oriented position, moves the bar sideways by Q so the edge leaves the wall, then rapids out without a scratch. The shift direction is set by a parameter. Set the boring bar so its edge points the opposite way from the shift; get it wrong and the bar is pushed into the wall. Prove it with the bar above the part first.

G85 vs G86

G85 feeds out with the spindle running: good for reamers, but a boring bar can leave a light spiral on the way out. G86 stops the spindle and rapids out: quick, but the edge drags a line along the wall. For a finished bore, use G76 if the machine has spindle orientation.

Common mistakes

  1. Q with a decimal point mistake: on G76 Q is a distance, in some cycles it is in microns. Check your manual.
  2. G99 between holes with a clamp in the way: use G98.
  3. Forgetting G80, so the next X Y move drills another hole.
  4. G76 bar set the wrong way round.

Cycle details (P units, Q meaning, parameter-controlled directions) vary between controls and builders. Check your manual and prove each new cycle in single block.

Try it in Master CNC

Calculators, process sheet to program, simulation, codes and lessons. Free to start, no sign-in, on phone and laptop.

Open the app