CNC Tool Length Offset: G43, H Offset & Setup Guide
CNC MACHINING KNOWLEDGE HUB

CNC Tool Length Offset

Understand tool length compensation, H offsets, G43, tool measurement, setup verification and the shop-floor problems caused by incorrect tool length data.

TOOL LENGTH
H OFFSET

What is CNC Tool Length Offset?

CNC tool length offset is the control function used to account for the physical length of a cutting tool when the CNC machine positions the tool relative to the programmed coordinate system.

Different milling tools rarely have identical physical lengths. An end mill, drill, chamfer tool and long-reach cutter may all be installed in the same machine while having different distances from the spindle reference position to the cutting tip.

The CNC control uses the tool length information stored in an offset register, commonly identified by an H number, to compensate for these differences.

1 The important distinction

Tool length offset tells the CNC where the tool tip is relative to the machine reference. Work offset tells the CNC where the workpiece datum is relative to the machine coordinate system.

These two coordinate relationships must be established correctly and verified independently.

1. What Is CNC Tool Length Offset?

A CNC machine does not automatically know the physical length of every cutting tool loaded into its magazine.

Consider three tools mounted in the same machining centre:

Tool Application Physical Length
T1 Roughing end mill Short
T2 Finishing end mill Medium
T3 Long-reach end mill Long

If the machine treated every tool as having the same length, the physical cutting tips would not reach the same programmed Z locations.

Tool length compensation allows the control to account for this physical difference.

2. Why Is Tool Length Compensation Needed?

A CNC program describes the intended toolpath. The physical tool assembly used to execute that toolpath can have a different length from another tool.

Without Correct Compensation

  • Unexpected Z position
  • Incorrect pocket depth
  • Incorrect drilling depth
  • Tool or fixture collision
  • Scrapped components

With Correct Compensation

  • Tool length is accounted for
  • Common part coordinates can be used
  • Different tools can machine the same part
  • Tool replacement is easier to manage
  • Setup becomes more repeatable

3. Engineering Principle Behind Tool Length Offset

The simplest way to understand tool length compensation is to separate the programmed tool position from the physical machine position.

01
Programmed Coordinate
02
Tool Geometry
03
Offset Register
04
Compensation
05
Physical Tool Tip

The actual control calculation depends on the CNC controller, machine configuration, coordinate system and compensation mode. The diagram above is therefore a conceptual model rather than a universal controller equation.

4. Tool Length Offset vs Work Offset

This distinction is fundamental to CNC setup. G54/G55 and H offsets are not interchangeable.

Function Tool Length Offset Work Offset
Typical code G43 H… G54 / G55
Controls Tool geometry Part coordinate system
Associated with Tool assembly Workpiece/setup
Typical error Incorrect H value Incorrect part zero
Typical result Incorrect tool-tip position Entire part coordinate system shifted
Important: If the entire component appears shifted, do not automatically change the tool length offset. Check the active work coordinate system first.

See the related G54 & G55 CNC Work Offsets guide for a deeper explanation of work coordinate systems.

5. Understanding G43, G49 and H Offsets

G43 — Tool Length Compensation

On many conventional CNC milling controls, G43 activates positive tool length compensation.

G43 H01 Z50.

In this example, H01 identifies the tool length offset register being used.

H — Offset Register

The H address selects the corresponding tool length offset register.

Example shop convention: T01 → H01 T02 → H02 T03 → H03
Do not assume T number equals H number. Many shops intentionally use this convention, but the actual relationship is determined by the machine setup and programming standard.

G49 — Cancel Tool Length Compensation

On many controls, G49 cancels tool length compensation. Modal behavior and safe programming practice depend on the specific controller and machine configuration.

6. How Is CNC Tool Length Measured?

Tool length should be established using the measurement convention defined for the machine and tool-setting system.

Method 01 Manual Tool Touch-Off

Tool length is established using a machine reference, setter or approved touch-off method.

Method 02 Tool Presetter

Tool assemblies are measured outside the machine before being loaded into production.

Method 03 Automatic Tool Setter

Probes or laser systems can measure tool geometry automatically on suitable machines.

The important point is not simply obtaining a number. The measurement method, tool assembly and machine convention must all correspond.

