Skip to content

Keyway size chart: ANSI B17.1 and DIN 6885 key, shaft and hub keyseat by shaft diameter

Updated on 21 November 2026

A parallel key locks a sprocket, gear or pulley to its shaft. Its size comes from the shaft diameter, and the standard gives each range a key section, a keyseat depth in the shaft and a keyseat depth in the hub. This chart has the ANSI B17.1 sizes for inch shafts, with the hub dimension T you check on the part, and the DIN 6885 sizes for metric shafts.

The sprocket generator and the spur gear generator cut the bore with the keyseat at the standard size, and also hexagon, square and D bores, bolt circles and lightening windows, in the DXF for laser, plasma or waterjet.

ANSI B17.1 keyway sizes (square keys, inch shafts)

Each range runs from over the first size up to and including the second: a 1-1/4" shaft takes a 1/4" key, and a 1-5/16" shaft a 5/16" key. Square keys, the standard choice up to 6-1/2".

Shaft D (in)Square key (in)Key (mm)
5/16 to 7/163/322.38
7/16 to 9/161/83.18
9/16 to 7/83/164.76
7/8 to 1-1/41/46.35
1-1/4 to 1-3/85/167.94
1-3/8 to 1-3/43/89.53
1-3/4 to 2-1/41/212.70
2-1/4 to 2-3/45/815.88
2-3/4 to 3-1/43/419.05
3-1/4 to 3-3/47/822.23
3-3/4 to 4-1/2125.40
4-1/2 to 5-1/21-1/431.75
5-1/2 to 6-1/21-1/238.10

Hub keyseat depth T

The hub keyseat is checked across the bore, from the opposite side of the bore to the bottom of the keyseat. B17.1 gives it by formula, from the chordal height of the keyseat:

Chordal height
Y = (D − √(D² − W²)) / 2 W is the key width: how far the bore circle rises between the two walls of the keyseat.
Hub keyseat, across the bore
T = D − Y + H/2 + C H = W on a square key; C = +0.005" for a parallel key.
Shaft keyseat, across the shaft
S = D − Y − H/2
Shaft (in)Key (in)Hub T (in)Hub T (mm)
1/21/80.56014.21
5/83/160.70918.02
3/43/160.83721.26
7/83/160.96424.48
11/41.11428.30
1-1/81/41.24131.52
1-1/41/41.36734.73
1-3/85/161.51838.56
1-1/23/81.66942.38
1-3/43/81.92248.82
21/22.22356.47
2-1/41/22.47762.91
2-1/25/82.77870.56
33/43.33284.64
3-1/27/83.88798.73
414.441112.81

DIN 6885 keyway sizes (parallel keys, metric shafts)

The metric standard gives the key b × h and the two depths directly: t1 in the shaft and t2 in the hub. The hub is checked as d + t2 across the bore: a 25 mm shaft takes an 8 × 7 key and a hub keyseat 8 mm wide at 28.3 mm.

Shaft d (mm)Key b × hShaft t1Hub t2
6 to 82 × 21.21.0
8 to 103 × 31.81.4
10 to 124 × 42.51.8
12 to 175 × 53.02.3
17 to 226 × 63.52.8
22 to 308 × 74.03.3
30 to 3810 × 85.03.3
38 to 4412 × 85.03.3
44 to 5014 × 95.53.8
50 to 5816 × 106.04.3
58 to 6518 × 117.04.4
65 to 7520 × 127.54.9
75 to 8522 × 149.05.4
85 to 9525 × 149.05.4
95 to 11028 × 1610.06.4
110 to 13032 × 1811.07.4
130 to 15036 × 2012.08.4
150 to 17040 × 2213.09.4
170 to 20045 × 2515.010.4
200 to 23050 × 2817.011.4
230 to 26056 × 3220.012.4

t1 + t2 is a little more than the key height h on purpose: the back clearance lets the key bear on the keyseat walls, not on the bottom.

A sprocket or gear with the keyseat cut

In the generator, the bore shape sits under "Bore, mounting holes and lightening": pick the ANSI B17.1 keyway for an inch shaft or DIN 6885 for a metric one, and the keyseat comes out at the chart size for the bore, at the top, on the vertical axis of the drawing. The result notes give the key, the keyseat width and the dimension across the bore.

Open a 40 sprocket, 20 teeth, with the ANSI keyway for a 1" shaft: 1/4" square key, keyseat 1/4" wide at T = 1.114".

A laser or plasma cut does not hold the fit of a key, which is in thousandths. Cut the keyseat and try the key before assembly; on plasma, cut the bore undersize and finish the bore and keyseat by machining.

Frequently asked questions

What size key for a 1 inch shaft?
A 1/4" square key, by ANSI B17.1 (shafts over 7/8" up to 1-1/4"). The hub keyseat is 1/4" wide and measures T = 1.114" from the opposite side of the bore to the bottom of the keyseat.
How deep is a keyway in the hub?
Half the key height above the bore at the keyseat wall, plus a 0.005" allowance on a parallel key. It is checked across the bore as T = D − Y + H/2 + C: 1.114" on a 1" bore with a 1/4" key.
What are t1 and t2 in a DIN 6885 keyway chart?
t1 is the keyseat depth in the shaft and t2 in the hub. Drawings dimension the shaft as d − t1 and the hub as d + t2, both across the diameter.
Can you laser cut a keyway?
Yes: the sprocket and spur gear generators cut the bore with the keyseat at the standard size. A thermal cut does not hold a key fit, so try the key and dress the keyseat with a file or a broach.

Parts in this guide

Other guides