G-code reference

G86 G-Code: Boring Cycle (Spindle Stop, Rapid Out)

Boring Cycle (Spindle Stop, Rapid Out) — Feeds to depth, stops the spindle and rapids out. Fast, but it leaves a scratch line in the bore.

By cnccode · Updated
PropertyValue
CodeG86
FunctionBoring Cycle (Spindle Stop, Rapid Out)
Modal group09
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG86 X_ Y_ Z_ R_ F_

What does G86 do?

Feeds to depth, stops the spindle and rapids out. Fast, but it leaves a scratch line in the bore.

G86 is modal: once programmed it remains in effect for the following blocks until another code from modal group 09 replaces it or the control is reset.

Syntax and parameters

Format
G86 X_ Y_ Z_ R_ F_

G86 example program

Example
G98 G86 X0 Y0 Z-20.0 R2.0 F60.
G80

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Use for roughing bores only.

Controller compatibility

G86 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.

Frequently asked questions

Is G86 modal?
Yes. G86 belongs to modal group 09 and stays active until another code of that group is programmed.
What does G86 mean in CNC?
G86 means Boring Cycle (Spindle Stop, Rapid Out). Feeds to depth, stops the spindle and rapids out. Fast, but it leaves a scratch line in the bore.
What is the difference between G86 and G85?
G86 is Boring Cycle (Spindle Stop, Rapid Out), while G85 is Boring Cycle (Feed In, Feed Out). See the G85 page for its syntax and examples.
Can I use G86 on a lathe?
Usually not with the same meaning: G86 is documented here for milling machines. Check your control manual for the equivalent.