Pipeline Volume Calculator
Long lines need the same formula but a bigger canvas. This pipeline volume calculator turns a bore and a run length into line fill in barrels, cubic metres and gallons — the numbers behind batching, hydrotest fill, pigging and section isolation.
Same volume in every unit
Fluid weight
Estimated fill / drain time
Your recent calculations (saved on this device)
| When | ID | Length | Result |
|---|
For long lines, enter the length in feet or metres. Result defaults to barrels; switch as needed.
Line fill is capacity times length
A pipeline's line fill — the volume it holds when full — is the per-length capacity multiplied by the run length. Nothing about the formula changes with scale; only the length does. Because gathering and transmission lines run for thousands of feet or many miles, the per-foot capacity is the workhorse figure, and the calculator reports it alongside the total so you can sanity-check a long run.
A transmission-scale example
Consider 5 miles (26,400 ft) of 12-inch line with an 11.938 in bore. Capacity is about 5.815 US gallons per foot, so the line fill is roughly 153,500 US gallons — close to 3,655 barrels or 581 m³. That single figure feeds hydrotest water volume, batch interface tracking and the product lost or recovered when a section is opened.
What pipeline volume drives
- Hydrotest fill — water needed to charge a section for pressure testing.
- Batching and interfaces — line fill sets the timing of product changes.
- Pigging and flushing — sweep and flush volumes.
- Isolation and blowdown — inventory in an isolated section.
Adding up sections
Real pipelines change diameter along their length. Calculate each constant-diameter section separately and add the results — the device keeps your recent calculations so you can tally sections without losing track. Where a line runs part full or is being packed, the fill-level and pressure context change what "volume" means, so use the geometric figure as the reference capacity and adjust for operating conditions.
Accuracy at scale
Small bore errors are magnified over long runs, so use the true internal diameter for the exact grade, wall and any liner. Scale, wax or deposits reduce effective bore over a line's life. For gas pipelines, remember the geometric volume is the physical space; the standard-condition gas quantity also depends on pressure and temperature.
Reading and trusting your result
Before you act on the output, it helps to know exactly what this pipeline volume calculator is and isn't measuring.
Reading the output correctly
The headline value is the internal capacity of a round, uniform pipe running full — the fluid the bore can hold along the length you entered. Every other unit on the panel is the same physical quantity re-expressed, so you can quote whichever your paperwork needs without recalculating.
The full-pipe assumption
By default the figure assumes the pipe is completely full and perfectly cylindrical. For gravity drains and vented lines that run part full, set a fill level below 100% and the result scales with it. Bends, valves and fittings add a little capacity the straight-length model does not see — use the fittings allowance to approximate them.
Capacity reference tables & a worked example
Concrete numbers for this page, calculated the same way the tool above does — use them as a quick check or a lookup.
Schedule 40 2" pipe: volume by run length
How much a 2" Schedule 40 bore holds as the run gets longer, in barrels. The per-foot figure is constant, so any length is one multiplication away.
| Length (ft) | Volume (barrels) | Per foot |
|---|---|---|
| 10 ft | 0.0415 | 0.0042 |
| 25 ft | 0.1038 | 0.0042 |
| 50 ft | 0.2075 | 0.0042 |
| 100 ft | 0.4150 | 0.0042 |
| 250 ft | 1.04 | 0.0042 |
| 500 ft | 2.08 | 0.0042 |
Schedule 40 pipe: volume across sizes
Volume held by a fixed 100 ft run across common Schedule 40 sizes, in barrels. Doubling the diameter roughly quadruples the capacity.
| Nominal size | Bore (in) | Volume in 100 ft (barrels) |
|---|---|---|
| 1/2" | 0.622 | 0.0376 |
| 3/4" | 0.824 | 0.0660 |
| 1" | 1.049 | 0.1069 |
| 1-1/2" | 1.610 | 0.2518 |
| 2" | 2.067 | 0.4150 |
| 3" | 3.068 | 0.9144 |
| 4" | 4.026 | 1.57 |
| 6" | 6.065 | 3.57 |
Worked example, step by step
- Bore = 2.067 in, so radius = 1.0335 in.
- Area = π × radius² = 3.3556 in².
- Length = 75 ft = 900 in; volume = 3.3556 × 900 = 3,020.0 in³.
- Convert to the unit you need: 0.3113 barrels for a 75 ft run of Schedule 40 2" pipe.
Frequently asked questions
How do I calculate pipeline volume?
Multiply the per-foot (or per-metre) capacity by the run length. Enter the bore and length above and the tool gives line fill in barrels, m³ and gallons.
How do I handle a pipeline with different diameters?
Calculate each constant-diameter section separately and add them. The saved history helps you tally sections.
What is line fill?
Line fill is the volume a pipeline holds when full — its internal capacity. It sets hydrotest water, batch timing and isolated-section inventory.
Does this account for pressure in a gas line?
No — it gives the geometric internal volume. Gas quantity at standard conditions also depends on pressure and temperature and needs a separate correction.
Related pipe volume tools
What people say
Line-fill in barrels for a transfer main — matched our metered volume within a whisker.
Handles long runs and multiple segments cleanly. This is now my go-to for batch planning.
Solid for single-diameter lines; staged-diameter pipelines would be a great addition.