ASME B31.3 is the dominant process piping code used across the petroleum, chemical, pharmaceutical, semiconductor, and cryogenic industries worldwide. It governs the design, materials, fabrication, assembly, examination, inspection, and testing of process piping systems — everything from the wall thickness of a straight run of pipe to the examination requirements for a high-pressure weld in hydrogen service.

The code is comprehensive, cross-referenced extensively, and not light reading. This article extracts the practical engineering requirements that govern the majority of process piping design decisions: scope and applicability, fluid categories, wall thickness calculation, allowable stresses, quality factors, flexibility analysis, examination, and pressure testing. It is intended as a working reference for engineers who need to apply B31.3, not a substitute for the code itself.

Scope — What B31.3 Covers and What It Does Not

B31.3 applies to piping within the property limits of facilities engaged in the processing or handling of chemical, petroleum, or related products. This includes:

B31.3 explicitly excludes piping covered by other ASME codes. The boundaries are important:

The code also excludes pressure vessels, heat exchangers, pumps, compressors, and other pressure-containing equipment to which piping connects — these are governed by their own applicable codes (ASME VIII, HEI, API 610, etc.).

Fluid Categories — The Classification That Determines Everything Else

B31.3 classifies fluids into categories that determine examination requirements, testing requirements, and in some cases design rules. Getting the fluid category wrong — particularly understating the category — is a compliance failure that can result in under-examined or under-tested systems. The categories are:

Category D

Non-flammable, non-toxic, and not damaging to human tissue on exposure. Design gauge pressure not greater than 1.035 MPa (150 psi). Design temperature between −29°C and 186°C (−20°F to 366°F). Water, compressed air, and steam at low pressure and temperature are typical Category D fluids. Category D piping may be subject to reduced examination and may be leak tested instead of pressure tested. It is the least demanding category.

Normal Fluid Service

The default category — all piping not meeting the criteria for Category D, Category M, High Pressure, or Elevated Temperature Fluid Service. The majority of process piping is Normal Fluid Service. Standard examination and testing requirements apply.

Category M (Severe Cyclic Conditions)

Note: the 2022 edition reorganised these designations. The historic Category M covered fluids where a single exposure could cause irreversible harm to persons — highly toxic materials (chlorine, hydrogen cyanide, hydrogen fluoride, phosgene). This designation now falls under the Severe Cyclic Conditions or specific Owner-established categories depending on edition. In practice, highly toxic services require the Owner to establish special requirements beyond the standard code; consult the specific edition in use.

High Pressure Fluid Service

Pressures exceeding those for which components can be rated under ASME B16.5 Class 2500 — that is, above the pressure-temperature ratings of Class 2500 flanges for the material group in question. High Pressure service is governed by Appendix K of B31.3, which imposes significantly more stringent design, examination, and testing requirements. Not all piping at high pressure is Appendix K — only piping that exceeds B16.5 Class 2500 limits.

Elevated Temperature Fluid Service

Service where the piping material operates in the temperature range where creep becomes significant — typically above approximately 370°C for carbon steel, 480°C for low-alloy steels, and 540°C for austenitic stainless. Appendix V covers design requirements for this service.

Design Conditions — What You Must Define Before You Calculate Anything

B31.3 requires the owner (or designer acting for the owner) to establish the design conditions before the mechanical design begins. These are not the normal operating conditions — they are the most severe conditions the piping will ever see, including upsets, startups, and shutdowns:

Wall Thickness Design — The Core Calculation

The fundamental wall thickness calculation for straight pipe under internal pressure in B31.3 is:

t = PD / (2(SE + PY))
P = design gauge pressure (MPa or psi)
D = outside diameter of pipe (mm or in)
S = allowable stress for material at design temperature (MPa or psi) — from B31.3 Appendix A
E = quality factor — accounts for pipe manufacturing method and weld examination
Y = coefficient — depends on material and temperature (0.4 for most ferritic steels below 482°C)
t = calculated pressure design wall thickness

The calculated t is the minimum wall required for pressure containment alone. To this must be added:

The required minimum wall (before tolerance) is therefore:

t_min = t + c (minimum wall accounting for pressure and corrosion)
t_ordered = t_min / 0.875 (to account for −12.5% mill under-tolerance)

The next standard pipe schedule with a wall thickness at or above t_ordered is then selected. For reference, schedule selection is covered in the Pipe Schedule and Wall Thickness article in this series.

