August 2026 9 min read

Shaft Diameter Calculator

Free shaft diameter calculator: size solid and hollow rotating shafts for torque, power, speed and allowable shear stress per ASME B106.1M and ISO standards, with standard preferred diameters.

Shaft Diameter Calculator

Shaft Design Inputs

Min Required Diameter
25.60 mm
(1.01 in)
Standard Preferred
28 mm
Renard R20/R40
Actual Shear Stress
22.92 MPa
Allowable: 30 MPa
Angle of Twist
1.19°/m
Safety Factor: 1.96
Shaft Design Inputs
Direct Torque (T) Power & Speed (P, RPM)
Applied Torque (T) (Nm)
Nm

Transmitted rotational torque

Allowable Shear Stress (τ_allow) (MPa)
MPa

Typically 40–55 MPa for mild steel per ASME code

Design Safety Factor (FOS)

Typically 1.5–2.0 for steady loads, 3.0+ for shock

Solid Shaft Hollow Shaft
Shear Modulus (G) (GPa)
GPa

79 GPa for steel, 26 GPa for aluminum

Decimal Precision
Auto-calculate instantly

Formula

The minimum diameter comes from equating the torsional shear stress at the outer fibre to the allowable value. Hollow shafts substitute the polar moment of inertia of the annular section.

d = (16·T / (π·τ_allow))^(1/3) | J = π·d⁴/32 | τ = T·r/J

Alternative Form

Hollow shafts: d_o = (16·T / (π·τ_allow·(1−k⁴)))^(1/3), k = d_i/d_o | Power: T = 9550·P/N

Variables

SymbolNameUnitDescription
dMinimum shaft diametermmSmallest safe outer diameter for the applied torque
TTorqueN·mTorsional moment transmitted by the shaft
τ_allowAllowable shear stressMPaMaterial shear limit divided by safety factor
JPolar moment of inertiamm⁴Section resistance to torsion
kHollow ratio—Inner-to-outer diameter ratio d_i/d_o
P, NPower & speedkW, RPMT = 9550·P/N converts them to torque

Explanation

Torsion induces a linear shear stress distribution peaking at the surface. Setting τ_max = T·(d/2)/J equal to τ_allow and solving for d gives the classic cubic formula. Preferred Renard-series diameters are then chosen above the minimum.

Derivation

From τ = T·r/J with r = d/2 and J = πd⁴/32: τ = 16T/(πd³). Rearranging τ ≤ τ_allow yields d ≥ (16T/πτ_allow)^(1/3). For hollow sections replace J with π(d_o⁴−d_i⁴)/32.

Step-by-Step Calculation

Follow each step to understand how the result is calculated from your inputs.

Step 1

Establish the design torque from power and speed or direct input.

T = 9550·P/N
Intermediate: Consistent SI basis (N·m)
Result: Design torque T = 98.80 N·m
Step 2

Select the allowable shear stress for the material and duty.

τ_allow ≈ 0.3·S_y / FS
Intermediate: ASME code shafts: 55 MPa; commercial: 40 MPa
Result: τ_allow = 30 MPa
Step 3

Solve the torsion formula for the minimum diameter.

d = (16·T / (π·τ_allow))^(1/3)
Intermediate: Peak shear stress occurs at the outer fibre
Result: d_min = 25.60 mm
Step 4

Round up to the nearest preferred Renard-series diameter and verify.

ISO 3 (R20/R40 series)
Intermediate: Actual stress at standard size: τ = 22.92 MPa
Result: Selected d = 28 mm | FS = 1.96
Final Answer

Understanding Your Result

What This Means

Your shaft needs at least 25.60 mm to carry the torque within the allowable shear stress. The next standard size, 28 mm, runs at 22.92 MPa — a safety factor of 1.96.

Why It Matters

An undersized shaft shears or twists beyond acceptable angles; an oversized one wastes material, adds bearing load and increases deflection losses elsewhere in the drivetrain.

Professional Interpretation

