GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

CNC Knowledge

The Thread Calculation Formula Can Be Applied Directly

A working guide to thread geometry math for turning and tapping. You get the pitch diameter, minor diameter and tap drill numbers, plus the cases where a single thread calculation formula stops being accurate. Written for machinists and process engineers who need to check a thread callout before the tool goes in the spindle.

±0.005 mm tolerance127 CNC machines12-hour quoteISO 9001 / IATF 16949
Thread calculation formula guide for CNC machining
Short version

Key takeaways

Pitch diameter drives fitThe pitch diameter controls whether a thread gages go or no-go. Outside diameter does not.
Minor diameter sets the holeFor tapping, the minor diameter is the number that decides your drill size.
60° is the common flank angleUnified and metric threads use 60°. Whitworth, BSP and NPT use 55°.
Forming changes the numbersRolled threads need a larger blank than the formula suggests.
Class changes the allowance2A/2B and 6g/6H shift the pitch diameter band, not the shape.
Geometry

What the thread calculation formula actually describes

A thread is a helix with a defined profile. Three numbers describe almost everything about it: pitch, pitch diameter, and minor diameter. The thread calculation formula is simply the set of relationships between those numbers, the flank angle, and the material you are cutting.

For a 60° thread, the basic height H of the sharp triangle is 0.866025 × P, where P is the pitch in millimeters. The basic depth of the external thread is 0.61343 × P, and the basic depth of the internal thread is 0.54127 × P. Those two constants are the ones most people write down wrong.

The pitch diameter sits halfway between the major and minor diameters on a symmetric thread. For an external thread, the basic pitch diameter is D − 0.64952 × P. For an internal thread it is D − 0.64952 × P as well, using the nominal major diameter D.

None of these numbers include tolerances. They are the theoretical sharp values. A real thread is always cut slightly off the basic size, and that is why class and grade designations exist.

Turning

Pitch diameter and minor diameter on the lathe

On a lathe, you cut the outside diameter first, then feed the tool to depth. The outside diameter is usually turned slightly under nominal. For a 60° external thread, the major diameter can run 0.05–0.13 mm under nominal and still pass a ring gage in most classes.

The single-point tool creates the pitch diameter and the minor diameter in the same pass. The formula gives you the infeed depth: radial infeed of 0.61343 × P for a full external thread. Most machinists use a compound at 29–30° instead of straight radial infeed, which reduces the chip load on one flank.

The minor diameter of an external thread is D − 1.22687 × P. That number matters when you are threading close to a shoulder, because the tool nose relief has to fit inside it. If the relief is larger than the minor diameter, the thread will tear at the root.

For an internal thread, the minor diameter is D − 1.08253 × P. That is the hole the boring bar has to open up to before the thread tool enters. It is also the number that controls how much material remains at the crest.

Tapping

Tap drill size: the formula you use most often

The common shop formula for a 60° thread is tap drill = major diameter − pitch. It is fast and it works for most metric and unified threads in ductile materials. A M8 × 1.25 thread gets a 6.75 mm drill, and the nearest standard size is 6.8 mm.

That shortcut is a 75% thread. If you need more thread engagement, go to 70% or 65% and the drill gets smaller. The trade-off is tap torque. Harder materials, deeper holes or small taps will break if you push the engagement too high.

The exact 100% thread minor diameter is D − 1.08253 × P. For M8 × 1.25 that is 6.647 mm. Nobody drills that size because the tap would need excessive torque. The practical band runs from about 65% to 80% of full thread depth.

Form taps are different. They displace material instead of cutting it, so the starting hole is larger than the cut-tap drill. A good starting point for a form tap is the pitch diameter minus half the pitch, then adjust by trial on the first part.

Limits

Where the direct formula breaks down

The formula assumes a symmetric 60° thread with a sharp root. Real threads have a root radius, a truncated crest, and a defined tolerance band. On a 2A external thread the pitch diameter allowance is negative, so the basic number is not the number you measure.

Tapered threads are the clearest failure case. NPT and BSPT threads are cut on a 1:16 taper, so the pitch diameter changes along the length. A single pitch diameter value only applies at one plane on the gage. You need the gage plane and the hand-tight engagement to check them.

Multi-start threads break the formula differently. Two starts at 2 mm lead and 1 mm pitch have the same pitch diameter as a single-start 1 mm thread, but the lead is double. Feed rate and thread depth both change, and the formula for lead angle is different.

Plastic and soft materials also shift the numbers. Threads in POM, PEEK or ABS deform under the cutting tool, so the measured pitch diameter comes out larger than the formula predicts. Add a spring pass or use a forming tool.

