CNC

Thread milling calculator

A ready thread milling program for any UN or metric thread, inside or outside.

Climb mill

Fill in every size, the RPM, flutes and chip load

Depth of full thread below Z0

Thread
Hand

At the tooth tips

Cutter
Material

Makers’ radial passes: 2

Only two makers publish this: Valor and Scientific Cutting Tools

From your cutter’s catalog

Cutter compensation

What next

Which tap drill for this thread?Tap drill size for any thread, cut or form tap, by percent of thread.
How steep can I ramp into this pocket?Z per turn, turns to depth and feed for helical entry, or straight ramp geometry.
What I and J for this arc?Arc centers I, J, K for G02 and G03 from a radius, and back again.
How the thread milling calculator works

To thread-mill a 1/2-13 hole (right-hand), climb mill with G03 from the bottom up: a 5/16" cutter circles .0938" off centre, rising .0769" (one pitch) each turn, fed at 38% of the feed at its edge. Keep the cutter at 70% of the thread Ø or less.

How to program thread milling (helical interpolation)

Maintained by John, former CNC lathe programmer

What it calculates

A thread mill cuts a thread by circling the hole (or the shaft) while it climbs or drops one pitch per turn: helical interpolation, G02 or G03 with a Z move. One cutter makes any size of thread with its pitch, inside or out, right- or left-hand, and if it breaks it comes out of the hole, unlike a tap.

This generator writes the program: the direction for climb milling, the cutter-centre path for each radial pass, a soft entry and exit, one helical block per turn, and the feed corrected for the circle the centre runs on. It works for UN and metric 60° threads with single-profile or multi-form cutters.

The formulas

Direction (spindle M03, climb milling)

internal: G03

external: G02

right-hand: G03 climbs, G02 drops

G03 inside
climb milling runs the cutter counter-clockwise round a hole, clockwise (G02) round a shaft
up or down
a right-hand helix turns counter-clockwise as it rises, so G03 goes up and G02 goes down; left-hand is the reverse

Cutter-centre path

inside: A = (D − d) ÷ 2

outside: A = (d3 + d) ÷ 2

D
thread major Ø; d3 the external minor Ø, D − 1.2269 × pitch
d
cutter Ø at the tooth tips

Feed at the centre

F centre = F edge × (D − d) ÷ D inside, × (D + d) ÷ D outside

F edge
RPM × flutes × chip load, the feed the teeth should see

Worked example

A 1/2-13 UNC hole, 1/2" deep, with a 5/16" single-profile thread mill at 4,000 RPM, 3 flutes, .0008" a tooth.

  1. Inside, right-hand: G03, from the bottom up.
  2. Centre path at full depth: (.500 − .3125) ÷ 2 = .0938" off the hole centre.
  3. Z per turn = the pitch, 1 ÷ 13 = .0769"; .500 ÷ .0769 = 6.5, so 7 turns.
  4. Edge feed 4,000 × 3 × .0008 = 9.6 IPM; at the centre 9.6 × (.500 − .3125) ÷ .500 = 3.6 IPM.

G03 helix on a .0938" radius, 7 turns from Z-.500 up, programmed at 3.6 IPM.

How to use it

What you enter

Thread
As written: 1/2-13, #10-32, M10x1.5. Inside or outside, right- or left-hand.
Thread length
Full thread below the top of the part (Z0).
Cutter
Ø at the tooth tips; single-profile (one tooth, climbs the whole length) or multi-form (teeth for every pitch, one turn).
Material and passes
The material suggests radial passes from the makers’ tables; change it to suit your cutter.
RPM, flutes, chip load
From your thread mill’s catalog page.
Compensation
Cutter-centre path with no comp, or the same path with G41 on and only wear in D (ISCAR’s way).

What you get

Direction
G02 or G03, and whether Z climbs or drops, for climb milling.
Path and feed
The centre radius for each pass, the turns and the corrected feed.
Program
A commented program to copy, for Fanuc or Haas.

Common mistakes

  • Programming the edge feed at the centre. Inside a hole the centre runs a smaller circle than the teeth, so they feed faster than the number in the program and overload.
  • Too big a cutter. Past about 70% of the thread’s Ø the cutter also cuts the flanks it shouldn’t and the profile comes out wrong.
  • Swapping G02 and G03. The other arc with the same Z move cuts a left-hand thread. Dry-run above the part.
  • Plunging straight to depth. A radial plunge to full depth chips the teeth; arc in instead.

Sources

The path, direction and centre feed are geometry, cited rather than counted; the feed correction matches Carboloy’s and Scientific Cutting Tools’ formulas. The 70% cutter limit is Sandvik’s and ISCAR’s. Radial passes are the makers’ counts under the tiered rule: a median of three, a pair’s range, never one maker alone. No two makers print the same split of depth between passes, so passes step evenly.

How we pick and check sources