Milling: keyways, gear cutters and helices

November 3, 2026  ·  Indumor

What key fits a 40 mm shaft? A 12 × 8, cut 5 mm deep into the shaft and 3.3 mm into the hub. The answer comes from a German table of 1968, revised in 2021, DIN 6885. It is here in full, with Woodruff keys, the ANSI inch keys, gear cutter numbers, T-slots and the sums for helical milling.

DIN 6885 parallel keys: sizes by shaft diameter

Enter the table with the shaft diameter: each range has its section b × h, the keyseat depth t1 in the shaft and t2 in the hub. The two add up to slightly more than the key height; the difference, 0.2 to 0.5 mm, is the back clearance that makes the key carry on its flanks. On the drawing the shaft is dimensioned d − t1 and the hub d + t2, which is what a caliper measures: 35 and 43.3 for the 40 mm shaft.

keyshafthubbt1t2d − t1d + t2dlbhKey A 12 × 8 × 50 DIN 6885A: rounded ends, closed keyseatB: square ends, open keyseatt1 + t2 = h + back clearance (0.2 to 0.5 mm)
The keyseat is dimensioned on the drawing as d − t1 in the shaft and d + t2 in the hub. The key bottoms in the shaft keyseat and carries on its flanks; the back clearance is on top.
shaft dimension = d − t1   ·   hub dimension = d + t2   ·   t1 + t2 = h + 0.2 to 0.5 mm

d: shaft diameter (mm); t1, t2: table depths (mm); h: key height (mm). The dimensions d − t1 and d + t2 carry the t1 and t2 tolerance (minus on the shaft, plus on the hub).

Parallel keys and keyseats by shaft diameter, DIN 6885-1 (forms A and B)
Shaft d
over – to incl., mm
b × h
mm
t1 shaft
mm
t2 hub
mm
Tol. t1, t2
mm
r keyseat
min – max, mm
Length l
from – to, mm
6–82 × 21.21.0+0.10.08–0.166–20
8–103 × 31.81.4+0.10.08–0.166–36
10–124 × 42.51.8+0.10.08–0.168–45
12–175 × 53.02.3+0.10.16–0.2510–56
17–226 × 63.52.8+0.10.16–0.2514–70
22–308 × 74.03.3+0.20.16–0.2518–90
30–3810 × 85.03.3+0.20.25–0.4022–110
38–4412 × 85.03.3+0.20.25–0.4028–140
44–5014 × 95.53.8+0.20.25–0.4036–160
50–5816 × 106.04.3+0.20.25–0.4045–180
58–6518 × 117.04.4+0.20.25–0.4050–200
65–7520 × 127.54.9+0.20.40–0.6056–220
75–8522 × 149.05.4+0.20.40–0.6063–250
85–9525 × 149.05.4+0.20.40–0.6070–280
95–11028 × 1610.06.4+0.20.40–0.6080–320
110–13032 × 1811.07.4+0.20.40–0.6090–360
130–15036 × 2012.08.4+0.30.70–1.00100–400
150–17040 × 2213.09.4+0.30.70–1.00110–400
170–20045 × 2515.010.4+0.30.70–1.00125–400
200–23050 × 2817.011.4+0.30.70–1.00140–400
230–26056 × 3220.012.4+0.31.20–1.60160–400
260–29063 × 3220.012.4+0.31.20–1.60180–400
290–33070 × 3622.014.4+0.31.20–1.60200–400
330–38080 × 4025.015.4+0.32.00–2.50220–400
380–44090 × 4528.017.4+0.32.00–2.50250–400
440–500100 × 5031.019.5+0.32.00–2.50280–400

Standard 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, 280, 320, 360, 400. Key: width h9, height h9 up to 6 × 6 and h11 from 8 × 7 up; length −0.2 up to 28 mm, −0.3 from 32 to 80 and −0.5 from 90 to 400 (the keyseat, the same on the plus side). The radius r is the fillet at the bottom of the keyseat; the key carries a larger chamfer (0.16–0.25 on the small sizes up to 2.5–3 on the large ones), so it seats without riding on that fillet.

Width b is the dimension that matters, and there are three fits. Normal, N9 in the shaft and JS9 in the hub, is the everyday one: the key is tapped in and the hub slides on. Tight, P9 in both, is for reversing loads. In the sliding fit the key is screwed to the shaft and the hub travels along it in D10.

