A shaft under bending and torsion at once

A transmission shaft is almost never in pure torsion. It carries the torque it was put there for, and it carries bending from the gear or pulley loads that deliver that torque — and the two combine into a stress state neither one predicts on its own.

This is a solid round shaft in a gearbox: 40 mm diameter, S355, carrying 800 N·m of torque with 500 N·m of bending at the section being checked.

use steel

Four significant figures: a stress is not known to six.

digits 4
d=40⁢mm
M=500⁢N·m
T=800⁢N·m

The two stresses

Bending is largest at the surface, and so is torsional shear, and on a round section they are largest at the same place — which is why the combination has to be taken at a point rather than averaged.

Z=π·d332=π·(40⁢mm)332=6283⁢mm3
Zp=π·d316=π·(40⁢mm)316=12570⁢mm3
σb=MZ=500⁢J6283⁢mm3=79.58⁢MPa
τ=TZp=800⁢J12570⁢mm3=63.66⁢MPa

Two failure theories, and the gap between them

Distortion energy (von Mises) is the usual choice for a ductile steel and matches test data best. Maximum shear (Tresca) is the more conservative, by about 15% in pure shear, and some codes require it.

σvm=σb2+3·τ2=(79.58⁢MPa)2+3·(63.66⁢MPa)2=136⁢MPa
σtresca=σb2+4·τ2=(79.58⁢MPa)2+4·(63.66⁢MPa)2=150.1⁢MPa

The factor of safety against first yield, on each theory.

nvm=FyS355σvm=355⁢MPa136⁢MPa=2.611
ntresca=FyS355σtresca=355⁢MPa150.1⁢MPa=2.364
checkntresca≥2=2.364≥2pass

What diameter the load actually needs

Rearranged rather than iterated: the equivalent stress is proportional to 1/d³, so the diameter for a chosen factor comes out in one line — and the cube root divides the dimension, which is what a length is doing inside a cubed quantity in the first place.

ntarget=2
drequired=nthroot⁡(32·ntarget·M2+0.75·T2π·FyS355,3)=nthroot⁡(32·2·(500⁢J)2+0.75·(800⁢J)2π·355⁢MPa,3)=36.6⁢mm
checkd≥drequired=40⁢mm≥36.6⁢mmpass

The same state, as principal stresses

Bending and torsion at a point are a plane stress state, and its principal stresses are the eigenvalues of the tensor that holds it. They are what the two failure theories above are written in terms of — von Mises is a distance between them and Tresca is the largest difference — so computing them says the same thing a third way and shows where the numbers come from.

state=[σbττ0⁢MPa]=[79.58⁢MPa63.66⁢MPa63.66⁢MPa0⁢MPa]=[[79580000 Pa, 63660000 Pa], [63660000 Pa, 0 Pa]]
principal=reverse⁡(eigenvalues⁡(state))=reverse⁡(eigenvalues⁡([[79580000 Pa, 63660000 Pa], [63660000 Pa, 0 Pa]]))=[114.9 MPa, -35.28 MPa]

Largest first, which is how a stress table is read: σ₁ is tension, σ₂ is compression, and the third principal stress of a plane state is zero.

σ1=principal1=([114900000 Pa, -35280000 Pa])1=114.9⁢MPa
σ2=principal2=([114900000 Pa, -35280000 Pa])2=-35.28⁢MPa

Tresca is the largest difference between any two of the three, and the third one here is zero — so it is σ₁ − σ₂, and it agrees with the formula above.

trescacheck=σ1−σ2=114.9⁢MPa−-35.28⁢MPa=150.1⁢MPa
check|trescacheck−σtresca|≤0.001⁢MPa=|150.1⁢MPa−150.1⁢MPa|≤0.001⁢MPapass

What this calculation does not include

First yield at a plain section, and nothing else. A shaft fails at its shoulders, keyways and cross-holes, where the stress concentration factor multiplies these numbers by two or more, and it fails in fatigue rather than by yielding — the torque is steady but the bending is fully reversed once per revolution. Both belong in a design check and neither is here.

Safety factor against diameter

fn factor defined
plot⁡(factor,25,60)
30 40 50 60 0 2 4 6 8 10