The number stamped on a wrench or socket is the width across flats, which corresponds to the S value found in mechanical design manuals for threaded fasteners. Many people mistakenly assume it refers to the thread diameter, leading to mismatches between the wrench and the bolt/screw/nut.

1. Comparison table of width across flats for metric hex head bolts and socket (box) wrenches:
| Metric external hex bolt and socket (box) wrench cross-sectional dimensions comparison table | ||
| Serial Number | External Hex Bolt Specifications | Corresponding Wrench or Socket Dimensions Across Flats |
| 1 | M3 | 5. 5mm |
| 2 | M4 | 7mm |
| 3 | M5 | 8mm |
| 4 | M6 | 10mm |
| 5 | M8 | 13mm |
| 6 | M10 | 16mm |
| 7 | M12 | 18mm |
| 8 | M14 | 21mm |
| 9 | M16 | 24mm |
| 10 | M18 | 27mm |
| 11 | M20 | 30mm |
| 12 | M22 | 34mm |
Metric hex socket head bolts and hex key (Allen wrench) size comparison table:
| Metric socket head cap screw and socket head cap wrench size comparison table | ||
| Serial Number | Hex bolt specifications | Hex wrench size comparison table |
| 1 | M3 | 2. 5mm |
| 2 | M4 | 3mm |
| 3 | M5 | 4mm |
| 4 | M6 | 5mm |
| 5 | M8 | 6mm |
| 6 | M10 | 8mm |
| 7 | M12 | 10mm |
| 8 | M14 | 12mm |
| 9 | M16 | 14mm |
| 10 | M18 | 14mm |
| 11 | M20 | 17mm |
| 12 | M22 | 17mm |
The size of a socket head cap screw matches the across-flat dimension of the corresponding hex key. For your reference to identify matching sizes between screws and hex keys, as well as to select the proper tap and drill bit for threaded holes, here are practical guidelines:
Calculation of Tap Drill Hole Diameter
- Brittle materials (cast iron, bronze, etc.): Drill diameter d0 = Major thread diameter d − 1.1× Pitch (p)
- Ductile materials (steel, red copper, etc.): Drill diameter d0 = Major thread diameter d − Pitch (p)
Open-end Wrenches for Hex Bolts
- Matching open-end wrench sizes are calibrated against hex nuts, as both standard hex head bolts and reduced-size hex head bolts are commonly used.
- The size matching between hex keys (across flats, S) and metric screws is as follows: S3 = M4, S4 = M5, S5 = M6, S6 = M8, S8 = M10, S10 = M12, S12 = M14–M16, S14 = M18–M20, S17 = M22–M24, S19 = M27–M30, S24 = M36, S27 = M42
Revised Formula for Tap Drill Hole Diameter
- For brittle materials: Basic thread diameter − 1.0826× Pitch
- For ductile materials: Basic thread diameter − Pitch + 0.1
Thread tapping on brittle materials is a pure cutting process, so the drill hole diameter equals the minor thread diameter. For ductile materials, plastic deformation occurs during tapping and material flows toward the thread minor diameter, so a slightly larger drill hole is required.
For threaded holes below M6, the formula applies universally regardless of material: Basic thread diameter − Pitch. In general practice, drill diameter = Bolt major diameter − Pitch.