Fits on the keyseat width b, DIN 6885-1 and ISO 773
FitShaft keyseatHub keywayKeyWhen it is used
Tight (interference)P9P9h9Reversing loads, hubs that stay put
NormalN9JS9h9The usual fit: the key is tapped into the shaft, the hub slides on at assembly
Sliding (feather key)H9D10h9Key screwed to the shaft (forms C to H), hub travels along it

Keys are ordered by form, section and length: key A 12 × 8 × 50 DIN 6885. Form A has rounded ends and sits in a closed keyseat cut with an end mill; form B has square ends and goes in an open keyseat cut with a side-milling cutter. Thin keys to DIN 6885-3 (ISO 2491) are for thin-walled hubs.

One detail that ruins keyseats: measured with a depth gauge resting on the edge of the slot, the depth reads less than t1, because the edge sits lower than the crest of the shaft. On a 40 mm shaft with a 12 mm slot the difference is 0.92 mm, more than the whole tolerance.

f = d − √(d² − b²)2

f: how far the keyseat edge sits below the crest of the shaft (mm); d: shaft diameter (mm); b: keyseat width (mm). True depth = reading at the edge + f.

DIN 6885 key and keyseat by shaft diameter

Type the shaft diameter and read the key section, the depths and the drawing dimensions.

Woodruff keys: DIN 6888 and the ANSI numbers

A Woodruff key is a segment of a disc: it seats deep in the shaft and tilts to follow the hub. The seat is cut in one plunge with a Woodruff keyseat cutter (DIN 850) of the same diameter d1 and width b as the key. American Woodruff keys carry an ANSI B17.2 number that spells out the size: the last two digits are the diameter in eighths of an inch, the digits before them the width in thirty-seconds. A number 808 is 1/4 in wide by 1 in in diameter.

Woodruff keys DIN 6888: dimensions and seats
b × h
mm
d1 disc
mm
t1 shaft
mm
t2 hub
mm
Shaft: torque / locating only
mm
2 × 3.7102.91.06–8 / 10–12
2.5 × 3.7102.91.08–10 / 12–17
3 × 5133.81.48–10 / 12–17
3 × 6.5165.31.4– / 12–17
4 × 6.5165.01.710–12 / 17–22
4 × 7.5196.01.7– / 17–22
5 × 6.5164.52.212–17 / 22–30
5 × 7.5195.52.212–17 / 22–30
5 × 9227.02.2– / 22–30
6 × 9226.62.617–22 / 30–38
6 × 10257.62.617–22 / 30–38
8 × 11288.23.022–30 / over 38
10 × 13329.83.430–38 / over 38

The Woodruff keyseat cutter (DIN 850) has the diameter d1 and the width b of the key: the seat is cut in one plunge. Seat width N9 (normal) or P9 (tight); t1 toleranced +0.1 up to 5 × 7.5 and +0.2 from 5 × 9 up. Depths are series A, the one the standard prefers. In the shaft column the first range applies when the key carries all the torque and the second when it only locates and a taper or another element carries the torque. The 2.5 × 3.7 is for automotive use only and the 6 × 10 is best avoided.

Inch keys to ANSI B17.1

On an American machine the shaft is in inches and so is the key. ANSI B17.1 picks the key by shaft diameter just as DIN does, but splits the depth evenly: half the key height in the shaft and half in the hub. Keystock is held to +0.001 in / −0.000 for tight fits; ordinary cold-finished bar runs a couple of thousandths under and gives a clearance fit.

Inch keys by shaft diameter, ASME B17.1-1967 (S2023)
Shaft
over – to incl., in
Shaft
mm
Square key
in
Square
mm
Rectangular w × h
in
7/16–9/1611.1–14.31/83.181/8 × 3/32
9/16–7/814.3–22.23/164.763/16 × 1/8
7/8–1 1/422.2–31.81/46.351/4 × 3/16
1 1/4–1 3/831.8–34.95/167.945/16 × 1/4
1 3/8–1 3/434.9–44.53/89.533/8 × 1/4
1 3/4–2 1/444.5–57.21/212.701/2 × 3/8
2 1/4–2 3/457.2–69.95/815.885/8 × 7/16
2 3/4–3 1/469.9–82.63/419.053/4 × 1/2
3 1/4–3 3/482.6–95.37/822.237/8 × 5/8
3 3/4–4 1/295.3–114.3125.401 × 3/4

Keyseat depth: half the key height in the shaft and half in the hub. Shafts of 5/16 to 7/16 in take a 3/32 key; 4 1/2 to 6 1/2 in take 1 1/4 and 1 1/2 keys.

