{"slug":"/standards/asme-b31-8","title":"ASME B31.8 Gas Pipeline Code — Design Factors and NDE","description":"ASME B31.8 caps hoop stress at 0.72 SMYS in Class 1 Division 2 and 0.40 in Class 4, scales girth-weld NDT from 10% up, and derates strength above 250°F.","h1":"ASME B31.8: Gas Transmission and Distribution Piping Systems","answer":"ASME B31.8 governs onshore gas transmission, gathering and distribution piping from the wellhead outlet to the customer's meter set assembly. It ties almost every number to location class: allowable hoop stress runs from 0.80 SMYS in Class 1 Division 1 down to 0.40 in Class 4, girth-weld examination scales with the same class, and material strength is derated above 250°F.","expansion":"B31.8 is a design and construction code that also governs operation and maintenance, which is why it reads nothing like B31.3. Almost every quantitative requirement is indexed to location class, a population-density measure recalculated on a sliding one-mile basis rather than on fixed mileposts. Class drives the design factor in the wall thickness formula, the proportion of girth welds that must be examined, the minimum hydrostatic test ratio and the maximum allowable operating pressure that survives that test. In the United States the code is not itself the legal instrument. 49 CFR Part 192 is, and it pulls parts of B31.8 and B31.8S in by reference while adding its own operator qualification, integrity management and record duties. Elsewhere B31.8 is commonly adopted verbatim in a purchase specification, in which case the operating and maintenance chapters apply too, not only the design chapters that most projects read.","source":"Sources: ASME B31.8, Gas Transmission and Distribution Piping Systems (paras. 802 scope, 805 definitions, 811 materials, 820–827 welding and inspection, 840 location classes, 841 steel pipe design and testing, 845 MAOP, 854 class location change, Chapter VIII offshore); ASME B31.8S, Managing System Integrity of Gas Pipelines; API 1104, Welding of Pipelines and Related Facilities, including Appendix A; ASME BPVC Section IX; ASNT SNT-TC-1A; 49 CFR Part 192, Subparts E, J and O.","table":{"caption":"Location class, design factor, girth-weld examination and test ratio under ASME B31.8","columns":["Location class","Basic design factor F","Girth welds examined (code table)","Minimum strength test ratio"],"rows":[["Class 1, Division 1 — 10 or fewer buildings for human occupancy","0.80","10%","1.25 × MOP"],["Class 1, Division 2 — 10 or fewer buildings for human occupancy","0.72","10%","1.25 × MOP"],["Class 2 — more than 10 and fewer than 46 buildings","0.60","15%","1.25 × MOP"],["Class 3 — 46 or more buildings, or four-storey buildings prevalent","0.50","40%","1.50 × MOP"],["Class 4 — multi-storey buildings prevalent, heavy traffic, dense buried utilities","0.40","75%","1.50 × MOP"],["Compressor station piping, major and navigable river crossings, tie-in welds not pressure tested","Governing class applies","100%","Governing class applies"]],"note":"Design factors are tabulated in the steel pipe design paragraph (Table 841.1.6-1 in current editions, 841.114A in older ones); examination percentages and the 100% triggers sit in the welding and inspection chapter around para. 826; test ratios sit with the testing requirements in 841.3. Paragraph numbering changed at the 2018 edition, so verify every citation against the edition named in your purchase specification. In the United States, 49 CFR 192.243 imposes its own list of 100% examination cases that is broader than the code table — Class 4, named crossings and rights-of-way among them — so transcribing the code percentage straight into a US project specification creates a finding."},"facets":[{"q":"Does ASME B31.8 apply to piping inside a gas processing plant?","a":"Generally no. B31.8 stops at the plant boundary the owner defines in the design basis; process piping inside a gas processing or treating plant is normally built to ASME B31.3. The boundary matters because the two codes diverge on examination extent and acceptance criteria: B31.3 Normal Fluid Service takes 5% random radiography with Table 341.3.2 acceptance, while B31.8 takes a class-based percentage judged to API 1104 workmanship standards. Fix the boundary flange on a drawing before fabrication starts."},{"q":"What is the difference between Class 1 Division 1 and Class 1 Division 2?","a":"Both describe the same population density — ten or fewer buildings intended for human occupancy in the class location unit. The division records how hard the pipe was tested and therefore how hard it may be worked. Division 1 permits a 0.80 design factor and carries the tighter construction and testing provisions; Division 2 sits at 0.72. Operators who inherit records showing 0.80 without a matching strength test file usually cannot defend the design factor when the file is sampled."},{"q":"Can girth welds be accepted to API 1104 Appendix A instead of the workmanship standard?","a":"Only when the alternative acceptance route was set up before welding started. Appendix A is a fitness-for-purpose method requiring demonstrated flaw height sizing capability, fracture toughness data for the weld and heat-affected zone, and defined stress and strain inputs. It cannot be reached for after a weld has failed the Section 9 workmanship criteria. That retrospective use is one of the most common integrity findings on mechanised welding spreads, and it usually surfaces during a records audit years later."},{"q":"How often must a class location study be redone?","a":"There is no calendar interval in the code; the obligation is continuous. The trigger is the moment the building count in any sliding class location unit crosses a threshold, not the moment the operator notices. Under 49 CFR 192.611 the operator then has 24 months from the change to confirm or revise MAOP. Because the clock starts at the population change, an annual aerial or GIS review is the practical minimum, and gaps in that review are audited."},{"q":"Does B31.8 allow air or nitrogen as a strength test medium?","a":"It does permit gaseous test media within limits that depend on location class and the hoop stress the test induces, which is a real difference from B31.3 practice. That permission is not a licence: the stored energy in a pneumatic test of transmission-diameter pipe is enormous, the exclusion zone calculation must be documented, and many owner specifications and regulators override the code and require water. Treat gaseous testing as a decision requiring written technical justification, not a default."},{"q":"Is ASME B31.8 the legal requirement for a US gas pipeline?","a":"No. For jurisdictional gas pipelines in the United States the enforceable rule is 49 CFR Part 192, which incorporates selected parts of B31.8 and B31.8S by reference and then adds requirements the code does not contain — operator qualification, integrity management in high consequence areas, MAOP reconfirmation and record retention. Complying with the code alone is not compliance. Outside the United States, B31.8 is often invoked in full by the purchase specification and does become the binding document."}],"sections":[{"heading":"What B31.8 covers, and exactly where it stops","paragraphs":["B31.8 applies to onshore gas gathering, transmission and distribution systems: the pipelines themselves, compressor stations, metering and regulating stations, mains, and service lines up to and including the outlet of the customer's meter set assembly. Chapter VIII extends the code offshore for gas transmission, so offshore is not an exclusion. The design chapters carry a metal temperature range of roughly minus 20°F to 450°F, and work outside that band needs material qualification the code does not supply on its own.","The exclusions are where projects go wrong. B31.8 does not cover piping beyond the customer's meter set assembly, the wellhead assembly, casing and tubing in a gas well, piping inside refineries or natural gasoline extraction plants, LNG facilities under their own standard, vent piping carrying waste gas at essentially atmospheric pressure, or the design of pressure vessels, which belong to the ASME Boiler and Pressure Vessel Code. Liquid hydrocarbon and dense-phase carbon dioxide pipelines fall under B31.4, and a gaseous CO2 line needs an explicit code decision in the design basis rather than an assumption.","The boundary between B31.8 and B31.3 is the single most productive place to look during a construction audit. Metering skids, station yard piping and plant tie-ins are frequently fabricated to one code and registered under the other. The symptom is inconsistent examination: a spool shot at 5% random to B31.3 sitting in a system that owed a class-based percentage to B31.8, or API 1104 workmanship criteria applied to a spool whose acceptance table should have been B31.3. Settle it on a marked-up P&ID and have the [ASNT Level III](/consulting) who approves the NDT procedures endorse that boundary in writing."]},{"heading":"Location class: the sliding mile that sets every other number","paragraphs":["A class location unit is the area extending a quarter mile, about 400 metres, either side of the pipeline centreline along any continuous one-mile length. The count is of buildings intended for human occupancy. The critical word is any: the mile slides continuously along the route, so a cluster of dwellings straddling two survey miles still creates a higher class in the mile that contains them all. Class location studies built on fixed mileposts systematically under-report, and that error is easy for an auditor to reproduce with public imagery.","Class 1 is ten or fewer buildings; Class 2 is more than ten and fewer than forty-six; Class 3 is forty-six or more, and also captures areas where buildings of four or more storeys are prevalent. Class 3 is additionally triggered by a small, well-defined outside area occupied by twenty or more people on a recurring seasonal basis — a playground, a campground, a place of outdoor assembly — which is the criterion most often missed because nothing is built there. Class 4 covers areas dominated by multi-storey buildings, heavy traffic and dense buried utilities.","The counting rules generate their own findings. A building intended for human occupancy is not a metering shed, a pump house or an equipment kiosk, so GIS building-footprint data used raw inflates the count and the cost. Conversely, occupied portable buildings, worker accommodation and farm dwellings do count and are routinely missed by desktop studies. Keep the source imagery, the date, the counted objects and the analyst's name with each study; the study without its evidence is an assertion, and an assertion is a finding."]},{"heading":"The design formula, and the two factors that get ignored","paragraphs":["Steel pipe design in B31.8 rests on a single expression: the design pressure equals two times the specified minimum yield strength times the nominal wall thickness, divided by the nominal outside diameter, multiplied by the design factor F, the longitudinal joint factor E and the temperature derating factor T. The code works from nominal wall, not minimum wall after mill tolerance, which surprises engineers arriving from vessel design. F comes straight from the location class table and receives all the attention; E and T receive almost none.","E is the longitudinal joint factor, and it is not always 1.00. Seamless, electric resistance welded and double submerged arc welded pipe from listed specifications take 1.00, but electric fusion welded and certain spiral products drop to 0.80, and furnace butt-welded pipe — still encountered in older distribution systems and in salvaged stock — drops to 0.60. Reusing recovered pipe without confirming its manufacturing route, and then applying E equals 1.00 in the pressure calculation, is a genuine overstress rather than a paperwork problem.","T derates the allowable stress once metal temperature exceeds 250°F, stepping down through roughly 0.967 at 300°F and 0.900 at 400°F. Transmission mainline sees ambient temperature and nobody thinks about T. Compressor discharge piping upstream of a fouled or bypassed aftercooler does not, and that is where the derate is quietly omitted. Any station whose discharge temperature alarm sits above 250°F should have its design calculation re-checked against the actual sustained metal temperature, not the design ambient, and the result recorded where the next reviewer will find it rather than repeating the analysis from scratch."]},{"heading":"Welding qualification: API 1104 or ASME IX, and why mixing them hurts","paragraphs":["Girth welds on B31.8 pipelines are normally qualified and welded to API 1104. ASME Section IX is permitted for defined cases, typically welds on components under Boiler and Pressure Vessel Code jurisdiction and some station fabrication. Choosing one is easy; running both on the same spread is where the paperwork fails. The essential variable sets do not align. API 1104 treats wall thickness group, joint design, filler metal group, position, progression direction and the time between root and second pass as variables that can invalidate a procedure; Section IX weighs those differently and does not police downhill progression the same way.","The practical consequence is that a downhill cellulosic mainline procedure and a station procedure qualified to Section IX cannot be interchanged by a foreman who is short of welders. A welder qualified on one is not automatically qualified on the other, continuity requirements differ, and the welder log that treats them as one pool is the record that fails. Keep separate qualification registers, separate welder identification stencils and separate procedure numbers, and require the field engineer to name the procedure on every weld map entry.","Acceptance criteria follow the qualification route. API 1104 Section 9 is a workmanship standard with explicit limits on incomplete penetration, incomplete fusion, internal concavity, burn-through, slag and porosity, and it treats cracks as unacceptable regardless of size other than a shallow star-shaped crater crack within a defined short length. Radiographic interpreters trained on ASME vessel criteria misapply these limits in both directions, which is a training problem rather than a code problem — it is corrected by method-specific [NDT training and certification](/training) against the criteria actually invoked on the project."]},{"heading":"Extent of examination, and the triggers that force 100%","paragraphs":["The code table scales examination with location class, from a modest percentage in Class 1 upward through Class 4. On top of the percentage sit absolute triggers: compressor station piping, crossings of major and navigable rivers, welds inside railroad and public highway rights of way including tunnels, bridges and overhead crossings, offshore work, and tie-in welds that will never see a strength test. These triggers are not sampled — every weld is examined over its full circumference.","The sampling mechanics are as auditable as the percentage. Welds selected for examination must be drawn at random from each day's production and distributed across the welders working that day, not clustered on the welder the inspector trusts least, and not back-filled at the end of the week. Repair welds and their re-examinations do not count toward the day's percentage; they are additional. A rejected weld should also drive increased sampling of that welder's remaining production, which is a requirement crews resist because it costs schedule.","The examination itself has to be defensible. That means a written procedure demonstrating the technique will find the flaw types the welding process produces, an interpreter qualified to the criteria being applied, and retained radiographs or ultrasonic data rather than a summary sheet. Where a project runs mechanised ultrasonic testing on a pipeline spread, independent [review of the acquisition data and reports](/report-validation) at intervals through the campaign catches systematic technique drift far earlier than a post-construction audit does."]},{"heading":"Pressure testing and the establishment of MAOP","paragraphs":["The strength test ratio scales with class, 1.25 times the operating pressure for the lower classes and 1.50 for Class 3 and Class 4. In the United States the federal rule adds duration: a pipeline that will operate at thirty percent or more of specified minimum yield must be held at test pressure for at least eight hours. The recorded chart, the calibrated dead weight or pressure recorder certificate, the temperature record and the elevation profile used to correct pressures are all part of the test, and all four are sampled.","MAOP is then the lowest of several ceilings: the design pressure of the weakest element in the segment, the test pressure divided by the applicable class factor, the pressure the fittings and flanges are rated for, and any pressure imposed by the operating history or a regulator. Operators lose MAOP not because a calculation was wrong but because one element in a long segment — a valve body, an older tee, a short replacement joint of lighter wall — was never captured in the traceable, verifiable and complete records.","Retention is the sleeper requirement. Pressure test records must survive for the life of the pipeline, and their absence is precisely what drives the MAOP reconfirmation programme now running against phased federal deadlines into the 2030s. Reconstructing a 1968 test from microfilm is expensive; losing a 2019 test because the contractor's field engineer kept the chart in a truck is unforgivable. Chart, certificate, weld map and material record belong together in the [asset record system](/inspection-data-management-system) from day one."]},{"heading":"When the population catches up with the pipeline","paragraphs":["Class location change is the requirement that turns a construction code into an operating obligation. When development pushes a segment into a higher class, the original design factor is no longer valid for the new class, and the operator must respond: reduce MAOP to what the higher class permits, re-test the segment to qualify it at the higher factor, or replace the pipe with heavier wall. B31.8 sets out the options; in the United States, 49 CFR 192.611 sets the clock at 24 months from the change.","The clock is the trap. It runs from the date the class location actually changed — the date the forty-sixth building was occupied — not from the date the operator's next survey found it. An operator whose class location review is three years old has, by definition, no way to prove the 24-month window was met, and the auditor does not need to prove non-compliance; the operator must prove compliance. This is why the class location review cadence, its evidence and its sign-off matter more than the review's conclusion.","Downstream consequences are often forgotten. A class change also lifts the required examination percentage for any future construction in that segment, tightens the test ratio for replacement tie-ins, and may pull the segment into a high consequence area for integrity management purposes. Handle the change as a package rather than as a pressure calculation, and record the decision with the technical justification behind it."]},{"heading":"B31.8S, integrity management and the in-service life of the code","paragraphs":["B31.8S is the supplement that governs integrity management for gas transmission systems. It organises the threats to a pipeline into time-dependent categories such as external and internal corrosion and stress corrosion cracking, stable categories such as manufacturing and construction defects, and time-independent categories such as third-party damage and incorrect operations. The operator picks a prescriptive or a performance-based approach, and the choice determines how much engineering justification the reassessment interval needs.","Assessment methods are in-line inspection, pressure testing, direct assessment in its external, internal and stress corrosion cracking forms, and other technology accepted on justification. In high consequence areas the reassessment interval under the federal rule is capped, seven years being the prescriptive limit, and moderate consequence area obligations have since extended assessment duties beyond the original high consequence mileage. Each of these produces data that has to be reconciled against construction records, and reconciliation is where most integrity programmes are weakest.","The practical failure is not analytical. It is that the in-line inspection call list, the dig sheet, the field non-destructive examination that verified the call and the repair record live in four different systems with four different weld and joint numbering conventions. Fixing the identification scheme once, so that a 1974 weld map, a 2019 in-line run and a 2026 dig report all point at the same joint, is worth more than another round of tool accuracy debate."]},{"heading":"Findings that recur on B31.8 projects and how to close them","paragraphs":["The first recurring finding is the class location study without evidence: a spreadsheet of counts with no imagery, no date and no analyst. The second is the design calculation that carries F correctly and silently assumes E equals 1.00 and T equals 1.00. The third is the examination percentage applied per crew or per week rather than per day's production per welder. The fourth is the procedure revision mismatch, where the radiographic report cites a procedure revision that was superseded before the weld was made.","The fifth is interpretation drift: an interpreter applying vessel acceptance criteria to a pipeline girth weld, or the reverse. The sixth is the retrospective use of alternative acceptance standards to rescue a weld that failed the workmanship criteria. The seventh, and the most expensive, is the record that cannot be tied to a physical joint, which converts a routine records request into a field verification campaign.","None of these is closed by rewriting the quality manual. They close by making the technical authority explicit — a named Level III who owns the procedures, the interpreter qualifications and the acceptance criteria mapping — and by having a records structure that binds calculation, weld, examination and test to the same joint identity. Where that authority is not resident in the organisation, it can be supplied as [ASNT Level III consulting](/consulting) covering written practice, procedure qualification and independent review of the examination data itself."]}],"faq":[{"q":"What temperature range does ASME B31.8 cover?","a":"The design provisions run from about minus 20°F to 450°F for steel, with strength derating applied above 250°F through the temperature factor T. Below minus 20°F the code does not simply extend; the material must be qualified for the service, which normally means impact testing to demonstrate toughness at the minimum design metal temperature. Cold-region projects that assume the code covers them down to ambient winter design temperature without any toughness data are making an assumption the code does not make for them."},{"q":"What longitudinal joint factor applies to spiral-welded or furnace butt-welded pipe?","a":"It depends on the manufacturing specification, and the code tabulates it product by product. Seamless, electric resistance welded and double submerged arc welded pipe from listed specifications take 1.00. Electric fusion welded products and certain spiral pipe take 0.80. Furnace butt-welded pipe takes 0.60. The risk sits with salvaged and second-hand pipe whose manufacturing route is unknown: absent a mill certificate that identifies the specification and grade, the pipe cannot be assigned a joint factor and therefore cannot be assigned a design pressure."},{"q":"Who has to qualify the NDT procedures and personnel on a B31.8 project?","a":"The examining organisation writes and qualifies the procedures, and its Level III approves them. Personnel are certified under a written practice, typically built on ASNT SNT-TC-1A, or third-party certified to ISO 9712 where the specification calls for it. What owners frequently miss is that accepting a contractor's certificates without ever reviewing the written practice behind them means accepting the contractor's own training hours, examination content and vision requirements sight unseen. Review the written practice before the first weld, not after the first dispute."},{"q":"How does B31.8 differ from B31.4?","a":"B31.4 covers pipeline transportation systems for liquids and slurries, including dense-phase carbon dioxide; B31.8 covers gas. The difference is not only the fluid. B31.4 works from a single design factor rather than a population-based class system, sets different test requirements, and treats surge pressure explicitly because liquids are effectively incompressible. Converting a line from liquid to gas service, or the reverse, is a re-rating exercise against a different code, not a change of contents."},{"q":"What construction records need to survive the project?","a":"At minimum: the class location study with its evidence, the design calculations showing F, E and T, mill certificates tied to heat numbers and to physical joints, welding procedure specifications and their qualification records, welder qualification records with continuity, the weld map, the non-destructive examination procedures and personnel certifications, the radiographs or acquisition data, repair and re-examination records, the pressure test chart and gauge certificates, and the as-built alignment sheets. Pressure test and material records must survive for the operating life of the pipeline."}]}