ASME B31.3 Process Piping Calculator — Thermal Stress, Wall Thickness & Expansion
ASME B31.3 — Process Piping
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 directly in your browser. The Pipe Stress Calculator covers §304 wall thickness (Eq. 3a), §319 restrained thermal expansion stress, Kellogg expansion-loop sizing, and the Appendix C simplified flexibility criterion — each with the full method shown and a downloadable PDF engineering report. The DN / Piping Standards 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.
Calculators that implement ASME B31.3
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
- Simplified flexibility check — Appendix C criterion D·(L²−U²)/U² ≤ 208 000 mm² to determine whether a formal analysis is required
- 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
t_min = P · D / (2 · (S · E_w + P · Y)) + c_awhere 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).
σ_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²).
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 Appendix C defines the simplified criterion D·(L²−U²)/U² ≤ 208 000 mm² (in SI; D = OD, L = developed pipe length, U = straight-line distance between anchors). If this criterion is satisfied, a formal analysis is generally not required. A formal Caesar II or equivalent analysis IS required when the criterion is not met, when the line is connected to rotating equipment (pumps, compressors), when the service is lethal or critical, or when ΔT is large and the system is geometrically complex. The MechanixCalc pipe stress calculator performs the Appendix C check and flags when a formal analysis is mandatory.
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 part of a paid plan.
Related standards
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