ASME B31.4 vs B31.8

The liquid pipeline code and the gas pipeline code

The short answer

ASME B31.4 covers pipelines that carry liquids, such as crude oil, condensate, NGL, LPG, carbon dioxide and anhydrous ammonia, and slurry pipelines. ASME B31.8 covers gas transmission, gathering and distribution piping. The main design difference is how far the pipe may be stressed. B31.4 uses one design factor for most pipelines, while B31.8 lowers it as more people live near the line, through its location classes.

Side by side

ASME B31.4ASME B31.8
What it isPipeline Transportation Systems for Liquids and Slurries, a section of the ASME B31 codeGas Transmission and Distribution Piping Systems, a section of the ASME B31 code
Issued byASMEASME
What it carriesCrude oil, condensate, natural gasoline, NGL, LPG, carbon dioxide, liquid alcohol, anhydrous ammonia, liquid petroleum products and slurriesGas, in gathering and transmission pipelines and in distribution mains and service lines
StationsPump stations, tank farms and terminalsCompressor stations, and metering and regulating stations
Design basisHoop stress limited to a fraction of SMYS, commonly 0.72Hoop stress limited by a design factor that falls as population density rises
People near the lineOne design factor for most pipelinesLocation Class 1 to 4, set by the number of buildings near the line, with Class 4 where multistorey buildings are common
OffshoreHas an offshore chapterHas an offshore chapter
US regulation49 CFR Part 195, for hazardous liquid pipelines, sets its own design rules and incorporates B31.4 by reference for some of them49 CFR Part 192, for gas pipelines, sets its own design rules and incorporates B31.8 by reference for some of them
How they relateSister section for liquids. Breaks to B31.3 where the line enters the plantSister section for gas. Breaks to B31.3 where the line enters the plant

Commonly quoted values. Design factors and chapters can change between editions, so confirm them against the edition your project names.

When each one applies

A line that carries liquid, or a product such as NGL or LPG that is kept liquid in the line, follows B31.4. A line that carries natural gas follows B31.8.

Multiphase flowlines are not neatly either, so the project chooses a code for them and records the choice. Offshore, many pipelines are designed to DNV-ST-F101 or ISO 13623 instead of either B31 section.

Both on one project

An oil field with gas export usually has both. The oil export line is designed to B31.4 and the gas export line to B31.8. Each one changes to ASME B31.3 plant piping at a code break, often at the pig launcher or the first plant isolation valve.

Each code also covers its own stations. Pump station piping falls under B31.4, and compressor station piping under B31.8. The pumps and compressors themselves are bought to their own standards, such as API 610 and API 617.

Common confusions

LPG and the lighter NGLs boil at atmospheric conditions, but they travel in the line as liquids under pressure. Their pipelines are B31.4 lines.

Location classes belong to B31.8. The number of buildings near a B31.4 line does not change its design factor in the code, although national rules may add their own requirements for populated areas.

The plant at either end of a pipeline follows other codes. Separators, tanks and process piping at a terminal or platform are outside both sections.

How the choice shows up on a project

The line list names the design code for each pipeline. For a B31.8 line, the alignment sheets show the location class along the route, and the wall thickness can change where the class changes. The design basis for either code states the design factor used, and the hydrotest procedure follows the code and the national rules.

Questions

Is ASME B31.4 for gas?

No. B31.4 is for liquids and slurries. Gas transmission and distribution piping follows B31.8. Both are described on the ASME B31.4 / B31.8 page.

Which code covers an LPG or NGL pipeline?

B31.4. These products are carried as liquids under pressure, and B31.4 names them in its scope.

Which code covers a carbon dioxide pipeline?

B31.4. It has a separate chapter for carbon dioxide pipelines. Check the current edition and the national rules that apply to the route.

Do B31.4 and B31.8 apply offshore?

Both have chapters for offshore pipelines. Many offshore pipelines are designed to DNV-ST-F101 or ISO 13623 instead, depending on the operator and the regulator.

This page explains two standards in plain words. It is not a substitute for the standards themselves, and project specifications often add to both. Deck Twin uses these standards as reference values for visualisation. Check the current edition of each standard before using any value for design, procurement or fabrication.

Components that follow ASME B31.4 or ASME B31.8