Mechanical Engineering Calculator

Shaft Diameter Calculator

Calculate the minimum required solid circular shaft diameter subjected to combined bending moment and torsional load using the maximum shear stress theory.

Combined Loading Schematic

Solid circular shaft subjected to torsion and bending

M = 500 N·mT = 1200 N·md

Input Parameters

N·m

Maximum bending moment.

N·m

Transmitted torsional moment.

MPa

Safe working shear stress of the material.

mm

Standard size to check against required minimum.

Design Tip

If the shaft has a keyway, it is common practice to increase the theoretical required diameter by applying a stress concentration factor.

Required Min. Diameter

47.96mm

Equivalent Twisting Moment (Te)

1,300 N·m

Proposed Size

50 mm

PASS — Proposed size is safe

Required diameter is 47.96 mm, and your proposed size is 50 mm.

Governing Formula

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

Minimum shaft diameter

MN·m

Bending moment

TN·m

Torque / Twisting moment

τMPa

Allowable shear stress

Calculation Assumptions

  • Solid circular cross-section
  • Maximum Shear Stress Theory
  • No axial loading considered
  • No stress concentration factors

Engineering Code

Incorporate this calculation into your own software or spreadsheet.

Python
import math

def calculate_shaft_diameter(M, T, tau_allow):
    """
    Calculate required solid shaft diameter under combined loading.
    
    M: Bending Moment (N.m)
    T: Torsion/Torque (N.m)
    tau_allow: Allowable shear stress (MPa or N/mm^2)
    
    Returns: Required diameter (mm)
    """
    if tau_allow <= 0:
        raise ValueError("Allowable stress must be > 0")

    # Convert moments to N.mm
    M_mm = M * 1000
    T_mm = T * 1000

    # Equivalent twisting moment
    Te_mm = math.sqrt(M_mm**2 + T_mm**2)

    # Required diameter using Max Shear Stress Theory
    d = ((16 * Te_mm) / (math.pi * tau_allow)) ** (1/3)
    return d

# Example
M = 500
T = 1200
tau = 60

d_req = calculate_shaft_diameter(M, T, tau)
print(f"Required Diameter: {d_req:.2f} mm")
MATLAB
function d = shaft_diameter(M, T, tau_allow)
    % Calculate required solid shaft diameter
    % M = Bending Moment (N.m)
    % T = Torque (N.m)
    % tau_allow = Allowable shear stress (MPa)

    if tau_allow <= 0
        error('Allowable stress must be > 0');
    end

    % Convert to N.mm
    M_mm = M * 1000;
    T_mm = T * 1000;

    % Equivalent twisting moment
    Te_mm = sqrt(M_mm^2 + T_mm^2);

    % Required diameter
    d = ((16 * Te_mm) / (pi * tau_allow))^(1/3);
end

% Example
M = 500;
T = 1200;
tau = 60;

d_req = shaft_diameter(M, T, tau);
fprintf('Required Diameter: %.2f mm\n', d_req);
Excel Formula (Replace M, T, Tau with cell refs)
=((16*SQRT((M*1000)^2+(T*1000)^2))/(PI()*Tau))^(1/3)

Example Calculation

Determine the required diameter for a solid steel shaft subjected to a bending moment of 500 N·m and a torque of 1,200 N·m. The allowable shear stress for the material is 60 MPa (N/mm²).

d = [ 16 × √((500 × 1000)² + (1200 × 1000)²) / (π × 60) ]^(1/3)
d = 47.96 mm

Technical Explanation: Shaft Design Under Combined Loading

In mechanical power transmission systems, rotating shafts are rarely subjected to just one type of load. Gears, pulleys, and sprockets mounted on shafts create a bending moment, while the power transmitted generates a torsional moment (torque). To design a safe shaft, engineers must account for both forces acting simultaneously.

Equivalent Twisting Moment (Te)

According to the Maximum Shear Stress theory (often applied to ductile materials like steel), the combined effect of bending (M) and torsion (T) can be represented by an Equivalent Twisting Moment. This is the hypothetical pure torque that would induce the same maximum shear stress as the actual combined loads. The formula is: Te = √(M² + T²).

How to Use This Calculator

  1. Bending Moment (M): Enter the maximum bending moment acting on the critical section of the shaft in Newton-meters (N·m).
  2. Torque (T): Input the torsional load transmitted by the shaft in N·m.
  3. Allowable Shear Stress (τ): Enter the safe working shear stress of the shaft material in MPa. This value usually includes a factor of safety relative to the material's yield strength.
  4. Proposed Diameter (Optional): Enter the standard shaft diameter you intend to use to verify if it is larger than the minimum required size.

Limitations and Assumptions

This calculator assumes a solid, circular cross-section and ignores stress concentration factors (like keyways or steps) and axial loads. For detailed fatigue design under fluctuating loads, modifying factors (such as ASME ASME fatigue factors Km and Kt or the Goodman diagram) must be applied.

Real-World Engineering Cases

Marine Propeller Shaft Failures

In marine engineering, propeller shafts often fail not due to pure torque, but because of bending moments induced by the ship's hull deflection and uneven wake distribution acting on the propeller blades.

Engineering Lesson

Never design a power transmission shaft based on engine torque alone. Bending moments from overhanging loads (cantilevered pulleys or propellers) often dictate the required diameter.

Industrial Gearbox Shaft Fatigue

A conveyor gearbox shaft sheared at a stepped diameter section. The engineers sized the shaft correctly for combined bending and torsion but ignored the stress concentration factor caused by a sharp corner radius at a bearing seat.

Engineering Lesson

The theoretical minimum diameter is a baseline. You must increase this diameter at critical sections where keyways, snap ring grooves, or diameter steps create stress concentrations.

Frequently Asked Questions

What formula is used to calculate shaft diameter?

The formula based on maximum shear stress is d = [16 × √(M² + T²) / (π × τ)]^(1/3), where M is the bending moment, T is torque, and τ is the allowable shear stress.

What is the equivalent twisting moment?

The equivalent twisting moment (Te) is the pure torque that would produce the same shear stress as the combined loads. It is calculated as Te = √(M² + T²).

Does this account for keyways?

No. If your shaft has keyways, standard practice dictates you should decrease the allowable shear stress by 25% or multiply the theoretical required diameter by an appropriate stress concentration factor.

Engineering calculations provided by this tool are for educational and preliminary design purposes. Always verify calculations, loading conditions, fatigue factors, stress concentrations, and design requirements before using results in a final mechanical design.