Design of shafts and keys
Sizing shafts for torque and combined bending and torsion (equivalent torque and moment), hollow shafts, rigidity, and the types and design of keys and splines.
Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Every gearbox, pump, machine-tool spindle and conveyor has shafts that carry torque while gears, pulleys and bearings load them in bending. Keys lock the hubs to the shafts. Sizing both correctly, for strength and for stiffness, is one of the most common design tasks and a regular GATE numerical.
Key ideas
Shafts, axles and spindles. A shaft rotates and transmits torque (and usually carries bending loads). An axle supports rotating parts but transmits no torque (it may be stationary or rotate). A spindle is a short shaft such as a machine-tool spindle. Shafts are usually medium-carbon or alloy steel, chosen for strength, fatigue resistance, machinability and, where needed, hardenability or corrosion resistance.
Loads on a shaft.
- Torque from power and speed:
T = 60P/(2πN). - Bending from gear tooth forces, belt tensions and weights, found from the shaft's free-body diagram in two planes and combined:
M = √(M_H² + M_V²). - Axial loads from helical gears are usually small and often ignored in simple design.
Strength design (static, ductile). At the section of largest M and T the bending stress σ = 32M/(πd³) and torsional shear τ = 16T/(πd³) act together. Combine them with a failure theory:
- Maximum shear stress (Tresca/Guest): uses the equivalent torque
T_e = √(M² + T²), withτ_allow = 16T_e/(πd³). Standard choice for ductile shafts. - Maximum principal stress (Rankine): uses the equivalent bending moment
M_e = ½[M + √(M² + T²)], withσ_allow = 32M_e/(πd³). For brittle materials. - For shock and fatigue, the ASME code multiplies M and T by combined shock and fatigue factors K_m and K_t (take values from your data book):
T_e = √((K_m·M)² + (K_t·T)²). A full fatigue design uses Goodman or Soderberg with the corrected endurance limit (see the fatigue topic).
Rigidity design. Machine-tool and gear shafts are often sized for stiffness: a limit on angle of twist (often about 0.25° to 1° per metre, from your data book) or on lateral deflection and slope at gears and bearings.
- Twist:
θ = T·L/(G·J)(radians).
Hollow shafts. For the same strength a hollow shaft is lighter and stiffer per kilogram, because the material near the centre carries little stress. With k = d_i/d_o, J = π·d_o⁴(1 − k⁴)/32.
Keys. A key fits in a keyway in the shaft and hub and transmits torque by shear on its width and crushing on its sides.
- Sunk keys: rectangular (width ≈ d/4, thickness ≈ 2b/3), square (b = h ≈ d/4), parallel or taper (1 in 100). Gib-head taper keys can be driven out.
- Woodruff key: semicircular, sits in a deep recess, aligns itself, used on tapered shafts and light duty; the deep slot weakens the shaft.
- Saddle keys (friction only, light duty), tangent keys (heavy, reversing torque), round keys, and splines (many integral keys: larger torque, uniform load, and axial sliding of the hub, as in gearboxes).
- A keyway lowers shaft strength (stress concentration); Moore's empirical factor or a data-book K_f accounts for it.
Formulas
T = 60·P/(2π·N) — T in N·m, P in W, N in rev/min.
τ = 16T/(πd³), σ_b = 32M/(πd³) — solid shaft; Pa with N·m and m.
Hollow: τ = 16T/(π·d_o³·(1 − k⁴)), σ_b = 32M/(π·d_o³·(1 − k⁴)), k = d_i/d_o.
T_e = √(M² + T²) (Tresca), M_e = ½[M + √(M² + T²)] (Rankine).
θ = T·L/(G·J) — θ in rad, L length (m), G shear modulus (Pa), J = πd⁴/32 (m⁴).
Key (width b, height h, length l, shaft diameter d):
shear T = l·b·τ·(d/2); crushing T = l·(h/2)·σ_c·(d/2).
Worked examples
Example 1 (standard). A solid steel shaft transmits 20 kW at 300 rev/min. Allowable shear stress is 50 MPa. Find the diameter, then the length of a square key 12 mm × 12 mm for τ_key = 60 MPa and σ_c = 120 MPa.
T = 60 × 20 000/(2π × 300) = 636.6 N·m.d = (16T/(π·τ))^(1/3) = (16 × 636.6/(π × 50 × 10⁶))^(1/3) = 0.0402 m→ use 45 mm (the next standard size, leaving margin for the keyway).- Key in shear:
l = 2T/(d·b·τ) = 2 × 636.6/(0.045 × 0.012 × 60 × 10⁶) = 0.0393 m. - Key in crushing:
l = 4T/(d·h·σ_c) = 4 × 636.6/(0.045 × 0.012 × 120 × 10⁶) = 0.0393 m. - The two are equal because for a square key with σ_c = 2τ the key is equally strong in shear and crushing.
- d = 45 mm, key length ≥ 39.3 mm (in practice the key runs the full hub length, often about 1.5d).
Example 2 (GATE level). At its critical section a steel shaft carries M = 1.2 kN·m and T = 0.9 kN·m. Find the diameter by (a) the maximum shear stress theory with τ_allow = 60 MPa and (b) the maximum principal stress theory with σ_allow = 100 MPa. (c) What hollow shaft with k = 0.6 meets (a), and how much lighter is it?
T_e = √(1200² + 900²) = 1500 N·m;M_e = ½(1200 + 1500) = 1350 N·m.- (a)
d = (16 × 1500/(π × 60 × 10⁶))^(1/3) = 0.0503 m = 50.3 mm. - (b)
d = (32 × 1350/(π × 100 × 10⁶))^(1/3) = 0.0516 m = 51.6 mm. - (c)
d_o = (16T_e/(π·τ·(1 − k⁴)))^(1/3) = (16 × 1500/(π × 60 × 10⁶ × 0.8704))^(1/3) = 52.7 mm;d_i = 0.6 × 52.7 = 31.6 mm. - Mass ratio = area ratio =
52.7² × (1 − 0.36)/50.3² = 0.70. - (a) 50.3 mm, (b) 51.6 mm (round up to a standard size); (c) d_o ≈ 52.7 mm, d_i ≈ 31.6 mm, about 30 % lighter.
Common mistakes
- Calling √(M² + T²) the equivalent bending moment; it is the equivalent torque. M_e = ½[M + √(M² + T²)].
- Forgetting to combine horizontal and vertical bending moments vectorially.
- Using 32 instead of 16 in the torsion formula (or vice versa for bending).
- Leaving the power in kW with torque in N·m.
- Designing for strength only when the shaft carries gears that need stiffness.
- Taking the key crushing area as l·h instead of l·h/2.
For GATE PI
Expect diameter of a shaft under torque alone or combined bending and torsion with a named theory, torque from power and speed, key length from shear and crushing, comparison of hollow and solid shafts, and angle of twist. Practise the free-body diagram of a shaft with a gear and a pulley, and the equivalent torque and moment formulas.
Quick check
- A shaft transmits 50 kW at 1500 rev/min with τ = 40 MPa. What diameter is needed?
- M = 500 N·m and T = 300 N·m. Find T_e and M_e.
- Why is a spline used in a gearbox sliding gear?
- What is the difference between an axle and a shaft?
Answers: 1. 34.3 mm (use 35 mm); 2. 583 N·m and 541.5 N·m; 3. it transmits torque while letting the gear slide axially; 4. an axle carries no torque.
Interview questions
All Theory of Machines and Machine Design interview questionsTry answering each one aloud before you open it.
1.What is a shaft in mechanical design, and what are its primary functions?Concept
A shaft is a rotating machine element that is used to transmit power from one part of a machine to another. Its primary functions include transmitting torque and rotation, supporting rotating parts like gears and pulleys, and maintaining alignment of components.
2.Explain the concept of a key in machine design and its purpose.Concept
A key is a machine element used to connect a rotating machine element to a shaft. It prevents relative rotation between the two parts and can transmit torque. Keys are essential for ensuring that components like gears and pulleys rotate with the shaft.
3.What are the different types of keys used in machine design?Concept
Sunk keys sit half in the shaft and half in the hub: rectangular, square, parallel, taper and gib-head keys, and the semicircular Woodruff key. Saddle keys sit on the shaft surface and drive by friction only, for light loads. Tangent keys are used in pairs for heavy reversing torque, and splines are many integral keys that carry large torque and let a hub slide axially.
4.Why is it important to design shafts with appropriate material and dimensions?Application
Designing shafts with appropriate material and dimensions is crucial to ensure they can withstand the applied loads, including torque and bending moments, without failure. Proper design prevents excessive deflection, vibration, and fatigue, ensuring the reliability and longevity of the machine.
5.What happens if a key is not properly fitted into a shaft and hub?Application
If a key is not properly fitted, it can lead to relative motion between the shaft and the hub, causing wear and damage. This improper fit can result in key failure, leading to loss of torque transmission and potential machine breakdown.
6.Why are splines used instead of keys in some applications?Application
Splines are used instead of keys when a higher torque transmission is required, or when axial movement of the connected component is needed. Splines provide a more uniform distribution of stress along the shaft and hub, reducing the risk of failure.
7.How does the presence of a keyway affect the strength of a shaft?Application
The presence of a keyway reduces the strength of a shaft because it introduces a stress concentration. This can lead to a reduction in the shaft's ability to withstand torsional and bending loads, potentially leading to fatigue failure if not properly accounted for in the design.
8.Calculate the diameter of a solid circular shaft required to transmit 50 kW at 1500 rev/min, with an allowable shear stress of 40 MPa.Numerical
Torque T = 60P/(2πN) = 60 × 50 000/(2π × 1500) = 318.3 N·m. For a solid shaft τ = 16T/(πd³), so d = (16T/(πτ))^(1/3) = (16 × 318.3/(π × 40 × 10⁶))^(1/3) = 0.0343 m. The shaft needs about 34.3 mm, so a 35 mm standard shaft would be chosen (larger if a keyway is cut).
9.A shaft is subjected to a bending moment of 500 N·m and a torque of 300 N·m. Determine the equivalent bending moment and the equivalent torque.Numerical
The equivalent torque (maximum shear stress theory) is T_e = √(M² + T²) = √(500² + 300²) = 583.1 N·m. The equivalent bending moment (maximum principal stress theory) is M_e = ½[M + √(M² + T²)] = ½(500 + 583.1) = 541.5 N·m. T_e is used with τ = 16T_e/(πd³) for ductile shafts, M_e with σ = 32M_e/(πd³) for brittle ones.
10.Explain the significance of the factor of safety in the design of shafts.Concept
The factor of safety is a design criterion that provides a safety margin over the calculated maximum load that a shaft can handle. It accounts for uncertainties in material properties, load estimations, and potential flaws in manufacturing. A higher factor of safety ensures greater reliability and reduces the risk of failure.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?