dash–calculator

04 Numbers and Counting

Shaft Size Calculator: Find the Right Diameter

Readout 04-0695 · Updated · Standard formula, shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

This shaft size calculator works out the minimum diameter needed for a solid or hollow round shaft under a given torque, based on the allowable shear stress of the material. You enter the applied torque, the shaft length (for angle of twist), the material’s allowable shear stress, and whether the shaft is solid or hollow, and you get the required diameter in inches or millimeters, plus the angle of twist over the full length.

Formula

For a solid circular shaft under pure torsion, the relationship between torque, shear stress, and diameter comes from the torsion formula:

τ = T * c / J

Where:

  • τ = shear stress at the outer surface (psi or Pa)
  • T = applied torque (lb-in or N·m)
  • c = outer radius = d/2
  • J = polar moment of inertia = π * d⁴ / 32 for a solid shaft

Rearranging to solve for the minimum diameter d when the stress is at the allowable limit τ_allow:

d = (16 * T / (π * τ_allow))^(1/3)

For a hollow shaft with outer diameter d_o and inner diameter d_i, the polar moment is J = π * (d_o⁴ – d_i⁴) / 32, and the stress at the outer fiber is:

τ = T * (d_o/2) / J

If you know the outer diameter and the allowable stress, you can solve for the required inner diameter (or the wall thickness). The angle of twist θ over length L is:

θ = T * L / (G * J) (in radians)

where G is the shear modulus of the material (about 11.5 × 10⁶ psi for steel, 3.8 × 10⁶ psi for aluminum). The calculator uses 11.5e6 psi as a default for steel; you can adjust the shear modulus in the formula if you edit the code, but for a quick check, steel is the most common shaft material.

Worked Example

Using the default values from the calculator:

  • Torque T = 1200 lb-in
  • Length L = 24 in
  • Allowable shear stress τ = 12,000 psi
  • Solid shaft

Step 1: Compute the minimum diameter using the solid shaft formula:

d = (16 * 1200 / (π * 12000))^(1/3) = (19200 / 37699.1)^(1/3) = (0.5093)^(1/3) = 0.798 in

Step 2: Compute the polar moment of inertia for that diameter:

J = π * (0.798)^4 / 32 = π * 0.405 / 32 = 0.0398 in⁴

Step 3: Compute the angle of twist over 24 inches:

θ = (1200 * 24) / (11.5e6 * 0.0398) = 28800 / 457700 = 0.0629 rad = 3.60 degrees

The calculator’s first output shows 0.798 in for the minimum diameter, matching our hand calculation. The angle of twist is 3.60°, which is within typical limits for many applications (often 1° per foot of length is a common design limit, so 3.6° over 2 feet might be too much – you may need a larger shaft or a stiffer material).

How to Choose the Right Shaft Size

Selecting a shaft diameter involves more than just the torque and stress. Here are the key steps:

  1. Determine the maximum torque the shaft will experience, including shock loads or starting torque (often 2-3 times the running torque for electric motors).
  2. Pick a material and its allowable shear stress. For mild steel, the yield strength is about 36,000 psi, so a typical allowable shear stress might be 12,000 psi (using a factor of safety of 3). For alloy steels, the allowable can be higher.
  3. Decide on a solid or hollow shaft. Hollow shafts are lighter and can be more efficient for long spans, but they are more expensive to manufacture.
  4. Check the angle of twist. Even if the stress is below the allowable, excessive twisting can cause misalignment or vibration. A common limit is 0.08 degrees per foot for precision shafts, up to 1 degree per foot for general power transmission.
  5. Consider bending loads, keyways, and stress concentrations. If the shaft also carries bending loads, you need to combine the stresses using a failure theory like von Mises. Keyways reduce the cross-section and create stress risers – many designers reduce the allowable stress by 25-40% when a keyway is present.

Common Mistakes and Pitfalls

  • Mixing units: Torque in N·m with stress in psi will give nonsense. Always convert to consistent units (e.g., lb-in with psi, or N·m with Pa).
  • Using yield strength instead of allowable stress: You must apply a safety factor. For ductile materials, the allowable shear stress is often 0.577 * (yield strength / safety factor) based on the von Mises criterion.
  • Forgetting the keyway: A standard keyway can reduce the shaft’s strength by 25% or more. If you have a keyway, either increase the diameter or reduce the allowable stress.
  • Ignoring the angle of twist: A shaft can be strong enough but still twist too much for the application. Always check the angle.
  • Assuming the torque is constant: If the torque fluctuates, you need to consider fatigue. Use the equivalent torque based on the Soderberg or Goodman criteria.

Solid vs. Hollow Shafts

