Hex Key Size Chart: Allen Wrench Table for Every Screw (Free PDF)

Hex key sizes for metric M1.6 to M64 and imperial #0 to 2 in socket screws, button, flat and set screw keys, plus metric-imperial swaps. Free PDF, PNG and CSV downloads.

Wrenches & Keys 5 tables · 109 rows Free CSV, PNG & PDF downloads Cross-checked against ASME B18.3, ISO 4762 / DIN 912 and ISO 7380 / ISO 4029 · Last verified Sep 8, 2026

Metric Hex Key Sizes for Socket Head Cap Screws (ISO 4762 / DIN 912)

Diagram of a metric socket head cap screw showing thread size, coarse pitch, hex key size across flats, head diameter and head height
What each column means, shown on a metric socket head cap screw: the hex key size is the width across flats of the hexagon socket in the head.
Metric Hex Key Sizes for Socket Head Cap Screws (ISO 4762 / DIN 912)
Thread sizeCoarse pitch (mm)Hex key size (mm)Key size (in, decimal)Head diameter (mm)Head height (mm)
M1.6 0.351.50.0593.01.6
M2 0.41.50.0593.82.0
M2.5 0.4520.0794.52.5
M3 0.52.50.0985.53.0
M4 0.730.1187.04.0
M5 0.840.1578.55.0
M6 1.050.19710.06.0
M8 1.2560.23613.08.0
M10 1.580.31516.010.0
M12 1.75100.39418.012.0
M14 2.0120.47221.014.0
M16 2.0140.55124.016.0
M18 2.5140.55127.018.0
M20 2.5170.66930.020.0
M22 2.5170.66933.022.0
M24 3.0190.74836.024.0
M27 3.0190.74840.027.0
M30 3.5220.86645.030.0
M33 3.5240.94550.033.0
M36 4.0271.06354.036.0
M42 4.5321.26063.042.0
M48 5.0361.41772.048.0
M56 5.5411.61484.056.0
M64 6.0461.81196.064.0

Key sizes per ISO 4762 / DIN 912 standard head socket cap screws, coarse thread. M14, M18, M22, M27 and M33 are non-preferred sizes: stocked less widely but fully standardised.

The Hex key size (mm) column reads what type of Allen key to drive it with; you find the thread size in the first column. So M6 uses a 5 mm, an M8 uses a 6 mm, and an M10 use an 8 mm. You read the column labeled Hex Key Size (mm).

To drive any standard socket head cap screw of a given thread size you use the Allen key whose key size is listed in the hex key column. The key size is the width across flats of the hexagon socket in the head of the bolt.

This doesn't correspond evenly to thread size: M6 = 5 mm, M8 = 6 mm, than M10 = 8 mm. Guessing one size smaller than the thread doesn't work once past M8.

The thread pitch (mm) is coarse pitch. Under ISO 261, this is the normal thread pitch for that diameter. Use it to verify you have the size you believe you do.

Key size (in, decimal): convert the hex key width to decimal inches. If all you have to measure with is imperial or if you’re wondering if the SAE key you’ve got in-hand is actualy the metric one you need, here’s how to double-check.

Head diameter and head height is taken from ISO 4762. These are the max dimensions of the head. The head diameter gives you the counterbore needed, and the head height is always equal to the nominal thread diameter on a standard cap screw.

Look at the three plateau pairs in the key column. Both M16 and M18 each has a 14 mm key; both M20 and M22 each have 17 mm; both M24 and M27 each have 19 mm.

Look at the thread head diameter on the table. If the head of the big screw is bigger than it, and your key fits, you’re probably one size up from the correct pair.

The reverse trap is at the lower end of the table. M1.6 and M2 each have a 1.5 mm key, they share a key, but differ by their thread.

These are the ISO 4762 / DIN 912 socket cap screws with coarse thread (standard head). Socket cap screws of other heads like button head, set screws, low head, etc., or countersunk flat head of the same thread require smaller keys. See metric variants table below for those.

