G-code reference

G86: Boring cycle (spindle stop, rapid out)

G86 is boring cycle (spindle stop, rapid out). Bores, stops the spindle at the bottom and rapids out. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G86 does

G86 feeds to depth, stops the spindle and rapids out. It is quick, but the stopped tool can leave a line in the bore.

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

G86 example

G86 X0. Y0. Z-20. R2. F100.

Bore, stop spindle, rapid out.

WordWhat it means here
G86Boring cycle (spindle stop, rapid out)
X0.X axis target (on a lathe, the diameter)
Y0.Y axis target
Z-20.Z axis target or depth
R2.arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting
F100.feed rate (on threading codes, the lead)

Codes people confuse with G86

CodeWhat it does instead
G85 Boring cycle (feed out). Feeds in and feeds back out, for reaming and boring.
G76 Fine boring cycle. Bores, orients the spindle and shifts the tool away before retracting.

Other codes in the canned cycle group

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

  • G73 High-speed peck drilling
  • G74 Left-hand tapping cycle
  • G76 Fine boring cycle
  • G80 Canned cycle cancel
  • G81 Drilling cycle (spot drill)
  • G82 Drilling cycle with dwell
  • G83 Deep hole peck drilling
  • G84 Tapping cycle (right hand)
  • G85 Boring cycle (feed 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: G86

  1. What does G86 do? (Mill)

  2. Which code: Bores, stops the spindle at the bottom and rapids out.(Mill)

  3. What does G85 do? (Mill)

Show the answers
  1. Bores, stops the spindle at the bottom and rapids out.
  2. G86
  3. Feeds in and feeds back out, for reaming and boring.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G86 mean in CNC programming?
Boring cycle (spindle stop, rapid out). Bores, stops the spindle at the bottom and rapids out.
Is G86 modal?
Yes. G86 belongs to the canned cycle group and stays active until another code from that group is programmed.
What is the difference between G86 and G85?
G86 (boring cycle (spindle stop, rapid out)): bores, stops the spindle at the bottom and rapids out. G85 (boring cycle (feed out)): feeds in and feeds back out, for reaming and boring.
What is the difference between G86 and G76?
G86 (boring cycle (spindle stop, rapid out)): bores, stops the spindle at the bottom and rapids out. G76 (fine boring cycle): bores, orients the spindle and shifts the tool away before retracting.

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