Mechanical Engineering Calculator

Shaft Design Calculator

Calculate the minimum required diameter of a solid circular shaft subjected to combined bending moment and torsion using the ASME maximum shear stress theory.

Shaft Configuration

Solid circular shaft under combined bending moment and torsion (ASME)

T = 350000 N·mmM = 180000 N·mmdL (optional for twist)

Input Parameters

SI units: N·mm for moments, MPa for stresses, mm for diameter.

N·mm

Applied torsional moment (1 N·m = 1000 N·mm)

N·mm

Maximum bending moment at the critical section

MPa

Material yield strength (0.2 % proof stress)

MPa

Used for ASME 0.18·Sut limit

—

Shock & fatigue (typical 1.5–2.0)

—

Shock & fatigue (typical 1.0–1.5)

Power → Torque Helper

kW

Transmitted power in kilowatts.

rpm

Rotational speed of the shaft.

Optional – Angular Deflection

mm

Length of the shaft between the points where twist is measured.

MPa

≈ 80 000 MPa for steel

Minimum Required Diameter

31.50mm

Allowable Shear τ

72.0 MPa

Pure Torsion Dia.

29.15 mm

Angular Deflection (Twist)

θ = 2.074° over the given length. Typical allowable limits are 0.25°–0.5° per meter of shaft.

Governing Formula (ASME)

d³ = (16 / (π τ_allow)) · √[(Kb M)² + (Kt T)²]
dmm

Minimum shaft diameter

TN·mm

Applied torque

MN·mm

Bending moment

τ_allowMPa

Allowable shear stress

Kb—

Bending shock & fatigue factor

Kt—

Torsion shock & fatigue factor

Calculation Assumptions

  • Solid circular cross-section
  • Maximum shear stress theory (ASME)
  • Linear elastic material behavior
  • Constant diameter (no steps)
  • No axial load considered
  • Stress concentration handled via Kb/Kt

Engineering Code

Reuse the calculation in your own workflow.

Python
def shaft_diameter(T, M, tau_allow, Kb=1.5, Kt=1.0):
    """
    Minimum solid shaft diameter under combined bending + torsion
    (ASME maximum shear stress theory).

    T, M      : N·mm
    tau_allow : MPa
    Returns   : diameter in mm
    """
    import math
    if tau_allow <= 0 or Kb <= 0 or Kt <= 0:
        raise ValueError("Invalid parameters")
    equivalent = math.sqrt((Kb * M)**2 + (Kt * T)**2)
    d_cubed = (16 / (math.pi * tau_allow)) * equivalent
    return d_cubed ** (1/3)


# Example
T = 350000      # N·mm
M = 180000
tau = 72.0
Kb = 1.5
Kt = 1.0

d = shaft_diameter(T, M, tau, Kb, Kt)
print(f"Required diameter: {d:.2f} mm")
MATLAB
function d = shaft_diameter(T, M, tau_allow, Kb, Kt)
    % Minimum solid shaft diameter (ASME max. shear stress)
    % T, M in N·mm, tau_allow in MPa → d in mm

    if nargin < 4, Kb = 1.5; end
    if nargin < 5, Kt = 1.0; end

    equivalent = sqrt((Kb*M)^2 + (Kt*T)^2);
    d_cubed = (16 / (pi * tau_allow)) * equivalent;
    d = d_cubed^(1/3);
end

% Example
T = 350000;
M = 180000;
tau = 72.0;
d = shaft_diameter(T, M, tau, 1.5, 1.0);
fprintf('Required diameter: %.2f mm\n', d);
Excel Formula
=POWER((16/(PI()*tau))*SQRT((Kb*M)^2+(Kt*T)^2),1/3)

Example Calculation

A steel shaft (Sy = 250 MPa, Sut = 400 MPa) transmits 350 N·m torque and experiences a maximum bending moment of 180 N·m. Using Kb = 1.5, Kt = 1.0 and no keyway:

τ_allow = min(0.30 × 250, 0.18 × 400) = 55 MPa
d³ = (16 / (π × 55)) × √[(1.5 × 180000)² + (1.0 × 350000)²]
d ≈ 42.1 mm

Technical Explanation: Shaft Design Under Combined Loading

Technical Introduction

In mechanical engineering, rotating shafts are critical components that transmit power and support rotating elements such as gears, pulleys, and sprockets. These mounted components subject the shaft to complex, combined loading conditions. The transmitted power generates a torsional moment (torque), while the transverse forces and the weight of the components create bending moments. Calculating the minimum required shaft diameter under these combined loads is a fundamental step in mechanical design to ensure the shaft does not yield or fail under service loads.

Governing Formula

This calculator utilizes the Maximum Shear Stress Theory (also known as Guest's or Tresca's theory), which is highly conservative and widely applied to ductile materials like steel. The governing equation for the minimum solid shaft diameter d is:

d = [ 16 × √(M² + T²) / (π × τ_allow) ]^(1/3)

Where:

  • d = Minimum required shaft diameter
  • M = Maximum bending moment at the critical section
  • T = Maximum torsional moment (torque)
  • τ_allow = Allowable shear stress of the shaft material

The term √(M² + T²) represents the Equivalent Twisting Moment (T_e), which is the hypothetical pure torque that would produce the same maximum shear stress as the combined bending and torsional loads.

Calculation Method / Derivation

The derivation combines the flexure formula for bending and the torsion formula for circular shafts. For a solid circular shaft, the maximum bending stress is σ = 32M / (πd³), and the maximum shear stress due to torsion is τ = 16T / (πd³).

