Thread Formula Algorithm: 7 Rules You Must Forget
Most shop-floor thread numbers come from one shortcut: subtract half the pitch from the nominal diameter. It works on M6 and M10, then quietly fails on M2 and on anything with a truncated crest. This page shows which thread formula algorithm rules to drop, what the actual geometry is, and how we verify a thread before it ships.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
Why the Half-Pitch Shortcut Looks Right
The shortcut says the minor diameter of an internal thread equals the nominal diameter minus half the pitch. Put M6 × 1.0 into it and you get 5.5 mm. Put M10 × 1.5 in and you get 9.25 mm. Both numbers sit close enough to the tap drill chart that nobody questions the method. That is the trap. The formula is a curve fit, not a derivation.
The real geometry is a 60° V with a flat or rounded crest. For an internal thread the flat is P/8 at the major diameter and P/4 at the minor diameter. Once you account for the truncation, the minor diameter becomes D minus roughly 1.08P, not D minus 0.5P. The two answers only converge when the pitch is coarse relative to the diameter.
Take M3 × 0.5. The shortcut gives 2.75 mm. The geometric value lands near 2.46 mm. That 0.29 mm gap is larger than the whole tolerance band of a class 6H nut. A tap drill chosen from the shortcut will cut a thread that gauges loose or strips under load.
So the rule is not wrong because someone made an arithmetic error. It is wrong because it deletes the crest truncation and the pitch diameter from the model. Those two features carry the fit.
- 1ShortcutMinor diameter = D – 0.5P. Fits coarse pitches only.
- 2GeometryMinor diameter = D – 1.08P after truncation.
Pitch Diameter Controls the Fit, Not the OD
A thread is not located by its outside diameter. It is located by the pitch diameter, the imaginary cylinder where thread thickness equals groove width. Two parts can both measure 5.98 mm across the crests and still not assemble, because their pitch diameters differ by 0.05 mm.
That is why the gauging system uses GO and NO-GO ring or plug gauges. The GO gauge checks the maximum material pitch diameter, the NO-GO checks the minimum. The major diameter is inspected separately with a plain gauge, and it only has to clear the crest.
When a thread feels tight, the first instinct is to turn the OD down. That removes the crest, weakens the flank contact and moves nothing on the pitch diameter. The thread still will not gauge. We see this most often on 304 stainless and on titanium, where the material springs back after the pass.
Measure pitch diameter with the three-wire method on the shop floor, or with a thread micrometer when the size allows. Wires of the correct best size give a direct reading. On a 0.5 mm pitch the difference between a good and a bad thread is often under 0.03 mm.
- 1GO gaugeChecks maximum material pitch diameter.
- 2NO-GO gaugeChecks minimum material pitch diameter.
Three More Rules to Delete From the Cam Sheet
Rule three is the claim that thread depth equals 0.65 times the pitch. It is a flank-height figure, not a radial depth, and it ignores the root radius that a full-form insert leaves. On a 0.8 mm pitch the error is small. On a 3.0 mm pitch it changes the programmed depth by more than 0.1 mm, which is enough to break a small tap.
Rule four says the tap drill equals the nominal diameter minus the pitch. That is the same curve fit wearing a different hat. It works on M8 × 1.25 and fails on fine pitches, where the correct drill is closer to D minus 1.08P. Use the chart in the standard, or calculate from the minor diameter limit.
Rule five is the idea that thread height and thread engagement are interchangeable terms. They are not. Height is a geometry number. Engagement is how much axial length of full thread you actually have. A 6 mm deep hole with a bottoming tap may give only 3 mm of usable full thread.
Each of these rules survives because it is easy to remember. None of them survives a gauge. Replace them with the pitch diameter limits from ISO 965 and the drill sizes that follow from those limits.
- 1DepthFlank height is not radial depth.
- 2DrillD – P is a fit, not a geometry result.
- 3EngagementCount usable full thread, not hole depth.
Single-Point Threading Is Not a Formula Problem
On a lathe the thread is cut by a tool that follows a helix. The formula gives the depth, but the machine has to reach it without chatter. Depth of cut per pass, infeed angle and spindle speed decide whether the flank comes out clean. A perfect formula with a bad infeed schedule still produces a torn thread.
For a 60° thread we use a compound infeed around 29° to 30°, so the leading edge does most of the cutting and the trailing edge shaves the flank. Radial infeed is faster and works on short, rigid parts. On thin-wall tube, radial infeed pushes the wall outward and the pitch diameter drifts.
Pass count matters more than most people expect. For a 1.5 mm pitch in 4140 we typically spread the cut over six to eight passes, with the last two at a few hundredths of a millimeter. The finishing pass removes the material the roughing pass left and sets the surface.
Spring passes are not optional on stainless. Take one pass at the final depth with no additional infeed. It costs a few seconds and it removes the elastic recovery that makes a thread gauge tight.
- 1Compound infeedAbout 29° to 30° for a 60° thread.
- 2Spring passOne pass at final depth, no infeed.
The Seventh Rule: Stop Trusting Charts Without Limits
The seventh rule is not a formula at all. It is the habit of reading a tap drill chart as a single number instead of a window. Every thread class has a minor diameter range, and any drill inside that range produces an acceptable thread. Outside it, no amount of skill saves the part.
ISO 965 defines those limits for classes 6H and 6g, the two default fits. A 6H internal thread is the normal choice for a nut. A 6g external thread gives a small clearance so plating or coating does not seize the assembly. If you anodize a thread, the coating adds roughly half its thickness per flank and the fit closes.
That is the engineering meaning of the whole exercise. A thread formula algorithm is a starting point for the CAM program, not a substitute for the drawing tolerance. The drawing, the standard and the gauge decide whether the part is good.
At GreatLight we cut threads on 3-axis, 4-axis and mill-turn machines, with 16 simultaneous 5-axis centers for angled and interrupted threads. Tolerance holds at ±0.005 mm and finishes run from Ra 1.6–3.2 μm as machined down to Ra 0.2–0.8 μm where a seal needs it.
- 16HStandard internal fit, no coating allowance.
- 26gExternal fit with coating clearance.
Shortcut Rules Against the Standard Numbers
Values are for coarse metric pitches; fine pitches shift the error.
| Thread | Shortcut minor Ø | Geometric minor Ø | Gap |
|---|---|---|---|
| M2 × 0.4 | 1.80 mm | 1.57 mm | 0.23 mm |
| M3 × 0.5 | 2.75 mm | 2.46 mm | 0.29 mm |
| M6 × 1.0 | 5.50 mm | 4.92 mm | 0.58 mm |
| M10 × 1.5 | 9.25 mm | 8.38 mm | 0.87 mm |
| M16 × 2.0 | 15.00 mm | 13.84 mm | 1.16 mm |
| M24 × 3.0 | 22.50 mm | 20.76 mm | 1.74 mm |
What to Do With the Formula
Use the half-pitch shortcut for a sanity check on coarse pitches only. Set the program from the pitch diameter limits in ISO 965, and let the GO and NO-GO gauges decide the part.
Thread Questions We Get Every Week
Does the half-pitch formula ever give a usable tap drill?
On coarse pitches it lands inside the minor diameter window, so the thread will cut and gauge. On pitches below about 0.8 mm the error grows past the tolerance band. Treat it as a rough check and confirm the drill against the minor diameter limit for the class you need.
Why does my thread gauge tight after threading stainless steel?
Austenitic stainless work-hardens and springs back after the tool passes, so the pitch diameter reads larger than the depth of cut suggests. Add a spring pass at final depth with no additional infeed, and check the pitch diameter with wires rather than feeling the gauge.
What changes when the thread gets plated or anodized?
Coating adds thickness on both flanks. Anodizing can add several micrometers per surface, which closes a 6g clearance. If the thread is functional after coating, cut it to the low side of the pitch diameter range or mask the thread before the finish.
How much full thread depth do I need for a strong joint?
For steel in steel, engagement of about 0.8 times the nominal diameter is a common working figure. For aluminium or plastics, go deeper. Count usable full thread from the first complete crest, not from the top of the hole, because a chamfer and a bottoming tap both eat into it.
Can a thread be cut on a 5-axis machine at an angle?
Yes. Angled and interrupted threads are cut by interpolating the helix with the rotary axes, which is why we keep 16 simultaneous 5-axis centers. The pitch diameter limits are the same. The risk is tool deflection on a long, small-diameter cutter, so we reduce the depth per pass.
What tolerance and finish can you hold on a threaded part?
Tolerance holds at ±0.005 mm, with a 99.99% qualification rate across production. As-machined finish runs Ra 1.6–3.2 μm, and Ra 0.8–1.6 μm or Ra 0.2–0.8 μm where the drawing calls for it. Every part is inspected before shipment and reports come on request.
Send the Drawing, Get the Thread Right
Upload a print and we return a quote with free DFM analysis within 12 hours, including a thread check on pitch diameter and class.
12-hour quote100% inspectionNo minimum order