Shaft Diameter Calculator

Preliminary torsional sizing of a solid or hollow circular shaft from power, speed, material and design factor.

INPUTSLive calculation

Change a value to update the design view and results immediately.

Design inputs
DESIGN BASIS — REQUIRED

Enter the unfactored stress basis used for this preliminary calculation. Do not enter an already factored allowable if the design factor below is also being applied.

Product form, heat treatment and design standard must be established before selecting allowable stress. This calculator never selects an allowable stress automatically.

LIVE 2D ENGINEERING VIEWEN8 / C45
Design view paused

Enter valid positive inputs, including a unfactored shear-stress basis, to generate the live shaft geometry.

ENGINEERING DESIGN GUIDE

Shaft diameter design: principles, equations and hand calculation

This guide explains the mechanical basis behind the calculator and shows how to audit its result manually. It is intended for preliminary engineering work, education and calculation review—not as a substitute for a complete shaft design or professional approval.

Overview and mechanical principles

A power-transmission shaft carries torque between a driver and a driven component. The applied torque creates shear stress across the circular section: zero at the centreline and maximum at the outside surface. Increasing shaft diameter is particularly effective because the polar second moment of area varies with the fourth power of diameter, while the maximum stress of a solid shaft varies inversely with the cube of diameter. A hollow shaft can therefore remove relatively lightly stressed material near its centre while retaining useful torsional strength and stiffness.

Shaft sizing is used in electric-motor drives, gearboxes, conveyors, pumps, fans, compressors, machine tools, mixers and vehicle drivetrains. In an early design stage, transmitted power and rotational speed provide nominal torque. The engineer then selects a defensible allowable shear stress for the actual material condition and load case, applies the project safety basis and determines a preliminary diameter. Low speed is important: for the same power, lower RPM produces higher torque and generally requires a larger shaft.

Pure torsion is rarely the complete industrial load case. Gears, pulleys and sprockets add radial forces and bending moments; couplings and bearings impose alignment constraints; shoulders, keyways and splines create stress concentrations. The calculator therefore establishes a transparent torsion-only starting point. Release of the design requires checks for combined stress, fatigue, stiffness, critical speed, connection capacity, material certification and manufacturing geometry.

Governing equations and formula breakdown

ω = 2πN / 60

T = P / ω = 9550PkW / N

T / J = τ / r = Gθ / L

Jsolid = πd⁴ / 32

d = ∛(16T / (πτdesign))

Jhollow = π(Do⁴ − Di⁴) / 32

T = (πτdesign / 16) ((Do⁴ − Di⁴) / Do)

For power in kilowatts and speed in revolutions per minute, the practical constant 9550 produces torque in N·m. Diameter calculations use N·mm, so torque must be multiplied by 1000. For US customary inputs, a common equivalent is T = 63,025 HP / N with torque in lbf·in. Do not insert lbf·in and psi into an SI equation without consistently converting every quantity.

Variables and consistent engineering units
SymbolDefinitionSI unitsUS customary units
PTransmitted mechanical powerkW or Whp
NRotational speedrev/min (RPM)rev/min (RPM)
ωAngular velocityrad/srad/s
TApplied torqueN·m or N·mmlbf·ft or lbf·in
τMaximum/design shear stressMPa = N/mm²psi or ksi
JPolar second moment of areamm⁴in⁴
dSolid-shaft diametermmin
Do, DiHollow-shaft outside and inside diametersmmin
GShear modulusGPa or MPapsi or ksi
θ, LAngle of twist and shaft lengthrad, mmrad, in

Step-by-step worked hand-calculation example

Design problem: establish a preliminary solid-steel shaft diameter for a motor transmitting 50 kW at 1500 RPM. An approved project data sheet gives a baseline allowable shear stress of 80 MPa for the specified material condition and load basis. The preliminary screening design factor is 2.0. This example intentionally excludes bending, keyway effects and fatigue so the calculator method can be checked directly.

  1. Determine angular speed. ω = 2π(1500) / 60 = 157.08 rad/s.
  2. Calculate transmitted torque. T = P/ω = 50,000 / 157.08 = 318.31 N·m. Using the calculator's rounded practical relation gives T = 9550(50)/1500 = 318.33 N·m. The small difference is due to rounding of the constant.
  3. Convert the torque for millimetre-based stress units. 318.33 N·m × 1000 = 318,333 N·mm. This conversion is essential because 1 MPa equals 1 N/mm².
  4. Establish the design shear stress. Following this calculator's explicit input convention, divide the source-controlled baseline by the selected safety factor: τdesign = 80 / 2.0 = 40 MPa. A different governing standard may define allowable stress differently; do not apply a safety factor twice.
  5. Solve the solid-shaft equation. d = ∛[16(318,333) / (π × 40)]. The expression inside the cube root is 40,531.46 mm³, giving d = 34.35 mm.
  6. Select a preliminary practical size. Round upward, never downward. A 35 mm nominal diameter is the immediate mathematical screening choice if that stock size and tolerance are available. In practice, the designer may select a larger preferred bar size after allowing for machining, shoulders, fits and fatigue.

