G-code reference

G81: Drilling cycle (spot drill)

G81 is drilling cycle (spot drill). Feeds to depth and rapids out: one move per hole. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G81 does

G81 feeds to Z, then rapids back to the R plane or initial point. It is for spot drilling and shallow holes where chips are not a problem. The cycle repeats at every X/Y position until G80.

TypeG-code
MachineMill
GroupCanned cycle
ModalYes: stays active until replaced by another code from the same group

G81 example

G81 X10. Y10. Z-5. R2. F120.

Drill to Z-5 at each position.

WordWhat it means here
G81Drilling cycle (spot drill)
X10.X axis target (on a lathe, the diameter)
Y10.Y axis target
Z-5.Z axis target or depth
R2.arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting
F120.feed rate (on threading codes, the lead)

Codes people confuse with G81

CodeWhat it does instead
G82 Drilling cycle with dwell. Like G81, but dwells at the bottom for P time.
G83 Deep hole peck drilling. Pecks Q deep and retracts fully out of the hole each time.

Other codes in the canned cycle group

Only one code from a modal group is active at a time. Programming any of these replaces G81.

  • G73 High-speed peck drilling
  • G74 Left-hand tapping cycle
  • G76 Fine boring cycle
  • G80 Canned cycle cancel
  • G82 Drilling cycle with dwell
  • G83 Deep hole peck drilling
  • G84 Tapping cycle (right hand)
  • G85 Boring cycle (feed out)
  • G86 Boring cycle (spindle stop, rapid out)
  • G89 Boring cycle with dwell (feed out)

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: G81

  1. What does G81 do? (Mill)

  2. Which code: Feeds to depth and rapids out: one move per hole.(Mill)

  3. What does G82 do? (Mill)

Show the answers
  1. Feeds to depth and rapids out: one move per hole.
  2. G81
  3. Like G81, but dwells at the bottom for P time.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G81 mean in CNC programming?
Drilling cycle (spot drill). Feeds to depth and rapids out: one move per hole.
Is G81 modal?
Yes. G81 belongs to the canned cycle group and stays active until another code from that group is programmed.
What is the difference between G81 and G82?
G81 (drilling cycle (spot drill)): feeds to depth and rapids out: one move per hole. G82 (drilling cycle with dwell): like G81, but dwells at the bottom for P time.
What is the difference between G81 and G83?
G81 (drilling cycle (spot drill)): feeds to depth and rapids out: one move per hole. G83 (deep hole peck drilling): pecks Q deep and retracts fully out of the hole each time.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint