Works on this device
Keyway Stress Calculator
Work out the stresses in a parallel key that passes a torque from a shaft to a hub: the shear stress across the key and the bearing (crushing) stress on its sides, on the shaft and on the hub. Compare them with your allowable stresses, find the torque the key can carry, or the length of key you need.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose the stresses in a key, or the key length for a torque.
- Type the torque, or the power and the speed of the shaft.
- Type the shaft diameter, the key width and height, the depth of the keyway in the shaft and the key length, or fill an example key size from the menu and check it in your standard.
- Type your allowable shear and bearing stresses. Choose Calculate.
The formulas
- Force on the key: F = 2 T ÷ d, the torque T taken at the surface of the shaft of diameter d. With a power and a speed: T = P ÷ ω.
- Bearing length: Le = L for square ends, L − b when both ends are rounded.
- Shear across the key: τ = F ÷ (b × Le).
- Bearing (crushing): σ = F ÷ (t1 × Le) on the shaft side and F ÷ ((h − t1) × Le) on the hub side, with t1 the depth of the keyway in the shaft (h ÷ 2 if you leave it empty).
- Torque at your allowables: T = τa × b × Le × d ÷ 2 and T = σa × t × Le × d ÷ 2 with t the lesser of t1 and h − t1; the lesser decides.
- Key length for a torque: Le = the greater of F ÷ (b × τa) and F ÷ (t × σa).
Worked example
A 50 mm shaft passes 400 N·m through a key 14 mm wide and 9 mm high, 70 mm long with square ends, in a keyway 5.5 mm deep. The force on the key is 16.0 kN. The shear stress is 16.33 MPa, the bearing stress 41.56 MPa on the shaft side and 65.31 MPa on the hub side.
With allowable stresses of 60 MPa in shear and 100 MPa in bearing, the key carries 612.5 N·m (bearing on the hub side decides), a safety factor of 1.53. For 400 N·m the key must be at least 45.71 mm long.
A motor of 30 kW at 1,450 rpm gives 197.6 N·m. The allowable stresses are examples for trying the tool.
Limits you should know
- This is ideal arithmetic for study and planning, not a design approval and not professional advice. The key, the shaft and the hub must follow the design code or standard that applies and be checked by a qualified engineer.
- The relations take the load as spread evenly along the key. Real keys carry more at the end where the torque enters; shocks, fatigue and a loose fit are not worked out.
- No key size table is built in. The example menu fills sizes as remembered from ISO 773 and DIN 6885; check them in the standard. Inch keys (ASME B17.1) are typed by you.
- The keyway weakens the shaft as well: check the shaft with the Shaft Diameter Calculator and a stress concentration factor from your handbook. For the torque of a shaft, use the Shaft Torque Calculator; for a keyed coupling hub, the Coupling Torque Calculator.