G-code reference

G91: Incremental positioning

G91 is incremental positioning. Positions are distances from the current point. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G91 does

In G91 every value is a distance from where the tool is now: X10 means move 10 further in +X. Left on by accident, G91 turns every following absolute position into a move from the current point, which is how many crashes start. Switch back to G90 straight after the incremental moves.

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

G91 example

G91 G01 X10. F200.

Feed 10 mm further in +X from here.

WordWhat it means here
G91Incremental positioning
G01Linear interpolation (feed move)
X10.X axis target (on a lathe, the diameter)
F200.feed rate (on threading codes, the lead)

Codes people confuse with G91

CodeWhat it does instead
G90 Absolute positioning. Positions are measured from program zero.

Where controls differ

  • Lathes (system A): Incremental moves use U and W instead of G91; G90 is a turning cycle there.

Other codes in the positioning mode group

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

  • G90 Absolute positioning

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: G91

  1. What does G91 do? (Mill)

  2. Which code: Positions are distances from the current point.(Mill)

  3. What does G90 do? (Mill)

Show the answers
  1. Positions are distances from the current point.
  2. G91
  3. Positions are measured from program zero.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G91 mean in CNC programming?
Incremental positioning. Positions are distances from the current point.
Is G91 modal?
Yes. G91 belongs to the positioning mode group and stays active until another code from that group is programmed.
What is the difference between G91 and G90?
G91 (incremental positioning): positions are distances from the current point. G90 (absolute positioning): positions are measured from program zero.

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