CTR K

ASME B31.3 Process Piping Calculator — Thermal Stress, Wall Thickness & Expansion

ASME B31.3Process Piping

Page last updated

ASME B31.3 — Process Piping — is the governing ASME pressure piping code for chemical plants, refineries, pharmaceutical facilities and any process plant where fluid is conveyed under pressure. It specifies how to select the minimum wall thickness for a given design pressure and material (§304), how to evaluate the stress that develops when a pipe run is heated or cooled and cannot move freely (§319 thermal expansion), how to check piping flexibility and size expansion loops, and when a formal computer flexibility analysis is mandatory. The code is published and updated by the American Society of Mechanical Engineers and is referenced by plant codes and insurance standards worldwide.

MechanixCalc runs the primary ASME B31.3 pressure and thermal equations on its servers. The Pipe Stress Calculator covers §304 wall thickness (Eq. 3a), §319 restrained thermal expansion stress, Kellogg expansion-loop sizing, and the §319.4.4 displacement-stress range against the §302.3.5(d) allowable — each with the full method shown and a downloadable PDF engineering report. It does not evaluate the §319.4.1(c) formal-analysis screening criterion, which needs the routed geometry and the resultant displacement strain. The Pipe & Flange Reference tool provides the tabulated ASME B36.10M pipe dimensions and a Barlow allowable-pressure screen (using the ASME B31 design factor) that feeds the B31.3 wall-thickness check.

What ASME B31.3 covers

  • Pressure wall thickness — §304 Eq. 3a minimum wall from design pressure, allowable stress (Table A-1), weld-joint quality factor E_w and Y coefficient, with corrosion allowance and mill-tolerance deduction
  • Thermal expansion and restrained-pipe stress — §319 free expansion ΔL = α·L·ΔT and fully-restrained stress σ_th = E·α·ΔT, with axial thrust force on anchors
  • Expansion loop and offset sizing — Kellogg guided-cantilever closed form for the minimum leg length to keep bending stress within the B31.3 allowable expansion-stress range
  • Formal-analysis screening — §319.4.1(c) empirical criterion D·y/(L−U)² ≤ 208 000, where y is the resultant of the total displacement strains, for uniform-size two-anchor systems with no intermediate restraints
  • Bend SIF and flexibility factors — Appendix D formulas (flexibility characteristic h, factor k, in-plane stress-intensification factor i) for welding elbows and pipe bends
  • Applicable fluid services — ordinary, category D, category M and lethal services; high-pressure (chapter IX); non-metallic and lined piping; scope exclusions (B31.1 power piping, B31.4 liquid transmission, B31.8 gas transmission)

Governing formulas

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

where t_min = minimum calculated wall thickness (mm); P = design gauge pressure (MPa); D = pipe 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 for ferritic steel ≤ 480 °C); c_a = corrosion/erosion allowance (mm). Required purchased wall t_req = t_min / (1 − mill_tol/100).

Restrained thermal stress, ASME B31.3 §319
σ_th = E · α · ΔT (fully restrained ends)

where σ_th = thermal stress in the pipe wall (MPa); E = elastic modulus at mean temperature (MPa); α = mean coefficient of thermal expansion (/°C, from B31.3 Table C-1 or material tables); ΔT = T_operating − T_installation (°C). Free thermal growth (one or both ends free): ΔL = α · L · ΔT (mm), where L = pipe run length (mm). Axial anchor thrust: F_th = σ_th · A_cross (N), where A_cross = π/4 · (OD² − ID²) (mm²).

Expansion-loop minimum leg length (Kellogg guided-cantilever, B31.3 §319 flexibility intent)
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 expansion stress range from B31.3 §319.4 (MPa). Loop half-width W = L_leg / 2. This is an engineering estimate for a single guided-cantilever leg (conservative); a symmetric U-loop sharing Δ across two legs requires a shorter leg.

Frequently asked questions

What is ASME B31.3 used for?

ASME B31.3 — Process Piping — is used to design, size and check the integrity of piping in chemical plants, refineries, pharmaceutical plants and any process facility. It governs pressure wall thickness selection, thermal expansion and flexibility analysis, allowable stress values, weld-joint quality factors, test requirements and the scope of inspection. When a design is described as 'built to ASME B31.3', it means these code requirements have been applied and documented.

What is the B31.3 pressure-design equation (Eq. 3a)?

ASME B31.3 §304 Eq. 3a gives the minimum wall thickness from the design pressure: t_min = P·D / (2·(S·E_w + P·Y)) + c_a, where P is the design gauge pressure (MPa), D the outside diameter (mm), S the allowable stress from Table A-1, E_w the weld-joint quality factor (1.0 seamless, 0.85 ERW), Y a temperature coefficient (0.4 for ferritic steel at or below 480 °C) and c_a a corrosion allowance. The purchased wall must also account for the mill under-tolerance (typically −12.5%) on top of this minimum.

When does ASME B31.3 require a formal flexibility analysis?

ASME B31.3 §319.4.1 requires a formal flexibility analysis unless the system duplicates one already in service, can be judged adequate by comparison with a previously analysed system, or satisfies the empirical screening criterion of §319.4.1(c): D·y/(L−U)² ≤ 208 000 in SI, where D is the outside diameter in mm, y the resultant of the total displacement strains to be absorbed in mm, and L and U are the developed pipe length and the straight-line anchor distance in metres. That criterion applies only to a system of uniform size with no more than two points of fixation, no intermediate restraints and no significant cyclic service — it is not a general-purpose test. (Appendix C of B31.3 is the physical-properties tables, not the flexibility criterion.) A formal CAESAR II or equivalent analysis is required for anything outside those limits, for lines on rotating equipment, for lethal or critical service, and for seismic or high-cycle duty. The MechanixCalc pipe stress calculator does not evaluate this criterion — it has no input for the displacement strain y — so work it out from your isometric.

How does ASME B31.3 differ from B31.1 and B31.4/B31.8?

ASME B31.1 (Power Piping) covers steam and utility piping in power plants; it uses slightly different allowable-stress tables and weld-factor conventions. B31.3 (Process Piping) applies to chemical, refinery and general process plant piping and has broader fluid-service categories (ordinary, category D, M, lethal) and fatigue requirements. B31.4 (Liquid Petroleum Transportation) and B31.8 (Gas Transmission) govern cross-country pipelines and use location-class design factors rather than B31.3 weld-joint factors. Select the code specified on the project P&ID or the applicable jurisdictional regulation.

Is the ASME B31.3 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 unlocks every calculator on MechanixCalc with no credit card needed. The branded PDF engineering report — with the full method, inputs, results and code references — and the ability to save and reload calculations are included in the free 14-day trial and in every paid plan.

Run a ASME B31.3 calculation 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.

Open the Pipe Stress

Using MechanixCalc at work? See plans & pricing — one subscription unlocks all 50 calculators, PDF reports and saved projects.