Interpretation: 34.35 mm is not a certified safe shaft diameter. It is the minimum diameter produced by a smooth, solid, circular-shaft model under nominal steady torque and the stated stress basis. The selected manufacturing diameter must be re-evaluated using actual gear or pulley loads, bearing span, stress concentrations, duty cycle and deflection limits.

Engineering assumptions, safety factors and standards

  • Load definition: confirm power, speed and torque at the shaft being sized, especially downstream of a gearbox. Include starting, braking, reversing, jam and transient overloads where credible.
  • Combined stress: where bending is present, determine bending normal stress and torsional shear stress at the same critical section. For ductile materials, a common screening expression is σvm = √(σb² + 3τ²); use the failure criterion required by the governing standard.
  • Fatigue: separate mean and alternating components. Apply theoretical and fatigue stress-concentration factors such as Kt, Kts, Kf and Kfs, plus surface, size, reliability and temperature corrections to the endurance basis.
  • Stiffness and dynamics: check lateral deflection, slope at gears and bearings, angle of twist, torsional natural frequencies and lateral critical speed. A stiff enough shaft may need to be larger than a strength-only shaft.
  • Material control: verify grade, heat treatment, section size, test certificate, temperature and corrosion environment. Do not treat a representative database value as a universal allowable stress.

Standards context: ANSI/ASME B106.1M-1985 is a historic transmission-shaft reference and is listed as inactive; do not assume that it is the governing current standard. ANSI/AGMA 6101-F19 is a later industrial reference for design and selection of components for enclosed gear drives, including shaft design considerations. The engineer must confirm the adopted edition, scope and contractual applicability. ISO 683-1:2016 and ISO 683-2:2016 provide technical delivery requirements for specified non-alloy and alloy heat-treatable steels, respectively; they are material-delivery references, not stand-alone proof that a shaft geometry is safe. Also apply the project's bearing, coupling, key/spline, machinery-safety and material standards. AIEngineeringTool provides summaries and calculation assistance, not copyrighted standard text.

Frequently asked questions and common failure modes

Why does a keyway require special attention?

A keyway removes load-carrying material and creates geometric discontinuities at the keyseat corners. The nominal torsional equation treats the shaft as a smooth, uninterrupted circle, so it does not capture this local stress increase. A final design must apply the stress-concentration and fatigue treatment required by the governing method, verify the key and hub bearing stresses, and use a suitable keyseat radius and surface finish. Increasing only the nominal shaft diameter without checking the complete connection can leave the key, hub or keyseat as the governing failure location.

Is a static torsion calculation sufficient for a rotating shaft?

Only when the verified load case is genuinely steady and the project design basis permits a static check. Start-stop cycles, reversing torque, shock, misalignment and rotating bending introduce fluctuating stresses. Those conditions require mean and alternating stress components, fatigue concentration factors, a corrected endurance limit and a criterion such as Goodman, Soderberg or the method specified by the applicable code. Fatigue can govern even when the peak nominal torsional stress is below the static allowable value.

Why can a shaft fail even when calculated shear stress is acceptable?

Nominal stress is only one design criterion. Excessive lateral deflection can misalign bearings, gears and seals; excessive twist can impair timing or positioning; a critical-speed resonance can produce large vibration; and shoulders, threads, splines or poor surface finish can initiate fatigue cracks. Corrosion, wear, fretting and an incorrect material condition also reduce reliability. Final shaft selection therefore requires strength, stiffness, dynamics, connection and manufacturing checks based on the actual assembly.

Should the calculated minimum diameter be ordered directly?

No. The mathematical result is a preliminary minimum for the stated torsion-only model. The released diameter normally comes from an available stock or preferred size above that minimum and includes machining allowance, dimensional tolerances, fits, shoulder geometry, surface finish and any coating or heat-treatment allowance. The engineer must then repeat the stress, deflection, fatigue and critical-speed checks using the final geometry and the worst credible load combination.

Technical verification

Equation checked: 2026-09-15 · Units checked: 2026-09-15 · Independent numerical case: Pass

Source basis: TEXTBOOK — University of Maryland, ENES 220, Torsion of Structural Elements

Unit basis: kW → N·m → N·mm; MPa = N/mm²

Independent example: 50 kW, 1500 rpm, stress basis 80 MPa / design factor 2: T = 318.33 N·m; design stress 40 MPa; solid diameter ≈ 34.35 mm.

Scope: Pure torsion only. Bending, fatigue, keyways, shoulders, critical speed and stiffness need separate checks.

Technical verification is not professional engineering certification and does not approve a specific real-world design.