G-code reference

G90: Absolute positioning (mill) or Outside/inside diameter cutting cycle (lathe)

G90 means two different things. On a mill, it is absolute positioning: positions are measured from program zero. On a lathe (Fanuc G-code system A), it is outside/inside diameter cutting cycle: a simple box cycle: in X, along Z, out X, back to start. Check which machine a program is written for before reading it.

G90 on a mill: Absolute positioning

In G90 every X, Y and Z value is a position measured from the active work zero. X10 always means the same place no matter where the tool is now. Most programs run in G90 and switch to G91 only for short moves.

TypeG-code
MachineMill
GroupPositioning mode
ModalYes: stays active until replaced by another code from the same group

G90 example (mill)

G90 G00 X10. Y10.

Go to the point 10, 10 from program zero.

WordWhat it means here
G90Absolute positioning
G00Rapid positioning
X10.X axis target (on a lathe, the diameter)
Y10.Y axis target

Codes people confuse with G90 on a mill

CodeWhat it does instead
G91 Incremental positioning. Positions are distances from the current point.
G90 (lathe) Outside/inside diameter cutting cycle (lathe). A simple box cycle: in X, along Z, out X, back to start.

Memory hook: Absolute: the address never changes. Incremental: directions from where you stand.

Other codes in the positioning mode group

Only one code from a modal group is active at a time. Programming any of these replaces G90.

  • G91 Incremental positioning

G90 on a lathe: Outside/inside diameter cutting cycle

On a lathe using G-code system A, G90 is not absolute mode: it is a single-pass turning cycle that cuts a straight or tapered diameter and returns to the start point. Absolute and incremental are chosen by the axis letter instead (X, Z absolute; U, W incremental).

TypeG-code
MachineLathe (G-code system A)
GroupLathe cycle
ModalYes: stays active until replaced by another code from the same group

G90 example (lathe)

G90 X40. Z-30. F0.2

Turn to diameter 40 for 30 mm, then return.

WordWhat it means here
G90Outside/inside diameter cutting cycle (lathe)
X40.X axis target (on a lathe, the diameter)
Z-30.Z axis target or depth
F0.2feed rate (on threading codes, the lead)

Codes people confuse with G90 on a lathe

CodeWhat it does instead
G90 (mill) Absolute positioning. Positions are measured from program zero.
G94 Facing cycle (lathe). A simple box cycle for faces: along X, then out in Z.
G71 Rough turning cycle. Roughs a profile along Z in repeated passes, leaving finishing stock.

Other codes in the lathe cycle group

Only one code from a modal group is active at a time. Programming any of these replaces G90.

  • G70 Finishing cycle
  • G71 Rough turning cycle
  • G72 Rough facing cycle
  • G73 Pattern repeating cycle (lathe)
  • G74 Face peck drilling / grooving (lathe)
  • G75 Grooving cycle (X)
  • G76 Threading cycle (multi-pass)
  • G92 Thread cutting cycle (lathe)
  • G94 Facing cycle (lathe)

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: G90

  1. What does G90 do? (Mill)

  2. What does G90 do? (Lathe)

  3. Which code: Positions are measured from program zero.(Mill)

Show the answers
  1. Positions are measured from program zero.
  2. A simple box cycle: in X, along Z, out X, back to start.
  3. G90

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G90 mean in CNC programming?
On a mill: Absolute positioning. Positions are measured from program zero. On a lathe: Outside/inside diameter cutting cycle (lathe). A simple box cycle: in X, along Z, out X, back to start.
Is G90 modal?
Yes. G90 belongs to the positioning mode group and stays active until another code from that group is programmed.
What is the difference between G90 and G91?
G90 (absolute positioning): positions are measured from program zero. G91 (incremental positioning): positions are distances from the current point. A way to remember it: absolute: the address never changes. Incremental: directions from where you stand.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint