About this calculator
A key locks a gear, pulley or coupling hub onto a shaft and carries the torque between them. It can fail in two ways: by being sheared across its width, or by crushing (bearing) on the side faces in the shaft or hub keyway. This estimator uses the standard textbook method to find the shortest key that keeps both stresses within your allowable values — or checks the stresses in a key of known length.
Choose the key width and height from your key standard for the shaft diameter; they are not built in.
Formula
F = 2T ÷ d Lshear = F ÷ (b × τallow) Lcrush = F ÷ ((h/2) × σallow)
T = torque, d = shaft diameter, F = tangential force at the shaft surface, b = key width, h = key height (about half of it bears against the hub), τallow = allowable shear stress, σallow = allowable crushing stress. The required length is the larger of the two.
Worked example
250 N·m on a 40 mm shaft, key 12 × 8 mm, allowable shear 60 MPa, allowable crushing 100 MPa:
- F = 2 × 250 ÷ 0.040 = 12.5 kN
- Shear: L = 12 500 ÷ (12 × 60) = 17.4 mm
- Crushing: L = 12 500 ÷ (4 × 100) = 31.3 mm → crushing governs; choose a standard length of at least 32 mm.
Assumptions and limitations
- Parallel (feather) key, with the force acting at the shaft surface and stress spread evenly along the key length. In practice the load is uneven, so many designers limit key length to about 1.5 × shaft diameter and use two keys or a spline for higher torque.
- Allowable stresses are your inputs; they should include a factor of safety and account for shock loads. Fatigue, stress concentration in the shaft keyway and fit of the key are not checked.
- Taper, gib-head and Woodruff keys have different geometry and are not covered.
References
- Key shear and crushing analysis (e.g. Shigley’s Mechanical Engineering Design; Bhandari, Design of Machine Elements).
- Key dimensions: ISO/R 773, DIN 6885-1 (metric), ASME B17.1 (inch).
