Spanner size chart: metric wrench and Allen key sizes from M3 to M24

Which spanner or Allen key fits a metric bolt or nut, by thread size and type of head. Each column links to the standard it comes from.

Metric wrench size chart for bolts and nuts

Width across flats in millimetres. ISO hex bolts and nuts changed size at M10, M12, M14 and M22, so the old DIN size is shown alongside.

Spanner size by thread size
Thread Hex bolt and nutISO 4017 / 4032, mmHex bolt and nut, old DINDIN 933 / 934, mmFlange nutDIN 6923, mm
M3 5.55.5–
M4 77–
M5 888
M6 101010
M8 131313
M10 161715
M12 181918
M14 212221
M16 242424
M18 2727–
M20 303030
M22 3432–
M24 3636–

Allen key size chart, metric

Hexagon socket size in millimetres, which is the Allen key you need.

Allen key size by thread size
Thread Socket head cap screwISO 4762, mmLow headDIN 7984, mmButton headISO 7380-1, mmCountersunkISO 10642, mmSet screwISO 4026, mm
M3 2.52221.5
M4 32.52.52.52
M5 43332.5
M6 54443
M8 65554
M10 87665
M12 108886
M14 12––––
M16 141210108
M18 –––––
M20 1714–1210
M22 –––––
M24 1917––12

A dash means the standard has no such size.

Bolt and spanner sizes: why M10 can take 16 or 17 mm

When the German DIN standards for hex bolts and nuts were replaced by ISO, the width across flats changed at four sizes: M10 from 17 to 16 mm, M12 from 19 to 18 mm, M14 from 22 to 21 mm and M22 from 32 to 34 mm. Both are still sold, so check the head before you reach for the spanner. Every other size kept its spanner. The Allen key sizes of socket screws did not change.

Spanner sizes: common questions

What size spanner do I need for an M8 bolt?
13 mm, for both ISO and DIN hex bolts and nuts. An M8 socket head cap screw takes a 6 mm Allen key.
What size spanner fits an M12 nut?
18 mm for an ISO 4032 nut, 19 mm for an older DIN 934 nut.