Allen Bolt Size Chart: Metric & Inch Socket Head Cap Screw Dimensions

Five-axis laser cutting of a curved metal shell — concept illustration

3D Laser Cutting for Metal Parts: Process, Parameters & Design Guide

2026-11-09
Five-axis laser cutting of a curved metal shell — concept illustration

3D Laser Cutting for Metal Parts: Process, Parameters & Design Guide

2026-11-09
Show all

Dimension symbols for a standard socket head cap screw. Schematic, not to scale.

MILEMETAL · FASTENER & MACHINED PART DESIGN

Allen Bolt Size Chart: Metric & Inch Socket Head Cap Screw Dimensions

The size stamped on an Allen key is not the size of the screw. A standard M6 socket head cap screw takes a 5 mm hex key; an M8 takes a 6 mm key. Keeping those two measurements separate is the first step toward choosing the right fastener.

This guide brings together common metric and inch socket head cap screw dimensions, then explains how to use them when measuring a sample, designing a counterbore or preparing a purchase specification.

Quick lookup—standard cylindrical socket heads: M4 → 3 mm key; M5 → 4 mm; M6 → 5 mm; M8 → 6 mm; M10 → 8 mm; M12 → 10 mm. These pairings do not automatically apply to button heads, countersunk screws, low heads or set screws.

Jump to: Metric chart · Inch chart · Measuring a screw · Head types · Hole design · Torque · FAQs

Cylindrical socket head cap screws and hex keys arranged on a workbench — concept illustration
Cylindrical socket head cap screws and hex keys arranged on a workbench. Concept illustration for reference only.

Metric Allen bolt size chart

The table covers common coarse-thread, cylindrical socket head cap screws associated with ISO 4762 and DIN 912. All measurements are in millimeters. Head dimensions are reference maximums for the plain cylindrical head; the hex-key column gives the nominal tool size, not a manufacturing tolerance for the socket.

Thread dCoarse pitch P (mm)Plain head diameter dk, max (mm)Head height k, max (mm)Hex key s (mm)
M20.43.821.5
M2.50.454.52.52
M30.55.532.5
M40.7743
M50.88.554
M611065
M81.251386
M101.516108
M121.75181210
M142211412
M162241614
M202.5302017
M243362419

Before using these figures for a drawing: check the purchased fastener’s standard, revision and manufacturer drawing. Knurling can increase the head envelope, and special or reduced-head designs can differ. This abbreviated chart omits tolerances, socket depth, fillets and other details needed to manufacture or inspect a screw.

Reading an M8 × 1.25 × 30 callout

M8 identifies an 8 mm nominal thread diameter. 1.25 is the thread pitch—the axial distance between adjacent thread crests. 30 is the nominal length under the head. For the standard cylindrical head in the chart, the corresponding key is 6 mm, the plain head diameter is up to 13 mm and the head height is up to 8 mm.

A drawing may shorten a coarse-thread callout to M8 × 30. Writing the pitch explicitly is helpful when different thread series are used in the same assembly. Fine-thread fasteners need their own specification; do not assume every M8 screw has a 1.25 mm pitch.

Inch Allen bolt size chart

The following reference dimensions cover common inch-series cylindrical socket head cap screws. Diameters and heights are in inches; UNC and UNF columns show threads per inch (TPI). The head figures are catalog maximums shown to three decimal places, while the key size is the nominal fractional tool size.

SizeNominal diameter (in)UNC (TPI)UNF (TPI)Head diameter, max (in)Head height, max (in)Hex key (in)
#40.11240480.1830.1123/32
#60.13832400.2260.1387/64
#80.16432360.2700.1649/64
#100.19024320.3120.1905/32
1/40.25020280.3750.2503/16
5/160.312518240.4690.3121/4
3/80.37516240.5620.3755/16
7/160.437514200.6560.4373/8
1/20.50013200.7500.5003/8
5/80.62511180.9380.6251/2
3/40.75010161.1250.7505/8

Use the applicable ASME B18.3 specification and the selected product drawing for full dimensional requirements. The chart is not for flat heads, button heads or shoulder screws.

Reading a 1/4-20 × 1 callout

