API 1104 vs ASME B31.3: Which Standard Applies to Your Pipeline Project?

Infographic comparing API 1104 and ASME B31.3 application scopes: cross-country pipeline welding on one side and in-plant process piping on the other

Deciding between API 1104 vs ASME B31.3 comes down to one question: where does your pipe sit? ASME B31.3 applies to process piping inside facilities such as refineries, chemical plants, and power stations, while API 1104 governs the field welding of cross-country pipelines built to ASME B31.4 or ASME B31.8; when a project combines both, each standard controls its own portion. This guide compares the scope, welding qualification, NDT acceptance criteria, heat treatment, and pressure testing of API 1104 vs ASME B31.3, the two pipeline welding standards most often confused, then gives you a step-by-step method to decide which standard applies to your pipeline project. You will also learn how B31.4 and B31.8 delegate their welding rules to API 1104, why welder qualification does not transfer between the two systems, and what to do when both standards meet on one site.

Key Takeaways

  • Location decides the standard: ASME B31.3 governs process piping inside facility limits; API 1104 governs field welding of cross-country pipelines under ASME B31.4 or ASME B31.8.
  • Qualifications do not transfer: Welding procedure and welder qualifications earned under API 1104 are not valid for B31.3 work, and Section IX qualifications are not valid for API 1104 pipeline work.
  • Testing rules differ: B31.3 requires post-weld heat treatment per Table 331.1.1 and hydrostatic testing per Chapter 345; API 1104 does not cover system pressure testing.
  • Both can apply on one site: Stations and terminals routinely weld mainline tie-ins to API 1104 and station piping to B31.3, with the boundary defined in the project specification.
  • Verify before the first bead: Check the governing code, the qualification cards, and the acceptance criteria against the exact scope of work before welding starts.

What Is API 1104?

API Std 1104, Welding of Pipelines and Related Facilities, is the American Petroleum Institute (API) standard for field welding of pipelines. The current edition is the 22nd Edition, published in 2023 with Errata 1. Contractors use it for girth welds, branch connections, and repair welds on cross-country pipelines carrying crude oil, natural gas, refined products, and other hydrocarbons.

The standard is self-contained. Chapter 4 covers welding procedure qualification, Chapter 6 covers welder qualification, and the standard body defines acceptance criteria for radiography (RT), ultrasonic testing (UT), magnetic particle testing (MT), and penetrant testing (PT). API 1104 also covers repair welding of pipelines in service, which makes it the reference standard for hot tapping and in-service welding work.

API 1104 is a welding and fabrication standard, not a design code. It does not size pipe walls, calculate stresses, or require system pressure tests. Those duties belong to the pipeline design codes that call API 1104 into their scope, mainly ASME B31.4 for liquids and ASME B31.8 for gas.

What Is ASME B31.3?

ASME B31.3, Process Piping, is the piping code of the American Society of Mechanical Engineers (ASME) for piping inside facility boundaries. The current edition is B31.3-2024.

It applies to piping in petroleum refineries, chemical plants, pharmaceutical plants, hydrogen production facilities, pulp and paper mills, power generation plants, semiconductor fabs, and cryogenic plants.

Unlike API 1104, the ASME B31.3 process piping rules form a complete design and construction code. The code specifies materials and components, provides pressure design rules in Chapter 300, requires flexibility analysis of piping systems, and covers fabrication, assembly, erection, examination, and testing of every system it governs.

Its fluid scope covers chemicals, petroleum products, gas, steam, air, water, refrigerants, cryogenic fluids, and fluidized solids.

For welding, B31.3 does not write its own qualification rules. It requires all welds to be made to procedures and by welders qualified in accordance with ASME Section IX, and it sets its own examination and acceptance requirements in Chapter 341 and Appendix A.

API 1104 vs ASME B31.3: The Key Differences

The quickest way to understand the API 1104 vs ASME B31.3 comparison is to put the two standards side by side. They answer different questions. API 1104 answers “how should this pipeline weld be made and accepted?”, while ASME B31.3 answers “how should this facility piping system be designed, built, and tested?”

AspectAPI Std 1104ASME B31.3
Primary roleField welding of pipelines and related facilitiesDesign, fabrication, and testing of process piping
Typical applicationCross-country oil and gas transmission linesIn-plant piping in refineries, chemical plants, power stations
Design contentNone; welding and acceptance onlyFull pressure design, stress analysis, material selection
Welding procedure qualificationChapter 4, self-containedPer ASME Section IX (para. 328.2)
Welder qualificationChapter 6, self-containedPer ASME Section IX
NDT acceptance criteriaDefined in the standard bodyAppendix A; examination scope per Chapter 341
Post-weld heat treatmentNot a general requirement for new constructionRequired for carbon steel per Table 331.1.1 in defined thickness and service ranges
System pressure testingNot coveredRequired by Chapter 345 before service
Current edition22nd Edition, 2023B31.3-2024

