Using the Metric hex bolt generator
Configure a hex-head metric bolt for a small printed assembly or fit experiment. The tool uses threads-scad to generate the head and threaded shank together. You control the nominal diameter, shank length and clearance, with the resulting outside dimensions shown on the preview.
- Select the nominal thread diameter you want to pair with a nut.
- Enter the shank length, then choose the thread clearance for a fit sample.
- Check the total model height and head footprint before exporting the STL.
Shank length is different from total height
The shank-length control describes the bolt below its head. The default 8 mm nominal bolt with a 20 mm shank renders about 28 mm tall overall, including its head. Its head footprint is about 14.6 by 12.7 mm in the verified default mesh. Check the complete envelope when planning clearance around the head.
Pair the bolt with a nut using the same nominal diameter, then test the printed fit. Thread pitch and head proportions come from the source library; this interface does not offer independent controls for them. Printed plastic bolts are intended here for light-duty projects, without a strength or load-rating claim.
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
- Shank length
- Default 20 mm; range 5 to 80 mm
Default mesh example: 14.6 × 12.7 × 28.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.