For fine pitch sockets, the same socket can be used as for coarse thread versions, so the pitch column doesn’t apply, though the key column still does.

There are two useful warnings. Plated and/or worn out sockets will fit loosely or tightly. The socket may be slightly oversized as allowed by ISO. Paint or zinc plating in the socket can also prevent the key from engaging properly, so it never bottoms out. So clean the socket before you conclude the key just doesn't work.

Secondly, you must always bottom a key out into place before tightening. Usually, cap screws is class 12.9. These have seating torques that will round off a partially engaged socket well before the screw gives. You should of checked the fit first.

Imperial Hex Key Sizes for Socket Head Cap Screws, #0 to 2 in (ASME B18.3)

Diagram of an inch socket head cap screw showing screw size, basic diameter, threads per inch, hex key size and its decimal equivalent
What each column means, shown on an inch socket head cap screw: the hex key size J is the nominal socket width across flats from ASME B18.3.
Imperial Hex Key Sizes for Socket Head Cap Screws, #0 to 2 in (ASME B18.3)
Screw sizeBasic diameter (in)Threads per inch (UNC / UNF)Hex key size (in)Key size (in, decimal)
#0 0.060- / 800.0500.050
#1 0.07364 / 721/160.0625
#2 0.08656 / 645/640.0781
#3 0.09948 / 565/640.0781
#4 0.11240 / 483/320.0938
#5 0.12540 / 443/320.0938
#6 0.13832 / 407/640.1094
#8 0.16432 / 369/640.1406
#10 0.19024 / 325/320.1563
#12 0.21624 / 285/320.1563
1/4 0.25020 / 283/160.1875
5/16 0.312518 / 241/40.2500
3/8 0.37516 / 245/160.3125
7/16 0.437514 / 203/80.3750
1/2 0.50013 / 203/80.3750
9/16 0.562512 / 187/160.4375
5/8 0.62511 / 181/20.5000
3/4 0.75010 / 165/80.6250
7/8 0.8759 / 143/40.7500
1 1.0008 / 123/40.7500
1-1/8 1.1257 / 127/80.8750
1-1/4 1.2507 / 127/80.8750
1-3/8 1.3756 / 1211.0000
1-1/2 1.5006 / 1211.0000
1-3/4 1.7505 / -1-1/41.2500
2 2.0004-1/2 / -1-1/21.5000

Socket sizes J per ASME B18.3 Table 1. The standard continues to 4 in diameter (2-1/4 in takes a 1-3/4 key, 3 in takes 2-1/4, 4 in takes 3); above 1 in key size ASME recommends hex bits over L-keys.

In the first column, look up the screw size. Go down and read the Hex key size column to find the Allen key for that size of socket head cap screw.

Small machine screw gauges runs #0 to #12 numbers. Fractional diameters starts at 1/4 in and get larger.

By looking at the number gauges, you can use the Basic diameter column and your calipers to identify an unknown screw. A #8 gauge have a shank measuring about 0.164 in. A 9/64 key will fit it.

Fine and coarse thread pitches for a given diameter is listed under TPI (threads per inch). Fine and coarse pitch use the same socket, so do they for a key. A 3/16" key fit a 1/4-20 and a 1/4-28 cap screw.

The key size is the same measurement as a decimal number. This comes into play if you're using a caliper or comparing to a metric key. It will spell out the three-number keys as well. For example, #0 is 0.050 in, a common size in most inch L-key sets.

See those same keys? That’s number two and three; they’re 5/64. Four and five is also 3/32. Ten and twelve is both 5/32. Seven-sixteenths and 1/2 are each 3/8. Seven-eighths and one inch are the same: They’ll take a 3/4 key.

The most frequent error we see in shops is where people gets confused between 1/2 and 7/16. They both use a 3/8 key. Before you order another one, check the shank or head first.

The classic imperial trap is grabbing the wrong nearly-fitting metric key. A 4 mm key slips into a 5/32 socket. A 5 mm key slips into a 3/16 socket. If you tighten them to cap screw torque, both will rounds the corners.