The nominal thread diameter is 1/4 inch, the thread has 20 crests per inch, and the under-head length is 1 inch. In this standard head style, the hex key is 3/16 inch. A 1/4-28 screw has the same nominal diameter but a different pitch, so it will not fit a 1/4-20 tapped hole correctly.

Conversion is not interchangeability. One inch equals exactly 25.4 mm. A 1/4-inch thread therefore has a nominal diameter of 6.35 mm, not 6 mm. For 20 TPI, pitch = 25.4 ÷ 20 = 1.27 mm. Neither dimension matches M6 × 1.0.
Socket head cap screw diagram showing thread diameter d, head diameter dk, head height k, length L and hex key size s
Dimension symbols for a cylindrical socket head cap screw. Schematic, not to scale.

How to measure an Allen bolt correctly

Start by cleaning the sample. Dirt inside the socket can stop a correct key from seating; a damaged thread can make an otherwise straightforward measurement misleading.

  1. Identify the head style. A tall cylindrical head, a domed button head and a conical flat head belong to different dimensional families.
  2. Measure the outside of the thread. Use calipers across the thread crests, rather than inside the hex socket. The measured value may sit slightly below the nominal diameter because of thread tolerances or wear.
  3. Check the pitch. Use a metric pitch gauge or an inch TPI gauge. Do not identify the thread by diameter alone.
  4. Measure the correct length. For a standard socket cap screw, measure from the bearing surface under the head to the end. For a conventional flat countersunk screw, nominal length includes the head.
  5. Check the key size and thread coverage. Seat an undamaged key fully, then record whether the screw is fully or partially threaded.
  6. Read the markings. Record the material or strength designation separately from dimensions. Appearance alone does not establish strength.

If a screw resists turning into a known mating thread by hand, stop and check it. Forcing a nearly matching metric or inch thread can damage both parts before the mismatch becomes obvious.

Socket head cap screw with caliper and thread pitch gauge on an inspection bench — concept illustration
Socket head cap screw with caliper and thread pitch gauge on an inspection bench. Concept illustration for reference only.

“Allen bolt” describes a drive, not one head shape

People often use Allen bolt, hex socket screw and socket screw interchangeably. That works in casual conversation, but it is not enough information for purchasing or machining a recess.

Head or screw styleCommon referenceWhere it fitsDetail to confirm
Cylindrical socket head cap screwISO 4762; inch ASME B18.3Assemblies with room for the taller head or a counterboreHead envelope, key access and under-head fillet
Button headISO 7380-1 for a common metric typeA low, rounded exposed headIts own key size and loadability; do not reuse the cap-head chart
Flat countersunk headISO 10642 for a common metric typeA head seated in a matching conical recessCountersink angle, seating diameter and overall length
Low headDIN 7984 or a specified product designRestricted height above the jointSocket engagement and the product’s load limitations
Socket set screwStandard depends on point formPositioning or retaining a component without a conventional headPoint geometry, key size and contact conditions

A shorter head is not a free substitution for a taller one. The head and socket geometry affect tool engagement and load capacity. Choose a replacement by its full specification, rather than by matching the thread and finding a key that fits.

Cylindrical, button and countersunk hex socket screw head styles — concept illustration
Cylindrical, button and countersunk hex socket screw head styles. Concept illustration for reference only.

Designing the clearance hole, tapped hole and counterbore

These three features do different jobs. A clearance hole lets the screw pass through the first component. A tapped hole provides the mating thread. A counterbore creates a flat-bottomed recess for the cylindrical head. Confusing them can leave an otherwise accurate part impossible to assemble.

FeatureWhat determines its size?Common mistake
Clearance holeScrew diameter, required clearance series, positional tolerances and assembly methodUsing the nominal screw diameter as the finished clearance-hole size
Tap-drill holeThread size, material, thread engagement and cutting versus forming tapTreating a tap-drill estimate as the finished internal thread specification
Counterbore diameterMaximum actual head envelope plus assembly and tool clearanceMaking the recess exactly equal to the chart’s plain-head diameter
Counterbore depthHead height, desired recess, washer if present and remaining wall thicknessReducing the remaining material without checking the joint load path
Blind tapped-hole depthRequired usable thread, drill point, tap lead and screw-end clearanceAllowing the screw to bottom out before the parts clamp together

A practical length calculation

