Using the Metric hex nut generator
Make a hex nut to match a printed bolt or threaded rod. Choose the nominal thread size, nut thickness and clearance using the threads-scad library. The tool previews the actual generated nut so you can inspect both its overall envelope and its internal thread.
- Use the same nominal diameter as the bolt or rod you want to pair with the nut.
- Choose the thickness and a clearance value to test.
- Download a small sample and check its fit before printing a batch.
Thickness and clearance solve different problems
Thickness changes the nut's height, while the thread-clearance parameter changes its generated fit geometry. Neither control independently sets the hexagon's width: the library derives the outside proportions from the nominal thread size. The default 8 mm nominal nut is about 14.6 by 12.7 mm across its bounding box and 6 mm tall.
If a printed pair binds or feels loose, record the diameter, clearance, material and slicing settings before changing one value. A fit sample is more useful than assuming a clearance works across printers. The source download preserves the exact settings and original notices for repeating the experiment.
Default values and parameter ranges
- Nominal diameter
- Default 8 mm; range 3 to 24 mm
- Thread clearance
- Default 0.4 mm; range 0.1 to 0.8 mm
- Thickness
- Default 6 mm; range 3 to 20 mm
Default mesh example: 14.6 × 12.7 × 6.0 mm. These are dimensions of the rendered source model, not measurements of a physical print. Your live preview reports the outside dimensions for your selected values.
Original design: Ryan A. Colyer. License: CC0-1.0. Original project and license. Source revision 4ae9aeb3b136. Download Source + license above to retain the source, notices and your parameter setup.