That’s fine if you want to use one or the other, but what about the others? Which near-misses realy work? Which are hazards that could strip the head? The bottom of the page list those.

If none of your keys fit a supposedly imperial screw, the machine might not be imperial at all. Global manufacurers’ post-1990s gear generally are.)

This table is for standard head socket cap screws per ASME B18.3. Smaller keys is used for button head and flat countersunk head screws, as well as set screws of equal nominal size. The imperial version are found in the table below.

A low head cap screw employs a correspondingly reduced socket. They is usually one or two sizes smaller. They will not interchange with this column even though they has the same thread.

Metric Hex Keys for Button Head, Flat Head and Set Screws (ISO 7380, ISO 10642, ISO 4029)

Diagram of four metric screw head styles side by side, cap head, button head, flat countersunk head and set screw, each labelled with its hex key size for an M8 thread
The four head styles compared on one M8 thread: the cap head takes a 6 mm key while button and flat heads take 5 mm and the set screw takes 4 mm.
Metric Hex Keys for Button Head, Flat Head and Set Screws (ISO 7380, ISO 10642, ISO 4029)
Thread sizeCap head key (mm)Button head key (mm)Flat head key (mm)Set screw key (mm)
M1.6 1.5--0.7
M2 1.5--0.9
M2.5 2--1.3
M3 2.5221.5
M4 32.52.52
M5 4332.5
M6 5443
M8 6554
M10 8665
M12 10886
M14 12-10-
M16 1410108
M18 14---
M20 17-1210
M22 17---
M24 19-1412

Blank cells: no ISO-standard head of that style at that thread. Button heads per ISO 7380-1 run M3 to M16; flat heads per ISO 10642 / DIN 7991 run M3 to M24 (M18 and M22 are rare DIN specials, measure before buying keys); set screws per ISO 4029 / DIN 916 run M1.6 to M24.

Starting at the top, scan down until you find your thread size in the leftmost column, then move across to the column corresponding to the head style of what you have in hand. If it’s a cap head screw, look for the ISO 4762 value in the Cap head key column. This number matches the ISO 4762 from the first table; thus, if you want to quicky reference the offsets, just start there instead.

For a flat head or button head, use a key that’s a size smaller than the matching cap screw size (down to two sizes smaller). For a set screw, use an even-smaller key. You can see the variation in this example: An M8 screw has a 6 mm key for the cap head, a 5 mm key for the flat and button heads, and a 4 mm key for the set screw.

For Socket Screws, the Button head Key Section is for dome-topped screws that meet ISO 7380-1 and 7380-2, including the flange type with the same socket. For the Flat head key section it's 90-degree countersunk screws to DIN 7991 or ISO 10642.

For both the button and flat head keys, the socket sizes match on M3 up to M12. Beyond that, they split apart. There's an M14 flat head screw with a 10 mm key, but there isn't an M14 button head defined by ISO 7380.

The key section for set screws is for headless grub screw per DIN 913 to 916 and ISO 4026 to 4029. The single socket size applies to cup point, flat point, cone point, and dog point all alike.

Now here’s why:

Button heads are stripped by people who think that the cap head key will work. It doesn’t because the socket is actualy smaller.

So often you force on the next smaller size because it’s loose. Flat head and button heads has even shallower sockets which provide less grip for keys than cap heads do. Those styles strip at much lower torques.

Push it all the way down and really turn it hard. Don’t rely on the cap screw torque tables for flat or button heads. They’re rated to about half the seating torque of an equivalent-sized cap screw.

The third type has the smallest and deepest sockets relative to the thread. They are called Set Screw Sockets. Below M3, they’re tiny. They range from 0.7 mm up to 1.3 mm. They are only available as part of precision key set.