7. Step-by-Step CNC Tool Length Offset Setup

Step 1 — Verify the Drawing

Identify the machining datum, critical Z dimensions, pocket depths, hole depths and surfaces that establish the part coordinate system.

Step 2 — Verify the Tool List

Confirm tool number, diameter, tool type, holder and required stick-out.

Step 3 — Verify the Physical Tool

Make sure the tool assembly physically matches the tool identified in the setup documentation.

Step 4 — Measure the Tool

Measure the actual tool assembly using the approved machine or presetter procedure.

Step 5 — Enter the Correct H Register

Enter the measured value into the correct tool length register.

Step 6 — Verify T and H Mapping

Confirm that the H register called by the program corresponds to the physical tool loaded into the spindle.

Step 7 — Verify G54/G55

Check the work coordinate system separately.

Step 8 — Prove the Program

Use the machine’s appropriate graphics, single-block, reduced rapid override, dry-run or other safe proving procedures.

8. Tool Length Offset in a CNC Program

A simplified milling sequence can look like this:

% O1001 G90 G17 G21 G40 G49 G80 T1 M6 G54 G43 H1 Z50. G0 X20. Y20. G1 Z-5. F200 G0 Z50. G49 M5 M30 %

The critical sequence is:

01
Tool Change
02
Work Offset
03
G43 + H
04
Machining
05
Safe Retract
Controller-specific: CNC controls differ in their modal behavior, compensation conventions and safe programming requirements. Always validate code against the actual machine and controller.

9. Tool Geometry Offset vs Tool Wear Offset

Production machining often distinguishes between the measured geometry of the tool and small corrections used to manage gradual process variation.

Geometry Offset

Represents the measured physical geometry of the actual tool assembly.

Wear Compensation

Provides controlled correction for process variation such as tool wear where the machine control and production method support it.

Engineering rule: Do not use wear compensation to hide an incorrectly measured tool. Correct the underlying geometry/setup problem first.

10. Tool Length Offset and Z-Dimension Accuracy

Incorrect tool length data can directly affect Z-related dimensions such as:

  • Pocket depth
  • Step height
  • Counterbore depth
  • Hole depth
  • Slot depth
  • Face depth
  • 3D surface position
  • Machining clearance

However, a wrong Z dimension does not automatically mean that the H offset is wrong.

Other causes include tool wear, deflection, runout, thermal effects, work offset errors, program errors, workholding movement and measurement variation.

The correct engineering approach is therefore:

01
Measure
02
Identify Cause
03
Correct Cause
04
Verify

11. Tool Length Offset on 3-Axis, 4-Axis and 5-Axis CNC

Machine Type Tool Length Consideration Additional Consideration
3-Axis Primarily establishes the tool-tip relationship along the machine’s Z direction. WCS, tool measurement and safe Z motion.
4-Axis Tool length remains important while rotary positioning changes the setup. Rotary-axis coordinate relationship.
5-Axis Tool length becomes part of a more complex tool orientation and machine kinematic relationship. TCP, rotary axes, kinematics and controller configuration.

For simultaneous 5-axis machining, the simple 3-axis mental model is not sufficient to describe every controller’s compensation behavior.

See Manufyn’s 5 Axis CNC Machining guide for the broader machine and kinematic considerations.

12. CNC Tool Length Offset Troubleshooting

Symptom Likely Cause How to Check Corrective Action
Tool moves unexpectedly after G43 Incorrect H register Compare T and H mapping Correct offset selection
Pocket too deep Incorrect geometry or process correction Check tool measurement and Z reference Correct the actual cause
Pocket too shallow Incorrect tool geometry or process condition Recheck measured tool length Re-measure and verify
Entire part is shifted Work offset problem Check G54/G55 Re-establish WCS
Replacement tool gives different depth Different physical tool assembly Measure replacement tool Update correct tool geometry offset
Z dimension changes gradually Wear or thermal/process variation Trend inspection results Apply controlled correction or replace tool
Tool breaks during compensation move Incorrect offset or unsafe motion Review offset and program motion Correct setup and prove safely

For broader dimensional problems, see Manufyn’s CNC Dimensional Inaccuracy guide .

13. Production and Cost Impact

