G54-G59 Work Offsets

The G54 through G59 codes select work coordinate systems — the stored part zeros that tell the machine where the workpiece sits on the table. They let the same program run on a part clamped anywhere, and let one program handle several fixtures.

How it works

  • You set each offset in the control (the distance from machine home to part zero), then call it in the program.
  • G54 is the first and most common; G55–G59 hold additional setups.
  • Many controls extend the set with G54.1 P1, P2, and so on for dozens more offsets.
G54 (use work offset 1)
G55 (switch to the second fixture)

Set part zero with the Tool Length Offset and related calculators in Setup & Workholding.

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.