G-code reference

G49: Tool length compensation cancel

G49 is tool length compensation cancel. Cancels G43 or G44. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G49 does

G49 turns tool length compensation off, so Z positions refer to the spindle gauge line again. Many safety lines include it, and on many controls G28 or a tool change also cancels it.

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

G49 example

G49

No tool length offset active.

WordWhat it means here
G49Tool length compensation cancel

Codes people confuse with G49

CodeWhat it does instead
G40 Cutter compensation cancel. Turns off cutter radius (or tool nose) compensation.
G43 Tool length compensation +. Applies the tool length offset H so Z positions are measured from the tool tip.

Other codes in the tool length group

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

  • G43 Tool length compensation +
  • G44 Tool length compensation −

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

  1. What does G49 do? (Mill)

  2. Which code: Cancels G43 or G44.(Mill)

  3. What does G40 do? (Mill and lathe)

Show the answers
  1. Cancels G43 or G44.
  2. G49
  3. Turns off cutter radius (or tool nose) compensation.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G49 mean in CNC programming?
Tool length compensation cancel. Cancels G43 or G44.
Is G49 modal?
Yes. G49 belongs to the tool length group and stays active until another code from that group is programmed.
What is the difference between G49 and G40?
G49 (tool length compensation cancel): cancels G43 or G44. G40 (cutter compensation cancel): turns off cutter radius (or tool nose) compensation.
What is the difference between G49 and G43?
G49 (tool length compensation cancel): cancels G43 or G44. G43 (tool length compensation +): applies the tool length offset H so Z positions are measured from the tool tip.

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