How Do the Scopes Compare in Practice? (B31.4 vs B31.8 vs B31.3)

In practice, the API 1104 vs ASME B31.3 question is decided by where the pipe is located. Piping inside a facility battery limit is process piping and falls under ASME B31.3. Piping that transports a product between facilities is a pipeline system and falls under ASME B31.4 or ASME B31.8, whose welding rules point to API 1104.

The table below maps common project scenarios to their governing design code and welding standard. Use it as a first pass before you open either document.

Piping or systemGoverning design codeWelding standard
Cross-country liquids pipeline (crude, products, ammonia, slurry)ASME B31.4API 1104
Gas transmission or distribution lineASME B31.8API 1104
Refinery, chemical, or power plant process pipingASME B31.3ASME Section IX
Hydrogen piping inside a facilityASME B31.3 (B31.12 for dedicated hydrogen pipelines)ASME Section IX
Pump, compressor, or meter station pipingASME B31.4 or B31.8API 1104 for mainline tie-ins; B31.3 for defined process systems per owner specification
Interconnecting piping within facility limitsASME B31.3ASME Section IX

What About ASME B31.4 and ASME B31.8?

ASME B31.4 covers pipeline transportation systems for liquids and slurries, and ASME B31.8 covers gas transmission and distribution piping. These are the design codes for cross-country pipeline systems, and neither of them rewrites welding rules. Both adopt API 1104 as the welding standard within their scope.

AspectASME B31.4ASME B31.8
System coveredLiquid and slurry pipeline transportationGas transmission and distribution piping
Typical regulation49 CFR Part 19549 CFR Part 192
Welding standardAPI 1104API 1104

This means a mainline girth weld on a liquids line is designed under B31.4, welded to API 1104, and system-tested to B31.4 requirements. The same logic applies to gas lines under B31.8. When people compare pipeline welding standards, the real question is whether their line is governed by B31.4, B31.8, or B31.3.

How Do Welding Qualification Requirements Differ?

Welding qualification is where the two systems differ most for contractors. API 1104 handles welding procedure qualification and welder qualification inside its own document, while ASME B31.3 delegates both to ASME Section IX. A qualification earned under one system is not automatically valid under the other.

Figure 2. API 1104 qualifies procedures and welders within the standard itself, while ASME B31.3 references ASME Section IX for both.

Figure 1 . API 1104 qualifies procedures and welders within the standard itself, while ASME B31.3 references ASME Section IX for both.1

Qualification elementAPI 1104ASME B31.3
Procedure documentWPS qualified per Chapter 4WPS and PQR qualified per ASME Section IX
Essential variablesProcess, electrode class, thickness range, position, and moreDefined by ASME Section IX, Article II
Welder testGirth weld test per Chapter 6Performance qualification per ASME Section IX, Article III
ValidityApplies to API 1104 pipeline work onlyApplies to B31.3 process piping work only
Transfer between systemsNot accepted for B31.3 unless the owner accepts itNot accepted for API 1104 pipeline work

This difference is the core of the API 1104 vs ASME B31.3 comparison for welding contractors. In our welding department we keep two separate qualification matrices: one for API 1104 pipeline welding crews, and one for plant piping welders qualified to ASME Section IX. The two sets of essential variables never fully overlap, and sending the wrong welder to the wrong scope is a common cause of failed inspections. The same logic applies to automatic pipeline welding: the automatic process and its essential variables must be qualified within the governing system before production welding starts.

How Do NDT Requirements and Acceptance Criteria Differ?

Both standards rely on the same NDT methods, but they set NDT acceptance criteria in different places and scope the examination differently. Understanding this prevents rework at final inspection.

API 1104 defines acceptable limits for porosity, slag inclusions, incomplete fusion, and other imperfections directly in the standard body, with additional rules in its appendixes for automated UT. The extent of examination, whether partial or 100 percent, is set by the governing pipeline code and the operator’s specification, not by API 1104 itself.

ASME B31.3 bases examination scope on fluid service category. Chapter 341 defines how much examination each category requires, ASME Section V governs the NDT methods, and Appendix A provides the acceptance criteria. NDT personnel on B31.3 work must be qualified per ASME Section V and SNT-TC-1A requirements.

NDT requirementAPI 1104ASME B31.3
MethodsRT, UT, MT, PT with criteria in the standardRT, UT, MT, PT per ASME Section V
Examination extentSet by governing code and operator specificationBased on fluid service category in Chapter 341
Acceptance basisStandard body and appendixesAppendix A
Personnel qualificationPer governing code or owner specificationPer ASME Section V / SNT-TC-1A

