CNC Milling Arc Example: Using G2 with I & J Parameters
CNC Program example code with drawing to show how an arc can be milled on a cnc milling machine.
G02 Circular interpolation Clockwise with I & J is used for arc machining.
G2 Circular Interpolation CW
G2 X... Y... I... J...
| Parameter | Description |
|---|---|
| X | Coordinates of the arc end point in x-axis. |
| Y | Coordinates of the arc end point in y-axis. |
| I | Distance from arc start-point to arc-center-point in X-axis. |
| J | Distance from arc start-point to arc-center-point in Y-axis. |
Program Example

Milling Arc using G2 I & J
G0 X0 Y0 (P1) G1 X0 Y-1.493 F... (P2) X1.939 (P3) G2 X1.5 Y-2.5 I1.061 J-1.061 (P4) G1 X0 (P5)
G2 I & J Calculation Method
The image below shows how I & J values are calculated for Arc machining with G2 circular interpolation.

G2 I & J Calculation
CNC Machine
- CNC Program Example: G03 Circular Interpolation – Master the Math Behind CNC Machining
- CNC Milling Example: Mastering the G81 Drilling Canned Cycle
- Comprehensive CNC Milling Sample Program – G-Code Tutorial & Explanation
- CNC Milling Machine Programming: Beginner-Friendly Example Guide
- Beginner CNC Slot Milling Program: Simple Example & Step‑by‑Step Guide
- CNC Milling: G70 Bolt Hole Circle Program – Simple & Accurate Example
- Siemens Sinumerik 4‑Axis Milling Program: A Practical CNC Example
- Heidenhain CNC Milling Program: Precision Toolpath for Efficient Manufacturing
- Heidenhain CNC Milling Program Example – Step-by-Step Guide
- CNC Pocket Milling Example: Peck Milling Tutorial