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

threadwidth af (mm)corner (mm)head height (mm)lengths (mm)
M35.56.42.010, 16, 20
M47.08.12.812, 16, 20, 25
M58.09.23.516, 20, 25, 30, 40
M610.011.54.020, 25, 30, 40
M813.015.05.320, 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.

featureexactmates withfitfiles
hex heads × k (M5 8 × 3.5, M8 13 × 5.3; ISO 4017)hex pocket in a clamp lugsockethexbolt-*
shankthread major (M5 Ø5)clearance hole (ISO 273) and nutdesignedhexbolt-*

Where the files are

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

McMaster-CarrHex head screws (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
WikipediaScrewwebCC 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
  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
hexbolt-m3x10ISO 4017 M3 × 10 hex head, 5.5 AF × 2 head, thread as plain cylinderSTEP · STL
hexbolt-m3x16ISO 4017 M3 × 16 hex head, 5.5 AF × 2 head, thread as plain cylinderSTEP · STL
hexbolt-m3x20ISO 4017 M3 × 20 hex head, 5.5 AF × 2 head, thread as plain cylinderSTEP · STL
hexbolt-m4x12ISO 4017 M4 × 12 hex head, 7 AF × 2.8 head, thread as plain cylinderSTEP · STL
hexbolt-m4x16ISO 4017 M4 × 16 hex head, 7 AF × 2.8 head, thread as plain cylinderSTEP · STL
hexbolt-m4x20ISO 4017 M4 × 20 hex head, 7 AF × 2.8 head, thread as plain cylinderSTEP · STL
hexbolt-m4x25ISO 4017 M4 × 25 hex head, 7 AF × 2.8 head, thread as plain cylinderSTEP · STL
hexbolt-m5x16ISO 4017 M5 × 16 hex head, 8 AF × 3.5 head, thread as plain cylinderSTEP · STL
hexbolt-m5x20ISO 4017 M5 × 20 hex head, 8 AF × 3.5 head, thread as plain cylinderSTEP · STL
hexbolt-m5x25ISO 4017 M5 × 25 hex head, 8 AF × 3.5 head, thread as plain cylinderSTEP · STL
hexbolt-m5x30ISO 4017 M5 × 30 hex head, 8 AF × 3.5 head, thread as plain cylinderSTEP · STL
hexbolt-m5x40ISO 4017 M5 × 40 hex head, 8 AF × 3.5 head, thread as plain cylinderSTEP · STL
hexbolt-m6x20ISO 4017 M6 × 20 hex head, 10 AF × 4 head, thread as plain cylinderSTEP · STL
hexbolt-m6x25ISO 4017 M6 × 25 hex head, 10 AF × 4 head, thread as plain cylinderSTEP · STL
hexbolt-m6x30ISO 4017 M6 × 30 hex head, 10 AF × 4 head, thread as plain cylinderSTEP · STL
hexbolt-m6x40ISO 4017 M6 × 40 hex head, 10 AF × 4 head, thread as plain cylinderSTEP · STL
hexbolt-m8x20ISO 4017 M8 × 20 hex head, 13 AF × 5.3 head, thread as plain cylinderSTEP · STL
hexbolt-m8x25ISO 4017 M8 × 25 hex head, 13 AF × 5.3 head, thread as plain cylinderSTEP · STL
hexbolt-m8x30ISO 4017 M8 × 30 hex head, 13 AF × 5.3 head, thread as plain cylinderSTEP · STL
hexbolt-m8x40ISO 4017 M8 × 40 hex head, 13 AF × 5.3 head, thread as plain cylinderSTEP · STL
hexbolt-m8x50ISO 4017 M8 × 50 hex head, 13 AF × 5.3 head, thread as plain cylinderSTEP · 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-head-screws-metric

Hex head screws, M3–M8 (ISO 4017), isometric render of a generated part
Render of hexbolt-m5x30 from the free STEP; not to scale.

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.