Jam a 1.5 mm key into an M2.5 set screw and you’ll ruin it on the spot. Notice how imperial habits gets mixed up at the high end. An M10 set screw requires a 5 mm key. A nearly identical diameter 3/8 inch imperial set screw has a 3/16 inch key. That’s equal to 4.76 mm. It will show up sometimes; other times you can only feel the differance.

Empty cells in the table? Those indicate combinations defined by neither DIN nor ISO standards. An M18 button head screw, for instance, is a custom part from the manufacturer. Don’t guess at its socket; you'll have to measure it.

Another type includes low head cap screws per DIN 7984 and DIN 6912. These have shrunken sockets too, but they aren’t covered here. You should of checked the moddern standards.

Imperial Hex Keys for Button Head, Flat Head and Set Screws, #0 to 2 in (ASME B18.3)

Diagram of four inch series screw head styles side by side, cap head, button head, flat countersunk head and set screw, each labelled with its hex key size for a 3/8-16 thread
The four head styles compared on one 3/8-16 thread: the cap head takes a 5/16 key, button and flat heads take 7/32 and the set screw takes 3/16.
Imperial Hex Keys for Button Head, Flat Head and Set Screws, #0 to 2 in (ASME B18.3)
Screw sizeCap head key (in)Button head key (in)Flat head key (in)Set screw key (in)
#0 0.0500.0350.0350.028
#1 1/160.0500.0500.035
#2 5/640.0500.0500.035
#3 5/641/161/160.050
#4 3/321/161/160.050
#5 3/325/645/641/16
#6 7/645/645/641/16
#8 9/643/323/325/64
#10 5/321/81/83/32
#12 5/32-1/8-
1/4 3/165/325/321/8
5/16 1/43/163/165/32
3/8 5/167/327/323/16
7/16 3/81/41/47/32
1/2 3/85/165/161/4
9/16 7/16---
5/8 1/23/83/85/16
3/4 5/87/161/23/8
7/8 3/4-9/161/2
1 3/4-5/89/16
1-1/8 7/8-3/49/16
1-1/4 7/8-7/85/8
1-3/8 1-7/85/8
1-1/2 1-13/4
1-3/4 1-1/4--1
2 1-1/2--1

Blank cells mean ASME B18.3 does not define that head style at that size. Button heads run #0 to 3/4 in; flat heads #0 to 1-1/2 in; set screws #0 to 2 in. Three-number keys 0.028, 0.035 and 0.050 are standard B18.3 key sizes.

The first column tells you the screw size; the next columns is for the head style you're driving, and the key columns provide the key size which reveals the offset relative to the cap head. You see that the standard socket head key repeat from the imperial table above.

For example, the button or flat head take a smaller key than the cap head of the same size. Set screws takes an even smaller key on the same size thread. These sizes is 3/16 for the set screw, 7/32 for the button or flat head, and 5/16 for the cap head on a 3/8-16 thread.

Sizes of Button head key and Flat head key is the same from #0 through 5/8 in., then split at 3/4 in. On that size, the button head require a 7/16 key; the flat head a 1/2 key.

For sizes larger than 3/4 in., there are no standard button heads; flat heads cease at 1-1/2 in. The values for set screw keys is taken from ASME B18.3 Table 14. These apply to all point styles. Cup, flat, oval, cone, or half dog head styles all has the same socket for a specific diameter.

Those numbers on the top of the table aren’t typos; they’re actualy keys available for purchase. According to ASME B18.3, 0.028, 0.035, and 0.050 in keys is real sizes that ship in inch precision sets.

The 0.028 key gets you a #0 set screw; the 0.035 key is shared between #1 and #2 set screw. This is the issue with metric near misses: a 0.9 mm key is 0.0354 in. It’ll sort of turn in a 0.035 socket, but it realy does matter at this size. Even a thousandth of slop tends to round off the corners. To keep the corners from rounding off, should of stick to a dedicated inch microset for your instrument needs.

There are two size-specific traps. On one hand, there is 3/8 flat head and button screws that need a 7/32 key, but many cheaper SAE sets skip this size. You then try to make one fit by forcing a sloppy 3/16 or 1/4 key, which is where those screws gets all mangled.

