What Is Pigging in Oil and Gas and How Does It Work?

Pigging is the practice of pushing a specialized tool, called a “pig,” through a pipeline to clean it, inspect it, or separate different products flowing through the same line. The pig is inserted at one end and propelled by the pipeline’s own pressure or by compressed gas like nitrogen, traveling the full length of the pipe before being caught at the other end. It’s one of the most routine and essential maintenance operations in the oil and gas industry, performed on everything from short gathering lines to long-distance transmission pipelines.

How a Pig Moves Through a Pipeline

The basic mechanics are straightforward. A pig is loaded into a section of pipe called a launcher, which is connected to the main pipeline. Once the launcher is sealed and pressurized, the flow of oil or gas behind the pig pushes it forward. As it travels, the pig sweeps accumulated liquids, wax, scale, and debris ahead of it. At the far end, a receiver (sometimes called a catcher) captures the pig so it can be removed.

The pig fits snugly against the pipe walls, which is what allows the pressure behind it to keep it moving. That snug fit is also what makes it effective at scraping and sweeping. The distance a pig travels can range from a few miles on a gathering system to hundreds of miles on a major transmission line.

Types of Pigs and What They Do

Pigs fall into two broad categories: utility pigs that clean or separate products, and smart pigs that inspect the pipe itself.

Utility Pigs

Cleaning pigs remove solid deposits, semi-solid buildup, and loose debris from the pipe wall. They come in several designs:

  • Foam pigs are capsule-shaped tools made of polymer foam. They conform to the pipe’s interior and are often used to dewater pipelines or sweep out debris that a more aggressive pig left behind.
  • Mandrel pigs have a dumbbell shape with a central steel tube. Operators can attach different components to the mandrel, such as wire brushes for scrubbing or cups for sealing, making them highly customizable for different jobs.
  • Spherical pigs are either solid polyurethane foam balls or inflatable spheres filled with a glycol-water mix. They’re used for cleaning, dewatering, and even measuring whether a pipeline has gone out of round.

Separation pigs (also called batching pigs) serve a different purpose. When two different products are pumped through the same pipeline back to back, a separation pig sits between them to prevent mixing. These are typically made of harder material and create a tight seal between the two product batches.

Smart Pigs

Smart pigs, also called inline inspection (ILI) tools, carry sensors and electronics that map the condition of the pipe wall as they travel. They detect corrosion, cracks, dents, and other damage that could eventually cause a leak or failure. Two main technologies dominate.

Magnetic flux leakage (MFL) tools magnetize the pipe wall as they pass through. A healthy, uniform wall produces an even magnetic field, but where metal has been lost to corrosion or gouging, the magnetic field “leaks” outward. Onboard sensors measure those leaks and store the data for later analysis. A variation called transverse field inspection orients the magnetic field around the pipe’s circumference instead of along its length, which makes it better at finding cracks and defects that run lengthwise along the pipe, including problems in weld seams.

Ultrasonic tools take a different approach. They send sound pulses into the pipe wall and listen for the echoes bouncing back from the inner and outer surfaces. By timing those return signals, the tool calculates exact wall thickness at thousands of points along the pipeline. This is especially useful for tracking how fast corrosion is thinning the pipe over time.

The data from a single smart pig run can contain millions of measurements. Analysts review this data to identify areas that need repair or closer monitoring. The American Petroleum Institute’s Standard 1163 provides the framework for qualifying these inspection systems, covering everything from equipment and software to the procedures and personnel involved in running and interpreting ILI data.

Why Pigging Matters for Pipeline Performance

In crude oil pipelines, waxy deposits are a constant problem. Paraffin wax from the oil gradually coats the pipe’s interior, narrowing the effective diameter and slowing flow. In severe cases, buildup can reduce production to a trickle or stop it entirely. When wax adheres to the upper walls of the pipe, water collects in low spots beneath it, creating an environment where bacteria thrive and cause corrosion that can eat pinholes through the pipe wall.

Compressors and pumps also have to work harder to push product through a constricted line, which drives up operating costs. Regular pigging removes that buildup and restores full throughput. For most pipelines carrying waxy crude, weekly maintenance pigging is standard practice. Research on optimal pigging frequency has found that operators typically use a maximum wax thickness of 2 to 4 millimeters as the trigger point, with some pipelines requiring pigging every 10 to 15 days to stay within that threshold.

Beyond flow efficiency, keeping a pipeline clean is a prerequisite for successful smart pig inspections. A pipe clogged with wax or scale will interfere with the sensors on an ILI tool, producing unreliable data. A clean line on the first pass saves operators from having to re-run expensive inspection tools.

What Happens When a Pig Gets Stuck

A stuck pig is one of the more common and costly problems in pigging operations. Pigs can stall for several reasons: heavy buildup inside the pipe, unexpected obstructions, a reduction in pipe diameter the pig can’t squeeze through, or simply choosing the wrong pig for the conditions. Sometimes the issue is bypass, where product flows around the pig instead of pushing it, causing it to lose momentum and stop.

Operators have several ways to detect a stuck pig. Pig tracking systems using electromagnetic signals can pinpoint the tool’s last known location. Pressure gauges along the pipeline also give clues: a sharp pressure rise upstream of the pig or a drop downstream usually confirms where it’s lodged.

Getting it out depends on the situation. The first attempts are usually the least invasive: reversing the pipeline flow to push the pig backward, or carefully adjusting pressure to dislodge it. Operators may also send a smaller, more flexible pig behind the stuck one to push it forward. If none of that works, the affected section of pipeline has to be isolated and physically opened at a nearby access point so the pig can be pulled out with specialized retrieval tools. After any stuck pig incident, operators review what went wrong, whether it was pipeline design, product buildup, or pig selection, and adjust their approach to prevent it from happening again.

The Launcher and Receiver Setup

Every piggable pipeline needs permanent hardware at both ends. The launcher is an oversized barrel connected to the pipeline through a reducer that tapers down to the pipeline’s diameter. It’s designed to hold multiple pigs at once, typically up to three, so operators can launch them in sequence without reloading. The receiver at the far end has a similar barrel where pigs collect after their run.

Both launchers and receivers include isolation valves that let operators safely pressurize and depressurize the barrel without shutting down the entire pipeline. Pig passage detectors, sometimes called signalers, are installed at key points along the route to confirm the pig is moving and track its progress. On pipelines that can’t be depressurized for maintenance, these signalers are equipped with isolation valves of their own so they can be serviced while the line stays in operation.