Shaft Torsion Calculator

Shear stress and angle of twist for solid, hollow and stepped round shafts from torque or power and rpm, with J, stiffness and the diameter for an allowable stress.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Shaft Torsion Calculator?

Enter the torque on a round shaft, or the power and speed it transmits, plus its diameter, length and material. The shaft torsion calculator returns the maximum shear stress at the surface, the shear stress at the bore of a hollow shaft, the angle of twist in degrees and radians, the polar moment of area J and the torsional stiffness GJ/L.

Stepped shafts are handled segment by segment: give each length its own diameter, bore and, if a gear takes power off part way along, its own torque. The calculator sums the twist of every segment and points to the one with the highest stress. Add an allowable shear stress and it also gives a factor of safety and the smallest solid or hollow diameter that stays within it.

The default case is the solid steel bar used to introduce torsion in Gere and Goodno's Mechanics of Materials: 340 N·m on a 40 mm bar 1.3 m long with G = 80 GPa. It gives 27.1 MPa and 1.26° of twist.

  • Solid, hollow and stepped shafts up to three segments
  • Torque input or power and speed in kW, hp and rpm
  • Shear modulus presets for steel, stainless steel, aluminium, titanium and brass
  • Stress at the surface and the bore, twist per segment and in total, J and GJ/L
  • Factor of safety and minimum diameter for an allowable shear stress
  • Metric and US units, copy and share links, runs in your browser
Read the guide: Shaft and Key Sizing: Torsion, Combined Loads and Keyways

Updated

How to use the Shaft Torsion Calculator

  1. Pick metric or US units, then enter the torque, or switch to power and speed and enter kW or hp and rpm.
  2. Choose a material preset for the shear modulus G or enter your own (G = E / (2(1 + ν)) for an isotropic material).
  3. Enter the length and outer diameter. For a hollow shaft add the bore; leave it blank for a solid shaft.
  4. For a stepped shaft set the number of segments and fill in each one. Leave a segment's torque blank to use the shaft torque, or enter the torque that segment really carries.
  5. Optionally enter an allowable shear stress to get a factor of safety and the minimum diameter, then copy the results or share a link.

Worked examples

Gere and Goodno solid bar

Input

340 N·m, 40 mm solid, 1.3 m, G = 80 GPa, allowable 42 MPa

Output

τmax = 27.1 MPa, θ = 1.26° (0.0220 rad), factor of safety 1.55

J = π × 40⁴ / 32 = 251,327 mm⁴. The smallest solid diameter for 42 MPa is 34.5 mm, and the largest torque the 40 mm bar can carry at that stress is 528 N·m.

Motor shaft from a power rating

Input

7.5 kW at 1,450 rpm

Output

T = 49.4 N·m

ω = 2π × 1450 / 60 = 151.8 rad/s, and 7,500 W / 151.8 rad/s = 49.4 N·m, the same as 9,549 × 7.5 / 1,450.

Hollow shaft with the same outer diameter

Input

340 N·m, 40 mm outer, 25 mm bore, 1.3 m, G = 80 GPa

Output

τmax = 31.9 MPa, θ = 1.49°

Removing the core takes away 39% of the cross-section but only 15% of J, because the core contributes little to the polar moment.

US units

Input

3,000 lbf·in, 1.5 in solid steel, 48 in, G = 11.5 Mpsi

Output

τmax = 4,527 psi, θ = 1.44°

τ = 16T / (πd³) = 16 × 3000 / (π × 3.375). The twist is (3000 × 48) / (11.5×10⁶ × 0.497) = 0.0252 rad.

Background and insight

Torsion of a circular shaft is one of the few problems in solid mechanics with an exact elementary solution. Because a round section stays plane and round as it twists, shear strain grows linearly from zero at the centre to a maximum at the surface, and so does shear stress while the material stays elastic. Integrating that stress over the section gives the torsion formula τ = T·r / J, with J = π(do⁴ − di⁴)/32 the polar moment of area. The same assumptions give the angle of twist θ = T·L / (G·J), where G is the shear modulus.

