All tools › Engineering Calculators › Mechanical
Find the volume inside a pipe and the weight of the liquid it holds from the inner diameter and length.
What the pipe volume calculator does
This pipe volume calculator tells you how much liquid a length of pipe, tube or hose holds. Type the inner diameter and the length, and it gives the volume in US gallons, liters, cubic feet, cubic inches and cubic meters, plus the weight of the liquid when the pipe is full.
It is useful when you need to know how much water a line will drain, how much antifreeze or glycol a loop takes, how much weight a filled pipe run adds to its supports. Add the outer diameter and it also works out the volume of the pipe wall itself.
Note: This calculator is a learning and planning aid. Real designs need the manufacturer’s data, the building codes that apply and a qualified engineer.
How to use the calculator
- Pick US or metric units at the top. US uses inches, feet and pounds per cubic foot; metric uses millimeters, meters and kilograms per cubic meter.
- Inner diameter of the pipe: the real inside measurement, not the nominal size printed on the pipe.
- Pipe length: the total run. Add the lengths of several pieces of the same size together.
- Outer diameter (optional, for the pipe wall material): leave it empty to skip the wall rows.
- Liquid density (the default is a nominal figure for fresh water): keep 62.4 lb/ft³ (1000 kg/m³ in metric) for water, or type the density of your liquid.
The formula
A full pipe is a cylinder of liquid, so the volume is the area of the inside circle times the length.
volume = pi x (inner diameter / 2)^2 x length
weight of the liquid = volume x density
wall material volume = pi x (outer diameter^2 – inner diameter^2) / 4 x length
The sums are done in cubic meters and converted with fixed definitions: one inch is exactly 25.4 mm, one foot is 0.3048 m and one US gallon is exactly 231 cubic inches (3.785411784 liters). The water density of 62.4 lb/ft³ or 1000 kg/m³ is a nominal, rounded figure. The true density of water changes a little with temperature.
Worked example
In US units, type an inner diameter of 0.75 in, a pipe length of 50 ft and an outer diameter of 0.875 in, and leave the density at 62.4.
| Result row | Value |
|---|---|
| Volume in US gallons | 1.1475 gal |
| Volume in liters | 4.34375 L |
| Volume in cubic inches | 265.072 in³ |
| Volume per unit of length | 0.0229499 gal per foot (0.285023 L per meter) |
| Weight of the liquid when the pipe is full | 9.57204 lb (4.3418 kg) |
| Wall thickness | 0.0625 in (1.5875 mm) |
| Volume of the pipe wall material | 95.7204 in³ (1,568.58 cm³) |
A bigger pipe: 20 ft of pipe with a 4 in inner diameter holds 13.056 gal (49.4222 L), and that water weighs 108.909 lb.
In metric units, 15 m of tube with a 20 mm inner diameter holds 4.71239 L, which is 0.314159 L per meter.
How to read the results
Volume grows with the square of the diameter. Doubling the inner diameter gives four times the volume for the same length, which is why the 4 in pipe above holds far more than the 0.75 in pipe even though it is shorter.
The Volume per unit of length row is the handy one for estimating on site: multiply it by any length of the same pipe. The weight row covers the liquid only. To get the weight of the pipe itself, multiply the wall material volume by the density of the pipe material from its maker’s data.
What it does not cover
- Nominal sizes. The page does not look up the inside diameter for a nominal pipe size or schedule. Measure it or read it from the pipe maker’s table.
- Fittings, valves and tanks. Elbows, tees, heaters and vessels hold liquid too and are not included.
- Partly full pipes. The pipe is assumed to be completely full, as a pressurized line is. A sloped drain that runs partly full holds less.
- Flow. This is a volume at rest. It says nothing about how fast liquid moves or how much pressure is lost.
Frequently asked questions
How many gallons are in one foot of pipe?
Square the inner diameter in inches and multiply by 0.0408. A pipe with a 2 in inner diameter holds about 0.163 gallons per foot. The page shows this figure for any size.
Why does the calculator ask for the inner diameter?
Only the inside of the pipe holds liquid. Using the outer diameter or the nominal size counts the wall as liquid and gives a volume that is too large.
How do I find the volume of several pipes of different sizes?
Run the calculator once for each size with its own total length, then add the volumes together.
Can I use it for a hose or a round duct?
Yes. Any round tube of constant inside diameter works, including hoses, tubing and round ducts. For a duct, ignore the weight row.
Related calculators
- Flow Rate Calculator – flow from pipe size and velocity, and the time to fill a volume.
- Pressure Calculator – pressure units and the pressure under a column of liquid.
- Volume Calculator – volumes of tanks, boxes, cones and other shapes.
- Unit Converter – change lengths, volumes and weights between units.