Section is adequate with reserve capacity — check keyways and shoulders for stress concentration before finalising.

Recommendations

  • •Round up to preferred sizes (ISO 3) — custom diameters cost significantly more.
  • •Account for keyways: reduce allowable stress ~25% when a keyway is present at the critical section.
  • •Check combined bending + torsion with equivalent-moment methods for real driveline geometry.

Educational Content

Introduction

Shafts are the rotating backbone of every machine: they carry torque from motors to gears, pulleys and couplings. Sizing a shaft diameter correctly balances strength, stiffness, weight and cost — and a shaft diameter calculator applies the classical torsion formulas instantly.

Concept Explanation

Applied torque generates shear stress that varies linearly from zero at the centre to a maximum at the outer surface: τ = T·r/J. For a solid circular section J = πd⁴/32, so strength rises steeply with diameter — doubling d multiplies torsional strength by eight and stiffness by sixteen.

Applications

▸Power transmission lines between motor, gearbox and driven machine
▸Line shafting, jackshafts and fan/ pump drive spindles
▸Automotive axles, camshaft blanks and steering columns (preliminary sizing)
▸Conveyor head-shafts and roll-drive spindles
▸Teaching torsion and polar section properties

Benefits

  • •Instant minimum-diameter answer from the ASME torsion formula
  • •Automatic rounding to preferred ISO 3 standard diameters
  • •Solid and hollow sections handled with correct section properties
  • •Immediate feedback on actual stress, safety factor and angle of twist
  • •Unit-aware inputs for torque, power and speed

Limitations

  • •Pure torsion only — combined bending requires equivalent-moment methods
  • •No keyway, shoulder or hole stress-concentration factors applied automatically
  • •Static strength basis; fatigue (Goodman/Soderberg) needs separate analysis
  • •Critical-speed and whirling checks are not covered

Best Practices

  • •Prefer deeper analysis once a trial size is known — start here, verify with combined-load tools
  • •Keep the critical section away from sharp shoulders; use generous fillet radii
  • •Reduce allowable stress when keyways or cross-holes interrupt the surface fibres
  • •Check twist-sensitive drives (camshafts, indexing) against °/m limits

Common Misconceptions

Myth: A stronger material always fixes an undersized shaft.
Truth: Stiffness depends on G and geometry, not strength — a high-strength steel shaft can still twist excessively. Diameter governs both.
Myth: Doubling diameter doubles strength.
Truth: Torsional strength scales with d³ and stiffness with d⁴ — small diameter increases buy enormous margin.
Myth: Hollow shafts are weaker than solid ones of equal outer diameter.
Truth: For equal outer diameter a hollow shaft loses some strength but far less weight — the strength-to-weight ratio actually improves.

Practical Tips

  • •Start from ASME code allowables: 55 MPa (code shafts) or 40 MPa (commercial) before applying your own factors.
  • •If a keyway sits at the critical section, knock ~25% off the allowable stress.
  • •Your current safety factor is 1.96 — aim for ≥ 1.5 on static duties.
  • •Choose the next Renard size up rather than a non-standard diameter — bearings and hubs will thank you.

Common Mistakes

Mixing kW with HP in the torque conversion
Use T = 9550·P[N]/N[RPM] for kilowatts; the constant is 7127 for metric horsepower and 5252 for US horsepower.
Ignoring the keyway at the critical section
Keyways cut the load-bearing area and introduce K_t ≈ 2–3; derate the allowable stress instead of hoping.
Sizing purely on static strength
Repeated torque cycles need a fatigue check (modified Goodman); many shafts fail well below the static limit.

Assumptions

This calculator makes the following assumptions to provide estimates:

Pure torsion: Bending and axial loads are not included — use equivalent-moment methods when they are significant.
Linear-elastic material: Stress stays proportional to strain; no yielding or creep is considered.
Circular section: Solid or concentrically hollow round sections only; J uses the standard circle formulas.
Smooth surface at critical section: No stress-concentration factors for keyways, grooves or steps unless noted.