A tool length offset error may take only seconds to introduce, but the resulting cost can extend well beyond the offset itself.

Impact Area Potential Effect
Scrap Incorrect Z position can produce nonconforming parts.
Tool Cost Incorrect compensation can cause tool breakage.
Machine Downtime Collisions require investigation and recovery.
Setup Time Poorly standardized measurement increases setup effort.
Inspection Incorrect setup may increase first-off and reinspection effort.
Production Repeatability Standardized tooling and offset management improve repeatability.

As production volume increases, tool presetting, standardized tool assemblies, automated tool measurement and documented setup procedures can become increasingly valuable.

14. Practical Engineering Example

Consider an aluminium housing containing a 20 mm deep pocket, drilled holes, counterbores and tapped holes.

The machining sequence uses six tools:

Tool Operation Offset
T1 Face milling H1
T2 Pocket roughing H2
T3 Pocket finishing H3
T4 Drilling H4
T5 Counterboring H5
T6 Tapping H6

The important engineering point is that the programmed part coordinates do not need to be rewritten simply because a replacement tool has a different physical length.

If T3 is replaced with another finishing cutter, the new physical assembly should be measured and its tool geometry offset updated according to the machine’s established procedure.

! Do not compensate for bad setup by changing the program

If the replacement tool is physically different, update the tool geometry information rather than arbitrarily changing every programmed Z coordinate.

15. CNC Tool Length Offset Shop-Floor Checklist

  • Drawing revision verified
  • Critical Z dimensions identified
  • Machining datum identified
  • Work offset verified
  • Tool list verified
  • Tool number verified
  • Physical tool assembly verified
  • Tool length measured
  • Correct H register identified
  • H value entered and verified
  • G43 behaviour verified
  • Safe Z movement checked
  • Program proven using appropriate machine procedure
  • First critical feature inspected

Related CNC Knowledge Hub Resources

Tool length compensation is only one part of CNC coordinate and setup control. These related resources build the surrounding knowledge structure.

Manufacturing Case Studies

The engineering principles discussed here become especially important when CNC machining moves from prototype development into repeat production.

Continue the CNC Machining Learning Path

If you are building a CNC process from a drawing, the following sequence is useful:

01
Read the Drawing
02
Select Datums
03
Establish WCS
04
Plan Setup
05
Control Tool Offsets

Start with How to Read a CNC Machining Drawing , then move through CNC Datum Selection , CNC Work Coordinate System and CNC Setup Planning .

CNC Tool Length Offset FAQ

What is CNC tool length offset?

It is the tool compensation information used by the CNC control to account for the physical length of the active cutting tool.

What does G43 do in CNC?

On many CNC milling controls, G43 activates positive tool length compensation, normally together with an H offset.

What is an H offset?

H identifies the tool length offset register selected for compensation.

Is H01 always for Tool 1?

No. T1 → H1 is a common shop convention, but the actual mapping depends on the machine, control and programming standard.

What is the difference between G54 and H offset?

G54 establishes the work coordinate system, while the H offset provides tool length information for tool compensation.

What happens if the wrong H offset is used?

The CNC can apply an incorrect tool length, potentially producing incorrect Z positioning, dimensional errors or a collision.

How is CNC tool length measured?

Depending on the machine, it can be established using manual touch-off, a tool setter, automatic probing, laser measurement or an external tool presetter.

Should wear compensation replace tool measurement?

No. Wear compensation should not be used to hide an incorrectly measured tool assembly.

Does correct tool length offset guarantee dimensional accuracy?

No. Tool deflection, wear, runout, thermal effects, workholding and measurement variation can still influence the finished dimension.

The CNC Tool Length Offset Principle

Correct tool + correct measurement + correct H register + correct WCS + verified program = predictable tool position.

Tool length compensation is therefore not simply an H value entered into the offset page. It is part of the coordinate architecture that connects the machine, tool, workpiece and programmed geometry.

Have a CNC Machining Drawing?

If you need help evaluating datums, tooling access, machining sequence, tolerances or manufacturability, Manufyn can review the drawing from a manufacturing engineering perspective.

Send Drawing for Review

Leave a Reply

Your email address will not be published. Required fields are marked *