Pigging: Definition, Pipeline Inspection, and Flow Assurance

What Is Pigging in Oil and Gas?

Pigging is the practice of forcing a device called a pig — a plug-shaped tool sized to fit the internal diameter of a pipeline — through the pipe bore using differential pressure from the flowing product stream or injected fluid. Pigs perform three principal functions: mechanical cleaning (removing wax, scale, sand, and debris from the pipe wall); flow assurance and liquid management (pushing accumulated liquids or slugs to the receiving facility ahead of gas flow); and intelligent inspection (mapping the pipe wall for corrosion, deformation, dents, and cracks using electromagnetic, ultrasonic, or caliper sensing). Pigging is a routine operations and maintenance activity for oil, gas, and NGL transmission pipelines, subsea flowlines, and production gathering systems worldwide — it is one of the primary methods for maintaining pipeline integrity and preventing flow restriction, corrosion, and blockage from wax, hydrates, and scale accumulation.

Key Takeaways

  • Pigs are propelled by differential pressure — pumped product (oil, gas, or water) pushes the pig from the launcher to the receiver through the pipeline bore.
  • Cleaning pigs remove paraffin wax, scale, debris, and water accumulation — critical in crude oil pipelines where wax deposits at or below the pour point temperature of the oil.
  • Intelligent (smart) pigs carry sensors — magnetic flux leakage (MFL), ultrasonic transducers, or caliper arms — that map the entire pipe wall, detecting corrosion, wall thinning, dents, and weld defects.
  • Liquid pigs (foam, spherical) push accumulated condensate or water slugs from low points in subsea or hilly terrain pipelines to the receiving separator — preventing slug-induced process upsets.
  • Not all pipelines are piggable — many older or smaller-diameter lines lack pig launchers and receivers, or have diameter changes, valves, or bends that block pig passage.

Pig Types and Their Applications

Utility pigs (cleaning and batching) are the most common type. Foam pigs (polyurethane foam cylinders) are the simplest — they conform to irregular bores, clear water and light debris, and are sacrificed at the receiver (not retrieved and reused). Spherical pigs (inflatable rubber or solid polyurethane spheres, slightly oversized relative to pipe ID) are used for batch separation (displacing one product from another in multiproduct lines, or separating crude batches in trunk lines) and for removing liquid from gas pipelines. Brush and wire-cup pigs carry steel wire brushes or polyurethane cups that mechanically scrape wax, scale, and rust from the pipe wall — essential in crude oil lines where paraffin wax accumulation at temperatures below the wax appearance temperature can restrict or block flow. Multi-cup mandrel pigs have a steel body with multiple polyurethane drive cups that seal against the pipe wall and generate the differential pressure force that drives the pig.

Intelligent pigs (in-line inspection tools, ILI) carry sensors that map pipe wall integrity. Magnetic flux leakage (MFL) tools magnetise the pipe wall and detect anomalies in the magnetic field pattern caused by metal loss (corrosion pits, erosion, mechanical damage) — the most widely used ILI technology for onshore transmission pipelines. Ultrasonic inspection (UT) pigs use arrays of transducers to measure wall thickness by time-of-flight of ultrasonic pulses — provide direct wall thickness measurement (vs MFL which detects anomalies) but require a liquid coupling medium (oil or water) and cannot be used in dry gas pipelines without a liquid slug ahead. Caliper pigs measure pipe internal geometry (ovality, dents, wrinkle bends) using mechanical arms or electromagnetic sensors — critical for detecting structural deformation from soil movement, seismic events, or third-party damage.

Fast Facts: Pigging
  • Utility pigs: foam, sphere, brush, multi-cup mandrel — cleaning, batching, liquid displacement
  • Intelligent pigs: MFL, ultrasonic UT, caliper — pipeline wall inspection and integrity mapping
  • Launcher/receiver: trap fabrications (enlarged sections of pipe with valves) required at each end of the pig run
  • Typical pigging frequency: crude oil lines 1–6 times/month; gas lines 1–4 times/year; subsea flowlines 1–4 times/month (wax dependent)
  • Wax management: cleaning pigs prevent wax plug formation; thermal and chemical inhibition used between runs
  • ILI operators: Baker Hughes TDW, ROSEN, Eddyfi (formerly GE PII), Intero (formerly Tuboscope), Applus+
  • Regulatory requirement: PHMSA 49 CFR Part 195 (US liquid pipelines), CER OPR (Canada) require ILI surveys typically every 7–10 years
  • Non-piggable remediation: chemical cleaning, robotic inspection tools, bypass pigging configurations
Pipeline Operations Tip:

Design for piggability from day one on any new pipeline — retrofitting pig launcher/receiver traps, removing non-piggable valves, and installing diameter-consistent pipe are major cost items on existing lines and sometimes cannot be done without taking the line out of service. The key piggability requirements are: minimum pipe diameter ≥ 4 inches (smaller bore pigs exist but are less reliable); no diameter reductions greater than 2% along the run; no full-bore isolation valves that close to less than 95% of nominal ID; bends with radius ≥ 3× pipe diameter (5D preferred for intelligent pigs); and consistent ID tolerances within ±1.5% along the run. Intelligent pigs — especially long-bodied ultrasonic tools — have particularly tight bend-radius requirements. If a subsea flowline is designed for subsea isolation valves with reduced bore, confirm with the intelligent pig vendor whether their tool will pass before construction — the savings from cheaper reduced-bore valves are lost many times over if a required ILI survey cannot be run because the pig cannot traverse the valve geometry.

