Toolbox

Shaft diameter calculator

You are sizing a shaft that carries a bending moment and a torque and want a first diameter, with the formula in view, before the detailed check of shoulders, keyways and deflection. The tool loads with a worked example filled in. Replace every value marked as an example with your own.

More calculators in the Toolbox

Sizing a shaft for fatigue

The distortion-energy stress with the modified Goodman line (DE-Goodman):

1/n = (16 / (π d³)) × { (1/Se) × √[4 (Kf Ma)² + 3 (Kfs Ta)²] + (1/Sut) × √[4 (Kf Mm)² + 3 (Kfs Tm)²] }

Solved for the diameter: d = ( (16 n / π) × { the same bracket } )^(1/3). n is the design safety factor, Ma and Mm the alternating and mean bending moments, Ta and Tm the alternating and mean torques, Kf and Kfs the fatigue stress-concentration factors in bending and torsion, Se the endurance limit of the part and Sut the ultimate tensile strength.

The modified Goodman line is a common, cautious choice. Other criteria such as Gerber and ASME-elliptic allow more mean stress, so they give a smaller shaft for the same loads.

Worked example: a bending moment of 100 N·m, fully reversed, and a steady torque of 200 N·m, Kf 1.7, Kfs 1.5, Se 150 MPa, Sut 600 MPa, Sy 400 MPa (example values), n 2. The shaft needs d = 31.72 mm. At that diameter the alternating and mean von Mises stresses are 54.3 and 82.9 MPa.

Checking a shaft against yielding

At the diameter found, the peak von Mises stress σ′max = √[ (32 Kf (Mm + Ma) / (π d³))² + 3 (16 Kfs (Tm + Ta) / (π d³))² ] gives the yield safety factor ny = Sy / σ′max. If ny is below n, the tool also works out the diameter yield asks for, reports the larger, and says which check governed. In the worked example σ′max is 99.1 MPa and ny is 4.04, so fatigue governs. At a rounded 32 mm the fatigue safety factor is 2.05.

Alternating and steady loads on a rotating shaft

A rotating shaft whose loads keep one direction while it turns (gear, belt and bearing loads). The bending stress then reverses fully every turn. The torque is taken as steady. A load that turns with the shaft, such as an out-of-balance mass, bends it steadily instead. Use the full mode, with that moment as mean. Torque that varies (starts, stops, reversing drives) belongs in the full mode.

Stress concentration at shoulders and keyways

The fatigue stress-concentration factors at the section you are sizing: a shoulder fillet, a keyway or a retaining ring groove. Kf lies between 1 and the geometric factor Kt from a chart. Entering Kt instead gives a slightly larger, cautious shaft. Entering 1 means a plain bar with no step, groove or keyway.

The endurance limit of your part, at its size, surface finish, loading, temperature and reliability. It's often well under half the value for a polished test bar. Entering the test-bar value gives a shaft that is too small. The ultimate and yield strengths come from your material's data, for the condition you'll use (for example, quenched and tempered).

After the first diameter

Limits

A first diameter for a solid round shaft at one cross-section. Check every section where the diameter steps or a keyway or groove cuts in. The answer is only as good as the endurance limit and the stress-concentration factors you enter, and those are the hard part. It leaves out deflection, the slope at bearings and gears, critical speed, keyways and press fits unless they are in your factors, shock loads, corrosion and temperature. A shaft whose failure could hurt someone is designed and checked by a qualified engineer.

The distortion-energy and modified Goodman method for shafts, in the form given in machine design textbooks such as Shigley's Mechanical Engineering Design.

Questions

How do you calculate shaft diameter for bending and torsion?

For a rotating shaft, size it for fatigue with d = ( (16 n / π) × { (1/Se) √[4 (Kf Ma)² + 3 (Kfs Ta)²] + (1/Sut) √[4 (Kf Mm)² + 3 (Kfs Tm)²] } )^(1/3), then check the peak von Mises stress against yield.

Why is there no static-only answer?

It gives a smaller number that a reader skimming for one figure would take. The yield safety factor ny already shows the static margin of the shaft the tool sizes.

Does the calculator save my inputs?

No. Copy link puts the inputs in the address after the #, so the link reopens them. Nothing is stored on our server, and no account or email is needed.