Master CNC
Blog · 6 min read · 26 Oct 2026

Polar coordinate interpolation G12.1 / G112

A lathe with live tooling and a C axis can mill on the face of the part, but it has no Y axis to move across the face. Polar coordinate interpolation fixes that: you program X and a "virtual Y" (written as C in mm), and the control turns the spindle and moves X together to follow the shape.

The codes

  • G12.1 (on some controls G112): polar coordinate interpolation on.
  • G13.1 (or G113): off.
  • Inside the mode, X is still a diameter value, and C is the second axis of the flat plane, in mm, not degrees.
  • Use feed per minute (G98 on a system A lathe) and the live tool's spindle.
Hexagon 24 across flats with G12.1: corner points in X diameter and C as virtual Y
Program the face shape in X and C like a mill.

Example: hexagon 24 mm across flats

The flats are 12 mm from the centre; the corners are on a radius of 12 ÷ cos 30° = 13.856 mm. With X in diameter, the corners are:

X27.713 C0.
X13.856 C12.
X-13.856 C12.
X-27.713 C0.
X-13.856 C-12.
X13.856 C-12.

A program outline (machine-builder codes for live tool on, C axis on and clamp vary):

(C AXIS ON, LIVE TOOL ON - BUILDER M CODES)
G98  (feed per minute)
G00 X60. C0. Z2.
G12.1  (polar interpolation on)
G01 Z-5. F200.
G41 X27.713 C0. F150.
X13.856 C12.
X-13.856 C12.
X-27.713 C0.
X-13.856 C-12.
X13.856 C-12.
X27.713 C0.
G40 X60. C0.
G13.1  (off)
G00 Z50.

Use tool radius compensation so the end mill size can change. Approach and leave from outside the part.

Rules

  • Start the mode with the tool away from the centre; the control needs to move through X0 smoothly.
  • Feeds near the centre need the C axis to turn very fast; keep feeds moderate.
  • Cancel G12.1 before tool changes and before returning to normal turning.
  • The function, the code numbers and the C-axis M codes depend on the control and machine builder.

Common mistakes

  1. C written in degrees inside the mode.
  2. X as a radius value.
  3. Feed per rev left on: the feed is tied to the main spindle, which is now a C axis.

For drilling with live tools see C-axis face and side drilling. Simulate every polar program before cutting.

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