How Do PWHT and Hydrostatic Testing Compare?

The two standards also differ in post-weld heat treatment (PWHT) and system testing. These requirements drive cost and schedule, so they matter when you budget a project.

ASME B31.3 requires PWHT for carbon steel piping above defined thicknesses and for certain services, per Table 331.1.1, and it requires impact testing of the base material where the code specifies. API 1104 does not generally require PWHT for new construction field welds on cross-country lines, because heat treatment of long field runs is impractical; the governing pipeline code and the owner’s specification define any exceptions.

Pressure testing is the clearest difference. ASME B31.3 Chapter 345 requires every new process piping system to pass a hydrostatic test, or a pneumatic test where hydrostatic testing is not practical, before it goes into service. API 1104 does not cover system pressure testing at all; testing of a cross-country line is required by B31.4, B31.8, or the applicable regulation such as 49 CFR Part 192 or Part 195.

RequirementAPI 1104ASME B31.3
Post-weld heat treatmentNot a general requirement for new construction field weldsTable 331.1.1 for carbon and alloy steels at defined thicknesses and services
Impact testingNot specified in the standardRequired for defined materials and services
System pressure testNot coveredHydrostatic testing or pneumatic test per Chapter 345 before service

Which Standard Applies to Your Pipeline Project?

To answer the API 1104 vs ASME B31.3 question for your own project, work through these five steps. They take about ten minutes and will stop you from applying the wrong code.

  1. Step 1: Locate the piping. If it sits inside a facility battery limit, it is process piping and ASME B31.3 governs. If it runs between facilities, it is a pipeline system governed by B31.4 or B31.8.
  2. Step 2: Identify the fluid. Liquids and slurries point to ASME B31.4. Gas points to ASME B31.8. Facility process fluids point to ASME B31.3.
  3. Step 3: Check the regulator and the owner. Regulations such as 49 CFR Part 192 and Part 195, local codes, and the project specification can add requirements and can move the boundary between codes.
  4. Step 4: Match the welding standard to the design code. B31.4 and B31.8 systems are welded to API 1104 pipeline welding requirements. B31.3 systems are welded to ASME Section IX qualifications.
  5. Step 5: Confirm the boundary on site. At stations, terminals, and tie-ins, define where each code takes over, usually at the isolation valve or the facility fence line, and record it in the project specification.

If you are still unsure after step five, send us your pipe size, fluid, and operating pressure, and our engineers will confirm the governing code for your project before you finalize the specification. Our pipeline construction services cover the full scope from code selection through final testing.

Decision flowchart to choose between ASME B31.3 and API 1104 based on piping location, transported fluid, and project scope

Figure 2. A five-step decision path that selects the governing design code and the welding standard for a given project scope.

Can Both Standards Apply to the Same Project?

Yes, and this is the situation that confuses most project teams. A pipeline project with a pump station, compressor station, meter station, or terminal routinely uses both standards on one site. The mainline girth welds are welded to API 1104 under B31.4 or B31.8, while the station process piping is designed and welded to ASME B31.3.

On a recent crude transfer project, our crews welded a 24-inch mainline to API 1104 while the pump station piping was fabricated and welded to ASME B31.3 with Section IX-qualified welders. The transition sat at the station block valve, exactly where the project specification defined it. The lesson: the boundary is a specification decision, not a technical judgment call made at the spool.

Hot tapping follows the same logic. A hot tap on an operating cross-country line is welded to API 1104 in-service welding requirements, supported by ASME PCC-2 practices. A hot tap or tie-in on B31.3 facility piping is governed by B31.3, again with PCC-2 guidance for in-service work. The same boundary logic applies when a station tie-in needs line stopping and plugging equipment, and we see both on almost every multi-discipline project we execute.

Hot tap welding on an operating pipeline performed to API 1104 in-service welding requirements

Figure 3. Hot tap welding on an operating line is an in-service welding scope executed to API 1104 when the pipeline is governed by B31.4 or B31.8.

See how JSW executes hot taps on operating lines with our hot tapping and line stopping team.

Frequently Asked Questions

What is the difference between API 1104 and ASME B31.3?

API 1104 is a welding standard for cross-country pipelines; ASME B31.3 is a design and construction code for process piping inside facilities. API 1104 covers welding procedure qualification, welder qualification, and weld acceptance criteria but no design content, while B31.3 covers full pressure design, materials, fabrication, examination, and testing, and delegates welding qualification to ASME Section IX. In short, B31.3 governs the piping system, while API 1104 governs the weld on pipeline systems built to ASME B31.4 or ASME B31.8.

Is API 1104 a design code?

