Key size is chosen from the shaft diameter. In inch (ANSI B17.1), a 1 in shaft takes a 1/4 × 1/4 in square key; in metric (DIN 6885-1), a 25 mm shaft takes an 8 × 7 mm key with a 4.0 mm shaft keyseat and a 3.3 mm hub keyway.
This chart lists the standard parallel key for each shaft diameter range, with the keyseat (shaft) and keyway (hub) depths. Read across from your shaft diameter: the shaft range is "over" the first value up to and including the second. The ANSI table gives square keys and the thinner rectangular (flat) keys; depths at the side wall are half the key height. The DIN table gives the depths t1 and t2 directly, measured from the shaft surface and bore surface at the side of the key. The calculator works out the exact dimensions to measure from the opposite side of the shaft or bore, which is how keyseats are usually checked with a micrometer or caliper. Woodruff key numbers are decoded at the end.
Keyseat depth calculator
Inch results use the ANSI B17.1 square key; C is the top clearance in the hub (0.005 in is typical for parallel keys).
ANSI B17.1 inch keys by shaft diameter
| Shaft diameter (over – to incl.) | Square key W × H | Square: depth at side, shaft and hub (H/2) | Rectangular key W × H | Rectangular: depth at side (H/2) |
|---|---|---|---|---|
| 5/16 – 7/16 | 3/32 × 3/32 | 3/64 (.0469) | square only | – |
| 7/16 – 9/16 | 1/8 × 1/8 | 1/16 (.0625) | 1/8 × 3/32 | 3/64 (.0469) |
| 9/16 – 7/8 | 3/16 × 3/16 | 3/32 (.0938) | 3/16 × 1/8 | 1/16 (.0625) |
| 7/8 – 1-1/4 | 1/4 × 1/4 | 1/8 (.1250) | 1/4 × 3/16 | 3/32 (.0938) |
| 1-1/4 – 1-3/8 | 5/16 × 5/16 | 5/32 (.1562) | 5/16 × 1/4 | 1/8 (.1250) |
| 1-3/8 – 1-3/4 | 3/8 × 3/8 | 3/16 (.1875) | 3/8 × 1/4 | 1/8 (.1250) |
| 1-3/4 – 2-1/4 | 1/2 × 1/2 | 1/4 (.2500) | 1/2 × 3/8 | 3/16 (.1875) |
| 2-1/4 – 2-3/4 | 5/8 × 5/8 | 5/16 (.3125) | 5/8 × 7/16 | 7/32 (.2188) |
| 2-3/4 – 3-1/4 | 3/4 × 3/4 | 3/8 (.3750) | 3/4 × 1/2 | 1/4 (.2500) |
| 3-1/4 – 3-3/4 | 7/8 × 7/8 | 7/16 (.4375) | 7/8 × 5/8 | 5/16 (.3125) |
| 3-3/4 – 4-1/2 | 1 × 1 | 1/2 (.5000) | 1 × 3/4 | 3/8 (.3750) |
| 4-1/2 – 5-1/2 | 1-1/4 × 1-1/4 | 5/8 (.6250) | 1-1/4 × 7/8 | 7/16 (.4375) |
| 5-1/2 – 6-1/2 | 1-1/2 × 1-1/2 | 3/4 (.7500) | 1-1/2 × 1 | 1/2 (.5000) |
| 6-1/2 – 7-1/2 | 1-3/4 × 1-3/4 | 7/8 (.8750) | 1-3/4 × 1-1/2 | 3/4 (.7500) |
| 7-1/2 – 9 | 2 × 2 | 1 (1.0000) | 2 × 1-1/2 | 3/4 (.7500) |
| 9 – 11 | 2-1/2 × 2-1/2 | 1-1/4 (1.2500) | 2-1/2 × 1-3/4 | 7/8 (.8750) |
| 11 – 13 | 3 × 3 | 1-1/2 (1.5000) | 3 × 2 | 1 (1.0000) |
| 13 – 15 | 3-1/2 × 3-1/2 | 1-3/4 (1.7500) | 3-1/2 × 2-1/2 | 1-1/4 (1.2500) |
Depths are nominal, measured at the side wall of the keyseat. The hub keyway is cut H/2 plus a small top clearance. Inch dimensions in brackets are decimals; mm values are × 25.4.
DIN 6885-1 (ISO 773) metric parallel keys
| Shaft d (mm) | Key b × h (mm) | Shaft depth t1 (mm) | Hub depth t2 (mm) | t1, t2 tolerance | Shaft: d − t1 | Hub: d + t2 |
|---|---|---|---|---|---|---|
| over 6 to 8 | 2 × 2 | 1.2 | 1.0 | +0.1 | d − 1.2 | d + 1.0 |
| over 8 to 10 | 3 × 3 | 1.8 | 1.4 | +0.1 | d − 1.8 | d + 1.4 |
| over 10 to 12 | 4 × 4 | 2.5 | 1.8 | +0.1 | d − 2.5 | d + 1.8 |
| over 12 to 17 | 5 × 5 | 3.0 | 2.3 | +0.1 | d − 3.0 | d + 2.3 |
| over 17 to 22 | 6 × 6 | 3.5 | 2.8 | +0.1 | d − 3.5 | d + 2.8 |
| over 22 to 30 | 8 × 7 | 4.0 | 3.3 | +0.2 | d − 4.0 | d + 3.3 |
| over 30 to 38 | 10 × 8 | 5.0 | 3.3 | +0.2 | d − 5.0 | d + 3.3 |
| over 38 to 44 | 12 × 8 | 5.0 | 3.3 | +0.2 | d − 5.0 | d + 3.3 |
| over 44 to 50 | 14 × 9 | 5.5 | 3.8 | +0.2 | d − 5.5 | d + 3.8 |
| over 50 to 58 | 16 × 10 | 6.0 | 4.3 | +0.2 | d − 6.0 | d + 4.3 |
| over 58 to 65 | 18 × 11 | 7.0 | 4.4 | +0.2 | d − 7.0 | d + 4.4 |
| over 65 to 75 | 20 × 12 | 7.5 | 4.9 | +0.2 | d − 7.5 | d + 4.9 |
| over 75 to 85 | 22 × 14 | 9.0 | 5.4 | +0.2 | d − 9.0 | d + 5.4 |
| over 85 to 95 | 25 × 14 | 9.0 | 5.4 | +0.2 | d − 9.0 | d + 5.4 |
| over 95 to 110 | 28 × 16 | 10.0 | 6.4 | +0.2 | d − 10.0 | d + 6.4 |
| over 110 to 130 | 32 × 18 | 11.0 | 7.4 | +0.2 | d − 11.0 | d + 7.4 |
| over 130 to 150 | 36 × 20 | 12.0 | 8.4 | +0.2 | d − 12.0 | d + 8.4 |
| over 150 to 170 | 40 × 22 | 13.0 | 9.4 | +0.2 | d − 13.0 | d + 9.4 |
| over 170 to 200 | 45 × 25 | 15.0 | 10.4 | +0.2 | d − 15.0 | d + 10.4 |
| over 200 to 230 | 50 × 28 | 17.0 | 11.4 | +0.2 | d − 17.0 | d + 11.4 |
Keyway width tolerances (ISO / DIN)
| Fit | Shaft keyway width | Hub keyway width | Use |
|---|---|---|---|
| Normal | N9 | JS9 | General use; key fitted firmly in the shaft, hub can be assembled by hand or light press |
| Tight (close) | P9 | P9 | Reversing or shock loads, no backlash |
| Free (sliding) | H9 | D10 | Hub slides along the key (feather key) |
The key itself is made to h9 on width and h11 on height (h9 for square keys). Standard DIN 6885 key lengths (mm): 6, 8, 10, 12, 14, 16, 18, 20, 22, 25, 28, 32, 36, 40, 45, 50, 56, 63, 70, 80, 90, 100, 110, 125, 140, 160, 180, 200, 220, 250. Use the ISO Tolerance Fit Calculator to turn N9, JS9 or P9 into limits in mm.
Woodruff keys (ANSI B17.2): reading the key number
A Woodruff key is a half-moon key that sits in a round-bottomed seat cut with a Woodruff cutter. Its number gives the size: the last two digits are the nominal diameter in eighths of an inch and the digits in front are the width in thirty-seconds. So a No. 405 key is 4/32 = 1/8 in wide on a 5/8 in diameter, and a No. 1210 is 3/8 in wide on a 1-1/4 in diameter. Key height and the seat depth for each number are tabulated in ANSI B17.2; check them there or in the cutter maker's catalogue before cutting.
| Key No. | Width | Nominal diameter |
|---|---|---|
| 204 | 1/16 in | 1/2 in |
| 304 | 3/32 in | 1/2 in |
| 305 | 3/32 in | 5/8 in |
| 404 | 1/8 in | 1/2 in |
| 405 | 1/8 in | 5/8 in |
| 406 | 1/8 in | 3/4 in |
| 505 | 5/32 in | 5/8 in |
| 506 | 5/32 in | 3/4 in |
| 507 | 5/32 in | 7/8 in |
| 606 | 3/16 in | 3/4 in |
| 607 | 3/16 in | 7/8 in |
| 608 | 3/16 in | 1 in |
| 609 | 3/16 in | 1-1/8 in |
| 807 | 1/4 in | 7/8 in |
| 808 | 1/4 in | 1 in |
| 809 | 1/4 in | 1-1/8 in |
| 810 | 1/4 in | 1-1/4 in |
| 811 | 1/4 in | 1-3/8 in |
| 812 | 1/4 in | 1-1/2 in |
| 1008 | 5/16 in | 1 in |
| 1009 | 5/16 in | 1-1/8 in |
| 1010 | 5/16 in | 1-1/4 in |
| 1011 | 5/16 in | 1-3/8 in |
| 1012 | 5/16 in | 1-1/2 in |
| 1210 | 3/8 in | 1-1/4 in |
| 1211 | 3/8 in | 1-3/8 in |
| 1212 | 3/8 in | 1-1/2 in |
How to use these charts
- Pick the key from the shaft diameter. If the hub is short or the torque is high, check the key length for shear and crushing; a common rule of thumb is a key length of about 1 to 1.5 × the shaft diameter.
- Cut the shaft keyseat with an end mill or keyseat cutter of the key width, to depth t1 (metric) or H/2 at the side (inch). Measure over the bottom of the keyseat to the far side of the shaft: that is d − t1, or S from the calculator.
- Cut the hub keyway by broaching, slotting or wire EDM to depth t2 (metric) or the T dimension (inch), measured from the far side of the bore.
Related calculators and charts
- DXF Part Maker: draw shafts, hubs and pulleys with keyways for laser, waterjet or CNC.
- ISO Tolerance Fit Calculator: limits for N9, JS9, P9 and shaft/hub fits.
- Shrink Fit Calculator and Press Fit Force Estimator: keyless shaft-hub joints.
- Raw Material Sizer: stock size for the shaft.
- AS568 O-Ring Size Chart, Center Drill Size Chart, Socket Head Cap Screw Reference and Wrench & Hex Key Size Guide.
Frequently asked questions
Sources: ANSI B17.1 (keys and keyseats) for inch key sizes and the S/T keyseat formulas, DIN 6885-1 / ISO R773 for metric parallel keys and depths, ANSI B17.2 for the Woodruff key numbering. Keys above 15 in (inch) and 230 mm (metric) shafts are not listed. Always check critical values against the current standard or the key manufacturer.