G90: Absolute positioning (mill) or Outside/inside diameter cutting cycle (lathe)
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.
| Type | G-code |
|---|---|
| Machine | Mill |
| Group | Positioning mode |
| Modal | Yes: 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.
| Word | What it means here |
|---|---|
G90 | Absolute positioning |
G00 | Rapid positioning |
X10. | X axis target (on a lathe, the diameter) |
Y10. | Y axis target |
Codes people confuse with G90 on a mill
| Code | What 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.
G91Incremental 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).
| Type | G-code |
|---|---|
| Machine | Lathe (G-code system A) |
| Group | Lathe cycle |
| Modal | Yes: 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.
| Word | What it means here |
|---|---|
G90 | Outside/inside diameter cutting cycle (lathe) |
X40. | X axis target (on a lathe, the diameter) |
Z-30. | Z axis target or depth |
F0.2 | feed rate (on threading codes, the lead) |
Codes people confuse with G90 on a lathe
| Code | What 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.
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
-
What does
G90do? (Mill) -
What does
G90do? (Lathe) -
Which code: Positions are measured from program zero.(Mill)
Show the answers
- Positions are measured from program zero.
- A simple box cycle: in X, along Z, out X, back to start.
- G90
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.