Limitations

Be aware of these limitations when using this calculator:

No combined loading: Real drivelines combine torsion with bending from gear forces — verify with equivalent torque/moment analysis.
Static basis: Output is a static-strength size; fatigue life under reversing torque requires endurance-based methods.
Standard series only: Preferred diameters follow ISO 3 (Renard); specialty sizes must be checked separately.
Constant cross-section assumed: Stepped shafts should be verified section-by-section at each shoulder.

Frequently Asked Questions

Answers to common questions about this calculator.

What is a shaft diameter calculator?
A shaft diameter calculator is a mechanical engineering tool that determines the minimum required shaft diameter based on applied torque, power, speed, and allowable shear stress. It uses torsion formulas from ASME and ISO standards to ensure safe shaft design.
How is shaft diameter calculated?
For solid shafts, the minimum diameter is calculated using d = (16T/(πτ_allow))^(1/3), where T is the applied torque and τ_allow is the allowable shear stress. For hollow shafts, the outer diameter depends on the diameter ratio using the polar moment of inertia J.
What is torque in shaft design?
Torque is the rotational force applied to the shaft, measured in Nm or lb-ft. It is calculated from power and speed using T = P/ω, where P is power in watts and ω is angular velocity in rad/s. Torque directly determines the shear stress in the shaft.
What is allowable shear stress?
Allowable shear stress is the maximum shear stress a shaft material can safely withstand, typically a fraction of the material yield strength. For ductile materials like steel, τ_allow ≈ 0.3×S_y, where S_y is the tensile yield strength. ASME code specifies 40-55 MPa for general shafts.
What is the polar moment of inertia?
The polar moment of inertia J measures a shaft resistance to torsion. For solid circular shafts, J = πd⁴/32. For hollow shafts, J = π(d_o⁴-d_i⁴)/32. It appears in the torsion formula τ = T×r/J.
What is the difference between solid and hollow shafts?
Solid shafts are simpler to manufacture and lower cost. Hollow shafts provide higher strength-to-weight ratio and are used in weight-critical applications like aerospace. For the same outer diameter, hollow shafts have less torsional stiffness.
What is the torsion formula?
The torsion formula τ = T×r/J relates shear stress τ to applied torque T, radial distance r from the center, and polar moment of inertia J. The maximum shear stress occurs at the outer surface where r is maximum (d/2).
What materials are used for shafts?
Common shaft materials include: AISI 1018-1045 carbon steel (general purpose), AISI 4140/4340 alloy steel (high strength), stainless steel (corrosion resistance), and hardened steels for wear resistance. Material selection depends on strength, cost, and environmental requirements.
What is the ASME shaft design code?
The ASME B106.1M standard provides guidelines for shaft design, including allowable stresses, stress concentration factors, and combined loading considerations. It recommends allowable shear stresses of 40 MPa for commercial shafts and 55 MPa for ASME code shafts.
How does speed affect shaft design?
Speed affects shaft design through torque calculation (higher speed = lower torque for same power), and critical speed considerations. Shafts must be designed to avoid operating near their natural frequencies to prevent resonant vibration.
What is keyway stress concentration?
Keyways create stress concentrations that reduce shaft fatigue strength. The stress concentration factor K_t for keyways is typically 2.0-3.0. ASME recommends reducing allowable stress by 25% when keyways are present.
What is angle of twist?
Angle of twist θ = T×L/(G×J) in radians, where L is shaft length and G is the shear modulus. It measures how much a shaft twists under torque. Typical limits are 0.25-1 degree per meter for power transmission shafts.
What is shear modulus?
Shear modulus G (modulus of rigidity) describes a material resistance to shear deformation. For steel, G ≈ 79 GPa (11.5×10⁶ psi). For aluminum, G ≈ 26 GPa. It is related to Young modulus E and Poisson ratio ν by G = E/(2(1+ν)).
How do I select shaft diameter for combined loading?
For combined torsion, bending, and axial loads, use the maximum shear stress theory (Tresca) or distortion energy theory (von Mises). The equivalent torque T_e = √(M²+T²) or equivalent moment M_e = (M+√(M²+T²))/2 per ASME code.
What is critical speed of a shaft?
Critical speed is the rotational speed at which a shaft becomes dynamically unstable due to resonance with its natural frequency. Shafts should operate at least 20% below the first critical speed. For long slender shafts, this is a primary design constraint.
What are preferred shaft diameters?
Standard preferred shaft diameters follow R20 or R40 Renard series: 10, 12, 14, 16, 18, 20, 22, 25, 28, 30, 32, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200 mm.
What is the factor of safety in shaft design?
Factor of safety (FOS) accounts for uncertainties in loads, material properties, and manufacturing. Typical FOS values: 1.5-2.0 for general machinery, 2.0-3.0 for critical applications, 3.0-4.0 for shock loads, and >4.0 for safety-critical applications.
How do surface finishes affect shaft strength?
Surface finish affects fatigue strength through surface roughness factor. Ground surfaces have k_a ≈ 0.9, machined surfaces ≈ 0.8, and as-rolled surfaces ≈ 0.6. Poor surface finishes reduce fatigue life due to stress concentration at surface irregularities.
What is the effect of size on shaft strength?
Larger shafts have lower fatigue strength due to size effects (increased probability of material defects). The size factor k_b decreases from 1.0 for small specimens to about 0.6 for large shafts (d > 250 mm). This is accounted for in fatigue design.
What are shaft shoulders and fillets?
Shaft shoulders are step changes in diameter used for axial location of components. Fillets (radius at steps) reduce stress concentration. The recommended fillet radius is at least 10% of the smaller shaft diameter. Stress concentration factor K_t depends on r/d and D/d ratios.
How do I design a shaft for fatigue?
Fatigue design uses the modified Goodman, Soderberg, or ASME-elliptic criteria to account for mean and alternating stresses. The endurance limit S_e is estimated as S_e = k_a×k_b×k_c×k_d×k_e×0.5×S_ut, where various k factors adjust for surface, size, load, temperature, and reliability.
What is a stepped shaft?
A stepped shaft has different diameters along its length to accommodate bearings, gears, and other components. Each step provides a shoulder for axial location. The largest diameter handles the highest torque, while smaller sections reduce weight and cost.
How do I calculate power transmitted by a shaft?
Power transmitted by a rotating shaft is P = T×ω = 2π×N×T/60, where T is torque in Nm, N is speed in RPM, and P is power in watts. For horsepower: HP = T×N/5252 (T in lb-ft) or HP = T×N/63000 (T in lb-in).
What is the relationship between diameter and torsional stiffness?
Torsional stiffness of a solid shaft is proportional to d⁴ (polar moment J = πd⁴/32). Doubling the diameter increases stiffness by 16 times. This strong relationship makes diameter the most effective parameter for controlling torsional deflection.
How do bearings support shaft loads?
Bearings support shaft radial and axial loads at support locations. Ball bearings handle moderate loads at high speeds, while roller bearings handle heavier loads. Bearing spacing affects shaft bending deflection and critical speed.
What is shaft alignment?
Shaft alignment ensures the rotational axes of connected shafts are collinear. Misalignment causes increased bearing loads, vibration, and premature failure. Allowable misalignment depends on coupling type: 0.1-0.5 mm for flexible couplings, near zero for rigid couplings.
How does temperature affect shaft design?
Temperature affects shaft design through: thermal expansion (changes length and clearances), material strength reduction at elevated temperatures, and changes in lubricant viscosity. Shafts operating above 200°C require special heat-resistant steels.
What is the difference between torque and power?
Torque is the rotational force (turning moment), measured in Nm or lb-ft. Power is the rate of doing work, measured in watts or HP. They are related by P = T×ω. A gearbox can increase torque while reducing speed, keeping power constant (minus losses).
What is a coupling?
A coupling connects two shaft ends to transmit torque. Rigid couplings require precise alignment and are used for coaxial shafts. Flexible couplings accommodate minor misalignment and absorb shock loads. Common types include flange, gear, grid, and disc couplings.
How do I select shaft material?
Material selection considers: tensile/yield strength, fatigue endurance limit, hardness, toughness, corrosion resistance, machinability, cost, and availability. AISI 1045 steel (quenched and tempered) is a common choice offering good strength at moderate cost.
What is the hollow ratio in shaft design?
The hollow ratio d_i/d_o ranges from 0 (solid) to about 0.9 (very thin wall). Common ratios are 0.5-0.7 for weight savings. Increasing the ratio reduces weight but also reduces torsional strength. Above 0.8 wall buckling may become a concern.
How does length affect shaft design?
Shaft length affects bending deflection (proportional to L³), angle of twist (proportional to L), critical speed (proportional to 1/L²), and weight. Long shafts may require intermediate supports, larger diameters, or consideration of whirling instability.
What are stress concentrations in shafts?
Stress concentrations occur at geometric discontinuities: keyways (K_t ≈ 2.0-3.0), snap ring grooves (K_t ≈ 3.0-5.0), threaded sections (K_t ≈ 2.0-3.5), sharp corners, and cross-holes. They significantly reduce fatigue strength and must be accounted for in design.
What is the maximum allowable angle of twist?
Maximum allowable angle of twist depends on application: 0.25°/m for precision machine tools, 0.5°/m for general power transmission, 1.0°/m for slow-speed applications. Excessive twist causes timing errors in camshafts and synchronisation issues.
Can I use this calculator for camshaft design?
Yes, the torsion formulas apply to camshafts, but camshafts also experience significant bending loads from valve spring forces. Combined loading analysis using equivalent torque methods should be used for accurate camshaft design.
Explore the full collection:

