CTR K

Pipe Stress Calculator — Thermal Expansion, Wall Thickness & Flexibility (ASME B31.3)

Governing standard: ASME B31.3· ASME B31.3-2022 Process Piping — §304 wall thickness, §319 thermal expansion, Appendix C flexibility check, Appendix D SIF/flexibility factors

How ASME B31.3 works — the method explained

This tool provides an engineering estimate — it uses an accepted simplified model rather than a single citable governing standard. Use it for preliminary sizing and verify the final design against manufacturer data or a licensed engineer.

The MechanixCalc pipe stress calculator sizes and checks process piping to ASME B31.3 — the governing code for chemical-plant, refinery and general process piping. Enter the pipe geometry (OD, schedule, material), operating temperature, design pressure and end conditions, and the tool returns the free thermal expansion, the restrained thermal stress and axial thrust force, the minimum wall thickness from the B31.3 pressure equation, expansion loop dimensions, and the simplified flexibility check, all in one pass.

It is built for mechanical and piping engineers who need a quick, standards-cited first check on a new pipe run — thermal growth in a steam, hot-oil or cryogenic line; wall thickness selection for a high-pressure service; or loop sizing to absorb expansion before handing the system to a full Caesar II flexibility model. The fatigue and support-span panels are engineering estimates and are disclaimed accordingly; the thermal, wall-thickness and B31.3 expansion-stress panels are derived directly from the code equations.

What this calculator does

  • ASME B31.3 thermal expansion stress and axial thrust force for fully restrained or free-end pipe runs
  • Minimum wall thickness from B31.3 Eq. (3a) with corrosion allowance, mill tolerance and weld-joint quality factor
  • Expansion loop height and width sizing (Kellogg guided-cantilever method, closed-form, with correct E-dependence)
  • ASME B31.3 Appendix C simplified flexibility check (D·(L²−U²)/U² ≤ 208 000 mm²) and Appendix D SIF/flexibility factors for bends
  • Support span optimisation from bending stress and deflection limits for insulated, fluid-filled pipe
  • Pressure-cycling fatigue life estimate for welded pipe (S-N method, flagged as engineering estimate)
  • Branded PDF engineering report with method references and full input/output table

Method & formulas

Thermal expansion and restrained-pipe stress (ASME B31.3 §319)

When a pipe run is fully restrained at both ends it cannot expand freely, so the thermal growth that would otherwise occur is converted into a compressive (or tensile on cool-down) axial stress. The magnitude is the product of the elastic modulus, the thermal expansion coefficient and the temperature rise. For typical carbon steel at 80 °C above ambient, this stress is of order 190 MPa — well within yield for a single excursion but potentially damaging in fatigue over many cycles. When one or both ends are free the pipe expands without stress and the calculated free growth ΔL determines the space or expansion accommodation required.

Free thermal expansion
ΔL = α · L · ΔT

where ΔL = free elongation (mm); α = coefficient of thermal expansion (/°C); L = pipe length (mm); ΔT = T_operating − T_install (°C)

Restrained thermal stress
σ_th = E · α · ΔT

where σ_th = thermal stress (MPa); E = elastic modulus (MPa); α = thermal expansion coefficient (/°C); ΔT = temperature rise (°C). Axial thrust F_th = σ_th · A_cross (N), where A_cross is the pipe annular area (mm²).

Pressure wall thickness (ASME B31.3 §304, Eq. 3a)

The B31.3 pressure-design equation derives the minimum wall thickness from the internal pressure, the pipe outside diameter, the material allowable stress at design temperature (Table A-1), the weld-joint quality factor and a temperature-dependent Y coefficient. The calculator adds the corrosion/erosion allowance and then divides by the mill-tolerance factor to give the minimum purchased wall, then selects the next standard schedule wall. The allowable pressure at that wall and the hydrotest pressure (1.5 × design) are reported.

ASME B31.3 wall thickness (Eq. 3a)
t_min = P · D / (2 · (S · E_w + P · Y)) + c_a

where t_min = minimum calculated wall (mm); P = design pressure (MPa); D = outside diameter (mm); S = allowable stress at design temperature (MPa, from B31.3 Table A-1); E_w = weld-joint quality factor (1.0 seamless, 0.85 ERW); Y = Y coefficient (0.4 ferritic ≤480 °C); c_a = corrosion allowance (mm). Required wall t_req = t_min / (1 − mill_tol/100).

Expansion loop sizing and flexibility (Kellogg / B31.3 App. C & D)

When the restrained thermal stress exceeds the allowable expansion-stress range, an expansion loop or bend is added so the pipe can flex. The loop leg length is derived from the guided-cantilever beam model: a leg that must absorb the full thermal displacement develops an end bending moment M = 6·E·I·Δ/L², and setting the resulting fibre stress equal to the allowable gives the minimum leg length in closed form. The B31.3 Appendix D SIF and flexibility-factor formulas for bends (h = T·R/r_mean²; k = 1.65/h; i = 0.9/h^(2/3)) are used for the flexibility analysis panel. Note that the flexibility/SIF panel and the fatigue panel are engineering estimates and carry the in-product EstimateBadge.

