A shaft size calculator finds the minimum diameter of a round shaft that carries a given torque without exceeding an allowable shear stress. Enter the torque, or the power and the speed, with the allowable stress, and choose a solid or hollow shaft. The result is for torsion alone, and a real shaft needs a design check by an engineer.
How to use the shaft size calculator
- Choose the units and whether you know the torque or the power and speed.
- Choose a solid or hollow shaft.
- Enter the allowable shear stress of the material.
- Press Calculate.
The torsion formula for a solid shaft
Wikipedia gives the maximum shear stress in a solid circular shaft under a torque T as τ = 16 T ÷ (π d³) [1]. Rearranged, the torque that a solid shaft carries is T = (π ÷ 16) × τ × d³, where τ is the allowable shear stress and d is the diameter. Solving for the diameter gives d = ∛(16 T ÷ (π τ)). The diameter is the cube root of the torque, so the size grows slowly with the load: eight times the torque needs only twice the diameter.
The hollow shaft
For a hollow shaft, Wikipedia gives the torsion constant of a circular annulus as (π ÷ 2)(Rₑ⁴ − Rᵢ⁴) [1], which leads to T = (π ÷ 16) × τ × dₒ³ × (1 − k⁴), where k is the ratio of the inner diameter to the outer diameter. The outer diameter is then dₒ = ∛(16 T ÷ (π τ (1 − k⁴))), and the inner diameter is dᵢ = k × dₒ. A hollow shaft is a little larger on the outside than a solid one, but it can be much lighter.
From power and speed to torque
If you know the power and the speed instead of the torque, power is the torque times the angular speed [2], so P = 2π N T ÷ 60, with P in watts, N in revolutions per minute and T in newton metres. So T = 60 P ÷ (2π N). The calculator does this step for you. In US mode, the power is in horsepower, which we convert at 745.7 watts, and the torque is shown in newton metres and pound-force inches.
The worked example
As a worked example, take a mild steel shaft at 20 kilowatts and 200 revolutions per minute. The torque is 60 × 20,000 ÷ (2π × 200) = 954.9 newton metres. With an allowable shear stress of 42 megapascals, the diameter is 48.7 millimetres. The calculator gives 48.741 millimetres.
Allowable shear stress
The allowable stress depends on the material and the design basis. The tool's example uses 42 megapascals for a keyed mild steel shaft and 56 megapascals for a shaft with no keyway. These are planning figures, not code values, and they are for a mild steel, and you must use the value that suits your own material and your own safety margin. In US mode, enter the stress in psi, where 42 MPa is about 6,091 psi.
Hollow shaft example
For the same 20 kilowatts at 200 revolutions per minute and 42 megapascals, a hollow shaft with a diameter ratio of 0.5 has an outer diameter of 49.8 millimetres and an inner diameter of 24.9 millimetres. This is our own example, worked with the formula above. The outer diameter is only 2 per cent larger than the solid one, but the material removed is a quarter of the cross-section.
A minimum, not a final size
The formulas give the minimum diameter, so pick a standard size at or above it. In practice, shafts are made in standard sizes, with steps and keyways that raise the local stress. Round the diameter up to the next standard size, and check the result with a safety factor. The calculator reminds you of this in every result.
What is not included
The torsion-only basis ignores bending, which Wikipedia lists as a separate stress in shafts that carry gears and pulleys [3]. It also leaves out axial loads, shock loads, fatigue, stress raisers, critical speeds and the stiffness of the shaft. Wikipedia also lists stresses from combined torsional and bending loads [3], which this calculator does not cover. For anything that matters, an engineer must check the design against the applicable code.
Units
In US mode, enter the torque in pound-force inches, the power in horsepower and the stress in psi. In metric mode, use newton metres, kilowatts and megapascals. The speed is always in revolutions per minute. The diameter is shown in millimetres and in inches. The unit conversions are standard factors that we applied ourselves: 0.1129848 newton metres per pound-force inch, 745.7 watts per horsepower and 6,894.757 pascals per psi.
Using the calculator
Pick the units and the way you know the load, enter the numbers and choose solid or hollow. Read the diameter, round up to a standard size and keep a margin. Try different allowable stresses to see how the diameter changes: a higher stress allows a smaller shaft, but leaves less margin. Compare solid and hollow shafts for the same load to see the weight saving of a hollow design.
Reading the result sensibly
Treat the diameter as a lower limit. If the calculator gives 48.7 millimetres, a 50 millimetre shaft is the next common size, and it already gives a margin of about 8 per cent in the torque it can carry, since the capacity grows with the cube of the diameter. This arithmetic is our own and follows from the formula above [1]. A keyway cuts the section and raises the local stress, which is why a lower allowable stress is used for shafts with keyways. If the shaft also carries a gear or a belt pulley, the bending moment must be added in a combined-load check, which this tool does not do. Use the result as a first estimate and a way to check numbers from other sources.
Common mistakes
- Using the wrong allowable stress. It depends on the material and the keyways.
- Ignoring bending. The result is for torsion alone.
- Mixing hp and kW. Choose the right unit system.
- Using the result as the final size. Round up to a standard size.
What next
Use this often? Add Shaft Size to your Home screen.
Frequently asked questions
What is a shaft size calculator?
A tool that finds the minimum shaft diameter for a given torque and allowable shear stress.
What is the formula for the diameter of a solid shaft?
d = ∛(16 T ÷ (π τ)), from T = (π ÷ 16) τ d³.
How do I turn power and rpm into torque?
T = 60 P ÷ (2π N), with P in watts, N in rpm and T in newton metres.
What allowable shear stress should I use?
It depends on the material and the design basis. The tool's example uses 42 MPa with keyways and 56 MPa without, for mild steel.
Is the result the final shaft size?
No. It is a minimum for torsion alone; choose a standard size above it and have it checked.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.