Pigging is also referred to as:

  • In-line inspection (ILI) — specifically refers to pigging with an intelligent pig for pipeline integrity data collection; the preferred regulatory and industry term for inspection pigging
  • Smart pigging — colloquial term for ILI using intelligent pigs with sensing technology
  • Pipeline scraping — older term for mechanical cleaning pigs, emphasising the mechanical removal of deposits from the pipe wall
  • Batch pigging — the use of spherical or foam pigs to separate product batches in multiproduct pipelines, or to displace accumulated liquids in gas lines

Related terms: Pipeline, Flow Assurance, Wax, Pipeline Integrity

Frequently Asked Questions About Pigging

What happens if a pig gets stuck in a pipeline?

A stuck pig is one of the most disruptive pipeline events — it can halt production, require pressure testing of the stuck section to locate the pig, and in severe cases necessitate excavation and a physical cut-in to retrieve the pig. Pigs get stuck due to several causes: wax accumulation too heavy for the pig to push (if cleaning pigs were not run frequently enough, a single pig run into a fully waxed pipe can pack the wax ahead of it into an impenetrable plug); debris or scale buildup at a restriction (a corrosion pit, poorly aligned flanges, or valve with a small ledge can stop a pig); pig deterioration mid-run (foam pigs can disintegrate, leaving fragments that jam valves or create secondary restrictions); or geometry anomalies (a dented section, ovality, or weld internal projection that stops mechanical pig cups from passing). Recovery options include increasing differential pressure gradually (up to safe operating pressure); injecting chemical wax solvents or hot oil ahead of the pig; rigging a reverse-flow to back the pig out; or, as a last resort, pipeline excavation at the stuck point. Prevention is far cheaper: run foam or low-aggressiveness pigs first to gauge wax thickness before escalating to aggressive cleaning pigs in heavily waxed lines.

How are intelligent pig results used to maintain pipeline integrity?

Intelligent pig (ILI) data is processed to produce a pipe-by-pipe wall condition map showing the location, depth, and extent of any anomalies detected — corrosion pits, laminations, mechanical dents, and crack-like features. Anomalies are characterised by their estimated depth as a percentage of wall thickness and their length — the most severe (deepest and longest) are prioritised for immediate investigation. Pipeline integrity engineers apply assessment codes (ASME B31G, Modified B31G, DNV-RP-F101) to determine whether each anomaly can safely remain in service at operating pressure or requires immediate remediation (pressure reduction, direct assessment, or repair). Dig investigations verify the ILI characterisation by excavating the pipe at the reported anomaly location, physically measuring the defect with NDE tools, and recoating and reburying if acceptable, or performing a sleeve repair or pipe replacement if the defect exceeds fitness-for-service criteria. The cycle of ILI survey → anomaly classification → risk ranking → dig investigation → repair → re-survey is the operational backbone of pipeline integrity management programmes mandated by PHMSA (US), CER (Canada), and equivalent regulators in all major oil and gas producing nations.

How does pigging manage wax in crude oil pipelines?

Paraffin wax accumulates on crude oil pipeline walls when the oil temperature falls below the wax appearance temperature (WAT) or pour point — the waxy components of crude oil crystallise and adhere to the cool pipe wall, progressively thickening and reducing the effective bore. Pigging manages this by physically scraping accumulated wax off the pipe wall before it builds to flow-restricting thickness. The pigging frequency must be matched to the wax deposition rate — wax deposition rates range from <1 mm/month in light, waxy crudes at warm temperatures to >5 mm/month in heavy waxy crudes operating near or below WAT. If pigging frequency is too low, wax accumulates beyond the pig's ability to push it, risking a stuck pig or a severe slug of wax arriving at the receiving facility. Chemical inhibitors (wax inhibitors, pour point depressants) can reduce deposition rates between pig runs — they do not eliminate wax but slow its growth, extending the safe pigging interval. Thermal insulation (pipe-in-pipe, electrical heat tracing, or burial at sufficient depth for geothermal warmth) maintains pipe temperature above WAT and can reduce or eliminate wax deposition, removing the need for frequent mechanical pigging — critical in deepwater tiebacks where intervention pigging is logistically complex and expensive.

Why Pigging Matters in Oil and Gas

Pigging is a core operational necessity for every pipeline system that carries hydrocarbons over significant distances — without regular cleaning pig runs, wax, scale, and debris accumulate until flow is restricted or the pipe is blocked. Pipeline integrity pigging (ILI) is a regulatory requirement in most jurisdictions and the primary method for detecting internal corrosion, mechanical damage, and wall thinning before these defects cause a failure. A pipeline failure that could have been detected and repaired from ILI data can result in product spill, fire, environmental contamination, regulatory fines, and loss of operating licence — costs that dwarf the cost of a routine ILI survey. The global pipeline ILI market reflects this imperative: operators of the world's 3.5 million kilometres of oil and gas pipelines spend approximately $2–3 billion annually on inspection pigging services, making it one of the most routine and economically significant integrity management activities in the hydrocarbon transportation industry.