G-code reference

G02 G-Code: Circular Interpolation Clockwise

Circular Interpolation Clockwise — Cuts a clockwise arc in the active plane (G17/G18/G19). The arc centre is given either with I, J, K offsets from the start point or with a radius R. Adding a…

By cnccode · Updated
PropertyValue
CodeG02
FunctionCircular Interpolation Clockwise
Modal group01
TypeModal — stays active until replaced by another code of the same group
Used onMills and lathes
SyntaxG02 X_ Y_ I_ J_ F_ or G02 X_ Y_ R_ F_

What does G02 do?

Cuts a clockwise arc in the active plane (G17/G18/G19). The arc centre is given either with I, J, K offsets from the start point or with a radius R. Adding a third-axis move creates a helix.

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

Syntax and parameters

Format
G02 X_ Y_ I_ J_ F_  or  G02 X_ Y_ R_ F_
AddressMeaning
X Y ZArc end point
I J KIncremental distance from start point to arc centre (X, Y, Z)
RArc radius (positive ≤ 180°, negative > 180° on most controls)
FFeed rate

G02 example program

Example
G17 G90 G01 X0 Y-25.0 F400.
G02 X0 Y-25.0 I0 J25.0 (full circle, R25)
G02 X25.0 Y0 R25.0 (quarter arc)

▶ Open this example in the G-code viewer

Tips and common mistakes

  • A full circle needs I/J/K — R cannot describe a 360° arc.
  • "Arc end point radius error" alarms mean the end point does not lie on the arc; check rounding.
  • Clockwise is viewed from the positive end of the axis perpendicular to the plane.

Controller compatibility

G02 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 G02 modal?
Yes. G02 belongs to modal group 01 and stays active until another code of that group is programmed.
What does G02 mean in CNC?
G02 means Circular Interpolation Clockwise. Cuts a clockwise arc in the active plane (G17/G18/G19). The arc centre is given either with I, J, K offsets from the start point or with a radius R. Adding a third-axis move creates a helix.
What is the difference between G02 and G03?
G02 is Circular Interpolation Clockwise, while G03 is Circular Interpolation Counter-Clockwise. See the G03 page for its syntax and examples.
Can I use G02 on a lathe?
Yes, G02 is used on both mills and lathes, although some parameters differ between them.