Keyway Calculator
Select the standard parallel key for a shaft diameter and calculate the key length needed for shear and crushing under a given torque.
Standard Key (b × h)
14 × 9 mm
Key Length
40 mm
Length for Shear / Crushing
23.8 / 37 mm
Tangential Force
20000 N
Stresses at Chosen Length
35.7 / 111.1 MPa
Recommended Hub Length
75 mm
Parallel Key Size and Length
Enter the shaft diameter and the torque. The calculator picks the standard parallel key for the shaft and works out the length needed so the key neither shears nor crushes, rounded up to a standard length.
Formulas
- Force F = 2T ÷ d
- Shear L = F ÷ (b τ)
- Crushing L = 2F ÷ (h σc)
Standard parallel keys (IS 2048 / DIN 6885)
| Shaft dia (mm) | Key b × h (mm) |
|---|---|
| 17 to 22 | 6 × 6 |
| 22 to 30 | 8 × 7 |
| 30 to 38 | 10 × 8 |
| 38 to 44 | 12 × 8 |
| 44 to 50 | 14 × 9 |
| 50 to 58 | 16 × 10 |
| 58 to 65 | 18 × 11 |
| 65 to 75 | 20 × 12 |
| 75 to 85 | 22 × 14 |
| 85 to 95 | 25 × 14 |
Worked examples
1. 50 mm shaft, 500 N·m (the defaults). Key 14 × 9; F = 20 kN; shear needs 23.8 mm, crushing 37.0 mm → 40 mm key; hub at least 75 mm.
2. 30 mm shaft, 150 N·m. Key 8 × 7; needs 23.8 mm → 25 mm.
3. 75 mm shaft, 2,000 N·m. Key 20 × 12; crushing needs 74 mm → 80 mm.
For shock loads or hollow and cast-iron hubs, reduce the allowable stresses, or use splines or shrink fits.
Related tools
- Shaft diameter: Shaft Design Calculator. Coupling: Flange Coupling Calculator.
- Keyless alternative: Press Fit Calculator.
Frequently Asked Questions
What key size does a shaft need?
Standard sizes depend on diameter (IS 2048 / DIN 6885): 22 to 30 mm shafts use 8 × 7 mm keys, 30 to 38 mm use 10 × 8, 44 to 50 mm use 14 × 9 and 58 to 65 mm use 18 × 11.
How is the force on the key found?
F = 2T ÷ d. 500 N·m on a 50 mm shaft gives 20,000 N.
How long should the key be?
Long enough for both checks: shear L = F ÷ (b τ) and crushing L = 2F ÷ (h σc). The larger value governs, rounded up to a standard length.
Which failure usually governs?
Crushing (bearing) of the key or keyway side, because the key bears on only about half its height.
What allowable stresses are used?
For C45 key steel, about 60 to 70 MPa in shear and 100 to 150 MPa in crushing for steady loads; lower for shock and cast iron hubs.
What hub length is recommended?
At least the key length, and typically 1.5 × shaft diameter for stability.
What if the key is longer than the hub?
Use two keys at 180°, a spline, a shrink fit, or a larger shaft diameter.
How deep is the keyway in the shaft?
About 60% of the key height (for a 14 × 9 key, t1 = 5.5 mm), the rest in the hub. Check the standard for exact depths and tolerances.
Does the keyway weaken the shaft?
Yes. It reduces strength by about 25%, which design codes allow for (see the Shaft Design Calculator).
What fits are used for keys?
Normal fit: shaft keyway N9, hub keyway JS9. Close fit: P9 both. The key itself is h9.
Related Calculators
Shaft Design Calculator
Calculate shaft diameter based on combined bending moment and torque using ASME code with equivalent torque method.
Coupling Calculator
Calculate design torque, nominal torque, and bolt circle diameter for flange coupling design.
Torque Power Calculator
Convert between torque, power, and RPM with efficiency factor. Calculate N·m from kW, angular velocity, and horsepower equivalent.
Gear Ratio Calculator
Calculate gear ratio, output RPM, and torque multiplication for meshing gears based on teeth count and input speed.
Press Fit Calculator
Calculate interference, contact pressure, holding force, and assembly force for press-fit (interference fit) connections.
Bolt Torque Calculator
Calculate bolt tightening torque from clamping force and bolt diameter using the T = KFd formula.
More in Mechanical · Engineering calculators · All calculators A–Z