GHaas G-Code Field Guide Get the book

Haas Mill · G-code

G42 Cutter Compensation Right

Offsets the tool to the right of the programmed path by the D value. Conventional milling with a right-hand cutter.

Updated · by Ethan Reynolds

What G42 does on a Haas mill

G42 is the mirror of G41: the tool centre is offset to the right of the programmed path, looking in the direction of travel.

It is used when conventional milling is preferred — for example on some cast or scaled surfaces — or when the path is programmed in the opposite direction.

G42 format

AddressMeaning
DDiameter/radius offset number
G40Cancel

G42 example program

G42 G01 X0. Y-0.5 D01 F20.
Y2.
G40 G01 X-0.75

⚠ Watch out

Swapping G41 for G42 without reversing the path puts the tool on the wrong side of the line — straight into the part.

Related codes

G42 questions

When should I use G42 instead of G41?

When you want conventional milling with a right-hand cutter, or when your toolpath runs in the opposite direction.

Independent reference. Not affiliated with, sponsored by or endorsed by Haas Automation, Inc. Haas is a trademark of its respective owner. Always confirm codes against your machine's operator manual — options and settings vary by model and software version.