According to the Maximum Shear Stress Theory, the absolute maximum shear stress in a 2D stress state (assuming no axial stress) is given by:

τ_max = √ [ (σ/2)² + τ² ]

Substituting the expressions for σ and τ into this equation yields: τ_max = [ 16 / (πd³) ] × √(M² + T²). By setting τ_max equal to the allowable shear stress τ_allow and solving for d, we obtain the governing formula used by the calculator.

Input Parameters

  • Bending Moment (M): The maximum bending moment at the critical cross-section of the shaft, typically occurring at the location of a gear, pulley, or bearing. It is caused by transverse loads and the weight of the mounted components.
  • Torque (T): The torsional moment transmitted through the shaft to drive the connected machinery. It is directly related to the power and rotational speed of the shaft.
  • Allowable Shear Stress (τ_allow): The maximum shear stress the material can safely withstand. For ductile materials, this is typically derived from the material's yield strength (S_y) divided by a factor of safety, often using the relation τ_allow = 0.5 S_y / FS.

Engineering Interpretation

The calculated diameter represents the absolute minimum size required to prevent yielding under the specified static combined loads. However, this value is only a baseline. In practical design, the engineer must select the next available standard shaft size. Furthermore, if the shaft features stress concentrators such as keyways, splines, or sudden diameter steps, the actual stress will be significantly higher. In such cases, the allowable stress must be reduced (often by 25% for a shaft with a keyway) or the calculated diameter must be increased. A calculated diameter does not guarantee a safe design without considering fatigue, deflection, and critical speed.

Units and Unit Conversion

Consistency in units is critical for accurate results. The calculator expects:

  • Bending Moment and Torque in Newton-meters (N·m) or Newton-millimeters (N·mm).
  • Allowable Shear Stress in Megapascals (MPa), which is equivalent to N/mm².
  • The resulting diameter is output in millimeters (mm).

Common conversions: 1 N·m = 1,000 N·mm; 1 MPa = 1 N/mm². Mixing units will yield drastically incorrect diameters.

Alternative / General Case

This calculator applies the Maximum Shear Stress Theory for static loading. Alternative approaches include:

  • Maximum Normal Stress Theory (Rankine): Uses the equivalent bending moment and is sometimes used for brittle materials.
  • ASME Code for Transmission Shafting: For fluctuating or fatigue loading, the ASME code introduces combined shock and fatigue factors (K_m for bending and K_t for torsion). The formula becomes d = [ 16 / (π × τ_allow) × √((K_m × M)² + (K_t × T)²) ]^(1/3).
  • Hollow Shafts: If weight reduction is critical, the formula is modified to include the ratio of the inner to outer diameter.

Assumptions and Limitations

  • Static Loading: The calculation assumes steady, static loads. It does not account for fatigue failure under cyclic or reversed loading.
  • No Axial Loads: The formula ignores axial forces (tension or compression) that may be present in some applications.
  • Solid Circular Cross-Section: Assumes a uniform, solid circular shaft without holes or steps.
  • No Stress Concentrations: The theoretical formula assumes a perfectly smooth shaft. It does not include stress concentration factors for keyways, grooves, or fillets.

Practical Engineering Use

This calculation is widely used in the preliminary design of various mechanical systems:

  • Gearboxes and Reducers: Sizing intermediate and output shafts that carry multiple gears and experience high torque and bending.
  • Conveyor Systems: Designing head and tail pulley shafts subjected to belt tension (bending) and drive torque.
  • Marine Engineering: Sizing propeller shafts that must withstand massive torque and significant bending from hull deflection and hydrodynamic forces.
  • Automotive Drivetrains: Preliminary sizing of axles, transmission shafts, and differential components.

Real-World Engineering Cases

Gearbox Input Shaft Failure (Overhung Load)

A high-speed gearbox input shaft failed after only 800 hours. Investigation showed that the coupling was mounted with excessive overhung distance, producing a bending moment far higher than the design value used in the original ASME calculation.

Engineering Lesson

Always verify the actual location of applied forces relative to the bearings. An extra 50 mm of overhung length can easily double the bending moment and invalidate the diameter selection.

Keyway-Induced Fatigue Crack

A 45 mm shaft transmitting 22 kW at 1500 rpm developed a fatigue crack originating at the sharp corner of a keyway. The original design had used the full allowable shear stress without the mandatory 25 % reduction.

Engineering Lesson

Never omit the keyway reduction factor. Even a well-designed fillet radius cannot fully compensate for the stress concentration and section reduction caused by a keyway.

Frequently Asked Questions

What formula does this calculator use?

The ASME maximum shear stress equation for solid shafts under combined bending and torsion: d³ = (16/(π τ_allow)) · √[(Kb M)² + (Kt T)²].

How is allowable shear stress determined?

According to ASME: τ_allow = min(0.30·Sy , 0.18·Sut). If a keyway is present the value is further reduced by 25 %.

What units should I use?

Torque and bending moment in N·mm, stresses in MPa, diameter result in mm. (1 N·m = 1000 N·mm)

Does the calculator consider hollow shafts?

The current version is for solid circular shafts only. Hollow-shaft equations replace the polar moment term with (1 – k⁴) where k = di/do.

Engineering calculations provided by this tool are for educational and preliminary design purposes. Always verify calculations, loading conditions, material properties, applicable standards, safety factors, and design requirements before using results in a final engineering design. Stress concentrations, fatigue life and critical speed checks are additional steps that must be performed separately.