Minimum expansion-loop leg length (Kellogg guided-cantilever)
L_leg = √(3 · E · OD · Δ / σ_allow)

where L_leg = minimum loop leg length (mm); E = elastic modulus (MPa); OD = pipe outside diameter (mm); Δ = thermal displacement to absorb (mm); σ_allow = allowable bending stress (MPa). Loop width W = L_leg/2; total loop pipe length ≈ 2·L_leg + W + 2·R_bend.

Worked example

Estimate the restrained thermal stress and axial thrust in a DN100 (OD 114.3 mm, wall 6.02 mm, Schedule 40) carbon-steel steam-condensate return line heated from 15 °C at installation to 95 °C at operating temperature, with both ends anchored.

Given

  • Pipe OD114.3 mm (DN100 Sch 40)
  • Wall thickness t6.02 mm
  • Installation temperature T_inst15 °C
  • Operating temperature T_op95 °C
  • MaterialCarbon steel (E = 200 000 MPa, α = 12×10⁻⁶ /°C, Sy = 250 MPa)
  • End conditionBoth anchored (fully restrained)

Result

  • Free expansion ΔL (20 m run)19.2 mm
  • Restrained thermal stress σ_th192 MPa
  • Axial thrust force F_th≈ 393 kN
  • Safety factor vs yield (Sy = 250 MPa)1.30
  1. Compute the temperature rise: ΔT = T_op − T_inst = 95 − 15 = 80 °C.
  2. Free thermal expansion (if unrestrained): ΔL = α · L · ΔT. For a 20 m run: ΔL = 12×10⁻⁶ × 20 000 mm × 80 = 19.2 mm.
  3. Restrained thermal stress: σ_th = E · α · ΔT = 200 000 × 12×10⁻⁶ × 80 = 192 MPa.
  4. Pipe annular cross-section: ID = OD − 2t = 114.3 − 2×6.02 = 102.26 mm. A = π/4 × (114.3² − 102.26²) = π/4 × (13064.49 − 10457.12) = π/4 × 2607.37 ≈ 2049 mm².
  5. Axial thrust force: F_th = σ_th × A = 192 × 2049 ≈ 393 400 N ≈ 393 kN.
  6. Safety factor against yield: SF = Sy / σ_th = 250 / 192 = 1.30.

This is an illustrative single-segment estimate. At SF = 1.30 the pipe is near yield on the first heat-up; verify the full B31.3 expansion-stress range check (S_E ≤ f·[1.25·(S_c+S_h)−S_L]) and consider adding an expansion loop or bellows if thermal cycling is frequent. The calculator performs all checks from your actual geometry and material data.

Frequently asked questions

Which standard does this pipe stress calculator use?

The primary calculations follow ASME B31.3-2022 Process Piping: §319 for thermal expansion and restrained-pipe stress, §304 (Eq. 3a) for pressure wall thickness, Appendix C for the simplified flexibility check, and Appendix D for bend SIF and flexibility factors. The support-span, fatigue and flexibility-SIF panels are engineering estimates disclaimed in-product; the thermal, wall-thickness and expansion-stress panels are standard-code equations.

What is the difference between free expansion and restrained stress?

Free expansion (ΔL = α·L·ΔT) is the dimensional change that occurs when a pipe heats up with at least one free end — no stress is generated, but the movement must be accommodated. Restrained stress (σ_th = E·α·ΔT) develops when both ends are anchored and the pipe cannot move; for carbon steel at an 80 °C rise this is roughly 192 MPa, approaching the yield stress of mild steel. The calculator reports both, along with the resulting axial thrust force on the anchors.

When do I need a full Caesar II flexibility analysis rather than this calculator?

ASME B31.3 Appendix C identifies cases that require a formal flexibility analysis: ΔT > 50 °C (approximately), pipe connected to rotating equipment (pumps, compressors), lines classified as critical or lethal-service, and any system where the simplified criterion D·(L²−U²)/U² > 208 000 mm² is not satisfied. The calculator performs the Appendix C check and flags when a formal analysis is mandatory. For multi-branch, high-nozzle-load or seismic systems, a Caesar II model with a licensed PE review is required.

Are the expansion loop and fatigue results code-validated?

The expansion-loop leg length uses the Kellogg guided-cantilever closed form, which is consistent with ASME B31.3 §319 flexibility intent and is conservative (full displacement on one leg). The flexibility/SIF panel (Appendix D formulas) has been verified to the code for the elbow case; the tee SIF is an approximate 1.3× multiplier and is flagged as an engineering estimate. The fatigue panel (S-N with weld stress-concentration factor) is also an engineering estimate — it is not the formal ASME fatigue curve from Section VIII Div. 2. Both are disclaimed with the EstimateBadge in the product.

Is the pipe stress calculator free?

You can run it during a free 30-minute preview with no sign-up required, and a free 14-day account trial gives full access to every calculator with no credit card needed. The branded PDF engineering report and saved calculations are part of a paid plan.

Run the Pipe Stress on your own numbers

Free 30-minute preview — no sign-up. A free 14-day account trial unlocks every tool and the branded PDF report, no credit card required.

Start free