On the other hand, for set screws, the jumps for 7/8 in and up is odd sized too. They don't follow the cap screw progression, and from 7/8 in up, they jump in odd steps like 1/2, 9/16, and 5/8. Pattern match at your own risk; check with the table.

With these types of heads it’s all about torque discipline. The flat sockets and shallow button heads strips out easy and ASME warns that with short set screws the reduced socket depth can causes the key or socket to fail before reaching normal seating torque. Why? Because short screws further reduce the socket depth.

Next you reach for your socket driver and bit instead of the short arm L-key, which keeps the corners from rounding off. Use a new, sharp key; worn ones focus the load on the smallest point at the edge of the flats. What if a set screw doesn't come loose?

Metric vs Imperial Hex Key Near-Equivalents and Safe Substitutions

Diagram of a hex socket cross section comparing a metric key and its closest imperial key, showing width across flats, the difference between them and the corner contact that strips oversize sockets
How near-equivalents work, shown on one socket: both keys are measured across flats, and the difference column is the gap that decides whether the substitute grips the flats or rounds the corners.
Metric vs Imperial Hex Key Near-Equivalents and Safe Substitutions
Metric key (mm)Metric decimal (in)Closest imperial keyImperial decimal (in)Difference (in)Substitution verdict
1.5 0.05911/160.06250.0034No: 1.5 mm rattles in a 1/16 socket and 1/16 will not enter 1.5 mm
2 0.07875/640.07810.0006Near twin, works both ways
2.5 0.09843/320.09380.0047No: 3/32 strips a 2.5 mm socket
3 0.11817/640.10940.0087No: 7/64 far undersize, 1/8 is 0.0069 oversize
4 0.15755/320.15630.0012Close: 5/32 works in 4 mm sockets
5 0.19693/160.18750.0094No: 3/16 strips a 5 mm socket
5.5 0.21657/320.21880.0022Close: 5.5 mm works in 7/32 sockets
6 0.23621/40.25000.0138No: nothing imperial fits a 6 mm socket
7 0.27561/40.25000.0256No usable imperial match
8 0.31505/160.31250.0025Close: 5/16 works in 8 mm sockets
10 0.39373/80.37500.0187No: 3/8 strips a 10 mm socket
12 0.47247/160.43750.0349No usable imperial match
14 0.55129/160.56250.0113No: 14 mm too loose in a 9/16 socket
17 0.66935/80.62500.0443No usable imperial match
19 0.74803/40.75000.0020Near twin: 19 mm works in 3/4 sockets
22 0.86617/80.87500.0089No: 22 mm too loose in a 7/8 socket
24 0.944911.00000.0551No usable imperial match

Verdicts allow at most about 0.0025 in of slop, the point beyond which a hardened key visibly rounds socket corners at rated torque. A substitute must be smaller than the socket to enter it, so each verdict names the direction that physically fits.

Each metric hex key match its nearest imperial size on the table. Each row pairs a metric hex key with the closest imperial size, both expressed in decimal inches. From this you can determine exact amount of interference or space between the two sizes which appears in the Difference (in) column.

Before you assume you can make a substitution based on a small difference, be sure to check the Substitution verdict.

Because the direction make a difference, the socket needs to be equal to or larger than the key being inserted. For example, a 7/32 socket will hold a 5.5 mm key because it is 0.0022 inches smaller. But a 7/32 key will never go into a 5.5 mm socket at all.

There is four combinations that make sense day-to-day. A 5/32 bit fits into a 4 mm socket. A 5.5 mm bit fits into a 7/32 socket. A 5/64 bit and a 2 mm key is interchangeable in both directions because they are only six ten-thousandths apart. A 5/16 inch bit fits into an 8 mm socket.

You can expect to have roughly two to two and a half thousandths of slop in certain pairing. That’s fine for light seating and removal but not repeated torquing of Grade 8 or class 12.9 screws.

