Master CNC
Blog · 6 min read · 16 Oct 2026

G02 and G03 arcs: which direction, and R or I and K?

G02 cuts a clockwise arc and G03 a counter-clockwise arc. The question is always: clockwise as seen from where? And should you write the radius with R, or the centre with I, J and K? Here are the rules with one lathe and one mill example.

The short version: a 40-second video. Also on YouTube.

The basic block

(LATHE)
G02 X__ Z__ R__
G02 X__ Z__ I__ K__
(MILL, G17 XY PLANE)
G02 X__ Y__ R__
G02 X__ Y__ I__ J__

X, Y and Z are the end point of the arc. The start point is wherever the tool is now.

Clockwise as seen from where?

  • Machining centre (G17, XY plane): look down from the top (+Z), as on the drawing. Clockwise is G02.
  • Lathe: draw the part the usual way, with Z to the right and X going up, and the tool above the centre line. On that drawing, clockwise is G02. This matches the common slant-bed lathe with the turret behind the spindle, and the same program also runs on a front-turret machine.
Lathe profile: a convex corner at the front is G03, a concave fillet at the shoulder is G02
Turning towards the chuck: a rounded outside corner is G03, a fillet into a shoulder is G02.

An easy way to remember it for OD turning towards the chuck: going "over the hill" (a rounded corner) is G03; going "into the valley" (a fillet) is G02.

Lathe example

A 5 mm radius on the front corner of a Ø30 shaft, then a 3 mm fillet into a shoulder at Ø42:

G00 X20. Z2.
G01 Z0 F0.15
G03 X30. Z-5. R5.  (CORNER)
G01 Z-30.
G02 X36. Z-33. R3. (FILLET)
G01 X42.

R or I and K?

R is the easy way: you give the radius and the control finds the centre. I, J, K give the centre itself, measured from the start point of the arc to the centre:

  • I = distance in X, J = distance in Y, K = distance in Z.
  • On most lathes, I is a radius value, even when X is programmed as a diameter.

The rounded corner above, written with I and K: the start is X20 Z0 and the centre is at X20 Z-5, so I = 0 and K = −5:

G03 X30. Z-5. I0 K-5.

When R is not enough

  • Arcs over 180°: two different arcs have the same start, end and radius. On a mill, a negative R (R-20.) selects the one that is more than half a circle. Check that your control supports it.
  • Full circles: the start and end are the same point, so R cannot say where the centre is. Use I and J:
G01 X50. Y30. F300.
G02 I-20.   (FULL CIRCLE R20)

The tool starts at X50 Y30, so the centre is 20 mm to the left, at X30 Y30.

Mistakes that cause a radius alarm

  1. End point does not fit the radius. If the distance from start to end is more than 2 × R, no arc can join them and the control stops. Check the arithmetic, especially diameters vs radii on a lathe.
  2. I or K from the wrong point. I, J, K are measured from the start point, not from the program zero.
  3. Wrong plane on a mill. G17 (XY) is the default. Arcs in XZ need G18, arcs in YZ need G19.

On Okuma OSP

OSP uses the same G02 and G03, but the radius word is L, not R: G03 X30. Z-5. L5. The program converter in the app changes it for you.

Check every arc in the simulator before cutting: a G02 that should have been a G03 shows up at once on the screen. Then prove the program in single block on the machine.

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