Library › Hardware › Fasteners ·
Hex head screws, M3–M8 (ISO 4017)
What size hex pocket holds an M5 hex head bolt so it can't turn? · Hardware · basis: ISO 4017 (fully threaded hex head screws): width across flats s and head height k
Also called: hex bolt, hex head bolt, m5 hex bolt, iso 4017, din 933, captive bolt head pocket
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
- 5 in table
Notes
- Hex head: s across flats, k high, corners s × 1.155. A pocket that keeps the head from turning is drawn at s × k exactly (see Mating features), so a nut can be run down from the other side with one tool.
- Used in the two-bolt tri-clamp clamps: M5 × 30 in the 1½–4 in clamp halves, M8 in the 10 and 12 in clamps; each clamp half has the head pocket on one lug and a plain hole on the other.
Hex head screws, M3–M8 size chart
| thread | width af (mm) | corner (mm) | head height (mm) | lengths (mm) |
|---|---|---|---|---|
| M3 | 5.5 | 6.4 | 2.0 | 10, 16, 20 |
| M4 | 7.0 | 8.1 | 2.8 | 12, 16, 20, 25 |
| M5 | 8.0 | 9.2 | 3.5 | 16, 20, 25, 30, 40 |
| M6 | 10.0 | 11.5 | 4.0 | 20, 25, 30, 40 |
| M8 | 13.0 | 15.0 | 5.3 | 20, 25, 30, 40, 50 |
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.
| feature | exact | mates with | fit | files |
|---|---|---|---|---|
| hex head | s × k (M5 8 × 3.5, M8 13 × 5.3; ISO 4017) | hex pocket in a clamp lug | socket | hexbolt-* |
| shank | thread major (M5 Ø5) | clearance hole (ISO 273) and nut | designed | hexbolt-* |
Where the files are
Other publishers' files are linked, not hosted. "verify" = check the license at the link before commercial use.
| McMaster-Carr | Hex head screws (free STEP/IGES/STL per part, for your own design use; no redistribution) | STEP, IGES, STL, PDF | McMaster-Carr site terms: personal design use, no redistribution verify |
| Wikipedia | Screw | web | CC BY-SA 4.0 (text) |
Free files
★ Free files 21 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- Claude: Add to Claude
- ChatGPT (Plus or higher): open Connectors → Advanced → turn on Developer mode → Create → paste the address, no authentication → Create.
- Cursor: install with one click. VS Code: install with one click.
| hexbolt-m3x10 | ISO 4017 M3 × 10 hex head, 5.5 AF × 2 head, thread as plain cylinder | STEP · STL |
| hexbolt-m3x16 | ISO 4017 M3 × 16 hex head, 5.5 AF × 2 head, thread as plain cylinder | STEP · STL |
| hexbolt-m3x20 | ISO 4017 M3 × 20 hex head, 5.5 AF × 2 head, thread as plain cylinder | STEP · STL |
| hexbolt-m4x12 | ISO 4017 M4 × 12 hex head, 7 AF × 2.8 head, thread as plain cylinder | STEP · STL |
| hexbolt-m4x16 | ISO 4017 M4 × 16 hex head, 7 AF × 2.8 head, thread as plain cylinder | STEP · STL |
| hexbolt-m4x20 | ISO 4017 M4 × 20 hex head, 7 AF × 2.8 head, thread as plain cylinder | STEP · STL |
| hexbolt-m4x25 | ISO 4017 M4 × 25 hex head, 7 AF × 2.8 head, thread as plain cylinder | STEP · STL |
| hexbolt-m5x16 | ISO 4017 M5 × 16 hex head, 8 AF × 3.5 head, thread as plain cylinder | STEP · STL |
| hexbolt-m5x20 | ISO 4017 M5 × 20 hex head, 8 AF × 3.5 head, thread as plain cylinder | STEP · STL |
| hexbolt-m5x25 | ISO 4017 M5 × 25 hex head, 8 AF × 3.5 head, thread as plain cylinder | STEP · STL |
| hexbolt-m5x30 | ISO 4017 M5 × 30 hex head, 8 AF × 3.5 head, thread as plain cylinder | STEP · STL |
| hexbolt-m5x40 | ISO 4017 M5 × 40 hex head, 8 AF × 3.5 head, thread as plain cylinder | STEP · STL |
| hexbolt-m6x20 | ISO 4017 M6 × 20 hex head, 10 AF × 4 head, thread as plain cylinder | STEP · STL |
| hexbolt-m6x25 | ISO 4017 M6 × 25 hex head, 10 AF × 4 head, thread as plain cylinder | STEP · STL |
| hexbolt-m6x30 | ISO 4017 M6 × 30 hex head, 10 AF × 4 head, thread as plain cylinder | STEP · STL |
| hexbolt-m6x40 | ISO 4017 M6 × 40 hex head, 10 AF × 4 head, thread as plain cylinder | STEP · STL |
| hexbolt-m8x20 | ISO 4017 M8 × 20 hex head, 13 AF × 5.3 head, thread as plain cylinder | STEP · STL |
| hexbolt-m8x25 | ISO 4017 M8 × 25 hex head, 13 AF × 5.3 head, thread as plain cylinder | STEP · STL |
| hexbolt-m8x30 | ISO 4017 M8 × 30 hex head, 13 AF × 5.3 head, thread as plain cylinder | STEP · STL |
| hexbolt-m8x40 | ISO 4017 M8 × 40 hex head, 13 AF × 5.3 head, thread as plain cylinder | STEP · STL |
| hexbolt-m8x50 | ISO 4017 M8 × 50 hex head, 13 AF × 5.3 head, thread as plain cylinder | STEP · STL |
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.Plain text: sheet.txt · JSON: /api/geometry?object=hex-head-screws-metric

Fits with
Questions
How big is an M5 hex head?
8 mm across flats, 3.5 mm high, 9.2 mm across corners (ISO 4017). A pocket that holds it is 8 AF × 3.5 deep.
How big is an M8 hex head?
13 mm across flats, 5.3 mm high, 15.0 mm across corners (ISO 4017).
Why put the bolt head in a hex pocket?
The pocket stops the bolt turning, so the nut on the other side can be tightened with one wrench.



