G-code reference

G43: Tool length compensation +

G43 is tool length compensation +. Applies the tool length offset H so Z positions are measured from the tool tip. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G43 does

G43 adds the length stored in the H offset so the control knows where the tip of this tool is. It is turned on with the first Z move after a tool change, usually with H matching the tool number. A wrong H number, or a missing G43, sends the tool to the wrong height, which is one of the most common crashes.

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

G43 example

G43 H05 Z50.

Turn on length offset 5 and move to Z50 above the part.

WordWhat it means here
G43Tool length compensation +
H05tool length offset number
Z50.Z axis target or depth

Codes people confuse with G43

CodeWhat it does instead
G41 Cutter compensation left. Offsets the tool to the left of the path, looking in the direction of travel.
G44 Tool length compensation −. Subtracts the tool length offset instead of adding it. Rarely used.
G49 Tool length compensation cancel. Cancels G43 or G44.

Memory hook: H for height: G43 always goes with an H.

Other codes in the tool length group

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

  • G44 Tool length compensation −
  • G49 Tool length compensation cancel

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

  1. What does G43 do? (Mill)

  2. Which code: Applies the tool length offset H so Z positions are measured from the tool tip.(Mill)

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

Show the answers
  1. Applies the tool length offset H so Z positions are measured from the tool tip.
  2. G43
  3. Offsets the tool to the left of the path, looking in the direction of travel.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G43 mean in CNC programming?
Tool length compensation +. Applies the tool length offset H so Z positions are measured from the tool tip.
Is G43 modal?
Yes. G43 belongs to the tool length group and stays active until another code from that group is programmed.
What is the difference between G43 and G41?
G43 (tool length compensation +): applies the tool length offset H so Z positions are measured from the tool tip. G41 (cutter compensation left): offsets the tool to the left of the path, looking in the direction of travel. A way to remember it: h for height: G43 always goes with an H.
What is the difference between G43 and G44?
G43 (tool length compensation +): applies the tool length offset H so Z positions are measured from the tool tip. G44 (tool length compensation −): subtracts the tool length offset instead of adding it. Rarely used. A way to remember it: h for height: G43 always goes with an H.

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