Search
Close this search box.

ASME B31.1 vs B31.3 vs B31.4 Piping Code Comparison

When designing, fabricating or inspecting carbon steel piping systems, the applicable ASME B31 code determines allowable stresses, wall thickness calculations, testing requirements and inspection criteria. ASME B31.1 (Power Piping), ASME B31.3 (Process Piping) and ASME B31.4 (Pipeline Systems for Liquids) are three of the most commonly referenced codes, and confusing them can lead to non-compliant fabrication, failed inspection or costly rework. This guide compares all three so engineering and procurement teams can specify the correct code for their project.

We cover scope, allowable stress basis, wall thickness formula, branch reinforcement, flexibility analysis, testing requirements, NDE requirements and documentation. Whether you are building a power plant steam line, a refinery process line or a cross-country oil pipeline, the code selection is the first engineering decision.

ASME B31 piping codes comparison for carbon steel pipe systems

1. Scope and Application

ParameterASME B31.1ASME B31.3ASME B31.4
TitlePower PipingProcess PipingLiquid Pipeline Systems
Typical serviceSteam, water, oil in power plantsChemical, petrochemical, refineryLiquid hydrocarbons, CO2 pipelines
LocationPower stations, boiler housesRefineries, chemical plants, terminalsCross-country, offshore, gathering
Pressure rangeUp to critical pressureUp to 680 bar (Cat. M)Up to 250 bar (typical)
Temperature range-198°C to +650°C-198°C to +815°C-30°C to +120°C (typical)
Fluid categoryWater, steam, air, gasNormal, Category M, High PurityFlammable, combustible, stable

The boundary between B31.3 and B31.4 is the facility fence line: piping inside a refinery or terminal battery limit falls under B31.3, while cross-country or offshore pipelines outside the battery limit fall under B31.4. B31.1 is specific to power generation facilities and is not used for process plants.

2. Wall Thickness Calculation

All three codes use a modified Barlow formula as the basis for minimum wall thickness, but the coefficients and allowable stress values differ. The general form is:

t = (P × D) / (2 × (S × E × W + P × Y))

Where: t = minimum wall thickness, P = internal design pressure, D = outside diameter, S = allowable stress from code table, E = quality factor (longitudinal weld joint efficiency), W = weld strength reduction factor, Y = coefficient from code table.

FactorB31.1B31.3B31.4
Allowable stress basisLower safety factorHigher safety factor for Category MModerate, with derating for temperature
Weld joint factor E (ERW pipe)0.85 (furnace-welded 0.60)0.85 (seamless 1.00)0.85 (seamless 1.00)
Corrosion allowanceAs specified by ownerAs specified by ownerAs specified by owner
Y coefficient (ferritic steel, ≤ 480°C)0.40.40.4
Mill tolerance-12.5% on wall thickness-12.5% on wall thickness-12.5% on wall thickness

In practice, for the same pipe size, design pressure and temperature, B31.3 typically yields a slightly thicker wall than B31.1 due to the more conservative allowable stress basis for hazardous fluids. B31.4 may allow thinner walls than B31.3 because it applies to less hazardous liquids at moderate temperatures.

Carbon steel pipe wall thickness calculation comparison across ASME B31 codes

3. Branch Connection and Reinforcement

All three codes require reinforcement of branch connections where the branch diameter exceeds a certain ratio of the header. The calculation method is similar (area-replacement method) but the required area and acceptable reinforcement types differ.

RequirementB31.1B31.3B31.4
Reinforcement methodArea replacementArea replacementArea replacement
Reinforcing pad (saddle)AllowedAllowedAllowed but less common
Weld-on branch fitting (Weld-O-Let)AllowedAllowed (MSS SP-97)Allowed
Integrally reinforced teePreferred for high pressurePreferred for Category MStandard for pipelines
Minimum weld sizePer code Fig. 127.4.8Per code Table 328.4.2Per API 1104 or ASME Sec. IX

4. Flexibility and Stress Analysis

Thermal expansion, support movement and pressure thrust create stresses that must be evaluated. The codes differ in when formal flexibility analysis is required and what stress limits apply.

Flexibility RequirementB31.1B31.3B31.4
Formal analysis required?Yes, unless exemption metYes, unless exemption metYes, for buried and above-ground segments
Allowable thermal stress rangeSa = f × (1.25 Sc + 0.25 Sh)Sa = f × (1.25 Sc + 0.25 Sh)Simplified (API practice)
Cold springAllowed (50% credit)Allowed (no credit required for code compliance)Not commonly used
Support spacingPer code mandatory appendixPer engineering judgment / standardsPer API recommended practice
Carbon steel process piping system in a refinery compliant with ASME B31.3

5. Pressure Testing Requirements

Test ParameterB31.1B31.3B31.4
Hydrostatic test pressure1.5 × design pressure1.5 × design pressure × stress ratio1.25 × MOP (onshore)
Pneumatic test pressure1.2 × design pressure1.1 × design pressure × stress ratio1.25 × MOP
Test mediumWater preferredWater preferred (Category M mandatory)Water preferred; hydrocarbon possible
Hold time10 min minimumPer owner, typically 10 – 30 min1 – 4 hours (onshore)
Temperature≥ 15°C (MDMT considerations)≥ MDMT + 17°C≥ 5°C above MDMT

6. NDE and Inspection Requirements

NDE RequirementB31.1B31.3B31.4
RT/UT on butt welds (Normal Fluid)5% min (varies by service)5% min (Normal); 100% (Category M)10% min (cross-country); 100% (ties)
MT/PT on branch weldsAs specifiedRequired for Category MPer API 1104
Hardness test (weld HAZ)Not mandatoryRequired for H2 service, elevated tempRequired for sour service
Visual inspection100% of welds100% of welds100% of welds
Reference welding standardASME Sec. IXASME Sec. IXAPI 1104

7. Documentation and Records

All three codes require traceable documentation, but the extent differs significantly:

FAQ

Which code applies to a refinery utility water line?

ASME B31.3 applies to all piping within the refinery battery limit, including utility water, because the code governs by location, not by fluid. If the same water line crosses outside the battery limit to a remote pump station, the portion outside the fence may fall under B31.1 (if it serves a power boiler) or B31.4 (if it is a liquid pipeline).

Can I use A53 Grade B pipe for all three codes?

Yes, ASTM A53 Gr. B seamless or ERW pipe is an approved material in all three codes. The allowable stress values differ slightly because each code applies its own safety factors. Check the specific stress table for your design temperature in each code.

What is the difference between Category M and Normal Fluid Service in B31.3?

Category M applies to fluids where exposure to even small quantities can cause irreversible harm (toxic gases, lethal chemicals). Category M requires 100% RT, special leak detection, weld metal hardness control and more conservative design margins. Normal Fluid Service has less stringent requirements.

Need Carbon Steel Pipe for Your Piping Project?

Huaxia-Steel supplies seamless and welded carbon steel pipe (ASTM A53, A106, API 5L, A333) with full EN 10204 3.1 / 3.2 MTC for power piping, process piping and liquid pipeline projects. We provide custom cutting, beveling, coating and NDE per your project specification. Contact us for a competitive quote.

Request a Quote →

Request A Free Quote

 Or contact us to see our certificates

We’d like to work with you

If you require further information about our metal sheet products or architectural projects, please don’t hesitate to leave your contact details and message here.

Our team of experts will respond within 24 hours to continue the discussion and provide you with any additional information you requires.