G43 Tool Length Compensation

G43 applies a tool length offset so Z moves reference the part surface instead of the spindle face. Each tool measures a different length, and its offset lives in a numbered register called with an H word.

Format

G43 H__ Z__ (H = offset register, usually the tool number)

How it works

  • Store each tool length offset in the control, then call G43 with the matching H number.
  • Activate it on the first Z move after a tool change.
  • G49 cancels tool length compensation.

Example

T01 M06
G43 H01 Z1.0 (apply tool 1 length, rapid to Z1.0)

FAQ

What happens if I forget to cancel G43 with G49? The tool length offset stays active, which can apply an unintended Z offset to the next tool or operation. Most programs cancel with G49 before a tool change or at the end of the program to avoid this.

What’s the difference between G43 and G44? G43 applies a positive tool length offset, the more common convention, while G44, rarely used on modern controls, applies it in the opposite direction. Nearly all current programming standardizes on G43.

Related: G28 and Setup & Workholding.

Why the Offset Lives in the Control, Not the Program

Tool length offsets are measured once (on a tool-setter or by touching off the part) and stored in the control’s offset table, not written into the G-code itself. That separation is what lets the same program run correctly on different machines, or after a tool is re-ground and gets slightly shorter, without touching a single line of code — only the number in the H register’s table entry needs to change.

G43 vs. G43.4 (Dynamic Tool Length Compensation)

Standard G43 assumes the tool points straight along the machine’s Z axis. On a 5-axis machine with a tilted head, that assumption breaks down — G43.4 (dynamic/RTCP tool length compensation) instead applies the offset along the tool’s actual current orientation, keeping the tool tip point correct even as the head swings through different angles. It is a different, more capable mode, not just an extension of G43.

A Wrong H Number Is a Common Crash Cause

Calling G43 with the wrong H number applies another tool’s length offset to the current tool — if that offset is shorter than the tool actually is, the machine can plunge the tool straight into the part or fixture before anyone notices the mismatch. Matching the H number to the tool number by convention (rather than reusing registers) is a simple habit that removes this entire category of mistake.

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.