Involute gear cutters: which number to use

The involute changes with the tooth count: the space between two teeth of a 12-tooth pinion is not the shape of the space on a 100-tooth gear. Since nobody keeps a cutter for every gear, the set of 8 covers 12 teeth to a rack in ranges, and each cutter is formed to the profile of the lowest tooth count in its range.

Here is the trap. Brown & Sharpe cutters, the American standard, run from No. 1 (135 teeth to rack) to No. 8 (12 and 13 teeth). European cutters to DIN 3972 are numbered the other way round, and more than one gear has come off the machine with thin teeth because of it. Read the tooth range stamped on the cutter, not the number. The stamp also gives the module or diametral pitch, the pressure angle (20° on current sets, 14½° on many old American ones).

21–25m 2.5No. 4DIN 3972 · 20°cutter No. 4 DIN (= No. 5 B&S): gears of 21 to 25 teethDIN 3972 No. (European cutters)Brown & Sharpe No. (American cutters)112–138214–167317–206421–255526–344635–543755–13428≥ 1351z = teeth of the gear to be cut; ≥ 135 includes the rackthe numberings run opposite ways: read the stamped rangehelical gear: enter the strip with z′ = z / cos³β
The stamp on a gear cutter gives the module or pitch, the number, the tooth range and the pressure angle. The range is what counts: the number depends on which numbering the maker used.
Set of 8 involute gear cutters: number by tooth count (DIN 3972 and Brown & Sharpe numbering)
Teeth in the gear zDIN 3972 No.Brown & Sharpe No.
12–1318
14–1627
17–2036
21–2545
26–3454
35–5463
55–13472
135–rack81
Set of 15 involute gear cutters (with half numbers)
Teeth zDIN No.B&S No.Teeth zDIN No.B&S No.Teeth zDIN No.B&S No.
121819–203½5½35–4163
131½7½21–224542–546½2½
142723–254½4½55–7972
15–162½6½26–295480–1347½1½
17–183630–345½3½135–rack81

To cut the gear: the blank between the dividing head and its tailstock, the cutter centered on the blank's axis (touch each side of the blank and split the difference), and a whole depth of 2.25 times the module. Indexing is chapter 12; pitch diameter, outside diameter and tooth dimensions are in chapter 15, and cutter speed in chapter 9.

T-slots: DIN 650 and ISO 299

A T-slot is cut in two passes: a plain slot of width a to the full depth h with an end mill or a side cutter, then the T-slot cutter (DIN 851), whose diameter is the undercut width b and whose thickness is the undercut height c, goes in through the open slot. Each slot width takes a T-bolt to DIN 787 and a T-nut to DIN 508.

T-slots for machine tables and fixtures, DIN 650 (ISO 299), with the matching T-bolt
a slot width
mm
b undercut width
min, mm
c undercut height
min, mm
h total depth
min – max, mm
T-bolt DIN 787a slot width
mm
b undercut width
min, mm
c undercut height
min, mm
h total depth
min – max, mm
T-bolt DIN 787
611.0511–13M62237.01638–45M20
814.5715–18M82846.02048–56M24
1016.0717–21M103656.02561–71M30
1219.0820–25M124268.03274–85M36
1423.0923–28M124880.03684–95M42
1830.01230–36M165490.04094–106M48

The width a is H8 on reference slots and H12 on fixing slots. T-nut to DIN 508 (and the ISO 299 bolt): M5, M6, M8 and M10 in the 6, 8, 10 and 12 slots; from 14 up, the same thread as the DIN 787 bolt.

Helical milling: table angle, gear train and virtual teeth

In a helix the table feeds and the work turns at the same time; what links the two is the lead L. The rotation comes from the dividing head, geared to the table lead screw. With a 40:1 head the work turns once for 40 turns of the screw, so the lead of the machine is 40 times the screw pitch: 240 mm with a 6 mm screw, 10 in with a 1/4 in screw. The train ratio is the lead of the helix divided by the lead of the machine. The table is swiveled to the helix angle β so that the side cutter lies in the plane of the groove; with an end mill in a vertical head the table stays square.

tan β = π · DL   ·   L = π · Dtan β   ·   drivendrivers = L40 · p   ·   z′ = zcos³ β

β: helix angle at the diameter D (mm or in) of the work; L: lead of the helix; p: pitch of the table lead screw (same unit as L); 40: dividing head ratio (60, 90 or 120 on some heads); z′: virtual number of teeth for choosing the gear cutter.

