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:
- Raw, intermediate, and finished chemical products
- Petroleum products and petroleum gas
- Gas, steam, air, and water when integral to the process
- Fluidised solids, refrigerants, and cryogenic fluids
- Fire protection systems within the facility
B31.3 explicitly excludes piping covered by other ASME codes. The boundaries are important:
- B31.1 (Power Piping) — steam and condensate systems in power generation facilities, boiler external piping. Where a process plant has a steam generation system, the boundary between B31.1 and B31.3 is defined by the first isolation valve downstream of the steam drum or boiler.
- B31.4 (Pipeline Transportation) — liquid petroleum pipelines between facilities
- B31.8 (Gas Transmission) — gas transmission and distribution pipelines
- ASME VIII Division 1 — pressure vessels; B31.3 piping connects to the vessel nozzle, not into it
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:
- Design pressure (P) — the most severe sustained pressure to which the piping will be subjected, including surge and water hammer effects. Always gauge pressure in B31.3 wall thickness calculations.
- Design temperature (T) — the most severe sustained temperature the pipe wall will reach. For insulated pipe this may be close to the fluid temperature; for uninsulated pipe in a heated environment, solar gain may need to be considered.
- Fluid composition — determines material compatibility, corrosion allowance, and fluid category.
- Corrosion and erosion allowances (c) — the expected material loss over the design life. These are added to the calculated minimum wall thickness.
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:
- Corrosion allowance (c) — expected metal loss over the design life
- Mechanical allowances — threading depth, grooving depth if applicable
- The mill under-tolerance — standard pipe to ASME B36.10M and B36.19M is manufactured to a wall tolerance of −12.5%. The specified wall must therefore be the calculated minimum divided by 0.875 (i.e. multiplied by 1/0.875 = 1.143) to ensure the minimum wall is met even on the thin side of the tolerance.
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.
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:
- One-third of the specified minimum tensile strength (SMTS) at room temperature
- One-third of the tensile strength at temperature
- Two-thirds of the specified minimum yield strength (SMYS) at room temperature
- Two-thirds of the yield strength at temperature
- For austenitic stainless and nickel alloys at elevated temperature: 90% of yield strength at temperature (the criterion that typically governs for these materials at high temperature)
- The average stress to cause creep rupture at 100,000 hours, or the stress to cause 1% creep strain, where the design temperature is in the creep range
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 type | E (standard) | E (with additional examination) |
|---|---|---|
| Seamless (no seam) | 1.00 | 1.00 (no improvement possible) |
| Electric resistance welded (ERW/HFW) | 0.85 | 1.00 with 100% RT or UT of seam per B31.3 Table A-1A |
| Electric fusion welded (EFW) | 0.80 | 0.90 or 1.00 depending on examination extent |
| Submerged arc welded (SAW) | 0.80 | 1.00 with 100% RT of seam |
| Furnace butt welded (FBW) | 0.60 | Not 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:
- Flanges: ASME B16.5 (DN15–DN600, Class 150–2500) or ASME B16.47 (DN650–DN1500). The pressure-temperature (P-T) rating tables in these standards give the allowable pressure at each temperature for each material group. The design pressure and temperature must both fall within the P-T rating for the flange class and material selected. A Class 150 carbon steel flange rated at 19.6 bar at 20°C is only rated at 13.8 bar at 300°C.
- Butt-welding fittings (elbows, tees, reducers): ASME B16.9. Fittings to B16.9 are rated to match the pipe to which they are welded — a Schedule 40 fitting is rated to the same pressure as Schedule 40 pipe of the same material.
- Socket-weld and threaded fittings: ASME B16.11. Class 3000, 6000, and 9000 ratings.
- Valves: API 600 (gate), API 602 (compact gate), API 608 (ball), API 609 (butterfly). Pressure class ratings correspond to ASME B16.5 flange classes.
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:
- Large diameter, high-temperature systems where thermal expansion is significant
- Systems connected to rotating equipment (pumps, compressors) where nozzle loads must be within API 610 or equivalent limits
- High-pressure systems where stress levels are close to the allowable
- Cryogenic systems where thermal contraction (not expansion) governs
- Systems subject to dynamic loads — relief valve discharge, slug flow, seismic
Stress categories and limits
B31.3 evaluates three stress categories, each with its own allowable limit:
- Sustained loads (SL): Stresses from pressure and weight (gravity loads). SL must not exceed Sh — the allowable stress at the hot (operating) temperature. Formally: SL = PD/4t + 0.75i(MA/Z) ≤ Sh. This ensures the pipe wall is not overstressed under the combination of pressure and gravity in service.
- Displacement (thermal expansion) stress range (SE): The cyclic stress range produced by thermal movement between cold and hot conditions. SE must not exceed SA — the allowable displacement stress range. SA = f(1.25Sc + 0.25Sh), where Sc is the allowable stress at cold (ambient) temperature, Sh is the allowable stress at hot temperature, and f is a stress range reduction factor based on the number of thermal cycles over the design life (f = 1.0 for ≤7,000 cycles, reducing to 0.3 for more than 2,000,000 cycles). The displacement stress limit is higher than the sustained stress limit because thermal stress is self-limiting — a pipe that yields slightly in the first thermal cycle shakes down to an elastic cycle in subsequent cycles.
- Occasional loads (SO): Stresses from occasional loads such as wind, seismic, relief valve reaction, and water hammer, acting in combination with sustained loads. SO must not exceed 1.33Sh (for loads acting less than 10% of operating time) or 1.2Sh (for loads acting up to 50% of operating time).
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:
- Piping in severe cyclic conditions (as defined by B31.3 Appendix L criteria)
- High-pressure piping (Appendix K)
- Any piping where the owner specifies it for quality assurance
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
- Radiographic testing (RT): Gamma or X-ray imaging of the weld cross-section. Detects volumetric defects (porosity, slag, lack of fusion) and linear defects aligned with the beam. Does not reliably detect planar defects oriented perpendicular to the beam. Film or digital (DR) methods.
- Ultrasonic testing (UT): Detects internal and surface defects by ultrasonic pulse-echo. More sensitive to planar defects than RT. Automated UT (AUT) and phased array UT (PAUT) are increasingly specified in preference to RT for critical joints. Requires more skilled operators than RT for reliable results.
- Magnetic particle testing (MT): Surface and near-surface defect detection in ferromagnetic materials. Required for fillet welds and branch connections where volumetric methods are not applicable. Not suitable for austenitic stainless or non-magnetic alloys.
- Liquid penetrant testing (PT): Surface defect detection for all materials. Used where MT is not applicable (stainless steel, non-ferrous alloys). Less sensitive than MT for near-surface defects.
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:
- Design basis: design pressure and temperature, fluid service category, corrosion allowance, applicable code edition
- Piping and Instrumentation Diagrams (P&IDs) showing all piping, equipment, instrumentation, and control elements
- Piping specifications (pipe specs) defining the material, schedule, fittings, flanges, valves, and gaskets for each piping class
- Isometric drawings or piping plans and elevations for all piping above defined complexity or size thresholds
- Stress analysis records for systems requiring formal analysis
- Material test certificates (EN 10204 3.1 or 3.2, or ASTM equivalent) for pressure-containing components
- Weld procedure qualifications (WPS/PQR) and welder performance qualifications
- Examination records — including identification of which welds were examined, by which method, by whom, and the results
- Pressure test records — test pressure, medium, duration, and results
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