No. API 1104 is a pipeline welding standard, not a design code. Design of the pipeline system comes from the governing pipeline code, ASME B31.4 for liquids or ASME B31.8 for gas, or from the applicable regulation. API 1104 covers how welds are made, qualified, and accepted, not how the pipe is sized or supported.

Does ASME B31.3 apply to cross-country pipelines?

Generally no. Cross-country transmission lines are governed by ASME B31.4 for liquids and ASME B31.8 for gas. ASME B31.3 process piping rules apply inside facility boundaries, and the owner or regulator can extend B31.3 to specific systems, such as defined station process systems, where the project specification says so.

Which standard governs hot tapping on an operating pipeline?

It depends on the system. Hot taps on operating cross-country lines follow API 1104 in-service welding requirements with ASME PCC-2 practices. Hot taps on B31.3 facility piping follow B31.3, again supported by PCC-2. The fluid service, pressure, and wall thickness determine the exact procedure either way, and the hot tapping equipment must be matched to the line size and pressure class.

Can a welder qualified to API 1104 weld to ASME B31.3?

Not automatically. API 1104 qualification is valid for API 1104 pipeline welding work, and B31.3 work requires qualification per ASME Section IX. The two systems are not interchangeable, and an owner who accepts a transfer is taking a compliance risk. Verify the welder’s qualification card against the exact scope before the first bead.

Does API 1104 require pressure testing?

No. API 1104 does not cover system pressure testing. Testing of a pipeline system is required by the governing code, ASME B31.4 or ASME B31.8, and by regulations such as 49 CFR Part 192 and Part 195. On B31.3 projects, the hydrostatic testing required by Chapter 345 is a separate milestone from weld inspection.

Which editions are currently in force?

API Std 1104 is at the 22nd Edition, 2023, with Errata 1. ASME B31.3 is at the 2024 edition, and ASME B31.4 is at the 2025 edition. Always verify the edition referenced by your contract and the local regulation, because projects often cite earlier editions that are still legally current.

Is API 1104 or ASME B31.3 more demanding?

Neither standard is universally stricter; they enforce different things. B31.3 adds requirements API 1104 does not touch: post-weld heat treatment per Table 331.1.1, impact testing, and a hydrostatic or pneumatic system test per Chapter 345 before service. API 1104, by contrast, embeds its weld acceptance criteria in the standard body, and the examination extent on a pipeline is set by B31.4, B31.8, or the operator’s specification, which can demand 100 percent radiography. For budgeting, the main cost drivers are the NDT extent, PWHT on thicker-wall station piping, and qualifying crews to two separate systems when both standards meet on one site.

For most projects, the facility boundary is the deciding factor: inside the fence, ASME B31.3 process piping rules govern design, fabrication, and testing, with welds qualified to ASME Section IX; on the cross-country line, B31.4 or B31.8 governs the system, and API 1104 governs the welding. Many projects use both, and the boundary between these pipeline welding standards must be written into the project specification, not improvised on site.

Choosing the wrong standard means compliance risk, rejected welds, failed tests, and schedule loss.

If you are planning pipeline construction, a station tie-in, or a hot tap, send our engineering team your pipe size, fluid, pressure, and governing code. We will confirm the compliant approach, supply the equipment, and execute the work to the standard that applies to your pipeline project. 

For lines already in service, our pipeline repair services and hot tapping and plugging services follow the same qualification discipline for repair and tie-in work.

Request a Free Pipeline Service Consultation

Ready to Work Together? Build a project with us!

Learn More From

Facing a pipeline challenge? Get a tailored solution from our experts. Provide your details below, and we’ll contact you within 24 hours to discuss your project requirements, timeline, and budget.

Beijing Jinshiwan is a leading integrated provider of pipeline technology and services, combining high-end equipment manufacturing with professional engineering expertise. We deliver safe, reliable, and innovative full-lifecycle pipeline solutions for the global oil & gas, chemical, and utility industries.

Pipeline Construction & Installation
  • Cross-country pipeline construction
  • Pipeline installation and commissioning
  • Plant pipeline systems installation
  • Pipeline relocation and modification
  • Hot tapping and pressure tapping services
  • Pipeline plugging and isolation services
  • Emergency pipeline repair
  • Pipeline rehabilitation and lining
  • Composite sleeve repair (B-sleeve installation)
  • Corrosion protection and repair
  • Pipeline integrity management
  • In-line inspection support services
  • Non-disruptive live line modifications
  • Pipeline pressure testing
  • Pipeline cleaning and drying
  • Hot tapping machine manufacturing
  • Pipeline plugging equipment production
  • Custom pipeline fittings fabrication
  • Special valve manufacturing

• 24/7 emergency response capability
• API and ASME compliant standards
• Multilingual project management
• Global shipping and logistics support
• On-site technical supervision worldwide

Trust and Worth

Our Clients