Library › Hardware › Fasteners ·

Hex nuts, M2–M8 (ISO 4032)

What size pocket does an M3 nut need in a 3D print? · Hardware · basis: ISO 4032 (DIN 934 matches for M2–M8; they differ at M10 and up)

Also called: m3 nut, hex nut, iso 4032, din 934, nut trap, metric hex nut size chart, tuerca hexagonal medidas, porca sextavada dimensões

Exact dimensions. Every file is drawn at true size with no tolerance added. The holes and pins that meet another part are listed below under Mating features, with the fit each joint needs; open those by your process's clearance before making the part. Mating features

sizes
7 in table

Notes

  • Width across flats (AF) and thickness per size below. A nut trap is drawn at the nut's AF and thickness; the corner-to-corner dimension is AF × 1.155.
  • M3: 5.5 AF, 2.4 thick; the trap is drawn 5.5 AF × 2.4 deep.

Hex nuts, M2–M8 size chart

threadwidth af (mm)corner (mm)thickness (mm)
M244.61.6
M2.555.82
M35.56.42.4
M478.13.2
M589.24.7
M61011.55.2
M813156.8

Mating features

Drawn at the exact size. Open press, slide, run and socket features by your process's clearance (tolerances by process); leave designed gaps and clamp fits as drawn.

featureexactmates withfitfiles
hexAF × m (M3 5.5 × 2.4)nut trappressnut-*
borethread major (M3 Ø3)screw shank modeldesignednut-*

Where the files are

Other publishers' files are linked, not hosted. "verify" = check the license at the link before commercial use.

McMaster-CarrHex nuts (free STEP/IGES/STL per part, for your own design use; no redistribution)STEP, IGES, STL, PDFMcMaster-Carr site terms: personal design use, no redistribution verify
WikipediaNut (hardware)webCC BY-SA 4.0 (text)

Free files

★ Free files 7 parts. Generated by Xem Studio from the standard; threads are plain cylinders at major diameter. CC BY 4.0. index.json

Use this part in your AI. Your AI gets the exact sizes and files straight from Xem and can design a mount, case or adapter around it. Direct downloads here are limited to one file every 10 minutes; through your AI they are unlimited.

Connect Xem to your AI (free, no account, about a minute)
https://xemstudio.com/mcp
  1. Claude: Add to Claude
  2. ChatGPT (Plus or higher): open Connectors → Advanced → turn on Developer mode → Create → paste the address, no authentication → Create.
  3. Cursor: install with one click. VS Code: install with one click.
Other apps and full steps
nut-m2ISO 4032 M2: 4.0 AF × 1.6, thread as Ø2.0 plain boreSTEP · STL
nut-m2.5ISO 4032 M2.5: 5.0 AF × 2.0, thread as Ø2.5 plain boreSTEP · STL
nut-m3ISO 4032 M3: 5.5 AF × 2.4, thread as Ø3.0 plain boreSTEP · STL
nut-m4ISO 4032 M4: 7.0 AF × 3.2, thread as Ø4.0 plain boreSTEP · STL
nut-m5ISO 4032 M5: 8.0 AF × 4.7, thread as Ø5.0 plain boreSTEP · STL
nut-m6ISO 4032 M6: 10.0 AF × 5.2, thread as Ø6.0 plain boreSTEP · STL
nut-m8ISO 4032 M8: 13.0 AF × 6.8, thread as Ø8.0 plain boreSTEP · STL
Let your AI pull this. Add https://xemstudio.com/mcp to Claude, ChatGPT, Cursor or any MCP client (free, no account, one minute) and it can look up exact sizes, mating fits and free STEP/STL from every chat.
Set it up →

Plain text: sheet.txt · JSON: /api/geometry?object=hex-nuts-metric

Hex nuts, M2–M8 (ISO 4032), isometric render of a generated part
Render of nut-m3 from the free STEP; not to scale.

Fits with

Questions

What size is an M3 nut?

5.5 mm across flats, 6.4 mm across corners, 2.4 mm thick (ISO 4032). A trap for it is drawn 5.5 mm across flats and 2.4 mm deep.

What size is an M4 nut and M5 nut?

M4: 7 mm across flats, 3.2 mm thick. M5: 8 mm across flats, 4.7 mm thick. Across corners = AF × 1.155.

How to model a captive nut pocket in a 3D print?

Draw the hex pocket at the nut's AF and thickness, apply your press allowance to it, slot it in from the side so the nut can't spin, and keep at least 1.5 mm of wall around the corners.