Hollow shafts are often used in aerospace and automotive applications where weight matters. The stress in a hollow shaft is higher at the outer fiber, but the material near the center of a solid shaft carries very little stress – it’s mostly dead weight. For the same outer diameter, a hollow shaft with a 0.5 ratio of inner to outer diameter has about 6% less strength but is 25% lighter. The calculator lets you input the outer diameter and it will compute the required inner diameter (or vice versa). If you need a specific wall thickness, you can iterate with the calculator.

Material Properties and Safety Factors

The allowable shear stress depends heavily on the material and the application. Here are typical values for common shaft materials (yield strength in shear, not ultimate):

  • Mild steel (AISI 1020): yield shear ≈ 21,000 psi; allowable with safety factor 3 ≈ 7,000 psi
  • Alloy steel (AISI 4140, quenched and tempered): yield shear ≈ 60,000 psi; allowable with safety factor 3 ≈ 20,000 psi
  • Stainless steel (304): yield shear ≈ 20,000 psi; allowable ≈ 6,700 psi
  • Aluminum 6061-T6: yield shear ≈ 20,000 psi; allowable ≈ 6,700 psi

Always use a safety factor appropriate for the application. For rotating shafts with fatigue, use at least 2.5-3. For static applications, 2 is often sufficient. The calculator uses 12,000 psi as a default, which is a reasonable value for a medium-strength steel with a safety factor of about 3.

Limitations of the Formula

This calculator is based on the simple torsion formula for a straight, circular shaft of uniform cross-section. It does not account for:

  • Bending moments (which are common in real shafts)
  • Axial loads
  • Stress concentrations at shoulders, keyways, or splines
  • Fatigue from cyclic loading
  • Temperature effects on material properties
  • Dynamic effects like resonance or critical speed

For critical applications, you should consult a mechanical engineer or use a more comprehensive design method (e.g., ASME shaft design code). The calculator is a starting point for preliminary sizing.

Frequently Asked Questions

What is the difference between torque and horsepower in shaft sizing? Torque is the twisting force, while horsepower is the rate of doing work. For a shaft rotating at speed N (RPM), torque T (lb-in) relates to power P (hp) by T = 63025 * P / N. So a 10 hp motor at 1800 RPM gives about 350 lb-in of torque, but at 100 RPM it gives 6303 lb-in – that’s why low-speed, high-power applications need big shafts.

How do I account for a keyway in the shaft? A standard keyway reduces the shaft’s torsional strength by about 25% (for a single keyway) to 40% (for two opposite keyways). The simplest approach is to increase the calculated diameter by 5-10% or reduce the allowable stress by the same factor. Many design codes specify a reduction factor based on the keyway dimensions.

Can I use this calculator for a hollow shaft? Yes, select “Hollow” and enter the outer diameter. The calculator will solve for the required inner diameter (or you can compute the inner diameter from the wall thickness). The formula accounts for the polar moment of inertia of the hollow section.

What is the angle of twist limit? For general power transmission, a limit of 1 degree per foot of length is common. For precision machinery (like machine tool spindles), the limit is often 0.1 degree per foot. If your calculated angle exceeds the limit, you need a larger diameter or a material with a higher shear modulus (steel is better than aluminum).

Why does the calculator use 11.5e6 psi for shear modulus? That is the typical shear modulus (G) for steel. Aluminum has a G of about 3.8e6 psi, and titanium about 6.0e6 psi. If you use a different material, you should adjust the G value in the angle of twist calculation. The stress calculation does not depend on G, only on the allowable stress.

What if my shaft has bending loads too? You cannot use the simple torsion formula alone. You need to combine the bending stress and torsional shear stress using the von Mises criterion or the maximum shear stress theory. The equivalent torque method (Te = sqrt(M² + T²) for static loads) is a common approach. For rotating shafts with alternating bending, use the ASME code for shaft design.

Related

Formula used
in T | Applied torque | lb-in | 1200 | 0 | 1000000
in L | Shaft length | in | 24 | 0 | 10000
in tau | Allowable shear stress | psi | 12000 | 1 | 200000
in d_o | Outer diameter (hollow only) | in | 2 | 0.1 | 20
sel type | Shaft type | Solid=1, Hollow=2
out d_min | Minimum diameter | in | (type == 1) ? pow(16 * T / (pi * tau), 1/3) : pow(16 * T * d_o / (pi * tau * (pow(d_o,4) - pow(d_i,4))), 1/3) | 3
out angle | Angle of twist | degrees | (type == 1) ? (T * L * 180) / (pi * 11.5e6 * (pi * pow(d_min,4) / 32)) : (T * L * 180) / (pi * 11.5e6 * (pi * (pow(d_o,4) - pow(d_i,4)) / 32)) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More on this panel

The whole Numbers and Counting panel →