Overview
ASME B31.8 is the premier code published by the American Society of Mechanical Engineers for the design, construction, operation, and maintenance of gas transmission and distribution piping systems. It governs the safe transport of natural gas from gathering lines and compressor stations to the end consumer's meter. This standard is vital for public safety, managing the high-energy risks associated with pressurized combustible gases over long distances and through populated areas.
Scope & Applicability
Applies To Industries
Covers — pipeline facilities for the transport of gas, encompassing:
- Gas transmission pipelines (cross-country).
- Gas distribution systems (mains and service lines to customers).
- Gas gathering lines.
- Compressor, regulating, and metering stations.
- Gas storage lines.
Does NOT cover (exclusions) — the following are governed elsewhere:
- Pressure vessels covered by ASME BPVC.
- Piping with metal temperatures above 450°F (232°C) or below -20°F (-29°C) (unless specifically addressed).
- Piping beyond the outlet of the customer's meter set assembly → NFPA 54 / ANSI Z223.1 (National Fuel Gas Code).
- Liquid transportation pipelines (crude, refined, NGL) → ASME B31.4.
- Refinery and chemical plant process piping → ASME B31.3.
- Power plant piping → ASME B31.1.
The location class (Class 1 to 4) is the defining concept of B31.8, driving design factors based on population density around the pipeline.
Key Requirements
B31.8 sets minimum requirements across the full lifecycle of a gas pipeline system:
- Materials — qualified materials suitable for gas service, commonly utilizing API 5L line pipe, with specific requirements for fracture control.
- Design — wall thickness calculation heavily dependent on the "Location Class" (population density), dictating the design factor (F).
- Fabrication & Erection — requirements for welding (typically to API 1104), bending, cover depth for buried pipes, and crossings.
- Examination, Inspection & Testing — NDE of welds and post-construction pressure testing (hydrostatic or pneumatic) depending on location class and operating pressure.
- Operation & Maintenance — rigorous programs for pipeline integrity management (PIM), corrosion control, leak detection, and uprating.
Technical Details
The technical evaluations below determine whether a gas pipeline system is safe for its design pressure and environment.
Pressure Design
Wall thickness is calculated using Barlow's formula modified by a design factor (F), longitudinal joint factor (E), and temperature derating factor (T). The design factor (F) ranges from 0.80 (Class 1 - rural) down to 0.40 (Class 4 - highly populated city areas), meaning pipes in cities must be up to twice as thick for the same pressure.
Stress Analysis
- Restrained vs. Unrestrained — similar to B31.4, buried gas pipelines are analyzed as fully restrained, focusing on longitudinal stresses from thermal changes and internal pressure (Poisson's effect).
- Fracture Control — pipelines operating at high stress levels (high SMYS) require notch-tough materials to prevent brittle and propagating ductile fractures.
Pipeline Integrity
Chapter VIII (and referenced standards like ASME B31.8S) mandates comprehensive integrity management programs for identifying and mitigating threats (corrosion, third-party damage, earth movement) to operating gas pipelines.
Where to find it in the code: design equations → Chapter IV · design factors (F) → Table 841.1.6-1 · integrity management → Chapter VIII.
Engineering Notes
The most critical concept in B31.8 is the Location Class, which directly links the mechanical design of the pipe to the risk posed to the public. If population density increases around an existing pipeline (e.g., a new housing development is built), the Location Class changes. The pipeline operator must then reduce the operating pressure or replace the pipe with a thicker wall to meet the new, more conservative design factor.
Source, Edition & Status
- Publisher
- ASME
- Industries
- Pipeline
- Last Reviewed
- 2026-07-01
- Last Updated
- 2026-07-01
- Verified By
- Engineering content reviewer
- Content Status
- draft