Common mistake: Calculating the required wall, adding corrosion allowance, then directly specifying a pipe schedule without dividing by 0.875. This produces a pipe that may be under-thickness on the thin side of the mill tolerance. The mill tolerance division is mandatory and is explicitly required by B31.3 Paragraph 304.1.1.

Allowable Stress — S in the Formula

The allowable stress S is taken from B31.3 Appendix A, which tabulates allowable stresses for listed materials at temperatures from ambient to the material's maximum rated temperature. The allowable stress is the lowest of several criteria evaluated at the design temperature:

The allowable stress values in Appendix A are for wrought products. Cast products use the tabulated value multiplied by the applicable casting quality factor.

A key point: the allowable stress decreases with temperature. A carbon steel such as A106 Gr.B has an allowable stress of approximately 138 MPa (20,000 psi) at room temperature, falling to approximately 103 MPa (15,000 psi) at 400°C and dropping steeply above that as the creep range is approached. The design temperature must be used in the Appendix A table, not ambient.

Quality Factor E

The quality factor E in the wall thickness equation accounts for the manufacturing method of the pipe and the extent to which the longitudinal weld seam has been examined. A seamless pipe with no weld seam has E = 1.0. A welded pipe has a lower quality factor unless the weld seam is fully examined, because the seam introduces a potential defect that degrades the effective pressure capacity.

Pipe typeE (standard)E (with additional examination)
Seamless (no seam)1.001.00 (no improvement possible)
Electric resistance welded (ERW/HFW)0.851.00 with 100% RT or UT of seam per B31.3 Table A-1A
Electric fusion welded (EFW)0.800.90 or 1.00 depending on examination extent
Submerged arc welded (SAW)0.801.00 with 100% RT of seam
Furnace butt welded (FBW)0.60Not improvable — limited to low pressure utility service

The practical implication: for a given design pressure, a seamless pipe needs a thinner wall than an equivalent ERW pipe at standard quality factor. The premium for seamless is sometimes justified by the ability to use a lighter schedule — though for commodity carbon steel at moderate pressures, the schedule difference is rarely more than one schedule step, and the cost of seamless may not be recovered. For high-pressure or alloy service, the E = 1.0 of seamless is often the deciding factor.

If an ERW pipe is specified with 100% examination of the seam (upgrading E to 1.0), this examination must be performed by the pipe manufacturer and documented on the mill certificate. It is not something that can be applied retrospectively at the fabrication stage.

Component Pressure Ratings — Flanges, Fittings and Valves

The calculated pipe wall is only part of the pressure design. Every component in the system — flanges, fittings, valves, strainers — must also be rated for the design pressure at the design temperature. For most standard components, this is done by referencing the relevant ASME standard:

The weakest component in any piping circuit governs the system pressure rating. A Class 150 flange in a line with pipe rated to Class 300 makes the system a Class 150 system for that circuit.

Piping Flexibility and Stress Analysis

A piping system that cannot freely expand and contract as it heats and cools will develop thermal stresses at its restraints — supports, equipment nozzles, and anchors. B31.3 requires the designer to ensure that these stresses are within acceptable limits. This is the piping flexibility analysis or pipe stress analysis requirement.

When formal analysis is required

B31.3 Paragraph 319.4.1 states that a formal analysis is not required if the system duplicates or closely approximates a system that has proven satisfactory in service, or if it can be judged adequate by comparison with previously analysed systems. For most routine piping configurations with adequate expansion loops or offsets, experienced engineers can make this judgement informally. For the following cases, formal computer analysis (Caesar II, AutoPIPE, or equivalent) is expected:

Stress categories and limits

B31.3 evaluates three stress categories, each with its own allowable limit:

Fabrication and Joining

B31.3 sets requirements for welding, brazing, bonding, and threading that apply throughout fabrication:

Welding

All welding must be performed by qualified welders or welding operators to welding procedure specifications (WPS) qualified in accordance with ASME IX (Welding and Brazing Qualifications). Each WPS must be supported by a procedure qualification record (PQR) demonstrating that test welds made to the procedure pass the required mechanical tests. Qualified welder/operator performance qualifications must be current and applicable to the joint configuration being welded.

B31.3 does not specify joint design in detail beyond requiring adequate penetration and fusion — the WPS governs joint preparation, filler material, preheat, interpass temperature, and post-weld heat treatment. PWHT requirements are specified in B31.3 Table 331.1.1, which gives the required PWHT conditions (temperature and hold time) for each P-number group and wall thickness range.

Preheat

Minimum preheat temperatures for carbon and low-alloy steels are given in B31.3 Table 330.1.1. Carbon steel (P1) pipe above 25mm wall requires a minimum preheat of 79°C; alloy steel (P4, P5) requires 149°C or higher. Preheat prevents hydrogen-assisted cracking in the HAZ by slowing the cooling rate and allowing hydrogen to diffuse out before the microstructure becomes susceptible.

Examination Requirements

B31.3 uses the term "examination" for activities performed by the manufacturer or fabricator (or the owner's inspector) during and after fabrication, distinguished from "inspection" which refers to the owner's quality verification activities. Examination of welds is the primary compliance activity.

Random examination (Normal Fluid Service default)

For Normal Fluid Service, the default is random examination — a specified percentage of each type of weld is examined by the specified method. B31.3 Table 341.3.2 gives the examination requirements: visual examination of 5% of welds (selected randomly), with the weld quality factor W applied to the joint efficiency in the stress calculations. For socket welds and fillet welds, 5% visual examination is the default. The 5% is a minimum applied to the population of welds by each welder — it is not acceptable to examine 5% of the total weld count from a single experienced welder.

100% examination

100% examination (radiographic or ultrasonic of butt welds, plus magnetic particle or liquid penetrant of fillet and socket welds) is required for:

Where 100% RT or UT of butt welds is performed, the joint quality factor E_j = 1.0 can be used in the stress calculations, potentially allowing a reduction in wall thickness relative to the randomly examined case.

NDE methods

Pressure Testing

Before a new or modified piping system is placed in service, B31.3 requires a pressure test to verify tightness and structural integrity. Three options are provided:

Hydrostatic test (default)

The system is filled with water (or another suitable liquid) and pressurised to a minimum of 1.5 times the design pressure, multiplied by the ratio of the allowable stress at test temperature to the allowable stress at design temperature. The test pressure is held for a minimum of 10 minutes during which the system is examined for leaks. The test must not exceed the pressure that would cause yielding of any component — pressure relief is required where the test pressure could exceed component ratings.

The test temperature (metal temperature during test) must be above 0°C and above the minimum design metal temperature to prevent brittle fracture. For low-temperature designs, the code specifies a minimum test temperature above the MDMT to avoid brittle fracture at test pressure.

Pneumatic test

Where hydrostatic testing is not practical (systems where traces of water are unacceptable, or where weight of test fluid would overstress the structure), pneumatic testing with air, nitrogen, or another suitable gas is permitted. The minimum test pressure is 1.1 times the design pressure. Due to the stored energy of compressed gas relative to liquid, pneumatic testing carries significantly higher risk in the event of a failure — additional precautions including a preliminary leak test at 25% of test pressure, a slow pressurisation rate, and a hold period at 50% test pressure for examination before proceeding to full test pressure are required. Personnel must be at a safe distance during pressurisation.

Initial service test (Category D only)

For Category D fluid service only, B31.3 permits an initial service test — the piping is examined for leaks during initial pressurisation with the service fluid at service pressure. This is the least rigorous test option and is only applicable to the least demanding fluid category.

Documentation

B31.3 Paragraph 304.1 requires that the engineering design basis be documented. The specific documentation requirements depend on the service category, but for Normal Fluid Service the minimum documentation includes:

The piping specification (pipe spec or piping class) is the document that engineers and procurement teams work from day-to-day — it translates the code requirements into a practical bill of materials for each service category. A well-written pipe spec is one of the highest-value documents on a process engineering project; a poorly written one is one of the most common sources of non-conformances, wrong material procurement, and examination failures.

Summary

B31.3 is a framework, not a recipe. It provides the allowable stresses, the quality factors, the examination requirements, and the testing minimums — but the engineer must define the design conditions, select the materials, perform the calculations, specify the examination scope, and produce the documentation that demonstrates compliance. The code does not do any of this; it only defines the limits within which the engineer's decisions must sit.

The wall thickness calculation is the simplest part. The fluid category classification, the quality factor selection, the flexibility analysis, the examination scope, and the pressure test planning are where errors occur in practice — and where the difference between a code-compliant installation and a non-compliant one is found when something goes wrong.

Forgepoint provides B31.3 process piping design including wall thickness calculations, piping specifications, stress analysis, and full documentation packages. Get in touch to discuss your project.

Discuss Your Project — 07549 032776