Metric bolt size chart: heads, keys and lengths for every screw standard

Hex bolts, socket head cap screws, countersunk, button head, set screws, threaded rod and more, all with coarse metric threads. The charts below compare the head sizes and the lengths across the most used standards; each standard has its own page with the full table and a STEP, DXF and DWG file for every size and length.

Metric bolt standards: ISO and DIN screw types

Metric bolt head size chart in mm

Across flats (s) is the spanner size of a hex head, and for a socket head it is the Allen key. Head diameter (dk) and head height (k) are the maximum values of each standard. Select a standard in the header to see all its dimensions.

Metric bolt head sizes by thread size
Thread Pitch Pcoarse, mmHex head sISO 4017, mmHex head kISO 4017, mmSocket head dkISO 4762, mmSocket head kISO 4762, mmAllen key sISO 4762, mmCountersunk dkISO 10642, mmButton head dkISO 7380-1, mm
M3 0.55.525.532.56.725.7
M4 0.772.87438.967.6
M5 0.883.58.55411.29.5
M6 1104106513.4410.5
M8 1.25135.3138617.9214
M10 1.5166.41610822.417.5
M12 1.75187.518121026.8821
M14 2218.8211412––
M16 2241024161433.628
M18 2.52711.5–––––
M20 2.53012.530201740.32–
M22 2.53414–––––
M24 33615362419––

A dash means the standard has no such size. The older DIN 933 and DIN 931 hex heads are one millimetre larger at M10, M12 and M14 (17, 19 and 22 mm) and two smaller at M22 (32 mm).

Metric bolt length chart: shortest and longest lengths

Lengths available here with a CAD file. They are the lengths that the commercial series and the stock tables agree on, from the shortest to the longest for each thread size. The step between lengths is given on each standard's page.

Metric bolt lengths by thread size
Thread Hex screw, shortestISO 4017, mmHex screw, longestISO 4017, mmHex bolt, shortestISO 4014, mmHex bolt, longestISO 4014, mmSocket head, shortestISO 4762, mmSocket head, longestISO 4762, mm
M3 5302030530
M4 6402540640
M5 8502550850
M6 126030601060
M8 168040801280
M10 201003518016100
M12 251204018020120
M14 251405015025140
M16 301506516025160
M18 3520070180––
M20 401608020030100
M22 4520080220––
M24 501809024040200

How to measure a metric bolt

Diameter. Measure the outside of the thread with a caliper. The result is usually a little under the nominal size, because the tolerance of an external thread sits below it: an M8 bolt reads somewhere under 8 mm, never over. The nominal diameter is the number after the M.

Pitch. Use a thread gauge, or measure the length of ten threads and divide by ten. Coarse pitch is the default and is left out of the designation, so M8 means M8 × 1.25. A fine thread is always written in full, as in M8 × 1.

Length. For hex, socket, pan and button heads, measure from the underside of the head to the end of the screw. For countersunk screws the length includes the head, because the head ends flush with the surface. Set screws and threaded rod are measured end to end.

Hex bolt and Allen bolt head sizes: DIN and ISO

When the German DIN standards for hex bolts and nuts were replaced by ISO, four spanner sizes changed: M10 went from 17 to 16 mm, M12 from 19 to 18 mm, M14 from 22 to 21 mm and M22 from 32 to 34 mm. The rest of the sizes kept the same head. Both versions are still sold, so a hex screw marked DIN 933 and one marked ISO 4017 can need different spanners. On the ISO 4017 / DIN 933 page you can switch between the two and download each one.

Socket heads did not change. An ISO 4762 screw takes a 5 mm key at M6, 6 mm at M8 and 8 mm at M10, the same as DIN 912. Low head and button head screws use a smaller key for the same thread: a DIN 7984 or ISO 7380-1 screw at M6 takes a 4 mm key.

Metric bolt sizes: common questions

Is M12 the same as 12 mm?
M12 means an ISO metric thread with a nominal outside diameter of 12 mm. A caliper will read slightly less on the bolt, because the thread tolerance sits below the nominal size. The head is not 12 mm: an ISO 4017 hex head at M12 measures 18 mm across flats.
What is the pitch of an M24 thread?
The coarse pitch of M24 is 3 mm, which is the pitch used when the designation says only M24. Fine-pitch M24 threads, such as M24 × 2, are always written with the pitch.
What is the difference between a hex screw and a hex bolt?
In the ISO standards a hex screw (ISO 4017, formerly DIN 933) is threaded up to the head, while a hex bolt (ISO 4014, formerly DIN 931) has a plain shank under the head and is threaded only for part of its length. The head dimensions are the same.
What size Allen key does an M8 cap screw take?
A 6 mm key for an ISO 4762 or DIN 912 socket head cap screw. Low head (DIN 7984) and button head (ISO 7380) screws at M8 take a 5 mm key.