G90 vs G91: absolute and incremental (and U, W on a lathe)
Absolute coordinates say where to go. Incremental coordinates say how far to move from where you are. Both are useful, and mixing them up is one of the classic ways to crash a machine.
On a machining centre: G90 and G91
G90 G00 X50. Y20. (go to the point X50 Y20) G91 G00 X50. Y20. (move 50 in X and 20 in Y from here)
Both are modal: they stay active until the other one is called. Most programs run in G90 and use G91 only for special moves, such as G91 G28 Z0 (see G28 and G30) or a repeated pattern in a subprogram.

On a Fanuc lathe: U and W
Most Fanuc lathes (G code system A) do not use G90 and G91 for this. Instead the address letter decides:
- X and Z are absolute.
- U and W are incremental. U is in diameter, like X.
G01 X40. Z-20. F0.2 (absolute) G01 U4. W-5. (incremental: diameter +4, Z −5)
You can mix them in one block: G01 X40. W-5. goes to Ø40 and 5 mm further towards the chuck. On G code system A, G90 is the turning cycle, not absolute mode, so writing G90 by habit gives a completely different result. Some lathes use system B or C, where G90 and G91 work like on a mill: check your control.
When incremental is useful
- Repeated features: a subprogram that cuts one groove and moves W-10. each time (see subprograms).
- Hand-written moves where the size between features is on the drawing and the absolute position is not.
- Retract moves like
G00 U2.: move away 1 mm (radius) from wherever you are.
Why absolute is the default
In absolute mode one wrong number makes one wrong move. In incremental mode one wrong number shifts every move after it. Absolute programs are also easier to restart from the middle.
Common mistakes
- G91 left active after
G91 G28 Z0: the next X20. Y20. moves 20 mm instead of going to X20 Y20. - U written as a radius value: U is on diameter.
- G90 on a system A lathe, expecting absolute mode.
- Restarting an incremental program from the middle: the start point is wrong for every move after it.
Put the mode in the safe start line of every tool, for example G90 G54 G17 G40 G49 G80 on a mill, so a stray G91 can never carry over.
Calculators, process sheet to program, simulation, codes and lessons. Free to start, no sign-in, on phone and laptop.
Open the app