Two consequences follow that are worth keeping in mind. First, the material near the centre of a solid shaft carries little stress, which is why hollow shafts save weight: a 40 mm shaft with a 25 mm bore loses 39% of its mass but its peak stress rises only from 27.1 to 31.9 MPa under the same 340 N·m. Second, stiffness depends on G, not on strength. Every carbon and alloy steel has G close to 79 GPa (11.5 Mpsi in Shigley's Table A-5), so a high-strength steel shaft twists exactly as much as a mild steel one of the same size.

Torque usually starts as a power rating. Power is torque times angular speed, P = T·ω, which gives the familiar shortcuts T [N·m] = 9,549 × kW / rpm and T [lbf·in] = 63,025 × hp / rpm. Both are built in. The formulas here describe the nominal stress away from shoulders, keyseats and holes. At those features the local stress is higher by a stress concentration factor, which the shaft diameter calculator applies.

Common use cases

  • Drive shafts and line shafts

    Check the shear stress and wind-up of a shaft between a motor and a gearbox, pump or conveyor pulley.

  • Mechanics of materials homework

    Work solid, hollow and stepped torsion problems and see J, τ and θ for each segment.

  • Torsion bars and stiffness

    Find the torsional stiffness GJ/L of a bar used as a spring or the twist a long shaft adds to a positioning system.

  • Choosing hollow versus solid

    Compare stress, twist and material for tubes and bars carrying the same torque.

Tips and limitations

  • Use the peak torque, not the average. Starting torque of an induction motor and shock loads can be several times the running torque.
  • This calculator gives nominal stress. Fatigue failures start at keyseats and shoulders, so size those sections with the stress concentration factors in the shaft diameter calculator.
  • Twist adds up over length. A long, thin shaft can be strong enough and still wind up too much for a printer, machine tool or servo drive that needs precise angular position.
  • Changing to a stronger steel does not reduce twist. Only a larger diameter (J grows with d⁴) or a shorter length does.
  • For shafts with a non-circular section, such as a square or a keyed shaft, the torsion formula does not apply exactly.

Sources and further reading

  1. Torsion: Summary and Further Reading, TU Delft OpenCourseWare. τ = Tr/J, θ = TL/GJ and the segment-by-segment form
  2. Shigley's Mechanical Engineering Design, 11th edition, Budynas and Nisbett, McGraw-Hill (record at Missouri S&T). Section 3-12 on torsion and Table A-5 elastic constants
  3. Basic theory of torsion (chalk talk notes), Cornell University. Derivation of the torsion formula for circular shafts

Frequently asked questions

What is the formula for shear stress in a shaft under torque?

τmax = T·r / J, where r is the outer radius and J the polar moment of area. For a solid shaft J = πd⁴/32, which simplifies to τmax = 16T / (πd³). For a hollow shaft J = π(do⁴ − di⁴)/32.

How do I calculate the angle of twist of a shaft?

θ = T·L / (G·J) in radians, with consistent units. Multiply by 180/π for degrees. For a shaft with several diameters or torques, work out θ for each segment and add them, keeping the sign of each torque.

Why does a stronger steel not reduce the twist?

Twist depends on the shear modulus G, which is almost the same for all carbon and alloy steels, about 79 GPa or 11.5 Mpsi. Heat treatment and alloying raise strength, not stiffness. To twist less you need a larger diameter or a shorter shaft.

Is a hollow shaft stronger than a solid one?

Not for the same outer diameter: removing material always lowers J a little, so stress rises slightly. For the same weight, a hollow shaft with a larger outer diameter is stronger and stiffer, because material far from the centre carries most of the torque.

How do I convert power and rpm to shaft torque?

Divide power by angular speed: T = P / ω, with ω = 2π × rpm / 60. In practical units, T [N·m] = 9,549 × kW / rpm and T [lbf·in] = 63,025 × hp / rpm.

Does the calculator include stress concentration at keyseats?

No. It gives the nominal stress in a plain round section. Multiply by the fatigue stress concentration factor for a keyseat, shoulder or groove, or use the shaft diameter calculator, which applies Kf and Kfs and checks fatigue.

Is there an in-depth guide to the Shaft Torsion Calculator?

Yes. “Shaft and Key Sizing: Torsion, Combined Loads and Keyways” covers the background, how it works, common pitfalls and worked examples. Read the full guide.