Selection

Choosing class and engagement for the part

Class 1A/1B is a loose fit for fast assembly and dirty environments. Class 2A/2B is the general-purpose band and covers most machined parts. Class 3A/3B is a close fit for high-strength fasteners and precision assemblies. The higher the class, the tighter the pitch diameter band.

Thread engagement length matters more than most drawings suggest. A steel bolt in an aluminum part needs roughly 2 × D of engagement. A steel bolt in a steel part needs about 1 × D. Going beyond 1.5 × D adds little strength and increases tap breakage risk.

For thin-wall parts, check the minor diameter against the wall thickness. If the remaining wall is under 0.8 mm, the thread will distort during cutting and the pitch diameter will drift out of tolerance.

On parts with a thread-to-shoulder callout, leave at least 1.5 × P of unthreaded relief. The tool needs that space, and the formula does not account for it.

Workflow

Applying the formula to a real part

  • 1
    Read the calloutIdentify nominal diameter, pitch, class or grade, and whether the thread is internal or external.
  • 2
    Compute the basic numbersUse P for pitch, 0.64952 × P for pitch diameter offset, 1.22687 × P for external minor diameter.
  • 3
    Apply the allowanceShift the pitch diameter by the class allowance. 2A external is negative, 2B internal is positive.
  • 4
    Pick the cutting methodSingle-point for large diameters, taps for Ø12 mm and under in short holes.
  • 5
    Set the drill or boring sizeTap drill = D − P for 75% threads. Adjust down for higher engagement.
  • 6
    Verify with a gageGo/no-go gages confirm the pitch diameter. Check the first part, then every 20 parts.
Reference

Thread formula results for common sizes

Basic values at 60°, no allowance applied.

ThreadPitchPitch dia. (basic)Minor dia. (external)
M6 × 1.01.0 mm5.350 mm4.773 mm
M8 × 1.251.25 mm7.188 mm6.466 mm
M10 × 1.51.5 mm9.026 mm8.160 mm
M12 × 1.751.75 mm10.863 mm9.853 mm
1/4-20 UNC1.27 mm5.527 mm4.975 mm
5/16-18 UNC1.411 mm7.034 mm6.401 mm
3/8-16 UNC1.588 mm8.494 mm7.798 mm
1/2-13 UNC1.954 mm11.339 mm10.592 mm

Pick the method that matches the volume

For one-off parts and prototypes, use the direct formula and a single-point tool, then verify with a gage. For production runs above 500 pieces in ductile material, switch to form tapping and re-derive the starting hole, because the cut-tap drill will produce a loose pitch diameter over a long run.

FAQs

Questions we get about thread math

Why does my thread gage no-go when the major diameter is correct?

The major diameter does not control fit. The pitch diameter does. If the tool infeed was too shallow, the pitch diameter stays large and the no-go gage enters.

Check the infeed depth against 0.61343 × P for an external thread and re-cut the first part.

Is the tap drill formula D − P always correct?

It gives a 75% thread in ductile material and works for most jobs. It is not exact.

For hard materials, deep holes or small taps, reduce engagement to 65% and use a slightly larger drill. For form tapping, use a larger starting hole than the cut-tap drill.

How do I calculate a multi-start thread?

Use the pitch for the profile dimensions and the lead for the feed rate and lead angle. Lead equals pitch multiplied by the number of starts.

The pitch diameter formula is unchanged. The helix angle is not.

What changes for NPT or BSPT threads?

The thread is tapered at 1:16, so the pitch diameter varies along the axis. You need the gage plane and the hand-tight engagement dimension.

A single pitch diameter value is only valid at one plane. That is why pipe threads are checked with dedicated gages, not calipers.

Do I need to adjust the formula for plastics?

Yes. POM, PEEK and ABS deflect under the cutting edge, so the measured pitch diameter runs larger than the basic value.

Add a spring pass or use a forming tool. For soft plastics, cut the minor diameter slightly undersize and check the first part.

What tolerance can you hold on a turned thread?

At GreatLight we machine to ±0.005 mm on critical diameters and inspect 100% before shipment. Thread pitch diameter is verified with go/no-go gages.

Send the thread callout with the drawing and we confirm the class and gage requirement in the DFM review.

Send us the thread callout

Upload the drawing and we return a quote with DFM notes on thread class, gage requirements and tap drill size within 12 hours.

12-hour quote±0.005 mm tolerance100% inspectionISO 9001 / IATF 16949

Follow

More CNC knowledge

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC