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/16 | 3/32 | 2.38 |
| 7/16 to 9/16 | 1/8 | 3.18 |
| 9/16 to 7/8 | 3/16 | 4.76 |
| 7/8 to 1-1/4 | 1/4 | 6.35 |
| 1-1/4 to 1-3/8 | 5/16 | 7.94 |
| 1-3/8 to 1-3/4 | 3/8 | 9.53 |
| 1-3/4 to 2-1/4 | 1/2 | 12.70 |
| 2-1/4 to 2-3/4 | 5/8 | 15.88 |
| 2-3/4 to 3-1/4 | 3/4 | 19.05 |
| 3-1/4 to 3-3/4 | 7/8 | 22.23 |
| 3-3/4 to 4-1/2 | 1 | 25.40 |
| 4-1/2 to 5-1/2 | 1-1/4 | 31.75 |
| 5-1/2 to 6-1/2 | 1-1/2 | 38.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²)) / 2W 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 + CH = 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/2 | 1/8 | 0.560 | 14.21 |
| 5/8 | 3/16 | 0.709 | 18.02 |
| 3/4 | 3/16 | 0.837 | 21.26 |
| 7/8 | 3/16 | 0.964 | 24.48 |
| 1 | 1/4 | 1.114 | 28.30 |
| 1-1/8 | 1/4 | 1.241 | 31.52 |
| 1-1/4 | 1/4 | 1.367 | 34.73 |
| 1-3/8 | 5/16 | 1.518 | 38.56 |
| 1-1/2 | 3/8 | 1.669 | 42.38 |
| 1-3/4 | 3/8 | 1.922 | 48.82 |
| 2 | 1/2 | 2.223 | 56.47 |
| 2-1/4 | 1/2 | 2.477 | 62.91 |
| 2-1/2 | 5/8 | 2.778 | 70.56 |
| 3 | 3/4 | 3.332 | 84.64 |
| 3-1/2 | 7/8 | 3.887 | 98.73 |
| 4 | 1 | 4.441 | 112.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 × h | Shaft t1 | Hub t2 |
|---|---|---|---|
| 6 to 8 | 2 × 2 | 1.2 | 1.0 |
| 8 to 10 | 3 × 3 | 1.8 | 1.4 |
| 10 to 12 | 4 × 4 | 2.5 | 1.8 |
| 12 to 17 | 5 × 5 | 3.0 | 2.3 |
| 17 to 22 | 6 × 6 | 3.5 | 2.8 |
| 22 to 30 | 8 × 7 | 4.0 | 3.3 |
| 30 to 38 | 10 × 8 | 5.0 | 3.3 |
| 38 to 44 | 12 × 8 | 5.0 | 3.3 |
| 44 to 50 | 14 × 9 | 5.5 | 3.8 |
| 50 to 58 | 16 × 10 | 6.0 | 4.3 |
| 58 to 65 | 18 × 11 | 7.0 | 4.4 |
| 65 to 75 | 20 × 12 | 7.5 | 4.9 |
| 75 to 85 | 22 × 14 | 9.0 | 5.4 |
| 85 to 95 | 25 × 14 | 9.0 | 5.4 |
| 95 to 110 | 28 × 16 | 10.0 | 6.4 |
| 110 to 130 | 32 × 18 | 11.0 | 7.4 |
| 130 to 150 | 36 × 20 | 12.0 | 8.4 |
| 150 to 170 | 40 × 22 | 13.0 | 9.4 |
| 170 to 200 | 45 × 25 | 15.0 | 10.4 |
| 200 to 230 | 50 × 28 | 17.0 | 11.4 |
| 230 to 260 | 56 × 32 | 20.0 | 12.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
- How to develop a cone (frustum) in sheet metal: formula, sector radii and angle, step by step
- Lobster back bend calculator (segmented 90° elbow): gore angles, cut heights and how many plates
- Pipe saddle calculator and development: how to lay out a pipe-to-pipe branch (tee) at 90 and 45 degrees
- Square to round transition: development by triangulation, step by step
- Bend allowance and K-factor calculator, and the neutral axis: why every development uses D − t
- Sheet metal glossary: the terms of marking out and pattern development in plate fabrication
- How we check the Planichapa calculations, and who is behind them
- LITIO alternative: Planichapa develops sheet metal parts in the browser, nothing to install, now that LITIO2 is no longer sold
- How to lay out a miter-cut pipe: paper template, sine wave and ordinate table
- Plate 'n' Sheet alternative: Planichapa develops sheet metal parts in the browser, with the price on the page
- Pipe ovality: a calculator, the formula, a worked example, the limits the codes use and how to measure it in the shop
- Steel plate and sheet metal weight calculator: weight per m² and ft², gauges and stock plate sizes
- MS plate weight chart: kg per square meter, per sq ft and per plate, 1.6 to 50 mm
- MS angle weight chart: kg per meter of equal and unequal angles (IS 808)
- MS pipe size and weight chart: IS 1239 light, medium and heavy, 15 to 150 NB
- Sheet metal gauge chart: gauge to inches and mm for steel, galvanized, stainless and aluminum
- Pipe offset calculator: rolling offsets, travel, run, take-out and pipe cut length
- Baluster spacing calculator: equal gaps for railings, gates and fences
- Cut list calculator for steel bars: tube, angle and flat bar from 20 ft or 6 m sticks
- Arc radius calculator: radius from chord and rise (sagitta), arc length and layout heights
- Right triangle calculator for fabrication: diagonal, squareness, angle and slope
- Taper calculator: taper angle, half angle, taper per foot and ratio
- Sheet metal pattern development software: how to choose, and what changes between a desktop program, a phone app and an online calculator
- Eccentric and concentric reducers: which one to use and how each one develops on plate
- Roller chain size chart: ANSI, ISO 606, motorcycle and bicycle chain pitch and roller diameter
- Sprocket dimensions: pitch diameter, outside and root diameter, tooth form and a pitch diameter chart
- Bolt circle layout: the position of each hole, the chord between holes and a chord chart
- Chain length and sprocket ratio: the formulas, a worked example and how many links to cut
- Screw flight calculator: the flat blank of a screw conveyor flight (auger), with the formula and a worked example
- Plate rolling calculator: the blank length of a rolled shell, with the formula, a chart and a worked example
- Tube notching template generator: a printable coping template for any tube, angle and offset
- Dished head calculator: depth, volume, blank diameter and weight of torispherical, 2:1 elliptical and hemispherical heads
- Cone template generator: a printable full-size cone template for hoppers, funnels and reducers
- Pie cut calculator for exhaust and tube bends: saw angle, pie lengths and a wrap-around template
- Duct transition layout: square to round duct, centered, offset or flat on one side
- Pipe template, printable at full size: tee saddle, 45° lateral and miter cut for every pipe size from NPS 1/2 to 12
- Register boot layout: from a floor, wall or ceiling register to a round duct, in inches
- Plenum box and plenum transition layout: the sides, the end cap, the collar and the transitions
- Smoker stack and firebox templates: the cuts where pipe meets the cook chamber, in inches
- Laser and plasma cutting cost calculator: the formula, a worked example and how to measure the cut length
- Cutting a flat pattern DXF on your plasma or laser table: layers, kerf and lead-ins in SheetCAM, ProNest and FastCAM
- Tank volume calculator and strapping chart: horizontal and vertical tanks with 2:1, torispherical, hemispherical or flat heads
- Merge collector template generator: a printable cutting template for 2, 3, 4, 6 or 8 into 1
- Dome template generator: printable gores for a dome or a hemisphere in paper, EVA foam or sheet metal
- DIY cyclone dust collector plans: every sheet of the cyclone from the Stairmand proportions, for any duct size
- Cable tray bend: how to make vertical and horizontal 90 and 45 degree bends with a V notch
- How to build a steel stair: working out the steps, the sawtooth stringers and an L or U stair
- Fixed ladder requirements: OSHA rung spacing, the cage and the hoop bar length
- Welding amperage chart: 6011, 6013 and 7018 stick electrodes by size
- Commercial kitchen hood: the gauge, the overhang, the exhaust CFM, the duct and the layout
- Tap drill chart: tap drill sizes for metric, UNC, UNF, BSP and NPT
- Wood stove from sheet metal: the box, the stovepipe, the elbow, the tee, the cap and the roof flashing, with the code rules
- DIY centrifugal blower: size the impeller and the scroll from airflow and pressure