ASME B31.12 is the U.S. code that governs the design, construction, inspection, and maintenance of hydrogen piping and pipelines, and it applies to any system carrying 10 percent or more hydrogen by volume. Crossing that threshold triggers hydrogen-specific material rules, stress derating that can reach 54 percent compared with natural gas service, tighter welding and inspection standards, and a choice of design method that can swing steel costs by roughly 30 percent.1ASME. ASME B31.12 Hydrogen Piping and Pipelines
Part IP and Part PL: Which Rules Apply to Which Piping
The code splits hydrogen infrastructure into two parts. Part IP covers industrial piping inside the fence line of manufacturing plants, refineries, hydrogen fueling stations, and similar facilities. These runs tend to be shorter, smaller in diameter, and routed through areas where workers are nearby. Part PL covers cross-country pipelines that transport hydrogen between production sites and end users, typically buried or running along rights-of-way over long distances.1ASME. ASME B31.12 Hydrogen Piping and Pipelines
The boundary is straightforward. B31.12 picks up where hydrogen enters a facility and follows it to the final point of use or discharge. Every connecting segment within a site and every mile of pipeline between sites falls under Part IP or Part PL. Design rules, inspection requirements, and allowable stress calculations differ between the two, so operators need to classify each segment before engineering begins.
The 10 Percent Hydrogen Threshold
B31.12 begins at 10 percent hydrogen by volume. Blends below that fall outside its scope and are handled under natural gas pipeline codes such as B31.8 for transmission. Once you cross 10 percent, the full weight of B31.12’s material derating and testing requirements applies. The change is not gradual. A blending project that shifts from 8 percent to 12 percent hydrogen has moved into a different regulatory framework, and the economics change with it.
How PHMSA Turns a Voluntary Code Into a Requirement
ASME B31.12 is a voluntary consensus standard, but federal law gives it teeth. The Pipeline and Hazardous Materials Safety Administration regulates hydrogen pipelines under 49 CFR Part 192, which covers the transportation of natural and other gas by pipeline. The regulation defines “gas” to include any flammable gas, and hydrogen is unambiguously flammable, so hydrogen pipeline operators must comply with Part 192’s minimum standards for materials, pipe design, welding, construction, corrosion control, testing, operations, maintenance, and integrity management.2eCFR. 49 CFR Part 192 – Transportation of Natural and Other Gas by Pipeline: Minimum Federal Safety Standards
In practice, PHMSA expects operators to follow recognized standards like B31.12 as the technical basis for meeting those federal requirements. An operator who designs and builds to B31.12 and documents everything accordingly is in a strong position during a PHMSA audit. PHMSA also requires annual reporting on pipeline infrastructure and immediate reporting of incidents involving fatalities, injuries, or significant property damage.
Why the Code Exists: Hydrogen Embrittlement
Hydrogen atoms diffuse into the crystal lattice of steel, accumulate at grain boundaries and defect sites, and gradually make the metal brittle. A pipe that performs well in natural gas service can crack and fail carrying hydrogen at the same pressure if the steel grade, hardness, and heat treatment are wrong. Everything downstream in the code, from material selection to weld inspection, exists to manage that behavior.
B31.12 restricts which steels you can use. Low-carbon steels with controlled hardness are the workhorse materials for most hydrogen piping and pipelines. Austenitic stainless steels in the 300 series (304, 316, and their variants) are specified where higher corrosion resistance or cryogenic performance is needed, because they resist hydrogen uptake far better than carbon and ferritic steels.3ASME. ASME B31.12 Hydrogen Piping and Pipeline Requirements
Fittings, valves, and other pressure-retaining components face the same material restrictions. The code specifies chemical composition limits and heat treatment procedures to keep hardness within safe ranges. Gaskets and seals get separate attention because hydrogen permeates through elastomers and polymers that work fine for methane. Charpy V-notch impact testing is required to confirm that the selected metals absorb energy under sudden loading rather than fracturing in a brittle mode.3ASME. ASME B31.12 Hydrogen Piping and Pipeline Requirements
Material Performance Factors and Stress Derating
This is where B31.12 diverges most sharply from other piping codes. The standard applies material performance factors (Hf and Mf) that reduce allowable stress or increase required wall thickness for hydrogen service. These factors account for the loss of fracture toughness and fatigue resistance that hydrogen causes in steel. For high-strength pipeline steels at elevated hydrogen pressures, the reduction can reach 54 percent, meaning a pipe that could operate at a given pressure in natural gas service might need walls roughly twice as thick to carry hydrogen at the same pressure.4ASME Digital Collection. Technical Basis of ASME B31.12 Code Case 218
The practical impact is enormous. A 54 percent derating on high-strength steels means you either use much more steel or you drop to a lower-strength grade that receives a less punishing factor. Hydrogen pipelines cost significantly more per mile than equivalent natural gas lines because of this single feature. It drives most of the economic decisions around hydrogen pipeline routing, diameter selection, and operating pressure.
Design Method A Versus Design Method B
B31.12 offers two paths for pipeline design, and the choice can make or break a project’s budget.
Method A is the prescriptive, conservative default. It applies blanket thickness premiums to account for hydrogen embrittlement, effectively requiring heavier pipe walls regardless of whether the specific steel grade and operating conditions actually need them. The approach is straightforward to apply but expensive, because it penalizes higher-strength steels that could otherwise reduce material costs.
Method B is performance-based. It uses fracture mechanics analysis, specifically fatigue crack growth rate equations built into the code, to evaluate whether a given pipe can safely handle hydrogen at the proposed pressure and cycle count. It allows steels up to a specified minimum yield strength of 70 ksi (roughly X70 grade) without the automatic thickness penalty, and it applies to operating pressures below 3,000 psi. Projects that qualify for Method B can reduce the cost of steel pipe by up to 30 percent.5U.S. Department of Energy. Lowering Costs of Hydrogen Pipelines Through Use of Fiber Reinforced Polymers and Modern Steels
Method B requires more engineering upfront. You need material-specific fatigue data, a defined pressure cycling profile, and confidence in the initial flaw sizes your inspection methods can detect. For long-distance transmission pipelines where steel is the single largest cost item, the savings usually justify the additional analysis, and most new hydrogen pipeline projects of significant length pursue Method B for that reason.
Welding Requirements
Hydrogen piping tolerates welding defects poorly. A porosity cluster or lack-of-fusion flaw that might be acceptable in a water line becomes a crack initiation site in hydrogen service, because hydrogen atoms concentrate at exactly those stress risers.
Butt-welded joints are the standard for high-pressure service because they distribute stress more evenly than socket welds or threaded connections. Welding procedures must include pre-heating to slow the cooling rate and post-weld heat treatment to relieve residual stresses that would otherwise attract hydrogen to the heat-affected zone.3ASME. ASME B31.12 Hydrogen Piping and Pipeline Requirements Welders and welding procedures must be qualified specifically for the materials and joint configurations being used.
Alignment and support during installation matter more than most contractors realize. Thermal expansion in hydrogen systems creates cyclic stresses at supports and anchors, and those cycles drive fatigue crack growth. Correct support spacing and flexibility analysis during construction prevents problems that are extremely expensive to fix once the system is pressurized.
Inspection, Pressure Testing, and Leak-Tightness
Before hydrogen enters the system, every weld and connection must prove it can hold. Non-destructive examination, primarily radiography and ultrasonic testing, is used to look inside welds for porosity, incomplete fusion, and cracking. For high-pressure hydrogen service, B31.12 typically requires 100 percent volumetric examination of all girth welds rather than the spot-check approach that lower-risk services allow.3ASME. ASME B31.12 Hydrogen Piping and Pipeline Requirements
After the welds pass, the entire system undergoes a pressure test. The standard method is hydrostatic testing with water at 1.5 times the maximum allowable working pressure. If residual moisture could damage the system or contaminate the hydrogen stream, pneumatic testing with an inert gas like nitrogen is permitted, though it requires additional safety precautions because compressed gas stores far more energy than an equivalent volume of water.3ASME. ASME B31.12 Hydrogen Piping and Pipeline Requirements
Pressure testing proves the system will not burst. Leak-tightness testing proves it will not seep. Because hydrogen molecules are so small, they can escape through paths that would hold back natural gas indefinitely. Sensitive leak testing typically uses helium as a tracer gas, since its molecular size is comparable to hydrogen, and can detect microscopic flange gaps and seal imperfections that a soap-bubble test would miss entirely.6Los Alamos National Laboratory. Helium Leak Testing Procedure
Converting Existing Natural Gas Pipelines
Repurposing existing natural gas infrastructure for hydrogen is one of the most discussed cost-reduction strategies in the hydrogen economy, and one of the most technically fraught. The core question is whether aging steel pipelines designed for methane can safely carry hydrogen given everything the code says about embrittlement, derating, and material performance factors.
Research suggests that blending up to about 20 percent hydrogen by volume into existing natural gas distribution systems does not significantly increase risk for distribution mains and service lines. Above 20 percent, the risk profile for service lines changes substantially. For transmission-grade steel pipelines, there is no clear industry consensus on a safe upper limit, with most guidance pointing to a 10 to 20 percent range as the boundary where additional engineering analysis becomes mandatory.
Full conversion to 100 percent hydrogen is technically permitted under B31.12, but existing pipelines rarely qualify without substantial modifications. The material performance factors alone often require operating the converted pipeline at a significantly lower pressure than its original natural gas rating, which reduces throughput and may eliminate the economic advantage of reusing the existing pipe. Operators considering conversion should expect a detailed fitness-for-service assessment covering the steel grade, vintage, weld quality, and operating history of every segment.
Ongoing Maintenance and Records
Once a hydrogen system is in service, the owner must run a maintenance program that catches degradation before it becomes dangerous. Periodic ultrasonic thickness measurements track internal and external wall loss from corrosion or erosion. Leak detection systems monitor hydrogen concentrations in the surrounding air and flag pressure drops that could indicate a developing through-wall defect. Any defect found must be repaired to the original construction standard, not patched with a lesser method.
Federal regulations under 49 CFR Part 192 require operators to maintain detailed records of every inspection, every repair, and the qualifications of every person who performed the work.2eCFR. 49 CFR Part 192 – Transportation of Natural and Other Gas by Pipeline: Minimum Federal Safety Standards Those records demonstrate compliance during PHMSA audits and provide the forensic trail needed to investigate any operational failure. Operators who let documentation lapse tend to discover the gap during an incident investigation, when the regulator is already asking pointed questions about what was inspected and when.