G90 vs G91 (Absolute vs Incremental)

G90 and G91 set how coordinates are read. In absolute mode every position is measured from part zero; in incremental mode every position is measured from where the tool is right now. Mixing them up is a common cause of crashes.

Mode Coordinates measured from G01 X1.0 means
G90 Part zero (work offset) Go to X = 1.0
G91 Current tool position Move +1.0 in X from here

When to use each

  • G90 absolute is the default for most programs and the safest for general positioning.
  • G91 incremental shines for repeated patterns and subprograms, where the same relative move repeats.
  • Set the mode explicitly at the top of the program and reset it after any incremental block.
G90 G01 X1.0 Y1.0 (absolute target)
G91 X0.5 (step 0.5 further)

FAQ

What happens if I mix G90 and G91 incorrectly in a program? Coordinates programmed in the wrong mode are interpreted completely differently, since an absolute value gets treated as an incremental move or vice versa, which very often sends the machine somewhere unexpected. Most programs stay in G90 and use G91 only for deliberate incremental moves.

Related: work offsets and the G-Code Cheat Sheet.

A Common Way This Goes Wrong

G90 and G91 are both modal — once set, they stay active for every following block until changed again. A frequent mistake is leaving G91 active from a previous move (say, a peck-drilling cycle) and then programming the next position without resetting back to G90, so a move intended as an absolute position actually runs as a small incremental step from wherever the tool happens to be.

Not every word on a line follows G90/G91 the same way on every control — arc center offsets (I and J) are conventionally incremental from the arc’s start point regardless of whether G90 or G91 is active, which catches people who assume the whole line switched modes together.

The safest habit is to explicitly program G90 at the start of every new program or subroutine, even if it’s already the default mode, so the file is unambiguous no matter what mode the control was left in from the last job.

Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.