machine axis (table feed X)βcutter arborside-milling cutter, seen from aboveABdividing headworktailstocktable swiveled βA: driver, on the table lead screw (pitch p) · B: driven, on the worm shaft of the dividing headdriven / drivers = L / (40 · p); the cutter lies in the plane of the groove
Milling a helix of lead L: the table feeds, the lead screw turns the A-B train and the dividing head turns the work one revolution for every L of travel. The table is swiveled β.

The change gears are the Brown & Sharpe set of twelve: 24, 24, 28, 32, 40, 44, 48, 56, 64, 72, 86 and 100 teeth. The ratio seldom comes out exact; you take the closest train and accept that β shifts a few tenths of a degree. What does show is the hand: one idler too many and the helix comes out left-hand.

For a helical gear cut with a disc cutter, use the normal module and pick the cutter by the virtual number of teeth, the spur gear with the same flank curvature: z′ = z / cos³β. A 24-tooth gear at 25° is cut with the cutter for 32 teeth.

Helical milling: table angle and change gears

Diameter and lead give the table angle; screw pitch and head ratio give the train from the twelve Brown & Sharpe change gears (24, 24, 28, 32, 40, 44, 48, 56, 64, 72, 86 and 100).

Worked example · a roll with helical grooves and a 24-tooth gear

Helical grooves on a 50 mm roll with a lead of 300 mm, on a universal mill with a 6 mm lead screw and a 40:1 head.

  • Table angle: tan β = π × 50 / 300 = 0.5236, so β = 27.64° (27° 38′). Swivel the table to the side that puts the cutter parallel to the groove.
  • Lead of the machine: 40 × 6 = 240 mm. Train ratio: 300 / 240 = 1.25 = 40 / 32. A 40-tooth driven gear on the worm shaft of the head, a 32-tooth driver on the lead screw, with whatever idler the hand calls for. On an inch machine with a 10 in lead, a 12.5 in helix gives the same train.
  • On the same machine, a 24-tooth helical gear at 25°: z′ = 24 / cos³ 25° = 24 / 0.7444 = 32.2. Cut it with the cutter for 26 to 34 teeth, B&S No. 4 or DIN No. 5.

And if the roll has a key on its 40 mm journal: 12 × 8, dimensions 35 and 43.3, key A 12 × 8 × 50.

Four things ruin this work more than anything else: a keyseat off center, a depth measured at the edge, a cutter number read without the range, and a train tried for the first time with the work already mounted. All four are fixed before the spindle starts.

Frequently asked questions

What size key goes on a 1 inch shaft?

Under ANSI B17.1, shafts over 7/8 to 1 1/4 in take a 1/4 in square key (or 1/4 × 3/16 rectangular), seated 1/8 in deep in the shaft. The metric table gives 8 × 7 for a 25 mm shaft.

Which gear cutter number do I use for 30 teeth?

The cutter for 26 to 34 teeth: No. 4 in the Brown & Sharpe numbering, No. 5 in the DIN numbering. The two run opposite ways, so check the tooth range stamped on the cutter.

How do you work out the helix angle for milling?

tan β = π × D / L, with D the work diameter and L the lead. A 50 mm roll with a 300 mm lead gives β = 27.6°, and the table of the universal mill is swiveled to that angle.

Sources: DIN 6885-1 (1968 and 2021 editions: parallel keys and keyseats), DIN 6885-3 and ISO 2491 (thin keys), ISO 773 (rectangular and square parallel keys), DIN 6888 (Woodruff keys) and DIN 850 (Woodruff keyseat cutters), ASME B17.1-1967 (S2023) and ANSI B17.2 (Woodruff keys), DIN 3972 (reference profiles of gear cutting tools), DIN 650 and ISO 299 (T-slots), DIN 787 and DIN 508 (T-bolts and T-nuts), Machinery's Handbook (helical milling and the Brown & Sharpe change gear set).

Keep reading

Chapter 12: dividing head

Simple, differential and angular indexing, with the table from 2 to 100 divisions.

Read →

Spare parts without drawings

How a shaft or a gear is measured up from the worn original.

Read →

Handbook index

The twenty-five chapters and the appendices.

See the index →

Need a keyed shaft or a gear made to replace a worn one?

We measure it from the original, mill it in our shop in Córdoba, Argentina, and ship it ready to fit.