Pipeline Pigging and In-Line Inspection for Corrosion, Explained
Pipeline pigging explained: cleaning pigs vs inspection tools, how MFL and ultrasonic in-line inspection find corrosion, and what to do with the results.
By Siddique27 Nov 20269 min read

A buried pipeline can run for many kilometres with almost none of it visible. You cannot walk along it with a thickness gauge, and digging it up to look is slow and expensive. Yet the integrity team still has to answer the same question every inspector asks: where is the wall getting thinner, and how fast?
For most transmission lines the answer comes from pipeline pigging. This post explains what pigging is, the difference between the pigs that clean a line and the tools that inspect it, how magnetic flux leakage and ultrasonic in-line inspection tools find corrosion, and what happens to the results once the tool comes out. It is narrower than a full integrity programme: it is about the inspection run itself and how to read what it tells you.
What pipeline pigging means
A pig is any device pushed through a pipeline by the flow of the product. It goes in at a launcher, a short length of larger pipe with a door and valves that let the pig be loaded and then released into the line, and it comes out at a receiver at the far end. Between the two, the product's own pressure drives it along.
The word covers two very different jobs. Utility pigs do work on the line: they clean out wax, scale, water and debris, separate one product from another, or check that the bore is clear. Inspection tools, often called intelligent or smart pigs, carry sensors and record the condition of the pipe wall as they travel. Running an inspection tool is called in-line inspection, or ILI, and the practice is sometimes known as intelligent pigging.
Cleaning pigs and inspection tools compared
| Question | Utility (cleaning) pigs | In-line inspection tools |
|---|---|---|
| Main purpose | Clean the bore, remove liquids and solids, separate batches | Measure the wall and record features along the line |
| Typical build | Foam, cups, discs, brushes or scrapers | Sensor modules, odometer wheels, electronics and batteries |
| Output | What comes out at the receiver: debris, wax, water | A data set and, after analysis, a feature list |
| How often | Routinely, as part of operations | Periodically, as part of integrity assessment |
| Corrosion role | Removes the water and deposits that drive internal corrosion | Finds and sizes the metal loss already there |
The two depend on each other. Before any inspection pigging, pipeline operators normally clear the line, because debris left in it can damage an inspection tool or blind its sensors; cleaning runs continue until the line comes out acceptably clean. Many operators also send a gauging pig, a simple pig with a soft metal plate, to confirm there is no dent or restriction that would trap the expensive tool. And the debris that cleaning brings out is itself evidence: black sludge, iron sulphide or water at the receiver says something about what is happening inside.
How MFL tools find corrosion
A magnetic flux leakage tool carries strong magnets that magnetise the pipe wall as it passes. Where the wall is sound, the magnetic field stays inside the steel. Where metal has been lost, from the inside or the outside, there is less steel to carry the field, so some of it leaks out into the space next to the wall. Sensors ringed around the tool pick up that leakage and record it.
MFL pigging is the workhorse for corrosion on gas and liquid lines alike, because it does not need a liquid to couple the signal to the wall. Its weakness is that it measures the wall indirectly: the depth of a defect is inferred from the shape and strength of the leakage signal, so sizing depends on the vendor's analysis and on how the tool was calibrated. A conventional tool that magnetises along the pipe is also less sensitive to long, very narrow features lying along the axis, which is why tools that magnetise around the circumference exist for that kind of damage.
How ultrasonic tools find corrosion
An ultrasonic ILI tool works like a thickness gauge repeated thousands of times along the pipe. Transducers send sound pulses into the wall and time the echoes from the inner and outer surfaces, which gives a direct reading of remaining wall thickness and of the distance to the inner surface.
Because the reading is direct, ultrasonic tools are valued where accurate depth matters. The catch is that sound needs a liquid to travel between the transducer and the steel. They suit liquid lines well, and a gas line can only be inspected this way if the tool is run in a slug of liquid. Heavy deposits or a rough inner surface can also scatter the signal and leave gaps in the data.
| Point | MFL tool | Ultrasonic tool |
|---|---|---|
| How it measures | Magnetic field leaking at metal loss | Sound echoes from both wall surfaces |
| Wall reading | Inferred from the signal | Measured directly |
| Needs liquid in the line? | No | Yes |
| Typical fit | Gas and liquid lines | Liquid lines, or gas lines run in a liquid slug |
| Main limitation | Sizing depends on analysis and calibration | Coupling, deposits and surface roughness |
What the inspection report actually gives you
The raw data goes to analysts, and what comes back is a feature list: every anomaly the tool reported, with its distance along the line, its position around the circumference (given as a clock position), its length, width and estimated depth, and whether it appears to be internal or external. Welds, valves, bends and fittings are listed too, because they are the reference points used to find each anomaly in the ground.
Read the list with its uncertainty in mind. Every reported depth has a tolerance stated by the vendor, and a feature reported just below a limit may really be just above it. Check the internal or external call against what you know about the line: a cluster of internal metal loss at the bottom of the pipe in low spots points to water, while external loss under a coating defect points to the coating and cathodic protection. API 1163 covers how ILI systems are qualified and how their stated performance should be validated, which is the reason those tolerances can be trusted at all.
From anomaly list to dig-ups and decisions
The feature list is not an answer on its own. Each significant anomaly is assessed for whether the pipe can keep operating at its pressure with that defect in it. Assessment methods for corroded pipe, such as those in ASME B31G, use the defect's depth and length with the pipe's dimensions and material to estimate the remaining strength. The general approach to judging damaged equipment is covered in fitness-for-service assessment.
Anomalies that fail the assessment, or sit close to failing it, are scheduled for excavation. A dig is also how the tool's results are verified: the crew exposes the pipe, measures the defect by hand with ultrasonic or other methods, and compares the result with the reported size. If the hand measurements and the tool disagree systematically, every other feature on the list needs to be looked at again.
Repeat runs bring the most value. Comparing two runs on the same line shows which features are growing and how quickly, which feeds straight into a remaining life estimate. The arithmetic is the same as for any thickness trend and is set out in how to calculate corrosion rate and remaining life.
Where pipeline pigging sits in the bigger picture
In-line inspection is one of the recognised integrity assessment methods for pipelines. ASME B31.8S covers integrity management for gas pipelines and API 1160 covers hazardous liquid pipelines, and both treat ILI, pressure testing and direct assessment as alternatives chosen to suit the line and the threat. The wider management side of pipeline integrity (inspection, corrosion threats, data and programmes) is discussed in pipeline integrity management challenges and solutions.
What ILI does not do is stop corrosion. It tells you where the damage is. Preventing internal corrosion still comes down to water removal, regular cleaning pigging, inhibitors and monitoring, as described in the internal pipeline corrosion management guide. A line that is pigged for inspection but rarely cleaned will keep producing longer feature lists.
Frequently asked questions
What is the purpose of pipeline pigging?
It does two jobs. Utility pigs clean the line, removing wax, scale, water and debris, separate one product from another and check that the bore is clear. Inspection tools carry sensors and record the condition of the pipe wall, so the integrity team can see where metal is being lost and how fast.
What is the difference between a cleaning pig and a smart pig?
A cleaning pig is built from foam, cups, discs, brushes or scrapers and its output is whatever comes out at the receiver. A smart pig is an in-line inspection tool with sensor modules, odometer wheels and batteries, and its output is a data set that analysts turn into a feature list of anomalies.
Can ultrasonic pigs inspect gas pipelines?
Only with help. Sound needs a liquid to travel between the transducer and the steel, so an ultrasonic tool suits liquid lines and can only inspect a gas line if it is run in a slug of liquid. That is why magnetic flux leakage tools, which need no couplant, are the usual choice for gas.
Why are cleaning pigs run before an inspection run?
Debris left in the line can damage an inspection tool or blind its sensors, so the line is cleaned until it comes out acceptably clean. A gauging pig with a soft metal plate is often sent as well, to confirm there is no dent or restriction that would trap the expensive tool.
What to do next
If an ILI report lands on your desk, start with three checks: did the tool cover the whole line with good data, do the dig verifications agree with the reported sizes, and which features have grown since the last run. Those three answers tell you more than the headline anomaly count. To build these decisions into a full assessment cycle, the pipeline integrity management programme works through threat assessment, inspection methods and the actions that follow.
Exam preparation
Preparing for API 570?
Practise with exam-style questions, timed mocks and study notes. 1,841 questions in the bank.


