Free calculator

Thread Milling Calculator & G-Code Generator (Internal / External)

Enter the thread, your thread mill diameter and teeth. The calculator corrects the feed for the tool centre path (the most common thread milling mistake), picks the climb milling direction and writes a complete helical G02/G03 program with tangential entry.

Spindle speed–RPM
Programmed feed (centre)–mm/min
Feed at cutting edge–mm/min
Helix path radius–mm
Thread depth–mm radial
Cutting time–s

G-code (part zero at hole centre, Z0 at top)

▶ Simulate this program in the G-code viewer

How it works

Enter the thread, your thread mill diameter and teeth. The calculator corrects the feed for the tool centre path (the most common thread milling mistake), picks the climb milling direction and writes a complete helical G02/G03 program with tangential entry.

Internal path radius = (D − Dc) / 2  ·  Centre feed = RPM × z × fz × (D − Dc) / D  ·  External: radius = (d3 + Dc) / 2, feed × (d + Dc) / d  ·  Z rises one pitch per 360°.

Embed this calculator on your site

Free for workshops, schools and forums — copy this snippet:

HTML
<iframe src="https://cnccode.com/embed/thread-milling-calculator/" width="100%" height="720" style="border:0" loading="lazy" title="Thread Milling Calculator"></iframe>

More CNC calculators

Frequently asked questions

Why must thread milling feed be corrected?
The control applies F to the tool centre, but the cutting edge travels a larger (internal) or smaller (external) circle. Without correction an internal thread mill cuts much faster at the edge than intended and can break.
Which direction is climb milling for an internal right-hand thread?
G03 (counter-clockwise) moving from the bottom of the hole upward, with a standard right-hand cutting thread mill.