Using a 19 mm bit in a 3/4 socket is as big as you should of go. The difference between the two is only two thousandths, which is why you see 3/4 bits turning up in metric truck tool kits.

And of course, the well-known evil twin pairs live up to their reputations. 4 mm in a 5/32 socket and 3/16 in a 5 mm socket appear to match, yet shear off the corner. The 4 mm is twelve ten-thousandths smaller then the 5/32, and the 3/16 is nine and a half thousandths smaller then the 5 mm. Both sound small until you realize that with force on the key, it just twists and touches the sides only where the corners was, and peens them over.

It is even worse with 3/8 versus 10 mm and 1/4 versus 6 mm. The difference is thirteen thousandths or more, and it is near certain to strip. As a last-ditch rescue operation, you can sometimes tap a next-smaller-diameter key into a partly rounded socket. This is not a correct substitution; it's an extraction trick.

Other metric sizes don’t have an imperial cousin at all. For example, the 7, 12, 17 and 24 mm keys is located between imperial keys. They are sandwiched between imperial keys on either side.

That’s where you can use this as a quick diagnostic test. If your imperial set skips from loose to will-not-enter, that’s probably metric because there’s a gap in the size. And the opposite is also true.

Inch keys with three numbers like 0.028, 0.035, and 0.050 has no metric doubles either (same with imperial 7/64, 9/64, and 7/16). A half thousandth is a big fraction of the flat width at such small sizes.

If you need to replace a key, apply this rule: Always put the stand-in key into the socket, never the other way around. Maximum slop is 0.0025 inches or less. Use this only for taking things apart at low torque levels.

Purchase the right keys to tighten parts to the correct torque. A hex key is cheaper than all the tools, drills-outs and new fasteners required for removing a rounded socket.

References

  1. ASME B18.3-2012 revision pages: set screw Table 14, hex key Table 17, socket Table 18 (PDF) - Camtech Industries
  2. ASME B18.3-2003 set screw Table 5A and hex key Table 8 cross-check (PDF) - Camtech Industries
  3. ANSI ASME B18.3 hex socket head cap screw specifications #0 to 4 in - Fuller Fasteners
  4. ANSI ASME B18.3 button socket head cap screw specifications - Fuller Fasteners
  5. ANSI ASME B18.3 flat socket head cap screw specifications - Fuller Fasteners
  6. DIN 912 hex socket head cap screw specifications M1.6 to M64 - Fuller Fasteners
  7. ISO 10642 hex socket countersunk head screw specifications - Fuller Fasteners
  8. ISO 4762 hexagon socket head cap screws M1.6 to M64 - Fasteners.eu
  9. ISO 7380 hexagon socket button head screws - Fasteners.eu
  10. DIN 7991 / ISO 10642 hexagon socket countersunk head screws - Fasteners.eu
  11. DIN 916 / ISO 4029 hexagon socket set screws - Fasteners.eu
  12. ISO 4762 socket head cap screw dimensions - Torqbolt
  13. Socket head cap screw key size chart, inch and metric including M18 to M36 - Wiha Tools
  14. Socket screw torque and hex key size reference, inch and metric - Eugene Fastener
  15. Unbrako Socket Products Engineering Guide: inch and metric cap, flat, button and set screw tables (PDF) - Unbrako
  16. Metric ISO 7380 button head socket cap screw specification (PDF) - Aspen Fasteners
  17. Metric DIN 7991 flat countersunk head socket screw specification (PDF) - Aspen Fasteners
  18. DIN 912 / BS 4168 / ISO 4762 socket head cap screw datasheet with M18, M22, M27 (PDF) - TR Fastenings via Farnell
  19. Allen wrench sizes, dimensions and hex key conversion chart - AFT Fasteners
  20. Socket cap screw dimensions and mechanical properties, button and flat head tables - AFT Fasteners

These tables are provided for general reference only. Always verify the values against the governing standard, your supplier's documentation or a qualified engineer before relying on them for your industrial use case, especially in safety-critical work.