Pipeline pigging is the practice of sending a device called a “pig” through the inside of a pipeline to clean it, inspect it, or maintain its flow. The pig fits snugly inside the pipe and is pushed along by the product flowing through it, whether that’s natural gas, crude oil, or another fluid. It’s one of the most important maintenance methods in the pipeline industry, used to remove buildup, detect corrosion, and keep pipelines operating safely without shutting them down.
How a Pig Moves Through a Pipeline
Every pigging operation follows the same basic sequence: launch, travel, and receive. The pig is loaded into a section of pipe called a launcher, which sits upstream of the segment that needs cleaning or inspection. Once the launcher is sealed, valves are opened to direct the normal flow of gas or liquid behind the pig. That pressure pushes the pig forward through the pipeline at roughly the same speed as the product flowing through it.
At the other end of the pipeline segment sits a receiver, a similar piece of equipment designed to catch the pig when it arrives. Bypass valves on the receiver reroute the flow so the pig slides into the receiver barrel instead of continuing downstream. Operators then close the valves, depressurize the barrel, and remove the pig along with whatever debris or data it collected along the way.
A small line called a “kicker line” on the launcher directs gas flow into the barrel to get the pig moving. The receiver has its own “bypass line” that performs the opposite job, guiding product around the barrel once the pig is safely caught. The entire process can happen while the pipeline stays in service, which is a major reason pigging is so widely used.
Utility Pigs vs. Smart Pigs
Pigs fall into two broad categories based on what they’re designed to do.
Utility pigs (sometimes called “dumb pigs”) are cleaning and maintenance tools. They scrape wax, scale, rust, and other deposits off the inside wall of the pipe. Some use wire brushes, others use polyurethane cups or discs that seal against the pipe wall to push liquids and debris ahead of them. Utility pigs are typically run first to clear the line so that more sensitive inspection tools can get accurate readings from clean steel.
Smart pigs (also called intelligent or inline inspection pigs) are data-gathering instruments packed with sensors. They record detailed information about the condition of the pipe wall as they travel through it. Smart pigs can detect metal loss from corrosion, coating that has separated from the steel, small cracks, and dents. The two most common sensing methods are magnetic flux leakage, which magnetizes the pipe wall and measures disruptions in the magnetic field, and ultrasonic testing, which bounces sound waves off the steel and listens for changes in the reflections using electromagnetic acoustic transducers.
High-definition versions of these tools can identify pinhole-sized corrosion and inspect the long seam welds where sheets of steel were joined during manufacturing. After a smart pig run, engineers analyze the data to prioritize repairs, sometimes identifying problems years before they would cause a leak.
Why Pipelines Need Pigging
Over time, pipelines accumulate material on their interior walls. In natural gas lines, water and hydrocarbon liquids condense and pool in low spots. In crude oil lines, wax and paraffin solidify as temperatures drop. These deposits reduce the effective diameter of the pipe, increase the energy needed to push product through, and create conditions where corrosion can take hold underneath the buildup.
Regular cleaning runs remove that material and restore flow efficiency. Inspection runs catch wall thinning and defects before they become safety hazards. In many countries, pipeline operators are required by regulation to run inline inspections on set schedules. Pigging lets them meet those requirements without taking the pipeline out of service for extended periods.
What Can Go Wrong
The most common operational problem is a stuck pig. This can happen for several reasons: the pig encounters a mechanical obstacle like a partially closed valve or a collapsed section, a large volume of debris builds up in front of the pig and creates too much resistance, the pig’s sealing discs wear down so product flows past instead of pushing it, or the pig loses its seal and stalls while pressure bypasses it entirely. A stuck pig can block the line completely and force a production shutdown.
Recovering a stuck pig is a multi-step process. Operators first evaluate their options, which may include sending a second pig to push the stalled one or pulling it back toward the launcher. If pulling is the chosen approach, crews shut down production briefly, purge hydrocarbons from the accessible portion of the pipeline, then insert a lance with a gripping tool through the launcher opening. The gripping tool locks into bypass holes on the pig, a pulling wire is connected, and a hydraulic cylinder provides the force to drag the pig back to where it can be removed.
Safety is a significant concern during any stuck pig recovery. Isolation valves downstream may be leaking internally, which can expose work crews to high-pressure gas. Pipelines may also contain toxic contaminants like mercury, hydrogen sulfide, or benzene that make access dangerous without extensive precautions.
Newer Pigging Technology
Modern pigs have moved well beyond simple rubber cups on a steel body. Today’s cleaning and inspection pigs can regulate their own travel speed, which improves the quality of sensor data and reduces pressure surges that could disrupt service to customers downstream.
For pipelines with tight bends or tee junctions that a standard pig cannot navigate, some operators use robotic inspection crawlers. These self-propelled devices enter from one end of a pipeline segment and travel back out the same way, guided by an operator outside the line. Because they’re articulated, they can pass through small-radius turns that would jam a conventional pig. They also send live video back to the operator in real time, giving an immediate visual picture of interior conditions rather than requiring post-run data processing.
The combination of speed-controlled pigs, high-definition sensors, and robotic crawlers means operators can now inspect a wider range of pipeline configurations with greater accuracy than even a decade ago.
Where the Name Comes From
The most widely repeated explanation is that early pipeline cleaning devices, essentially leather-wrapped bundles pushed through the pipe, made a squealing sound against the steel walls that reminded workers of a pig. The name stuck, and today every tool designed to travel inside a pipeline under flow pressure is called a pig regardless of its shape, material, or purpose. The entire practice is called “pigging,” and the launcher and receiver together are often referred to as “pig traps.”

