Porosity in welding is gas (hydrogen, nitrogen or oxygen) trapped as cavities when the weld pool freezes. Whether pores are rejectable depends on the code. AWS D1.1 lets a statically loaded fillet weld show visible pores totaling 3/8 in. in any inch, but a cyclically loaded one only one pore, at most 3/32 in., per 4 in.
That difference is why porosity has to be handled at two levels. The welding process decides whether pores form at all, and the acceptance code decides whether the pores that did form can stay. This guide covers both: the cause chain and how to stop it, the forms porosity takes, the US acceptance limits in AWS D1.1, ASME Section VIII, ASME B31.3 and API 1104, and why radiography usually finds rounded pores better than ultrasonic testing.
Contents: What causes it · Types · Prevention · Detection methods · RT vs UT · US acceptance limits · Worked examples · Repair · Limits · FAQ
About the numbers: AWS D1.1, ASME and API 1104 are paywalled. The limits below come from the publishers' public pages and from secondary sources that agree with one another. Check every value against the edition named in your contract before accepting or rejecting a weld.
What causes porosity in welding?
Porosity forms when more gas enters the weld pool than can escape before it solidifies. TWI describes the cavities as:
"caused by the freezing in of gas released from the weld pool as it solidifies." (TWI Job Knowledge 42)
The three gases that matter are hydrogen, nitrogen and oxygen. They arrive by two main routes:
- Nitrogen and oxygen usually come from the surrounding air when gas shielding breaks down. TWI reports that about 1% air entrained in the shielding gas causes distributed porosity, and above 1.5% it produces gross surface-breaking pores.
- Hydrogen comes from moisture and hydrocarbons: damp electrodes and fluxes, condensation on the joint, and oil or grease on the workpiece or filler wire.
The sequence is the same in every case. A gas source reaches the pool, the molten metal absorbs it, the gas's solubility drops as the metal cools, and bubbles form. Bubbles that rise out of the pool before it freezes do no harm. Bubbles caught by the solidification front become pores.
That means porosity is a process problem first and an inspection finding second. Repairing pores without finding the gas source reproduces them in the next weld.
| Gas source | Typical cause on the job | Usual porosity pattern |
|---|---|---|
| Air in the shield (N₂, O₂) | Drafts, low or excessive flow, leaking hoses, spatter-blocked nozzle, long stick-out | Distributed pores; gross surface pores at higher air levels |
| Moisture (H₂) | Electrodes or flux stored without protection, condensation on cold steel, wet gas lines | Distributed or clustered pores, sometimes wormholes |
| Hydrocarbons (H₂) | Oil, grease, cutting fluid, paint or primer on the joint or wire | Clustered or linear pores along the contaminated area |
| Coatings | Zinc (galvanizing) or primer vaporizing in the joint | Pores and wormholes at the root and faying surfaces |
| Technique | Travel too fast, arc too long, abrupt arc stop | Elongated pores; crater pipe at the stop |
Key takeaway: find the gas source, because each source leaves a recognizable pattern.
Why is porosity worse in aluminum welds?
Aluminum is especially prone to hydrogen porosity because hydrogen's solubility falls sharply on freezing. TWI states that solubility "is much lower in solid aluminium (approximately 20x lower)" than in the liquid, so the excess gas is forced out as the weld solidifies (TWI: avoiding porosity when welding aluminium). The hydrogen comes from hydrocarbons and moisture on the plate and wire and from water vapor in the shielding gas.
TWI calls cleanliness the single most important control. The practical steps are to degrease before mechanical cleaning, remove the oxide shortly before welding, keep gas runs short and leak-free, and purge an idle gas system before use.
What are the types of porosity in welding?
Porosity in welding takes five common forms: uniformly distributed, clustered, linear (aligned), elongated (wormhole or piping) and surface-breaking. A sixth cavity, the crater pipe, looks like porosity but is caused by shrinkage, not gas.
ISO 6520-1 places all of these in its cavity group of weld imperfections, and AWS A3.0 defines porosity as cavity-type discontinuities formed by gas entrapment during solidification. US codes use slightly different names (D1.1 says "piping porosity" for elongated pores open to the surface), but the forms are the same.
| Form | What it looks like | What it usually points to |
|---|---|---|
| Uniformly distributed (scattered) | Single pores spread through the weld | A general gas problem: shielding, moisture or contamination across the whole joint |
| Clustered (localized) | A group of pores in a small area, often at a start or restart | A local event: arc start, a contaminated spot, a gust of wind |
| Linear (aligned) | Pores in a line, often along the root or a fusion line | Contamination or gas trapped at a joint feature, such as a root gap or faying surface |
| Elongated (wormhole, piping) | Tube-shaped cavities, often running toward the weld face | Gas generated continuously while the metal freezes, often from coatings, moisture or a poor joint |
| Surface-breaking | Pores open at the weld face | Gross shielding loss or heavy contamination |
| Crater pipe (shrinkage, not gas) | A cavity in the weld stop crater | Abrupt arc stop; the pool shrinks as it freezes |
Distribution matters as much as pore size. One small pore and a dense cluster of the same size pores are different findings, and every code below judges size, spacing and total quantity separately.
Is crater porosity the same as a crater pipe?
No. A crater pipe is a shrinkage cavity, so it needs a different fix from gas porosity. TWI explains that it "results from shrinkage on weld pool solidification", typically when the current is switched off abruptly and a large pool freezes quickly (TWI FAQ: crater pipes). The cures are crater filling, a gradual current slope-down, run-off tabs, or grinding out the stop before the next pass. AWS D1.1's visual table treats unfilled craters as their own item, separate from porosity.
How do you prevent porosity in welding?
Prevent porosity by controlling every gas source before, during and after welding, and by holding the parameters in the qualified welding procedure specification (WPS). No single control is enough, because porosity usually appears when two or three small controls slip at once.
Before the arc starts
- Clean the joint. Remove oil, grease, cutting fluid, paint, primer, rust and mill scale from the joint faces and the adjacent surface. Degrease before grinding or brushing, or the abrasive spreads the contamination.
- Remove coatings from the weld zone. Galvanizing and many primers must come off unless the WPS was qualified with them in place.
- Store consumables dry. Keep low-hydrogen electrodes and fluxes in the manufacturer's recommended storage and reconditioning conditions, and follow the WPS and code requirements for exposure time.
- Dry the work. Cold steel picks up condensation; preheat drives it off where the WPS calls for it.
- Check the gas system. Inspect cylinders, regulators, hoses, fittings and the torch for leaks, and confirm the right gas is connected.
During welding
- Keep the shield stable. Set the flow within the WPS range. Too little lets air in; too much causes turbulence that pulls air into the shield.
- Block the wind. Use screens or enclosures outdoors. A flowmeter reading can look correct while a draft strips the gas away at the arc.
- Keep the nozzle clean of spatter, and hold contact-tip-to-work distance and torch angle within the qualified range.
- Hold the qualified parameters. Current, voltage, arc length and travel speed all decide whether gas has time to escape. Excessive travel speed and long arcs are common causes.
- Clean between passes. Remove slag and surface contamination so later passes don't trap it. Our guide to slag inclusion in welding covers the related defect.
- Finish the stop properly. Fill the crater or slope the current down to avoid crater pipes.
After welding
- Inspect visually right away for surface pores, pinholes and unfilled craters.
- Record the conditions for welds that show porosity: welder, consumable lot, gas, flow, weather and position. Patterns show up quickly.
- Treat repeated porosity as a process nonconformance, not a series of local repairs. Fix the cause, then resume.
Process monitoring systems that track arc signals or use weld cameras can flag disturbances in real time. They supplement a qualified procedure and inspection; they don't replace them. Procedure qualification itself is covered in our guide to welding procedure specifications.
Key takeaway: porosity prevention lives in the WPS and in shop discipline, not in the NDT report.
Which NDT methods detect weld porosity?
Visual testing finds surface pores, MT and PT find surface-breaking pores, and radiography or ultrasonic testing is needed for buried porosity. TWI notes that subsurface porosity is detected by radiography or ultrasonic inspection, and that radiography is normally the more effective of the two.
| Method | Porosity it finds | What it misses |
|---|---|---|
| Visual testing (VT) | Surface pores, piping porosity, unfilled craters | Anything below the surface |
| Magnetic particle testing (MT) | Surface-breaking pores and some just below the surface, in ferromagnetic steel only | Buried porosity; nonmagnetic metals |
| Penetrant testing (PT) | Pores open to the surface, on any non-porous material | Anything not open to the surface |
| Radiographic testing (RT) | Buried pores of all forms, shown as dark rounded spots with their distribution visible | Very small pores in thick sections; depth is not shown on a single exposure |
| Ultrasonic testing (UT) | Larger pores and clusters, with depth and location | Small scattered pores, which return weak, broad signals |
| Phased array UT (PAUT) | Clusters and their extent, shown as images from several angles | The same weak response from small rounded pores |
Which method the job uses is usually set by the code or the contract, not chosen by the inspector. A wider comparison is in our guide to non-destructive testing for welding inspection.
Why does radiography usually beat UT for porosity?
Radiography usually beats ultrasonic testing for porosity because a rounded pore shows clearly on a radiograph but scatters ultrasound instead of reflecting it back to the probe. The two methods respond to different properties of the flaw.
RT measures density. A pore is empty space, so less radiation is absorbed along that path and the pore shows as a dark, rounded spot. The image shows the size, shape and spacing of every pore in the projection, which is exactly what porosity acceptance charts judge. TWI's one caveat is that small pores are hard to detect, especially in thick sections.
UT measures reflected sound. A planar flaw such as lack of fusion acts like a mirror: when the beam hits it at the right angle, much of the energy comes straight back. A spherical pore has no flat face. It scatters the sound in all directions, so only a small fraction returns to the probe, and the echo is low even for a pore of meaningful size. Scattered porosity produces several weak, shifting signals that can sit near the noise from the weld's grain structure.
That leads to three practical effects:
- Low UT amplitude doesn't mean little porosity. Amplitude-based UT acceptance (AWS D1.1 indication rating, ASME Section VIII Appendix 12, B31.3 paragraph 344.6.2) can accept porosity that a radiographic rounded-indication chart would reject, simply because the echoes stay under the reference level.
- Porosity can mask other flaws on UT. A cluster can scatter the beam enough to reduce the signal from a flaw behind it.
- UT is still the better tool for planar flaws. Lack of fusion and cracks are the opposite case, as explained in our guide to lack of fusion in welds. That's why many specifications allow either method and some critical welds get both.
How a pore behaves on UT compared with the other common weld flaws:
| Flaw | Shape | UT response | Better primary method |
|---|---|---|---|
| Porosity | Rounded, volumetric | Low amplitude; responds similarly from most directions | RT |
| Slag inclusion | Irregular, volumetric, often elongated | Moderate, irregular echo | RT, with UT for depth |
| Lack of fusion | Planar, along the fusion face | Strong from one direction, weak or none from the other | UT |
| Crack | Planar, sharp | Strong when the beam is near normal to it | UT (and MT/PT at the surface) |
More forms are compared in our guide to weld defect types.
Key takeaway: if porosity is the main concern on a weld, ask for RT; if planar flaws are, ask for UT.
What porosity is acceptable under US welding codes?
Acceptance depends entirely on the governing code: AWS D1.1 for structural steel, ASME Section VIII for pressure vessels, ASME B31.3 for process piping and API 1104 for pipelines. ISO 5817, often cited in porosity articles, is the European equivalent for quality levels; US contracts rarely call it up.
| Code | Where it applies | How porosity is judged | Key qualifier |
|---|---|---|---|
| AWS D1.1 (2025 is current) | Structural steel buildings and structures | Visual Table 8.1: piping porosity by sum of diameters (static) or frequency and size (cyclic); separate RT and UT criteria in Clause 8 | Static vs cyclic loading; groove vs fillet; weld transverse to tensile stress |
| ASME Section VIII, Div. 1 | Pressure vessels | Full RT under UW-51: rounded indications to Mandatory Appendix 4 | Thickness t; spot RT under UW-52 doesn't grade rounded indications |
| ASME B31.3 | Process piping | RT: Table 341.3.2 sends porosity to Section VIII Appendix 4 | Fluid service (normal vs severe cyclic) and wall thickness |
| API 1104 | Pipeline girth welds | Individual pore size, distribution charts, hollow-bead length | Wall thickness; edition (49 CFR 192.7 incorporates the 21st) |
AWS D1.1 porosity limits: static vs cyclic
AWS D1.1 visual acceptance (Table 8.1) sets different porosity limits for statically and cyclically loaded connections, and the often-quoted 3/32 in. limit applies only to the cyclic case. The nontubular limits as summarized in CWI study material and AWS forum quotations of the code are:
| Weld | Statically loaded | Cyclically loaded |
|---|---|---|
| CJP groove weld in a butt joint transverse to tensile stress | No visible piping porosity | No visible piping porosity |
| All other groove welds and fillet welds | Sum of visible pores 1/32 in. and larger: max 3/8 in. in any linear inch and 3/4 in. in any 12 in. of weld | Max one pore in each 4 in. of weld length, max diameter 3/32 in. |
Under D1.1, NDT beyond visual inspection applies only when the contract documents call for it. When RT is specified, Clause 8 has its own radiographic criteria for static, cyclic and tubular connections, which limit discontinuity size against weld size and spacing; check those against your edition. Full D1.1 acceptance, including undercut and UT indication rating, is in our guide to AWS D1.1 weld inspection criteria.
ASME Section VIII rounded indications
Section VIII, Division 1 judges porosity on radiographs as rounded indications under Mandatory Appendix 4, with size limits based on the thickness t. Forum quotations of the appendix give these limits:
| Appendix 4 rule | Limit |
|---|---|
| Any rounded indication | 1/4 t or 5/32 in. (4 mm), whichever is smaller |
| Isolated indication, 1 in. (25 mm) or more from the next | 1/3 t or 1/4 in. (6 mm), whichever is less |
| Isolated indication, t over 2 in. (51 mm) | Up to 3/8 in. (10 mm) |
| Overall concentration | Must not exceed the Appendix 4 distribution charts (random and clustered charts by thickness) |
A rounded indication is generally one whose length is no more than three times its width. Two qualifiers matter. Appendix 4 applies to welds that are fully radiographed under UW-51. Under spot radiography (UW-52), secondary sources agree that rounded indications are not a factor in acceptance. Section V, the examination code, sets how the radiograph is made but contains no acceptance criteria.
ASME B31.3 porosity
ASME B31.3 Table 341.3.2 refers radiographic porosity to the Section VIII Appendix 4 size and distribution limits, with different criteria for normal and severe cyclic fluid service. Practitioner readings disagree on whether surface porosity is evaluated the same way or is not permitted at all, so read Table 341.3.2 in your edition before accepting surface pores on process piping. For UT, B31.3 paragraph 344.6.2 rejects a linear-type indication only when its amplitude exceeds the reference level and its length exceeds the thickness-based limit, which is why low-amplitude porosity rarely triggers a UT reject. Code-by-code UT limits are in our guide to ultrasonic testing acceptance criteria.
API 1104 porosity
API 1104 rejects an individual pore larger than 1/8 in. (3 mm) or 25% of the specified wall thickness, whichever is less, and limits overall scattered porosity with distribution charts. Secondary summaries of the standard also give these limits:
| API 1104 item | Limit (as summarized; check your edition) |
|---|---|
| Individual or scattered pore | Larger than 1/8 in. or 25% of the thinner wall, whichever is less, is a defect |
| Distribution of scattered porosity | Must not exceed the distribution charts (separate charts for wall up to and over 0.500 in.) |
| Hollow-bead porosity | Aggregate length over 2 in. in any 12 in., or over 8% of the weld length, is a defect |
| Cluster porosity | The 21st edition limited cluster diameter to 1/2 in.; one secondary source says the 22nd edition removed this clause |
For regulated gas pipelines, 49 CFR 192.7 incorporates the 21st edition of API 1104, and 49 CFR 192.241 requires welds to meet its acceptability standards. The 22nd edition (2021) is current, but it isn't the regulatory edition for PHMSA gas lines.
Key takeaway: the same pore can pass one code and fail another, so quote the code, the edition and the loading or service class with every porosity call.
Worked examples: is this porosity acceptable?
The examples below use the limits as summarized above. They show the method; confirm the values against your edition.
Example 1: AWS D1.1 fillet weld, visual. An inspector finds four visible pores within one inch of a fillet weld, measuring 1/8, 1/8, 3/32 and 1/16 in.
- Sum: 4/32 + 4/32 + 3/32 + 2/32 = 13/32 in.
- Static limit: 3/8 in. = 12/32 in. in any linear inch. Reject, by 1/32 in.
- Cyclic limit: one pore per 4 in., max 3/32 in. diameter. Reject: there are four pores in one inch, and two exceed 3/32 in.
Remove only the 1/8 in. pores and the remainder (5/32 in.) passes the static rule, but still fails the cyclic frequency rule. The loading case changes the answer.
Example 2: ASME Section VIII, Appendix 4, t = 1/2 in. A radiograph of a fully radiographed seam shows a 9/64 in. (0.141 in.) rounded indication.
- General limit: 1/4 × 0.5 = 0.125 in., versus 5/32 = 0.156 in.; the smaller is 0.125 in. The pore exceeds it.
- Isolated limit (if nothing else lies within 1 in.): 1/3 × 0.5 = 0.167 in., versus 0.25 in.; the smaller is 0.167 in. The pore is within it.
- Result: the pore is acceptable only if it is isolated, and the total porosity in the length must still fall within the distribution chart for that thickness. If the seam were spot radiographed under UW-52, rounded indications wouldn't be graded at all.
Example 3: API 1104 girth weld, two wall thicknesses.
| Wall thickness | 25% of wall | 1/8 in. cap | Individual pore limit |
|---|---|---|---|
| 0.250 in. | 0.0625 in. | 0.125 in. | 1/16 in. (wall governs) |
| 0.375 in. | 0.094 in. | 0.125 in. | 3/32 in. (wall governs) |
| 0.500 in. | 0.125 in. | 0.125 in. | 1/8 in. (equal) |
| 0.750 in. | 0.1875 in. | 0.125 in. | 1/8 in. (cap governs) |
On thin-wall pipe, the wall-thickness rule is stricter than the 1/8 in. cap, so a pore that would pass on heavy-wall pipe can fail on thinner pipe.
How should rejectable porosity be repaired?
Remove the porous metal by grinding or gouging, confirm it's gone, reweld to a qualified procedure, and re-inspect with the same method that found it. The repair sequence is:
- Evaluate against the governing code; only porosity that exceeds the limits is a defect.
- Find the cause before repairing: shielding, moisture, contamination, coating or technique.
- Excavate the affected length. Gouging a porous area often opens more pores than the radiograph showed, so dig until the cavity is clean.
- Verify the excavation visually, and with MT or PT where the code or procedure requires it.
- Reweld to the WPS with the cause corrected.
- Re-inspect with the original method, and record the repair.
Widespread porosity suggests a systemic problem. It may mean cutting out the whole weld and repreparing the joint, and it should trigger a check of other welds made under the same conditions.
What inspection cannot tell you about porosity
- RT doesn't show depth on a single exposure, and very small pores can be missed in thick sections. It also needs a radiation exclusion zone and usually access to both sides.
- UT can underreport porosity. Amplitude depends on pore size, shape and grouping, so a low signal can represent significant porosity. UT also can't reliably tell a pore cluster from slag without supporting evidence such as scanning from several directions.
- Surface methods see only the surface. VT, MT and PT won't find buried porosity in a groove weld.
- Passing a code doesn't prove the process is under control. Acceptable porosity on every weld can still be a sign of drifting shielding or damp consumables that will produce a reject next week.
- No inspection result tells you the cause. The pattern (distributed, clustered, linear, wormhole) narrows it down, but the cause is found in the shop records and the WPS.
- This article doesn't replace the code. Clause, table and figure numbers change between editions; the acceptance decision belongs to the CWI or Level III working from the licensed text.
How EMA Industries applies this
EMA Industries performs AWS D1.1 structural weld UT, MT and PT, and provides NDT Level III and WPS/PQR services from Southern California, mobilizing nationwide. On a porosity problem, the useful work is usually twofold: confirming whether indications meet the governing code, and reviewing the WPS, consumable handling and shielding setup so the porosity stops. Where porosity is the main concern and the specification calls for radiography, the inspection plan should say so. See our weld ultrasonic examination services or contact EMA Industries to scope an inspection or a procedure review.
Related reading: AWS D1.1 weld inspection criteria · Ultrasonic testing acceptance criteria standards · Lack of fusion in welds · Slag inclusion in welding · Weld defect types · ASME weld ultrasonic inspection
Frequently asked questions
What are the types of porosity in welding?
There are five common forms: uniformly distributed (scattered), clustered, linear or aligned, elongated (wormhole or piping) and surface-breaking. Crater pipe looks similar but is a shrinkage cavity at the weld stop, not gas porosity, so it is prevented by crater filling rather than better shielding.
What is the most common cause of weld porosity?
Loss of gas shielding and hydrogen from moisture or contamination cause most porosity. Drafts, wrong flow rates and leaking gas lines let air into the pool, while damp consumables, condensation, oil and coatings supply hydrogen. The porosity pattern usually points to which one it is.
Does porosity always mean the weld must be repaired?
Only when it exceeds the governing code's limits. AWS D1.1, ASME Section VIII, B31.3 and API 1104 each allow some porosity, judged by pore size, spacing and total amount, with limits that depend on loading, service class and wall thickness. Cracks are rejected at any size, but porosity is not.
Is ultrasonic testing good for detecting porosity?
UT detects larger pores and clusters and gives their depth, but it is weaker than radiography for porosity. Rounded pores scatter sound rather than reflecting it back to the probe, so small scattered pores return low signals that can fall under the reference level. RT is generally preferred when porosity is the main concern.
What causes porosity in aluminum welds?
Hydrogen is the cause. Molten aluminum dissolves hydrogen from moisture, oil and hydrated oxide, and solid aluminum holds roughly 20 times less, so the excess forms pores as the weld freezes. Thorough degreasing, fresh oxide removal, dry filler wire and a leak-free, purged gas system are the main controls.
Sources
- Defects/imperfections in welds: porosity (Job Knowledge 42), TWI (definition, gas sources, 1% and 1.5% air entrainment, RT vs UT)
- Avoiding porosity when welding aluminium, TWI (hydrogen solubility about 20x lower in solid aluminum; cleanliness)
- What causes crater pipes and what will prevent their formation?, TWI FAQ
- AWS announces release of D1.1/D1.1M:2025, American Welding Society, April 17, 2025
- 49 CFR 192.7, Incorporation by reference, eCFR (text read on Cornell LII): API 1104 21st edition
- 49 CFR 192.241, Inspection and test of welds, eCFR (text read on Cornell LII)
- ASME BPV Committee on Nondestructive Examination (BPV V), committee scope (Section V excludes acceptance criteria)
- AWS D1.1/D1.1M:2025 Clause 8 and Table 8.1; ASME BPVC Section VIII, Division 1, UW-51, UW-52 and Mandatory Appendix 4; ASME B31.3 Table 341.3.2 and para. 344.6.2; API Std 1104, 21st and 22nd editions, Section 9; ISO 6520-1:2007; AWS A3.0 (all paywalled; values above from agreeing secondary sources, to be confirmed against the licensed text)

