Metric hex nut generator

Free · Runs on your device

Metric hex nut

3D PREVIEW
Preparing your part...The default design opens automatically.
Drag to rotate · Scroll to zoom
Dimensions Adjust your part

Metric hex nut

Loading dimensions...

Preparing model dimensions...
Preparing the default part on your device...
Design notes, source and license

Make a matching nut with adjustable thread clearance.

Plastic threads are for light-duty projects. Print a small fit test before making a set. Pitch follows the library’s metric lookup.

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.

  1. Use the same nominal diameter as the bolt or rod you want to pair with the nut.
  2. Choose the thickness and a clearance value to test.
  3. 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.

Browse open-source 3D model generators

12 generators

Customize Gridfinity storage, metric hardware, keycaps, planters and practical workshop parts. Every generator includes its original source, author credits and license.

View or edit the current OpenSCAD source

Editing makes a local copy. Reopen a library model to restore its original. Set parameters in the controls above.

About this free OpenSCAD model maker

Choose a design, adjust its dimensions and download an STL for your slicer. The preview shows the actual generated mesh and outside dimensions.

Use your own OpenSCAD file

Choose Open .scad above to load a self-contained file. Simple number, boolean, string and enum parameters become controls. External libraries, fonts and imported meshes are not bundled for local imports. Imported source stays in your browser.

Using the generators

Does my model get uploaded?

Rendering happens locally using OpenSCAD WebAssembly in a browser worker. We deliver the page, source files and engine as static downloads. Your source, parameter values and generated model are not sent to a rendering server. Setup links store dimensions in the URL fragment, so anyone you give the complete link can see those dimensions.

What can I download?

STL is the printable mesh. Source + license is a ZIP containing the original .scad files, required bundled libraries, your parameter setup, author credits and license notices. The included goodprints-setup.scad reproduces your selected values in desktop OpenSCAD. STL does not retain editable CAD features.

Why can a build take a while?

The first live build downloads about 14 MB of rendering code. Each default design has an exact cached preview while the engine loads. Complex shapes and larger grids take longer, especially on phones. You can turn off Auto update to rebuild manually or cancel a build. A build stops after two minutes.

Can I use the models commercially?

Each design keeps its own license, credited with its author and source. Read the license included in your source download for the terms that apply. An available source file does not automatically grant reuse rights. These models have been checked for browser rendering, not physically print-tested by GoodPrints3D.

What powers this?

The OpenSCAD WebAssembly project runs the actual OpenSCAD engine on your device. OpenSCAD WASM source · Engine version 0.0.4 and license · Download workshop source and notices.

Built on open source. Made for your workshop.

Thanks to Kenneth Hodson, Zachary Freedman, Ryan A. Colyer, Jerry van Heerikhuize, Sofian Audry, rsheldiii, Barrett Clark, the BOSL2 contributors and the OpenSCAD community.

Explore GoodPrints3D Labs ↗