MULTICALCI
Combined loading · von Mises · critical speed · key stress

Shaft Design Calculator

Check a solid circular shaft under combined bending, torsion and axial load. Returns von Mises equivalent stress with safety factor against yield, a fatigue margin, the first critical speed, and shear and bearing stress in the key.

von Mises Se = 0.504·Su Rayleigh critical speed Square key check

Check a shaft under combined loading

Geometry, Loading & Material
Used for the critical speed estimate.
Enter 0 if there is no thrust.

Key width will be 13 mm (d/4).
Enter your values and select Calculate.

Shaft stress formulas

Bending and torsion act at the same point on the shaft surface, so they must be combined rather than checked separately. The von Mises criterion reduces the biaxial state to one equivalent stress comparable with the uniaxial yield strength.

σb = 32·M / (π·d³) — bending stress, Pa τt = 16·T / (π·d³) — torsional shear stress, Pa σa = 4·Fa / (π·d²) — axial stress, Pa σvm = √( (σb + σa)² + 3·τt² ) SF = Sy / σvm — Fatigue (simplified) — Se = 0.504 × Su — endurance limit estimate SFfat = 1 / ( σb/Se + τt/(0.577·Se) ) — Critical speed (Rayleigh, self weight) — δ = 5·w·L⁴ / (384·E·I) w = ρ·A·g Nc = (30/π) · √(g / δ) — rpm — Square key, width w = d/4 — τkey = 2·T / (d · w · Lk) — shear across the key σbear = 4·T / (d · (w/2) · Lk) — bearing on the hub

M bending moment (N·m) · T torque (N·m) · Fa axial force (N) · d diameter · L bearing span · Lk key length · Sy yield · Su tensile strength

Check the key, not just the shaft. A generously sized shaft with a short key fails at the key long before the shaft yields. Bearing stress on the key is four times the shear stress for a square key, so bearing almost always governs — and the remedy is a longer key, not a wider one.

Worked example

A 50 mm C45 steel shaft on a 600 mm bearing span carrying 500 N·m bending and 800 N·m torque, with a 40 mm long key.

Given
Diameter d
50 mm
Bearing span L
600 mm
Bending moment M
500 N·m
Torque T
800 N·m
Material
C45 — Sy 390 MPa, Su 620 MPa
Key length Lk
40 mm
Step 1 — component stresses
σb = 32 × 500 / (π × 0.05³)
40.744 MPa
τt = 16 × 800 / (π × 0.05³)
32.595 MPa
σa (no thrust)
0 MPa
Step 2 — combined stress
σvm = √(40.744² + 3 × 32.595²)
69.623 MPa
SF = 390 / 69.623
5.602 — target was 2
Step 3 — fatigue and speed
Se = 0.504 × 620
312 MPa
SFfatigue
3.214
First critical speed Nc
14 667 rpm
Step 4 — key
Key width = 50 / 4
13 mm square
τkey = 2 × 800 / (0.05 × 0.013 × 0.04)
61.54 MPa vs 225 allowable
σbearing = 4 × 800 / (0.05 × 0.0065 × 0.04)
246.15 MPa vs 390
σvm 69.62 MPa · SF 5.60 · fatigue 3.21 · key bearing 246 MPa → shaft adequate

The shaft is comfortable, but notice the margins are uneven: static SF is 5.60 while the key bearing stress sits at 63 % of yield. Shorten the key to 20 mm and bearing stress doubles to 492 MPa — the key would fail while the shaft still shows SF 5.60. The key is the weak link long before the shaft is.

Units and input ranges

QuantitySymbolUnitAccepted range
Shaft diameterdmm or in> 0
Bearing spanLmm> 0
Bending momentMN·m≥ 0
TorqueTN·m≥ 0
Axial forceFaNany
Yield strengthSyMPa> 0
Tensile strengthSuMPa> 0
Required safety factorSF≥ 1
Key lengthLkmm> 0

Diameters in inches are converted at 25.4 mm. Key width is derived as d/4, rounded to the nearest millimetre with a 4 mm floor, and the key is assumed square.

Shaft material properties

MaterialSy (MPa)Su (MPa)Se = 0.504·SuTypical use
C45 steel390620312General machine shafts
4140 alloy6551 020514High-duty, heat-treated
Stainless207517261Corrosive and hygienic service
The fatigue figure is simplified. Se = 0.504·Su is the unmodified endurance limit for steel. A full assessment applies Marin factors for surface finish, size, loading type, temperature and reliability, plus a fatigue stress concentration factor at every shoulder, keyway and groove. Those reductions are typically substantial, so treat the figure here as an upper bound rather than a design value.

Frequently asked questions

How is a shaft checked under combined bending and torsion?

Bending produces a normal stress of 32M/πd³ and torsion produces a shear stress of 16T/πd³. Because both act at the same point on the surface, they must be combined rather than checked separately. The von Mises equivalent stress is √(σ² + 3τ²), and that combined figure is compared against yield.

Why use von Mises stress for shafts?

Von Mises is the distortion energy criterion, which predicts yielding of ductile metals more accurately than maximum shear or maximum normal stress. A shaft carrying both bending and torsion has a biaxial stress state at its surface, and von Mises reduces that to a single equivalent number that can be compared directly against the uniaxial yield strength from a tensile test.

What is critical speed and why does it matter?

Critical speed is the rotational speed at which the shaft's natural bending frequency is excited once per revolution, causing resonance and large whirl amplitudes. It is estimated from the static deflection under self weight using the Rayleigh relation. Operating speed is normally kept below about 70 % of the first critical speed, or well above it if the shaft is designed to run supercritically.

How is a shaft key sized?

Key width is conventionally about one quarter of the shaft diameter, with height equal to width for a square key. The key must be checked twice: for shear across its width, where the force is 2T/d spread over width × length, and for bearing on the half of its height that engages the hub. Bearing usually governs, and the fix is to lengthen the key rather than widen it.

What safety factor should a shaft have?

For static loading a safety factor of 1.5 to 2 against yield is common in general machinery, rising to 3 or more where loads are uncertain or the consequences of failure are severe. Rotating shafts under bending experience fully reversed stress every revolution, so fatigue rather than yield usually governs, and the fatigue margin should be checked separately against the endurance limit.

Related mechanical calculators

← All mechanical engineering calculators