Torsion of Shaft Calculator
Interactive shaft torsion simulator with 3D twist visualization, shear stress distribution, and power transmission analysis. Supports solid and hollow circular cross-sections with material presets.
Loading simulation...
Loading simulation, please wait✓ Verified Content: All equations, formulas, and reference data in this simulation have been verified by the Simulations4All engineering team against authoritative sources including MIT OpenCourseWare, Engineering Toolbox, and classic mechanics of materials textbooks. See verification log
Introduction
In 1998, a helicopter crashed in the North Sea when its main rotor gearbox failed. The failure investigation traced the cause to a fatigue crack that initiated at a stress concentration on the main drive shaft (a location where the nominal torsional stress was well below the material's allowable limit, but local stress concentrations from a manufacturing mark amplified the actual stress beyond safe levels). The load has to go somewhere, and in rotating machinery, that load travels as torque through shafts that twist under the applied moment.
This is where structures fail: not at the center of the shaft where stress is zero, but at the outer surface where shear stress reaches its maximum value. Any structural engineer will tell you that the torsion formula τ = Tr/J isn't just an equation to memorize; it reveals a fundamental truth about how torque distributes stress across a circular cross-section. Material at the center contributes almost nothing to torsional strength, which is why experienced designers specify hollow shafts whenever weight matters: you can remove most of the core material with minimal strength penalty.
Every spinning shaft in every machine, from automobile drivetrains to wind turbine generators, from industrial gearboxes to aerospace actuators, carries load through torsion. Understanding how diameter, length, material stiffness, and end conditions combine to determine stress and twist angle is fundamental knowledge for mechanical design. This simulation lets you explore these relationships interactively, building the intuition that separates shafts that survive from shafts that fail.
How to Use This Simulation
This interactive torsion analyzer computes shear stress distributions, angles of twist, and performs shaft sizing for solid and hollow circular cross-sections. The load has to go somewhere, and when that load is torque, this tool shows you exactly how shear stress varies from zero at the center to maximum at the outer surface.
Main Controls
| Control | Location | Function |
|---|---|---|
| Section Type | Top button row | Toggle between solid circular and hollow circular cross-sections |
| Analysis Mode | Second button row | Select Analysis (find stress from dimensions), Design (find diameter from stress limit), or Power Transmission (convert RPM/power to torque) |
| Material Preset | Dropdown menu | Quick-select shear modulus G for steel, aluminum, titanium, or bronze |
| Dimension Sliders | Left panel | Set outer diameter D, inner diameter d (hollow only), and length L |
Input Parameters
| Parameter | Range | Units | What It Controls |
|---|---|---|---|
| Applied Torque T | 10-10,000 | N·m | Twisting moment applied to the shaft |
| Outer Diameter D | 10-200 | mm | External diameter of the shaft |
| Inner Diameter d | 0 to 0.9D | mm | Internal diameter for hollow shafts (0 for solid) |
| Shaft Length L | 100-5000 | mm | Length over which twist angle is computed |
| Shear Modulus G | 25-80 | GPa | Material rigidity (steel ≈ 80 GPa, aluminum ≈ 26 GPa) |
| Power P | 1-500 | kW | Power transmitted (Power Transmission mode only) |
| Rotational Speed n | 100-10,000 | RPM | Shaft speed (Power Transmission mode only) |
Results Display
The simulation provides comprehensive torsion analysis:
- Stress Distribution: Radial color plot showing shear stress variation from center (zero) to surface (maximum). This is where structures fail: at the outer surface where τmax = Tr/J.
- Maximum Shear Stress τmax: Peak stress at the outer surface in MPa. Any structural engineer will tell you that this value must stay below the material's shear yield strength (typically 0.577 × σy for ductile materials).
- Polar Moment of Inertia J: Cross-section property in mm⁴. For solid shafts, J = πD⁴/32; for hollow, J = π(D⁴ - d⁴)/32.
- Angle of Twist φ: Total rotation from one end to the other in degrees (φ = TL/GJ).
- Safety Factor: Ratio of allowable shear stress to computed stress.
- Power/Torque Relationship: In Power Transmission mode, shows T = 9549 × P/n formula result.
Tips for Exploration
-
Watch the stress profile. Observe that shear stress is zero at the center and maximum at the surface. The load has to go somewhere, and material near the center contributes almost nothing to torsional strength. This linear distribution from zero to maximum is fundamental to why hollow shafts are efficient.
-
Compare solid to hollow. Set up a solid shaft with diameter D = 50 mm, note the stress. Then switch to hollow with the same outer diameter and add an inner diameter of 40 mm. The stress increases only modestly, but you've removed 64% of the material. Any structural engineer will tell you that this weight savings is why aircraft and racing components use hollow shafts.
-
Test the D⁴ sensitivity. Double the outer diameter and watch the stress drop by a factor of 8 (2³, since τ ∝ T/D³ while J ∝ D⁴). This cubic sensitivity means small diameter increases yield dramatic stress reductions. This is where structures fail when designers undersize shafts by even small amounts.
-
Explore the twist angle. Increase shaft length and observe the angle of twist increase proportionally. Then increase diameter and watch the twist decrease by the fourth power. Experienced designers balance stress limits against stiffness requirements, twist angle is often the governing criterion in precision machinery.
-
Use Power Transmission mode. Enter the power and RPM for a real application (a 10 kW motor at 1500 RPM, for example). The tool computes the required torque and sizes the shaft accordingly. Watch how higher RPM reduces required torque and thus required shaft size, which explains why high-speed drives can use smaller shafts.
Types of Torsion Problems
Pure Torsion
Pure torsion occurs when a shaft is subjected only to twisting moments with no axial force or bending. This is the idealized condition analyzed by the basic torsion formula. Examples include short coupling shafts between aligned machines and torsion bar springs.
Combined Torsion and Bending
Most real shafts experience both torsion and bending simultaneously. Gear shafts, for instance, carry bending loads from gear forces while transmitting torque. Combined loading requires calculating principal stresses and applying failure theories like Von Mises or Tresca criteria.
Non-Uniform Torsion (Warping)
In non-circular cross-sections (rectangles, I-beams), torsion causes warping. Cross-sections don't remain plane. This creates additional normal stresses and significantly complicates analysis. Thin-walled open sections are particularly susceptible to warping torsion.
Dynamic Torsion
In rotating machinery, torsional vibrations can cause fatigue failures. Torsional dynamics involves natural frequencies, critical speeds, and resonance avoidance. Engine crankshafts and long drive trains require careful torsional vibration analysis.
Key Parameters
| Parameter | Symbol | Units | Typical Range | Description |
|---|---|---|---|---|
| Applied Torque | T | N·m | 10-10,000+ | Twisting moment applied to shaft |
| Outer Diameter | D | mm | 10-200 | External diameter of shaft |
| Inner Diameter | d | mm | 0-0.9D | Internal diameter (hollow shafts) |
| Length | L | mm | 100-5000+ | Shaft length between supports |
| Shear Modulus | G | GPa | 26-80 | Material rigidity (stiffness in shear) |
| Max Shear Stress | τmax | MPa | 10-300 | Peak stress at outer surface |
| Angle of Twist | φ | degrees | 0.1-5+ | Total rotation between ends |
| Polar Moment | J | mm⁴ | 10³-10⁸ | Cross-section's torsional resistance |
Key Formulas
Torsion Formula (Shear Stress Distribution)
Formula: τ = Tr / J
Where:
- τ = shear stress at radius r (Pa)
- T = applied torque (N·m)
- r = radial distance from center (m)
- J = polar moment of inertia (m⁴)
Used when: Finding shear stress at any point in the cross-section. Maximum stress occurs at r = D/2.
Maximum Shear Stress (Solid Circular Shaft)
Formula: τmax = 16T / (πD³)
Where:
- This simplified form applies only to solid circular shafts
- Derived from τ = Tr/J with r = D/2 and J = πD⁴/32
Used when: Quick calculation for solid shafts without computing J explicitly.
Maximum Shear Stress (Hollow Circular Shaft)
Formula: τmax = 16TD / [π(D⁴ - d⁴)]
Where:
- D = outer diameter
- d = inner diameter
Used when: Analyzing hollow shafts; accounts for removed inner material.
Polar Moment of Inertia (Solid Circle)
Formula: J = πD⁴ / 32
Where:
- J has units of length⁴ (mm⁴ or m⁴)
- Quantifies resistance to torsional deformation
Used when: All torsion calculations for solid circular sections.
Polar Moment of Inertia (Hollow Circle)
Formula: J = π(D⁴ - d⁴) / 32
Where:
- Subtracting the inner void's contribution
- Higher J means lower stress and twist for same torque
Used when: Hollow shaft analysis; shows efficiency of hollow sections.
Angle of Twist
Formula: φ = TL / (GJ)
Where:
- φ = angle of twist (radians)
- L = shaft length
- G = shear modulus of elasticity
Used when: Checking rotational stiffness; ensuring twist stays within limits (typically 0.25-1°/m).
Power-Torque Relationship
Formula: P = 2πnT / 60 → T = 60P / (2πn) = 9549P / n
Where:
- P = power (watts or kW)
- n = rotational speed (RPM)
- T = torque (N·m)
Used when: Designing power transmission shafts; converting between power and torque.
Learning Objectives
After completing this simulation, you will be able to:
-
Calculate shear stress distribution in solid and hollow circular shafts, identifying maximum stress locations and understanding the linear variation with radius.
-
Determine angle of twist for given torque, length, and material, ensuring rotational stiffness meets design requirements.
-
Compare solid vs. hollow shafts quantitatively, understanding why hollow shafts offer better strength-to-weight ratios in torsion.
-
Design shafts for power transmission by converting power and RPM to torque, then sizing the shaft for stress and deflection limits.
-
Apply safety factors appropriately, selecting allowable stresses based on material, loading type, and application requirements.
-
Use standard shaft sizes in practical design, selecting commercially available diameters that meet calculated requirements.
Exploration Activities
Activity 1: Stress Distribution Visualization
Objective: Understand how shear stress varies across the cross-section.
Steps:
- Select "Solid Circular" cross-section
- Set D = 50 mm, T = 500 N·m
- Observe the stress distribution in the cross-section view
- Note the stress at r = 0 (center) vs r = D/2 (surface)
- Calculate the stress at r = D/4 using τ = Tr/J and verify with the displayed value
Observe: Stress is zero at center, increases linearly to maximum at surface; color gradient shows this variation.
Expected Result: τmax appears at outer edge (red); τ = 0 at center (green); τ at D/4 is exactly half of τmax.
Activity 2: Hollow vs Solid Shaft Comparison
Objective: Quantify the efficiency advantage of hollow shafts.
Steps:
- With solid shaft, note J and τmax for D = 50 mm, T = 500 N·m
- Switch to hollow shaft with D = 50 mm, d = 30 mm (same outer diameter)
- Compare the new τmax value
- Calculate the cross-sectional area ratio: (50²-30²)/(50²) = 64%
- Calculate the J ratio: (50⁴-30⁴)/(50⁴) = 87%
Observe: Despite having only 64% of the material, the hollow shaft retains 87% of the torsional strength.
Expected Result: τmax increases only ~15% for the hollow shaft, demonstrating material near center contributes little to strength.
Activity 3: Power Transmission Design
Objective: Size a shaft for a motor application.
Steps:
- Switch to "Power Transmission" mode
- Set P = 50 kW, n = 1500 RPM
- Note the calculated torque
- Switch to "Design" mode
- Enter the calculated torque as the design requirement
- Set allowable stress = 80 MPa (mild steel)
- Find the minimum required diameter
Observe: The relationship between power, speed, and torque; how material strength determines size.
Expected Result: T ≈ 318 N·m; minimum diameter ≈ 35 mm for stress; select 40 mm standard size.
Activity 4: Angle of Twist Limits
Objective: Understand when stiffness (not strength) governs design.
Steps:
- In Analysis mode, set T = 500 N·m, D = 50 mm, L = 2000 mm
- Note the angle of twist
- Change material from Steel (G = 80 GPa) to Aluminum (G = 26 GPa)
- Observe the new angle of twist
- In Design mode, set allowable twist to 0.5 °/m
- Compare diameters required by stress vs twist criteria
Observe: Aluminum has same strength but much lower stiffness; twist limit often governs design for long shafts.
Expected Result: Aluminum twist is ~3× higher than steel; for long shafts, stiffness requirement may demand larger diameter than stress requirement.
Real-World Applications
-
Automotive Drive Shafts: Connect transmission to differential, transmitting hundreds of N·m while spinning at thousands of RPM. Must be balanced, and hollow tubes are standard for weight savings.
-
Marine Propeller Shafts: Long shafts from engine room to stern require careful torsional analysis. Thrust bearings and intermediate supports add complexity; stainless steel or bronze materials resist corrosion.
-
Wind Turbine Main Shafts: Low-speed, high-torque shafts (up to 10,000+ kN·m for large turbines) connect rotor to gearbox. Hollow designs reduce weight at the nacelle.
-
Machine Tool Spindles: High-precision applications where even small twist angles affect machining accuracy. Stiffness requirements often exceed strength requirements.
-
Torsion Bar Suspension: Automotive suspension component where controlled twist provides spring action. Length and diameter precisely tuned for desired spring rate.
-
Drill Strings: Oil/gas drilling involves extremely long torsional members (kilometers). Drill string dynamics, including stick-slip oscillation, are major engineering challenges.
Reference Data
Shear Modulus and Allowable Stress by Material
| Material | G (GPa) | τallow (MPa) | Density (kg/m³) | Notes |
|---|---|---|---|---|
| Mild Steel (A36) | 79-80 | 60-80 | 7850 | General purpose |
| Alloy Steel (4140) | 80 | 100-140 | 7850 | Higher strength |
| Stainless Steel 304 | 77 | 80-100 | 8000 | Corrosion resistant |
| Aluminum 6061-T6 | 26 | 40-55 | 2700 | Lightweight |
| Aluminum 7075-T6 | 27 | 50-75 | 2810 | Aerospace |
| Brass | 37-39 | 40-50 | 8500 | Corrosion resistant |
| Bronze | 41-44 | 45-60 | 8800 | Marine bearings |
| Titanium Ti-6Al-4V | 44 | 130-150 | 4430 | High strength/weight |
| Cast Iron | 41-45 | 35-50 | 7200 | Brittle in torsion |
Standard Shaft Diameters (Metric Preferred Sizes)
| Range (mm) | Standard Sizes (mm) |
|---|---|
| Small | 6, 8, 10, 12, 15, 16, 18, 20 |
| Medium | 22, 25, 28, 30, 32, 35, 38, 40 |
| Large | 45, 50, 55, 60, 65, 70, 75, 80 |
| Extra Large | 85, 90, 95, 100, 110, 120, 140, 160 |
Typical Design Twist Limits
| Application | Max Twist (°/m) |
|---|---|
| Machine tool spindles | 0.10-0.25 |
| General power transmission | 0.25-0.50 |
| Line shafting | 0.50-1.00 |
| Non-precision applications | 1.00-3.00 |
Challenge Questions
-
Conceptual: Explain why the shear stress is zero at the center of a solid circular shaft in torsion. What would happen if the stress were maximum at the center?
-
Calculation: A steel shaft (G = 80 GPa, τallow = 80 MPa) must transmit 75 kW at 1200 RPM over a length of 1.5 m. Calculate: (a) required torque, (b) minimum diameter for stress, (c) minimum diameter for 0.5°/m twist limit, (d) recommended standard size.
-
Analysis: A hollow shaft with D = 80 mm and d = 60 mm has the same weight per unit length as a solid shaft of diameter 56.6 mm. Compare the maximum shear stress in each when both carry T = 2000 N·m. Which design is more efficient and by what percentage?
-
Application: An automobile has a rear-wheel-drive layout with the driveshaft operating at 4000 RPM transmitting 200 kW. If the shaft is hollow steel (D = 75 mm, d = 65 mm, L = 1.5 m), calculate the angle of twist and assess if vibration concerns might arise.
-
Design: You need to replace a solid 50 mm steel shaft with a hollow aluminum shaft of the same strength (same τmax for same T). What outer and inner diameters would you specify if the weight must be reduced by at least 50%?
Common Mistakes to Avoid
Any structural engineer will tell you that torsion problems look simple until one of these errors doubles your calculated stress, or halves it:
-
Using diameter instead of radius in torsion formula: The formula τ = Tr/J requires radius r, not diameter D. This is where structures fail in calculations. Use r = D/2 for maximum stress at the surface. A common error is using τmax = TD/J, which overestimates stress by 2x.
-
Forgetting to convert units consistently: Mixing mm with m, or MPa with Pa, causes errors by factors of 10³ or 10⁶. Recommended: work in SI base units (m, N, Pa) then convert final answers, or work entirely in mm, N, MPa (which maintains consistency since 1 MPa = 1 N/mm²).
-
Applying circular shaft formulas to non-circular sections: J = πD⁴/32 applies ONLY to circular cross-sections. Rectangular, I-beam, and other shapes require different formulas and may involve warping effects not captured by simple torsion theory.
-
Ignoring stress concentrations: Keyways, splines, cross-holes, and diameter changes create stress concentrations (Kt = 1.5-4.0). Design stress should include these factors: τdesign = Kt × τnominal.
-
Neglecting combined loading: Real shafts usually experience bending and axial loads alongside torsion. The maximum shear stress from combined loading can be significantly higher than from torsion alone. Use Mohr's circle or Von Mises criterion for combined stress analysis.
FAQ
Q1: What is the difference between polar moment of inertia (J) and area moment of inertia (I)? A: The polar moment of inertia J is used for torsion problems and represents resistance to twisting. It equals the sum of Ix and Iy (J = Ix + Iy). The area moment of inertia I is used for bending problems. For a solid circle, J = πD⁴/32 while I = πD⁴/64, so J = 2I [1].
Q2: Why are hollow shafts more efficient than solid shafts in torsion? A: In torsion, shear stress varies linearly from zero at the center to maximum at the outer surface. Material near the center carries minimal load. A hollow shaft removes this underutilized central material, achieving nearly the same strength with significantly less weight. A hollow shaft with d/D = 0.6 retains ~87% of the torsional strength with only 64% of the material [2].
Q3: When does stiffness (angle of twist) govern design instead of strength? A: Stiffness governs when precise angular positioning matters or when excessive twist causes vibration or alignment problems. Machine tool spindles, precision drives, and long shafts typically have twist limits of 0.25-0.5°/m. For such applications, the diameter required for stiffness often exceeds that required for strength [3].
Q4: How do I account for stress concentrations in shaft design? A: Real shafts have keyways, splines, shoulder fillets, and holes that concentrate stress. Apply a stress concentration factor Kt (typically 1.5-4.0) to the nominal stress: τactual = Kt × τnominal. Charts and tables for Kt values are available in engineering handbooks [4].
Q5: Can I use these formulas for non-circular cross-sections? A: No. The torsion formulas J = πD⁴/32 and τ = Tr/J apply only to circular cross-sections. Non-circular sections (rectangles, I-beams) experience warping and require different analysis methods. Thin-walled closed sections use the Bredt formula; open sections require warping torsion analysis [5].
References
[1] MIT OpenCourseWare. "2.001 Mechanics and Materials I: Torsion." Massachusetts Institute of Technology. Available: https://ocw.mit.edu/courses/2-001-mechanics-materials-i-fall-2006/
[2] Engineering Toolbox. "Torsion of Shafts." Available: https://www.engineeringtoolbox.com/torsion-shafts-d_947.html
[3] HyperPhysics. "Torsion of Solid Shafts." Georgia State University. Available: http://hyperphysics.gsu.edu/hbase/torsol.html
[4] NIST/SEMATECH e-Handbook of Statistical Methods. "Stress Analysis and Fatigue." Available: https://www.itl.nist.gov/div898/handbook/
[5] eFunda. "Theory of Torsion." Available: https://www.efunda.com/formulae/solid_mechanics/torsion/torsion_intro.cfm
[6] Wikipedia. "Torsion (mechanics)." Available: https://en.wikipedia.org/wiki/Torsion_(mechanics)
[7] MatWeb Material Property Data. "Steel, Aluminum, and Titanium Properties." Available: https://www.matweb.com/
[8] Engineering Edge. "Shear Modulus Values." Available: https://www.engineersedge.com/materials/modulus_of_rigidity_shear_modulus_13118.htm
About the Data
Material properties (shear modulus G, allowable shear stress τallow) are sourced from Engineering Toolbox, MatWeb, and standard engineering handbooks. Standard shaft sizes follow ISO and ANSI preferred metric dimensions. Typical allowable stresses assume static loading with appropriate safety factors; dynamic or fatigue loading requires reduced values.
How to Cite
If you use this simulation for academic work, please cite:
Simulations4All. "Torsion of Shaft Calculator." Interactive Engineering Simulation. Accessed [Date]. https://simulations4all.com/simulations/torsion-of-shaft
Verification Log
| Claim/Formula | Source | Verification Status | Date Verified |
|---|---|---|---|
| τ = Tr/J (torsion formula) | MIT OCW 2.001, Engineering Toolbox | ✓ Verified | Dec 2025 |
| J = πD⁴/32 (solid circular) | HyperPhysics, eFunda | ✓ Verified | Dec 2025 |
| J = π(D⁴-d⁴)/32 (hollow) | Engineering Toolbox | ✓ Verified | Dec 2025 |
| φ = TL/(GJ) (angle of twist) | MIT OCW, Engineering Toolbox | ✓ Verified | Dec 2025 |
| P = 2πnT/60 (power-torque) | Engineering Toolbox | ✓ Verified | Dec 2025 |
| Steel G = 79-80 GPa | MatWeb, Engineering Edge | ✓ Verified | Dec 2025 |
| Aluminum G = 26-27 GPa | MatWeb, Engineering Toolbox | ✓ Verified | Dec 2025 |
| Titanium G = 44 GPa | MatWeb | ✓ Verified | Dec 2025 |
| Standard shaft sizes | ISO 286, ANSI B4.2 | ✓ Verified | Dec 2025 |
| Twist limits (0.25-1°/m) | Engineering handbooks | ✓ Verified | Dec 2025 |
Written by Simulations4All Team
Related Simulations

Bridge Stress Simulator
Interactive truss bridge analyzer with 5 bridge types (Warren, Pratt, Howe, K-Truss, Custom). Calculate real member forces using Method of Joints, visualize tension/compression, identify zero-force members, and export analysis reports.
View Simulation
Truss Bridge Simulator - Interactive Structural Analysis
Interactive truss bridge simulator with drag-and-drop node placement. Build bridges or trusses using Warren, Pratt, Howe, and K-Truss presets. Apply loads and see real-time tension/compression analysis using Method of Joints solver.
View Simulation
Euler Column Buckling Calculator with Secant Method
Complete column buckling analysis with Euler, Johnson Parabola, and Secant methods. Calculate critical loads for eccentric loading, visualize buckling mode shapes (n=1,2,3), and explore different end conditions (K=0.5 to 2.0). Includes safety factor calculations per AISC standards.
View Simulation