Related Calculators

Explore more calculators related to this topic.

Next Logical Steps

Explore more calculators related to this topic.

Related Guides

Deepen your understanding with these educational resources.

Glossary

Technical terms used in mortgage calculations explained in plain language.

Torque (T)
Rotational force applied to a shaft, expressed in newton-metres (Nm). It is computed from power and speed as T = P/ω or T = 9550·P/N.
Allowable Shear Stress (τ_allow)
Maximum shear stress a material can safely sustain, typically τ_allow ≈ 0.3·S_y divided by a safety factor per ASME guidelines.
Polar Moment of Inertia (J)
Geometric property measuring resistance to torsion. J = πd⁴/32 for solid and J = π(d_o⁴−d_i⁴)/32 for hollow shafts.
Angle of Twist (θ)
Rotation of one shaft end relative to the other under torque, θ = T·L/(G·J). Expressed in degrees per metre for design checks.
Hollow Ratio (d_i/d_o)
Inner-to-outer diameter ratio of a hollow shaft. Zero is a solid shaft; common values are 0.5–0.7 for weight savings.
Keyway
Longitudinal slot cut into a shaft to locate a key that transmits torque to a hub; it creates a stress concentration that lowers fatigue strength.
Critical Speed
Rotational speed at which a shaft resonates with its natural frequency, causing dynamic instability. Operate at least 20% below it.
Factor of Safety (FOS)
Ratio of allowable stress to actual stress (or material strength to demand). Typical values: 1.5–2.0 general, >3.0 for shock loads.
Shaft
A rotating machine element used to transmit power and torque between components such as gears, pulleys, and couplings.
Torsion
The twisting action produced by an applied torque, generating shear stress that increases linearly from the centre to the outer surface.

Authoritative References

Trusted sources and standards referenced by this calculator.

Applicable Standards

ASME B106.1MISO 6336DIN 6885ISO 3 (Renard series)

Was This Calculator Helpful?

Page Information

Last Updated:

August 2026

Version:

2.1.0

License:

Free to use for educational and professional purposes.