Suppose a standard cap screw passes through a 6 mm plate and a 1.6 mm washer, then needs 12 mm of usable engagement in the mating part. The geometric total is 6 + 1.6 + 12 = 19.6 mm. A nominal 20 mm screw is a candidate, but it is not yet an approved selection: confirm the tolerance stack, usable thread depth, screw-end clearance and any unthreaded shank.

The 12 mm engagement in this example is an assumed design requirement, not a universal rule. The necessary engagement depends on the fastener, internal-thread material and joint load. Aluminum housings and steel blocks may need different solutions even when they use the same screw.

Coordinate fasteners with the machined part drawing

Call out the thread and recess independently. Specify the required internal thread tolerance, depth of usable thread, counterbore diameter and depth, and any positional requirement. If the part will be coated or anodized, identify how that finish affects the thread and seating surfaces.

For an assembly containing several similar screws, a short fastener schedule is worthwhile. It prevents an M6 button head from being substituted into a counterbore designed for a cylindrical cap head and makes inspection more straightforward.

Socket head cap screws seated in counterbores in a machined aluminum bracket — concept illustration
Socket head cap screws seated in counterbores in a machined aluminum bracket. Concept illustration for reference only.

Why a size chart is not a universal torque chart

Two screws with the same dimensions can require different installation torque. Strength class, coating, lubricant, mating material, thread engagement and the required clamp load all influence the result. A dry assembly value should not be reused automatically after adding oil or anti-seize.

A simplified relationship, T ≈ K × F × d, is useful for explaining the sensitivity. T is torque in N·m, F is preload in newtons, d is nominal diameter in meters, and K is an empirical nut factor representing friction-related effects. It is not a substitute for an approved tightening specification.

Illustrative M8 calculationAssumed preload FAssumed KCalculated T
Case A10,000 N0.1512 N·m
Case B10,000 N0.2016 N·m
Case C10,000 N0.2520 N·m

These are arithmetic examples, not recommended tightening torques. The same assumed preload gives different torque values as K changes. For production, use a specification validated for the actual fastener and joint, including the defined lubrication condition and tightening method.

What to include when ordering

“M8 Allen bolt” leaves several important choices unanswered. A useful purchasing description includes the head standard, thread diameter and pitch, length, material or strength class, finish, thread coverage and quantity. If traceability or inspection documents matter, request them at quotation rather than after delivery.

Example description: Cylindrical socket head cap screw, ISO 4762, M8 × 1.25 × 30 mm, property class and finish as specified on the approved bill of materials; thread coverage and inspection requirements to the purchasing drawing.

Standard hardware is generally the simplest starting point. A custom screw should solve a defined problem, such as an unusual shoulder, special length, restricted envelope or assembly feature. If a nonstandard component is needed, provide a drawing rather than asking a supplier to infer the design from a sample alone.

Frequently asked questions

What size Allen key fits an M6 bolt?

A standard cylindrical M6 socket head cap screw uses a 5 mm key. Check the head style first; other M6 socket screws can use a different key.

What size Allen key fits an M8 socket head cap screw?

The standard cylindrical-head type uses a 6 mm key. M8 describes the nominal thread diameter, not the tool size.

Does bolt length include the head?

For a standard cylindrical socket head cap screw, no: length is measured from under the head. A conventional flat countersunk screw is measured over its overall length, including the head.

Can a metric key replace an inch key?

Use the correct tool system and size. A nearly matching key may appear to fit but can concentrate force at the socket corners and damage the drive.

Are DIN 912 and ISO 4762 identical?

They are closely related references for cylindrical socket head cap screws, but should not be treated as universally identical purchasing specifications. Confirm the applicable standard and product drawing, especially for thread series, dimensions and available lengths.

Are all Allen bolts high-strength alloy steel?

No. The hex socket describes the drive. Material and mechanical properties must be identified separately from markings, documentation and the ordered specification.

Can I design a counterbore from the table alone?

The table is a starting point. Check the actual head envelope, clearance, recess depth, fillet and remaining material before releasing the part drawing.

Designing machined parts around socket screws?

Send MileMetal the component drawing and mating-fastener specification. Include tapped holes, counterbores, finishes and critical assembly dimensions so the enquiry can be reviewed as a complete part.

Discuss Your Machined Part

Related reading: Precision machined parts guide · OEM CNC machining enquiries