CNC mill · G-code
G49: tool length compensation cancel
G49 cancels G43 tool length compensation. Haas lists it in modal group 08. Formats below from Haas, LinuxCNC and Fanuc, each from its maker.
Worked example
Length offset off as Z goes home at the end. Written for this page in the Haas format.
G00 Z1. M09G49 G91 G28 Z0 (offset off, Z home)G90How each control writes it
Haas G49
One source: Haas Automation, the control's maker
- Cancels G43, G44 and G143.
- H0, M30 and RESET also cancel tool length compensation.
Source: Haas Automation, mill G49
LinuxCNC G49
One source: the LinuxCNC project, the control's maker
- Cancels tool length compensation; using it when none is active is fine.
Source: LinuxCNC documentation, "G49 Cancel Tool Length Compensation" (archived Oct 29, 2026)
Fanuc G49 ; (or H0 ;)
One source: FANUC, the control's maker
- FANUC 0i-MF (machining centre), from its operator’s manual. On another FANUC model, check that control’s manual.
- H0 cancels the length offset too.
Source: FANUC B-64604EN-2/01, Operator's Manual, 0i-MF (machining centre), §6.1
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.