G76 threading explained: the lathe thread cycle on Fanuc and Haas
G76 threading in 90 seconds, run on a Fanuc 0i-TF in NC Proof Turn. Press play to watch.
A thread on a lathe can’t be cut in one pass. The insert would take the full form at once, chatter and break. G76 is the multi-pass threading cycle: you give it the thread size, depth and lead, and the control works out the passes. Each pass feeds in a little deeper, with the spindle and Z axis locked together so every pass lands in the same groove. The cycle exists on Fanuc and on Haas, but the two write it differently.
The example on this page is a 3/4-10 UNC outside thread, 1.0” long, on a 0.750” diameter.
The numbers you need
For a 60° unified (UN) thread, three values come straight from the pitch:
- Lead = 1 / threads per inch = 1 / 10 = 0.1000”.
- Thread height (one side) ≈ 0.6134 × pitch = 0.0613”. Your insert maker or Machinery’s Handbook may list a slightly different value for your thread class; use theirs.
- Minor diameter = major diameter − 2 × height = 0.750 − 2 × 0.0613 = 0.6274”.
The minor diameter is where the cycle stops. The height tells the control how deep the first pass starts from.
G76 on Fanuc: two lines
T0505 (THREAD 3/4-10 UNC)
G97 S800 M03
G00 X0.85 Z0.3
G76 P010060 Q20 R0.001
G76 X0.6274 Z-1. P613 Q150 F0.1
Line one sets up how the thread is cut:
P010060is three 2-digit numbers run together:01= one finish pass at the final depth;00= no chamfer (pull-out) at the end of the thread;60= the tool angle, 60°. Fanuc only accepts 80, 60, 55, 30, 29 or 0.Q20= minimum depth of cut, 0.0020” (no decimal point here either). No pass goes in less than this, so the last passes don’t just rub.R0.001= finish allowance, 0.001” left for the finish pass.
Line two describes the thread:
X0.6274= minor diameter, where the cycle ends.Z-1.= thread end.P613= thread height, 0.0613”.Q150= depth of the first cut, 0.0150”.F0.1= lead, 0.100”.
No decimal point in P and Q. On Fanuc, P and Q in G76 are written in the control’s least increment, 0.0001” in inch mode. P613 means 0.0613”, and Q150 means 0.0150”. Writing P0.0613 Q0.015 looks natural but the control alarms. R and X/Z/F do take decimals as usual.
Why every pass gets shallower
G76 doesn’t cut the same depth every time. The first pass goes in Q deep. After that, pass n reaches a total depth of Q × √n. Each pass therefore removes about the same amount of metal, so the tool load stays even, and the passes get shallower as the thread gets wider. Once the step would drop below the line-one Q (0.0020” here), the control uses that minimum instead. Then it takes the finish pass at full depth.
The insert also doesn’t plunge straight in. It feeds in along one flank of the thread (half the tool angle), so it cuts mostly on one edge. That gives less chatter and better chip flow than a straight plunge.
G76 on Haas: one line
Haas writes the whole cycle on one line, with different letters:
T505 (THREAD 3/4-10 UNC)
G97 S800 M03
G00 X0.85 Z0.3
G76 X0.6274 Z-1. K0.0613 D0.015 F0.1 A60
X/Z= minor diameter and thread end, as on Fanuc.K= thread height (0.0613”), the same as Fanuc’s line-two P.D= first pass depth (0.015”), the same as Fanuc’s line-two Q.F= lead.A= tool angle, 0 to 120°, written without a decimal point (A60, notA60.). Haas alarms (605, Invalid Tool Nose Angle) on a decimal there.P(optional) = infeed method, 1 to 4: single-edge or both-edge infeed, constant amount or constant depth.
Haas K and D take normal decimal points. If you paste a Fanuc two-line G76 into a Haas program, or a Haas one-line G76 into a Fanuc 0i program, NC Proof Turn flags it as an error: the other control alarms on it.
Before the cycle: speed and start point
- Run threads in G97 (constant rpm), not G96. If the spindle speed changes during the cut, the lead won’t line up from pass to pass.
- Start a few pitches before the part. The axes need distance to come up to speed in sync with the spindle. Z0.3 is three pitches before the face here. Starting at Z0 gives a bad first thread.
- Mind the feed. At S800 and a 0.100” lead, Z moves at 80 in/min. Coarse leads at high rpm can be more than the machine’s top feed while threading. NC Proof Turn warns when rpm × lead is over the maximum cutting feed you set for the machine.
- Start above the major diameter. X0.85 clears the 0.750” diameter, so the tool returns to a safe diameter after every pass.
The full program, Fanuc and Haas
The whole job: turn the 0.750” diameter with G71, then thread it with G76.
Fanuc 0i-TF:
%
O01076 (G76 THREADING - 3/4-10 UNC)
(FANUC 0I-TF)
(STOCK DIA 1.0 X 3.0 LONG - Z0 FRONT FACE)
(T01 CNMG 432 - ROUGH OD)
(T05 16ER 10UN - OD THREADING TOOL)
G20 G18 G40 G99
G28 U0. W0.
T0101 (ROUGH OD)
G50 S2500
G96 S600 M03
G00 X1.1 Z0.1 M08
G71 U0.05 R0.02
G71 P10 Q20 U0. W0. F0.010
N10 G00 X0.65
G01 Z0. F0.006
X0.75 Z-0.05
Z-1.25
N20 X1.1
G00 X2. Z1.
G28 U0. W0.
T0505 (THREAD 3/4-10 UNC)
G97 S800 M03
G00 X0.85 Z0.3
G76 P010060 Q20 R0.001
G76 X0.6274 Z-1. P613 Q150 F0.1
G00 X2. Z1. M09
G28 U0. W0.
M30
%
Haas NGC:
%
O01077 (G76 THREADING - 3/4-10 UNC - HAAS)
(HAAS NGC)
(STOCK DIA 1.0 X 3.0 LONG - Z0 FRONT FACE)
(T01 CNMG 432 - ROUGH OD)
(T05 16ER 10UN - OD THREADING TOOL)
G20 G18 G40 G99
G28 U0. W0.
T101 (ROUGH OD)
G50 S2500
G96 S600 M03
G00 X1.1 Z0.1 M08
G71 P10 Q20 U0. W0. D0.05 F0.010
N10 G00 X0.65
G01 Z0. F0.006
X0.75 Z-0.05
Z-1.25
N20 X1.1
G00 X2. Z1.
G28 U0. W0.
T505 (THREAD 3/4-10 UNC)
G97 S800 M03
G00 X0.85 Z0.3
G76 X0.6274 Z-1. K0.0613 D0.015 F0.1 A60
G00 X2. Z1. M09
G28 U0. W0.
M30
%
Both run in NC Proof Turn with no errors or warnings. The G71 at the top is explained in G71 and G70 explained. For the Fanuc program with P0.0613 Q0.015 on line two, NC Proof Turn flags line 26: “Fanuc G76 line 2: P0.0613, Q0.015 take no decimal point (thread height P and first cut Q are in least increments): the control alarms.”
Check it before Cycle Start
A thread is usually one of the last operations on a part, so a threading mistake can scrap a part that was finished in every other way. NC Proof Turn runs G76 pass by pass and cuts the thread form into the 3D bar. It also reports:
- decimal points in Fanuc G76 P and Q (both lines), and in Haas A;
- a Fanuc tool angle other than 80, 60, 55, 30, 29 or 0;
- a minimum cut Q on line one larger than the thread height;
- a finish allowance R that isn’t smaller than the thread height;
- Haas A outside 0–120°, or a P other than 1–4;
- E (inch threading) in a Fanuc 0i G76 or G92 (the Series 10/11 format reads it as threads per inch);
- nose radius compensation left on during a threading cycle;
- rpm × lead over the machine’s maximum cutting feed;
- Fanuc two-line G76 in a Haas program, and Haas one-line G76 in a Fanuc 0i program.
G76 threading FAQ
What is the difference between G76 and G92 on a lathe? G92 cuts one threading pass per block, so you write a line for every depth. G76 is a multi-pass cycle: you give the thread height, first cut and minor diameter, and the control works out all the passes.
Why does my Fanuc alarm on the G76 line? A common cause is a decimal point in P or Q on the second line. They are in least increments: P613 is 0.0613 in thread height and Q150 is 0.0150 in first cut. Writing P0.0613 or Q0.015 alarms.
What does P010060 mean in Fanuc G76? Three 2-digit values: 01 finish passes, 00 chamfer (pull-out) amount, and 60 the tool angle in degrees.
How is the Haas G76 different from Fanuc? Haas writes G76 on one line: X and Z for the end of the thread, K for thread height, D for the first pass depth, F for lead, A for tool angle, and an optional P for the infeed method. K and D take decimal points.
How do I find the minor diameter for G76? For a 60 degree UN outside thread, thread height is about 0.6134 times the pitch, and minor diameter is the major diameter minus twice the height. A 3/4-10 UNC gives 0.750 − 2 × 0.0613 = 0.6274 in.
Paste your own G76 into NC Proof Turn and watch every threading pass before it goes to the machine. The user guide explains the rest of the app.