Torsional Stress Calculator – Shafts, Hollow Sections, Steel HSS & Formulas
Calculate torsional shear stress, angle of twist, polar moment of inertia, and factor of safety for solid shafts, hollow pipes, rectangular HSS tubes, and solid rectangular sections. Supports 20 material presets, multi-unit inputs (SI and Imperial), Tresca and Von Mises failure theories, stress concentration factors, and live shaft twist animation. Includes a built-in shaft size optimizer, power-to-torque converter, combined bending and torsion design mode, and full step-by-step engineering solutions.
Torsional Stress Calculator
Shafts · Hollow Sections · HSS · Design Mode · Power Conversion
🔧 SteelSolver Engineering Tools & Guides — featuring 260+ free calculators and 60+ in-depth guides for engineers, fabricators, and metalworkers.
👉 Find the right tool or guide for your project:
📚 Explore All Engineering Hubs on SteelSolver.com
Torsional Stress Calculator — Complete User Guide
Step-by-step instructions, engineering formulas, units, input validation rules, and worked examples for calculating shear stress, angle of twist, and factor of safety in shafts and structural sections.
Accuracy note: All calculations use classical linear-elastic torsion theory (Saint-Venant). Results are valid for isotropic, homogeneous materials under small-strain conditions. Solid and hollow circular shaft calculations are exact. Rectangular section formulas use interpolated Saint-Venant coefficients (Roark's Formulas) accurate to within ~1% for standard aspect ratios. HSS / closed-tube calculations use Bredt's thin-wall approximation — valid when wall thickness t is significantly smaller than cross-section dimensions. Not intended for code-compliant structural design without professional review.
1. What is Torsional Stress? — Engineering Fundamentals
Torsional stress (also called shear stress due to torsion, or simply torsional shear stress) is the internal stress developed inside a structural member when an external torque (twisting moment) is applied about its longitudinal axis. It is one of the most critical design considerations for rotating machinery components such as drive shafts, axles, propeller shafts, gearbox input shafts, and fasteners.
When torque T is applied to a shaft, every cross-section resists that torque by developing shear stresses that are distributed across the section area. For circular sections, the shear stress increases linearly from zero at the centre to a maximum at the outer surface.
2. How to Use the Torsional Stress Calculator — Step-by-Step Guide
Choose a Torque Input Mode
At the top of the calculator, select Direct T if you already know the torque value, or Power + RPM if you know the shaft's transmitted power and rotational speed. The calculator will automatically convert power and speed into torque using T = P / ω.
Enter Torque (T) and Shaft Length (L)
Type your torque value and choose the correct unit — N·m is most common for SI. Enter the shaft length only if you want to calculate the angle of twist (θ) and torsional stiffness (k). Length is optional — stress results will still compute without it.
Select Your Material or Enter Properties Manually
Choose a material from the dropdown (20 presets available including steels, aluminium, titanium, brass, and polymers). The calculator auto-fills the Shear Modulus G and shear yield strength τy. For custom materials, select "Custom" and enter G and τy directly.
Set a Target Factor of Safety (Optional but Recommended)
Entering a target FOS (e.g. 2.0) activates the shaft size optimizer, which calculates the minimum safe diameter. Typical design FOS values are 1.5–3.0 for rotating shafts depending on load predictability and consequence of failure.
Select the Cross-Section Tab
Choose the tab matching your shaft geometry: Solid Shaft (circular), Hollow Shaft (pipe/tube), Rect/HSS (closed rectangular tube), or Solid Rectangle. Enter the required dimensions in the geometry panel.
Read Your Results — Instantly Updated
Results update live as you type. Check the shear stress τ, the Factor of Safety badge (green = SAFE, amber = MARGINAL, red = FAIL), and the step-by-step derivation panel below the results grid. Click "Show Step-by-Step Solution" to see each calculation stage.
Copy or Save Your Results
Click Copy Full Report to copy a formatted plain-text summary of all inputs, results and formulas to your clipboard. Click Save to store your inputs in the browser so you can reload them later. Use Print to save a PDF calculation sheet.
3. Supported Cross-Section Types — When to Use Each
Solid Circular Shaft
Drive shafts, axles, fasteners. Most common shaft type. Exact solution.
Hollow Shaft / Pipe
Structural tubes, propeller shafts. Higher strength-to-weight ratio. Exact solution.
Rect / Square HSS Tube
Structural steel sections, frames. Bredt thin-wall approximation.
Solid Rectangle
Keys, splines, keyways, structural bars. Roark interpolated coefficients.
4. Torsion Formulas — Complete Reference with Explanations
4.1 Solid Circular Shaft — Exact Torsion Equations
Polar Moment of Inertia J (Solid Circle)
| Symbol | Description | Unit |
|---|---|---|
| J | Polar second moment of area — measures torsional resistance of the cross-section | mm⁴ or m⁴ |
| π | Mathematical constant ≈ 3.14159 | — |
| d | Shaft diameter | mm (input) → used as mm in formula |
Maximum Torsional Shear Stress τ
| Symbol | Description | Unit |
|---|---|---|
| τ | Maximum shear stress — occurs at the outer surface | MPa = N/mm² |
| T | Applied torque (twisting moment) | N·mm (internally converted) |
| r | Outer radius = d/2 | mm |
| J | Polar moment of inertia (from Step 1) | mm⁴ |
Angle of Twist θ (Total Rotation)
| Symbol | Description | Unit |
|---|---|---|
| θ | Angle of twist — total angular deformation of the shaft | radians (× 180/π for degrees) |
| T | Applied torque | N·mm |
| L | Shaft length | mm |
| G | Shear modulus (modulus of rigidity) | N/mm² (= MPa); steel ≈ 79,000 MPa |
| J | Polar moment of inertia | mm⁴ |
Torsional Stiffness k
| Symbol | Description | Unit |
|---|---|---|
| k | Torsional stiffness — torque required to produce 1 radian of twist | N·m/rad |
| G | Shear modulus | N/mm² (MPa) |
| J | Polar moment of inertia | mm⁴ |
| L | Shaft length | mm |
Required Shaft Diameter — From Allowable Stress
| Symbol | Description | Unit |
|---|---|---|
| d_req | Minimum required diameter for the given torque and allowable stress | mm |
| τ_allow | Allowable shear stress = τ_yield / FOS | MPa |
| T | Applied torque | N·mm |
4.2 Hollow Circular Shaft — Pipe and Tube Torsion
Polar Moment of Inertia — Hollow Section
| Symbol | Description | Unit |
|---|---|---|
| Dₒ | Outer diameter | mm |
| Dᵢ | Inner diameter | mm — must be < Dₒ |
Shear Stress — Outer and Inner Surface
4.3 Rectangular / Square Tube (HSS) — Bredt's Thin-Wall Theory
Shear Flow and Shear Stress — Closed Thin-Walled Section
τ = T / (2 · Aₘ · t)
Jₜ = 4 · Aₘ² / ∮(ds/t) = 2 · Aₘ² · t / (bₘ + hₘ)
| Symbol | Description | Unit |
|---|---|---|
| Aₘ | Area enclosed by the midline of the tube wall | mm² |
| b, h | Outer width and height of the tube | mm |
| t | Wall thickness (uniform) | mm |
| bₘ, hₘ | Midline dimensions = b − t, h − t | mm |
| Jₜ | Torsional constant (not the same as polar moment J for circular sections) | mm⁴ |
4.4 Solid Rectangle — Saint-Venant Torsion with Interpolated Coefficients
Max Shear Stress and Angle of Twist — Solid Rectangular Section
θ = T · L / (α₂ · b · h³ · G)
| Symbol | Description | Unit |
|---|---|---|
| b | Longer side of rectangle (the calculator enforces b ≥ h automatically) | mm |
| h | Shorter side of rectangle | mm |
| α₁ | Stress coefficient — function of b/h ratio, from Roark's table | dimensionless |
| α₂ | Stiffness coefficient — function of b/h ratio, from Roark's table | dimensionless |
Saint-Venant Torsion Coefficients α₁ and α₂ for Solid Rectangles
| b/h Ratio | α₁ (stress) | α₂ (stiffness) | Shape |
|---|---|---|---|
| 1.0 | 0.208 | 0.141 | Square |
| 1.2 | 0.219 | 0.166 | — |
| 1.5 | 0.231 | 0.196 | — |
| 2.0 | 0.246 | 0.229 | — |
| 3.0 | 0.267 | 0.263 | — |
| 5.0 | 0.291 | 0.291 | — |
| 10.0 | 0.312 | 0.312 | — |
| ∞ | 0.333 | 0.333 | Thin plate |
4.5 Power to Torque Conversion Formula
Torque from Power and Rotational Speed
T = P / ω
| Symbol | Description | Unit |
|---|---|---|
| T | Torque | N·m |
| P | Power transmitted by the shaft | W (= N·m/s) or kW or hp |
| ω | Angular velocity | rad/s |
| N | Rotational speed | rpm |
4.6 Failure Theory — Tresca vs Von Mises
Equivalent Stress for Factor of Safety Assessment
Von Mises: σ_eq = √3 · τ
| Theory | Formula | Conservative? | Recommended for |
|---|---|---|---|
| Tresca | σ_eq = 2τ | More conservative | Ductile metals, standard machine design |
| Von Mises | σ_eq = √3 · τ ≈ 1.732 τ | Slightly less conservative | Ductile metals where energy-based approach is preferred |
5. Input Fields, Units, and Validation Rules
All inputs are validated in real-time. The table below shows acceptable ranges, required vs. optional fields, and the units accepted.
| Field | Required? | Accepted Units | Valid Range | Common Mistake |
|---|---|---|---|---|
| Torque T | Required | N·m N·mm kN·m lb·ft lb·in | T > 0 | Entering torque in N·m but selecting N·mm unit — results are off by 1000× |
| Length L | Optional | mm m cm in ft | L > 0 (for θ and k) | Leaving L blank — θ and k show "—" (not an error, just omitted) |
| Diameter d | Required | mm m cm in | d > 0 | Entering radius instead of diameter — stress result is 8× too high |
| Outer Dia. Dₒ | Required | mm in | Dₒ > Dᵢ > 0 | Entering Dᵢ ≥ Dₒ — calculator shows "invalid" and blocks result |
| Inner Dia. Dᵢ | Required | mm in | 0 < Dᵢ < Dₒ | Setting Dᵢ = 0 (it becomes a solid shaft — use the Solid tab instead) |
| Shear Modulus G | Required | GPa MPa psi ksi | G > 0 | Entering Young's modulus E instead of shear modulus G — for steel, E ≈ 200 GPa but G ≈ 79 GPa |
| Yield Strength τ_y | Required for FOS | MPa Pa psi ksi | τ_y > 0 | Entering tensile yield strength (σ_y) instead of shear yield. Use: τ_y ≈ 0.577 × σ_y (Von Mises) |
| Wall thickness t | Required (HSS) | mm in | t < min(b, h) / 2 | Entering t ≥ half of the shortest side — wall fills the section; calculator blocks with error |
| Stress Conc. Kt | Optional | dimensionless | Kt ≥ 1.0 | Leaving Kt = 1.0 for notched or shouldered shafts — actual peak stress can be 1.5–3× higher |
| Power P | Power mode | kW W hp | P > 0 | Mixing hp and kW in the same calculation — always confirm the unit selector matches your value |
6. How to Read Your Results — Output Explanations
| Result | Symbol | Unit | What it Tells You |
|---|---|---|---|
| Max Shear Stress | τ_max | MPa | The highest stress in the section. Compare to material τ_yield to judge safety. |
| Polar Moment J | J | mm⁴ | Measures the section's resistance to twisting. Larger J → lower stress for same torque. |
| Angle of Twist | θ | ° or rad | Total angular deformation of the shaft. Important for precision drives and gear alignment. |
| Section Modulus Zp | Zp = J/r | mm³ | Simplified stress calculation: τ = T/Zp. Useful for quick capacity checks. |
| Factor of Safety | FOS = τ_y / τ | — | Ratio of material capacity to actual stress. FOS < 1 means yielding is predicted. |
| Torsional Stiffness | k = GJ/L | N·m/rad | Spring stiffness in torsion. Relevant for vibration analysis, coupling selection, and resonance. |
| Shaft Weight | W = ρ·V | kg | Mass of the shaft for the given geometry and material density. Requires length L. |
| Weight Saved | % | % | Hollow shaft only — % weight reduction vs. a solid shaft of the same outer diameter. |
7. Factor of Safety (FOS) — Engineering Reference Guide
The Factor of Safety is the most critical output for engineering decisions. It answers: "How many times stronger is the shaft than needed?"
| FOS Range | Status | Interpretation | Typical Application |
|---|---|---|---|
| < 1.0 | ❌ Failure predicted | Stress exceeds yield strength. Yielding or fracture is expected. Design must change. | Never acceptable |
| 1.0 – 1.2 | ⚠ Dangerously low | Marginal. Small overload or material variation will cause failure. | Racing / weight-critical only |
| 1.2 – 1.5 | ⚠ Marginal | Acceptable only for well-known, steady loads with good material control. | Aerospace, precise steady loads |
| 1.5 – 2.5 | ✅ Safe | Standard range for most mechanical shaft designs with predictable loads. | General machinery, motors, gearboxes |
| 2.5 – 4.0 | ✅ Conservative | Used when loads are uncertain, dynamic, or when consequences of failure are severe. | Mining, lifting, shock loads |
| > 4.0 | ℹ Over-designed | Shaft is much stronger than needed. Consider reducing diameter to save material and weight. | Unusual — review inputs |
8. Material Properties Reference Table — Shear Modulus and Yield Strength
The values below are typical engineering estimates. Actual values depend on heat treatment, temper, specification, and supplier. Always confirm properties from a certified material datasheet for safety-critical applications.
| Material | G (GPa) | τ_yield (MPa) | Density ρ (kg/m³) | Typical Use |
|---|---|---|---|---|
| Mild Steel S235 / A36 | 79 | 175 | 7,850 | General shafts, structural |
| Steel AISI 1045 | 80 | 330 | 7,850 | Medium-duty machine shafts |
| Steel AISI 4140 HT | 80 | 415 | 7,850 | High-torque gearboxes, axles |
| Steel AISI 4340 HT | 80 | 470 | 7,850 | Heavy-duty drive shafts |
| Stainless 304 | 77 | 190 | 8,000 | Corrosive environments |
| Stainless 17-4 PH | 77 | 520 | 7,780 | Aerospace, high-strength |
| Aluminum 6061-T6 | 26 | 150 | 2,700 | Lightweight shafts, aircraft |
| Aluminum 7075-T6 | 27 | 228 | 2,810 | High-strength lightweight |
| Titanium Grade 5 | 44 | 480 | 4,430 | Aerospace, biomedical |
| Brass C360 | 37 | 105 | 8,500 | Precision parts, decorative |
| Cast Iron (Gray) | 41 | 55 | 7,200 | Brittle — avoid torsion applications |
| Magnesium AZ31 | 17 | 97 | 1,770 | Ultra-lightweight structures |
Shear yield vs. tensile yield: Many datasheets list tensile yield strength σ_y. To convert to shear yield τ_y: use τ_y ≈ 0.5 × σ_y (Tresca) or τ_y ≈ 0.577 × σ_y (Von Mises). The material presets in this calculator already use shear yield values directly.
9. Common Mistakes and How to Avoid Them
10. Frequently Asked Questions — Torsional Stress Calculator
Torsional stress is shear stress caused by a twisting moment (torque) about the longitudinal axis of a member. It acts tangentially on the cross-section and is zero at the centroid, maximum at the outer surface.
Bending stress is normal (axial) stress caused by a bending moment acting perpendicular to the axis. It varies from compressive at one extreme fibre to tensile at the other, with zero stress at the neutral axis.
Real shafts often experience both simultaneously. The Design Mode tab in this calculator handles combined torsion + bending using the equivalent torque method: T_eq = √(M² + T²), then solves for the required diameter.
The angle of twist θ = T·L / (G·J) requires the shaft length L to compute. If you haven't entered a value in the Shaft Length L field, or if L = 0, the result displays "—" rather than an error, because a zero-length shaft is geometrically undefined for twist purposes.
Enter a positive shaft length in the global inputs section and the twist angle will calculate immediately.
The solid rectangle formulas use Saint-Venant interpolated coefficients (α₁ and α₂) from Roark's Formulas for Stress and Strain. These are interpolated from a 9-point table covering b/h ratios from 1.0 (square) to ∞ (thin plate). For all standard aspect ratios, accuracy is better than ±1% vs. exact elasticity solutions.
The key limitation is that this is a linear-elastic approximation that does not account for warping stiffness effects in restrained members (e.g. a short bar with fixed ends). For such cases, a Saint-Venant + Vlasov approach or FEA is recommended.
In real shafts, geometric discontinuities such as keyways, grooves, fillets, holes, and shoulders cause local stress concentrations. The actual peak stress is:
τ_actual = Kt × τ_nominal
where τ_nominal is the stress from the smooth-shaft formula. Common Kt values:
- Smooth shaft (no features): Kt = 1.0
- Mild shoulder fillet (r/d = 0.1): Kt ≈ 1.3
- Sharp shoulder fillet (r/d = 0.02): Kt ≈ 1.8
- Sled-runner keyway: Kt ≈ 1.6 – 2.0
- Transverse hole: Kt ≈ 2.0 – 3.0
Obtain accurate Kt values from Shigley's Mechanical Engineering Design, Peterson's Stress Concentration Factors, or ESDU charts.
Material near the neutral axis of a shaft contributes very little to torsional resistance (since τ is proportional to radius, the central material carries negligible stress). Removing it creates a hollow shaft that is lighter with only a modest reduction in torsional capacity.
For example, a hollow shaft with Dᵢ/Dₒ = 0.7 retains 76% of the solid shaft's torsional stiffness (J) while using only 51% of the material. The calculator shows the % weight saved automatically.
Hollow shafts also allow routing of hydraulic lines, wiring, or coolant through the centre — common in machine tool spindles and automotive driveshafts.
You can use the Custom material option and enter G and τ_y for non-metallic materials such as CFRP, GFRP, or engineering polymers. However, important limitations apply:
- The formulas assume isotropic, homogeneous material. Composites are generally orthotropic — their behaviour depends on fibre orientation and layup.
- For CFRP shafts, use the effective torsional G (in-plane shear modulus G₁₂) and appropriate failure criteria (Tsai-Wu or max stress).
- This calculator is not suitable as a primary design tool for composite structures. Use dedicated composite analysis software or FEA.
Use the dedicated Power → Torque tab, or apply the formula:
T (N·m) = P (W) / ω (rad/s) = [P (kW) × 1000] / [2π × N (rpm) / 60]
Simplified: T ≈ 9550 × P (kW) / N (rpm)
The Power → Torque tab converts kW, W, or hp inputs and rpm or rad/s speed inputs, and lets you click one button to transfer the result directly into the Solid Shaft tab.
Both are yield criteria for ductile metals predicting the onset of yielding under combined stresses:
- Tresca (Max Shear Stress): Yielding occurs when the maximum shear stress reaches τ_y = σ_y/2. More conservative — predicts yielding sooner. Simpler to apply.
- Von Mises (Distortion Energy): Yielding occurs when the elastic strain energy reaches a critical value. For pure shear: τ_y = σ_y/√3 ≈ 0.577σ_y. Agrees better with experiments for ductile materials.
For pure torsion (no bending), the difference between theories is about 15%. Tresca is the safer (more conservative) choice for standard machine design. Von Mises is often preferred in finite element analysis and academic work.
Pro tip — Design workflow: Start with the Power → Torque tab to convert your machine's rated power to torque. Switch to Design Mode to find the minimum safe shaft diameter. Finally, verify your chosen geometry on the Solid Shaft or Hollow Shaft tab to confirm FOS, twist angle, and weight. Use the Copy Full Report button to export a formatted calculation summary.