3D printed thread and bolt generator

Generate a bolt/screw and its matching nut from a standard thread designation (M3, M8, 1/4-20…)

A bolt or screw and the nut that threads onto it, both derived from one designation — picking M8 sets the 1.25 mm pitch from the ISO table, and a thread at the wrong pitch mates with nothing while looking perfectly correct on screen. The heads follow the standards too: ISO 4032 hex, 4762 socket cap, 7380 button, 7046 countersunk. The first turn is chamfered so it starts straight instead of cross-threading. Download a print-ready STL or 3MF.

Open the customizer

How the 3D printed thread and bolt generator works

What you can adjust

  • Size — M2 — Ø2 × 0.4 mm · M2.5 — Ø2.5 × 0.45 mm · M3 — Ø3 × 0.5 mm · M4 — Ø4 × 0.7 mm
  • Thread length — 2–200 mm
  • Head — Socket cap · Hex · Countersunk (flat) · Button (dome)
  • Also generate the matching nut
  • Fit — Tight · Normal · Loose · Custom
  • Thread clearance — 0–2 mm

Metric thread pitch chart

ISO coarse pitches from M1.6 to M48, with the tap drill (diameter minus pitch, the shop rule). The generator makes bolts and nuts from M2 to M8; the Thread shape covers the whole chart.

SizePitchTap drill (D − P)
M1.60.35 mm1.25 mm
M20.4 mm1.6 mm
M2.50.45 mm2.05 mm
M30.5 mm2.5 mm
M3.50.6 mm2.9 mm
M40.7 mm3.3 mm
M50.8 mm4.2 mm
M61 mm5 mm
M81.25 mm6.75 mm
M101.5 mm8.5 mm
M121.75 mm10.25 mm
M142 mm12 mm
M162 mm14 mm
M182.5 mm15.5 mm
M202.5 mm17.5 mm
M222.5 mm19.5 mm
M243 mm21 mm
M273 mm24 mm
M303.5 mm26.5 mm
M364 mm32 mm
M424.5 mm37.5 mm
M485 mm43 mm

Metric screw and nut dimensions

What the generator sizes from the designation: clearance holes to ISO 273, nuts to ISO 4032 and socket heads to ISO 4762. Heat-set insert pockets are for typical tapered brass inserts, and vary by brand.

SizePitchClearance holeClose holeHex nut (across flats × thick)Socket head (Ø × height)Heat-set insert (Ø × depth)
M20.4 mm2.4 mm2.2 mm4 × 1.6 mmØ3.8 × 2 mmØ3.2 × 4 mm
M2.50.45 mm2.9 mm2.7 mm5 × 2 mmØ4.5 × 2.5 mmØ3.5 × 4 mm
M30.5 mm3.4 mm3.2 mm5.5 × 2.4 mmØ5.5 × 3 mmØ4 × 5.7 mm
M40.7 mm4.5 mm4.3 mm7 × 3.2 mmØ7 × 4 mmØ5.6 × 7.6 mm
M50.8 mm5.5 mm5.3 mm8 × 4.7 mmØ8.5 × 5 mmØ6.4 × 9.5 mm
M61 mm6.6 mm6.4 mm10 × 5.2 mmØ10 × 6 mmØ8 × 12.7 mm
M81.25 mm9 mm8.4 mm13 × 6.8 mmØ13 × 8 mmØ9.6 × 12.7 mm

Printing threads that turn

  • Pick the size, not the pitch. Choosing M8 sets the 1.25 mm pitch from the ISO table. A thread at the wrong pitch mates with nothing, while looking perfectly correct on screen.
  • The nut already has clearance. The nut is tapped by subtracting the internal form of the same designation, which already carries the radial clearance a printed pair needs. Fit (Tight, Normal, Loose) changes it; under Custom, Thread clearance is the diametral figure.
  • The first turn is chamfered. A thread that ends in a square face catches and cross-threads as you start it; a 45° lead-in guides it in straight.
  • Choose the orientation. Stood on its head, every turn prints round and the thread comes out cleanest, but the shank is weakest across its layers. Laid on its side it is stronger, and the face on the bed prints flat.
  • Small threads are hard. A pitch of 0.5 mm or finer (M3 and down) is close to the width of one extrusion line, so expect a rough fit. At that size a heat-set insert or a bought screw is often the better part.

Thread questions

Can you 3D print threads that work?

Yes. This generator makes the bolt and its nut from one ISO designation, so they mate with each other and with real hardware. The nut carries clearance and the first turn is chamfered so it does not cross-thread.

What is the pitch of an M8 thread?

1.25 mm for ISO coarse, with a 6.75 mm tap drill. The chart above has the rest.

What size hole does a heat-set insert need?

For M3, a Ø4 × 5.7 mm pocket with typical tapered brass inserts. Brands vary, so check your inserts’ data sheet.

Which head should I choose?

Socket cap and Hex are tightened with a tool. Countersunk (flat) sits flush. Button (dome) gives the same bearing face in less height. Thumb screw is for hand-tightening: its knob is sized from the thread, not looked up in a standard.

More customizers

Enclosures

  • Enclosure
  • Snap-fit
  • Annular snap

Storage

  • Gridfinity

Containers

  • Threaded jar

Mounts

  • Board mount

Fasteners

  • Plugs, caps & sleeves
  • Pillow block

Hinges & joints

  • Living hinge
  • Pin hinge
  • Ball joint

Gears & drives

  • Gear train
  • Planetary
  • Herringbone gear
  • Herringbone train
  • Rack & pinion
  • Worm drive
  • Bevel gears
  • Pulley / sprocket
  • Timing belt
  • Ball bearing
  • Compression spring

Adapters

  • Hose / thread adapter

Signs & art

  • Text sign
  • Lithophane

Calibration

  • Fit test coupon
  • Calibration block

Molds & casting

  • Casting mold
  • Cookie cutter
  • Texture roller

Clamps

  • Clamp

Fans & airflow

  • Impeller
  • Axial fan
  • Fan frame
All customizers · Browse the community gallery