Results JS engine
Sizes from DIN 6885-1 / ISO 773 and ANSI B17.1; width limits from ISO 286. Check them against your copy of the standard before cutting.
How the Keyway Calculator Works
A parallel key sits half in the shaft and half in the hub. The standards fix the key size from the shaft diameter, and how deep the keyseat goes into the shaft and the keyway into the hub. This calculator looks the sizes up, adds the width tolerances for the fit you choose and works out the sizes you can actually measure.
The Formulas
Worked Examples
- 25 mm falls in "over 22 up to 30": key 8 × 7, t1 = 4.0, t2 = 3.3 (+0.2).
- Shaft check size 25 − 4 = 21.0 mm (0/−0.2); hub check size 25 + 3.3 = 28.3 mm (+0.2/0). Clearance over the key 4 + 3.3 − 7 = 0.3 mm.
- Normal fit: shaft keyseat 8 N9 = 8.000 / 7.964, hub keyway 8 JS9 = 8 ± 0.018.
- 100 N·m on a 32 mm round-ended key, 1045 cold drawn (530 MPa), SF 2: F = 2 × 100 ÷ 0.025 = 8,000 N, le = 24 mm, τ = 41.7 MPa, p = 8,000 ÷ (3 × 24) = 111 MPa. Safety factor 4.77 on crushing; the key could be as short as 18.1 mm.
- 1 in falls in "over 7/8 to 1-1/4": 1/4 in square key.
- Y = (1 − √(1 − 0.0625)) ÷ 2 = 0.0159 in.
- S = 1 − 0.0159 − 0.125 = 0.859 in; T = 1 − 0.0159 + 0.125 + 0.005 = 1.114 in. These match the published B17.1 depth tables.
- Class 1: key 0.250 (0/−0.002), keyseat 0.250 (+0.002/0).
Measuring a Keyseat
- Shaft: put a micrometer or caliper across from the keyseat bottom to the far side of the shaft. That is the check size (d − t1 or S). It avoids guessing where the round top of the shaft was.
- Hub: measure from the keyway bottom across to the far side of the bore with an inside micrometer, a bore gauge over a gauge block, or a keyway gauge. That is d + t2 or T.
- Width: a gauge block or the key itself should slide in with the fit you chose. Width tolerances are tight (about 0.04 mm), so broach, slot or wire-cut the keyway; a laser or plasma cut keyway needs finishing.
- Making the hub: the DXF Part Maker draws hubs, gears, sprockets and pulleys with this keyway at nominal size. Use the button above to open it with your shaft size.
Frequently Asked Questions
Key sizes, depths and lengths follow DIN 6885-1 / ISO 773 and ANSI B17.1 (the ANSI sizes reproduce the published S and T depth values), and the full tables are in the Keyway and Key Size Chart. ANSI Class 1 and 2 width tolerances are as given in Machinery's Handbook. Check critical sizes against your copy of the standard.