# Hex nuts, M2–M8 (ISO 4032)

> What size pocket does an M3 nut need in a 3D print?

- Category: Hardware › Fasteners
- Kind: Hardware
- Basis: ISO 4032 (DIN 934 matches for M2–M8; they differ at M10 and up)
- Page: https://xemstudio.com/objects/hex-nuts-metric/ · JSON: https://xemstudio.com/api/geometry?object=hex-nuts-metric · Plain text: https://xemstudio.com/objects/hex-nuts-metric/sheet.txt
- License: dimension sheet CC BY 4.0 (Xem Studio); files CC BY 4.0 or their publisher's license
- Use in every chat: add https://xemstudio.com/mcp as a connector (https://xemstudio.com/use-with-ai/)

**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.

## 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.

## Mating features (exact size; open press / slide / run / socket by your process clearance, leave designed and clamp as drawn)

| feature | exact | mates with | fit | files |
|---|---|---|---|---|
| hex | AF × m (M3 5.5 × 2.4) | nut trap | press | nut-* |
| bore | thread major (M3 Ø3) | screw shank model | designed | nut-* |

## Sizes

| thread | width_af_mm | corner_mm | thickness_mm |
|---|---|---|---|
| M2 | 4 | 4.6 | 1.6 |
| M2.5 | 5 | 5.8 | 2 |
| M3 | 5.5 | 6.4 | 2.4 |
| M4 | 7 | 8.1 | 3.2 |
| M5 | 8 | 9.2 | 4.7 |
| M6 | 10 | 11.5 | 5.2 |
| M8 | 13 | 15 | 6.8 |

## Where the files are

- McMaster-Carr: [Hex nuts (free STEP/IGES/STL per part, for your own design use; no redistribution)](https://www.mcmaster.com/products/nuts/hex-nuts/) — STEP, IGES, STL, PDF — McMaster-Carr site terms: personal design use, no redistribution (verify at link)
- Wikipedia: [Nut (hardware)](https://en.wikipedia.org/wiki/Nut_(hardware)) — web — CC BY-SA 4.0 (text)

## Free STEP/STL (7 parts, CC BY 4.0, Xem Studio)

Index: https://xemstudio.com/files/hardware/hex-nuts-metric/index.json

- nut-m2: [STEP](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m2.step) · [STL](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m2.stl) — ISO 4032 M2: 4.0 AF × 1.6, thread as Ø2.0 plain bore
- nut-m2.5: [STEP](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m2.5.step) · [STL](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m2.5.stl) — ISO 4032 M2.5: 5.0 AF × 2.0, thread as Ø2.5 plain bore
- nut-m3: [STEP](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m3.step) · [STL](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m3.stl) — ISO 4032 M3: 5.5 AF × 2.4, thread as Ø3.0 plain bore
- nut-m4: [STEP](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m4.step) · [STL](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m4.stl) — ISO 4032 M4: 7.0 AF × 3.2, thread as Ø4.0 plain bore
- nut-m5: [STEP](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m5.step) · [STL](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m5.stl) — ISO 4032 M5: 8.0 AF × 4.7, thread as Ø5.0 plain bore
- nut-m6: [STEP](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m6.step) · [STL](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m6.stl) — ISO 4032 M6: 10.0 AF × 5.2, thread as Ø6.0 plain bore
- nut-m8: [STEP](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m8.step) · [STL](https://xemstudio.com/files/hardware/hex-nuts-metric/nut-m8.stl) — ISO 4032 M8: 13.0 AF × 6.8, thread as Ø8.0 plain bore

## 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.

## Fits with

- [Socket head cap screws, M2–M8 (ISO 4762 / DIN 912)](https://xemstudio.com/objects/socket-head-cap-screws-metric/)
- [Flat washers, M2–M8 (ISO 7089)](https://xemstudio.com/objects/flat-washers-metric/)
- [Threaded standoffs, M2.5 and M3 (hex and round)](https://xemstudio.com/objects/threaded-standoffs-metric/)
