Pipe Volume Calculator
Find how much liquid a pipe holds from its inner diameter and length.
Twelve volume units, twelve density units and six mass units, metric and imperial.
Updated November 15, 2026
What this calculator answers
A pipe is bought by its size and filled by its volume. This calculator turns the two measurements you can take on a pipe — the inner diameter and the length of the run — into the amount of liquid it holds, and then into what that liquid weighs at the density you give it.
It is the question behind a surprising number of jobs: how much antifreeze a heating loop needs before it is full, how much water sits in a 100 m irrigation line, how many litres of flush a new service line takes, or whether a drum of liquid will fit in the pipe you have already installed. Enter centimetres, millimetres, inches or feet and inches, and read the answer in litres, gallons or any other volume unit on the result. When the capacity is the number you already know, type it into the volume box instead: with the bore or the length present, the calculator solves back for the dimension you are missing.
The liquid menu starts at water, 997 kg/m³, because that is the most common fill. Replace it with the density of whatever actually goes into the pipe and the mass box follows. The mass box itself also works in reverse: type the weight of liquid you have, and the calculator works out the average density of a liquid that would fill this pipe to that weight.
- Capacity: how much the pipe holds when it is completely full, in twelve volume units — and the starting point when a volume you need has to be turned into a diameter or a length.
- Liquid mass: the weight of that fill at your density, or the density your fill implies.
- Lengths in feet and inches: the mixed feet-and-inches entry keeps measurements the way a tape reads them.
This is the space inside the pipe, not the pipe itself
The volume and the mass describe the liquid the bore can hold. The metal, plastic or concrete that forms the wall is a separate question, and so are the fittings, valves and any air trapped at a high point. When you need the weight of the pipe material rather than its contents, the pipe weight calculator takes the outside diameter and the wall thickness instead.
How to get a pipe capacity
Enter the inner diameter, not the trade size
Enter the length of the run you are filling
Check the liquid density
Read the volume and the mass
Or start from the capacity you need
Optionally start from a mass you already have
A worked example: a 15 cm bore over 6 m
Set both dimensions to centimetres and enter an inner diameter of 15 cm and a length of 6 m, which is 600 cm. The bore area times the length gives the capacity:
At the water default of 997 kg/m³ the liquid in that run weighs:
If the run carried a 1,050 kg/m³ glycol mix instead, the capacity would stay at 106.029 L and the mass would rise to 111.33 kg. Only the density changes; the pipe decides the volume.
The bore area behind the volume
The calculation is a cylinder read from the inside. The cross-section of the bore is a circle, and the volume is that circle swept along the length of the run.
The mass of the liquid is the volume multiplied by its density, and the same statement rearranged gives the density back:
Here is the inner diameter, the length of the run, the inner volume, the liquid density and the mass of the liquid. Every measurement is converted to metres (and the density to kilograms per cubic metre) before the formula runs, then the answer is converted back to the unit you chose for the result.
One equation, three directions
The same cylinder formula gives any of the three numbers from the other two. Enter the bore and the length and the volume follows; enter the capacity you need with one dimension and the other dimension follows. The two rearrangements are the same formula with the terms moved around:
Twenty litres in a 22 mm bore, for example, needs:
Enter 20 L first and then 22 mm, and the length box fills in by itself. If all three boxes are already filled in, the calculator keeps the two numbers you entered most recently and re-solves the earlier one; that box turns blue, so you can always see which number moved.
A density that looks impossible is a size warning
Because the mass box solves the density while the pipe stays fixed, a mass that cannot fit produces an absurd density instead of a quietly wrong volume. A 100 kg drum pushed through a 6 m run of 50 mm pipe returns about 8,488 kg/m³ — heavier than any liquid you would handle, which is the calculator saying the run is far too small. The figure stays on screen rather than being hidden, and a density beyond the range any fluid reaches is flagged in red as a likely unit slip.
Feet and inches stay one measurement
The feet-and-inches entry folds both parts into metres before the formula sees them, so 5 ft 10 in is 1.778 m and works exactly like any other diameter or length:
Each box carries its own unit, so a bore in inches and a run in metres is fine — they are normalised separately and the result is converted back to whichever volume unit you pick.
Capacity and weight, and what changes them
Two numbers come out. One says how much room the pipe has; the other says what the liquid in it weighs. They move for different reasons, which is why it is worth knowing which one your job needs.
Capacity belongs to the pipe
Whether the volume is the answer or the starting point, it is decided by the bore and the length. Doubling the length doubles the volume; doubling the bore quadruples it, because the area grows with the square of the diameter. A 22 mm bore holds 4.84 times what a 10 mm bore holds over the same run:
That is why a small increase in pipe size changes a system so much more than an extra metre of length does. The table below gives the capacity of clean pipe per metre for the bores that come up most often in domestic and small commercial work, with the mass of water at 997 kg/m³ beside it:
| Bore (mm) | Litres per metre | Water, kg per metre |
|---|---|---|
| 10 | 0.0785 | 0.0783 |
| 15 | 0.1767 | 0.1762 |
| 22 | 0.3801 | 0.3790 |
| 28 | 0.6158 | 0.6139 |
| 35 | 0.9621 | 0.9592 |
| 54 | 2.2902 | 2.2834 |
Values are rounded to four decimals; the calculator itself shows more digits for the run you enter.
Mass belongs to the liquid
The mass box answers a different question: how heavy the fill is. For water that is close to one kilogram per litre, which is why the two numbers in the table sit so near each other. A denser fill — a brine, a caustic solution or a glycol mix — changes the mass without touching the capacity.
Water at room temperature is close to the 997 kg/m³ the box starts with, but the figure shifts with temperature. When the weight matters — a load on a support, a delivery, a mixing ratio — use the density from the supplier’s data sheet or a handbook rather than leaving the default in place.
Capacity is not flow
A full pipe holds a fixed volume, but how fast that volume moves is a different question. If you need to know how long a line takes to fill or empty, measure the volume the pipe holds here and take it to the gallons per minute calculator with the time it took.
Three jobs with real pipe
Filling a closed heating loop
A small heating loop uses 45 m of 22 mm bore tube and is to be filled with a 1,050 kg/m³ glycol mix. How much liquid does the loop take, and what does it weigh?
Enter 22 mm and 45 m, then set the density to 1,050 kg/m³. The capacity is:
And the mass of that fill:
About 17 L is a useful number before you open a container: it tells you whether a 20 L pail is enough, and it gives you a starting point for the mixing ratio on the glycol label.
Checking whether a drum fits in the line
You have 100 kg of a 1,100 kg/m³ liquid to move through a 6 m run of 50 mm pipe, and you want to know whether the run can hold it.
Enter 50 mm and 6 m and leave the density at water. The capacity is 11.781 L, so the full run holds about 11.7 kg of water. Type 100 kg into the mass box and the calculator answers with the density that would make the run hold that much, about 8,488 kg/m³. That is not a liquid you would pour, so the run is far too short for the job.
Now turn the question around. The liquid needs a volume of its own:
Clear the 6 m length, keep the 50 mm bore and type 90.909 L into Volume. The length solves by itself:
About 46 m of 50 mm pipe, not 6 m. Type the 100 kg into the mass box and the density comes back at about 1,100 kg/m³ — the liquid in the drum, which confirms the length. The reverse solve is a quick sanity check on a layout before any of it is installed.
Sizing the water held in an irrigation line
A 100 m drip line with a 16 mm bore is drained for winter. How much water has to come out, and how long will that take at the tap’s flow rate?
Enter 16 mm and 100 m. The line holds:
At the water default that weighs 20.0459 kg. Twenty litres is the amount that has to drain or be blown out. Divide it by the flow the line actually delivers to estimate how long the drain takes.
Measurements that change the answer
Almost every wrong pipe volume traces back to the bore or the run length, not to the formula. These are the checks worth making before you rely on the number.
Use the bore, not the nominal pipe size
The trade size printed on a pipe is a label, not a measurement. A 2-inch nominal steel pipe is wider than 2 inches across the outside, and its bore is smaller again once the wall is taken off. Measure the inside, or subtract twice the wall thickness from the outside diameter; typing the nominal figure as the inner diameter overstates the capacity.
Allow for what the bore has lost
Scale, corrosion, mineral deposits and a swollen liner all reduce the usable bore. On an old or neglected line, the calculated capacity is an upper bound. Measure a representative section, or clean it first, when the volume has to be accurate.
Fittings add volume too
The calculation covers the straight pipe. Elbows, tees, short spools, valves and the water inside a pump or a filter hold liquid as well. On a short, fitting-heavy assembly that can be a noticeable fraction of the total; on a long run it is a small addition. Add a margin if you are buying liquid for a closed system.
Measure the length that actually fills
A loop is filled in both directions, and risers hold liquid just as horizontal runs do. Count the whole path the liquid takes, not just the visible horizontal length. Conversely, a line that slopes and drains under gravity is not full in the first place — this calculator assumes a completely full pipe.
Use the real density, not the default
Water is the default because it is the most common fill, not because it is a safe assumption. A glycol mix, brine, oil, milk or chemical solution can differ by a fraction of a per cent to several tens of per cent. The mass is only as good as the density you give it.
Convert fractions before typing
A number box wants a decimal, or use the feet-and-inches entry for a mixed measurement. One eighth of an inch is 0.125 in, three sixteenths is 0.1875 in and eleven sixteenths is 0.6875 in. A quick bookmark of those three covers most tape readings.
Questions people ask
Does the volume include the pipe wall?
No. The volume is the space inside the bore, which is exactly the liquid a full pipe holds. The material of the wall is a separate calculation that needs the outside diameter, the wall thickness and the density of the pipe material.
Why did the density change when I typed a mass?
Because the pipe stays in charge of the geometry. The volume is fixed by the bore and the length, so the only quantity left to solve is the density: . Leave the mass box empty if you only want the weight of the fill at the density you chose.
If you clear a mass that had overridden a density you typed, that density does not come back — the box is left empty and you type the figure again. If the density was still the water default, 997 returns when the mass is cleared.
Can I enter a volume and get the diameter or the length?
Yes. Type the capacity first, then the one dimension you know, and the other dimension is solved from it:
Two hundred litres through a 50 mm bore needs about 101.9 m of pipe; the same 200 L over 10 m needs a bore of about 159.6 mm. If all three boxes are already filled in, the two numbers entered most recently are kept and the earlier one is re-solved, which is the box that turns blue.
Which length should I enter for a loop or a two-pipe system?
The total length of pipe that holds liquid, end to end: both legs of the loop, the vertical drops and any spool pieces. If the job is quoted as metres of tube and you know both directions, add them before entering the length, or enter one leg at a time and add the volumes.
Where the number stops
- This is a planning estimate of the space in a straight, completely full pipe. It is not a measurement of your installation, and it does not replace a flow test or a commissioned volume.
- Partly filled pipes are not modelled. A drain running under gravity, a sloping line with air above the liquid or an open channel holds less than the full-circle capacity shown here.
- Fittings, valves, pumps, filters, expansion vessels and trapped air are not included. Add their volumes, or a margin, when the total volume of a closed system matters.
- The calculation assumes a circular bore of constant diameter. Ovality, scale, corrosion, a collapsed liner and manufacturing tolerance all change the real capacity.
- The mass is only as good as the density you enter. Use the value for the liquid at the temperature it will actually be at, not the density of water.
- Thermal expansion is not included. A sealed system that heats up holds a little more liquid than the cold volume calculated here, and that extra volume is what an expansion vessel is for.
- Do not use this page for chemical dosing, disinfection strength or any mixing ratio. Those come from the product label and its safety data sheet; this calculator only tells you how much liquid the line contains.
- For buried services, pressure systems, fire mains or anything covered by local regulation, work to the drawings and the authority’s requirements rather than to an estimate from two dimensions.
Related Calculators
Board Foot Calculator
Calculate board feet from lumber dimensions. Convert timber volume measurements across different unit systems.
Bolt Circle Calculator
Lay out a circular bolt pattern: turn the hole count, radius, first-hole angle and centre offset into an x and y coordinate for every hole.
Bowl Segment Calculator
Turn a segmented bowl's segment count, outer radius, wall thickness and allowances into cut-ready segment lengths, blank thickness and cutting angle.
Material Removal Rate Calculator
Work out how much material a machining pass removes per minute for turning, milling, grooving, drilling or grinding. Enter the cut geometry and the cutting speed, read the removal rate in ten flow units, or leave one box empty to solve back for it.
Beam Deflection Calculator
Find how far a simply supported or cantilever beam bends under a point load, a uniform load, a linearly varying load, a triangular load or an end moment. Enter the span, the load and the flexural rigidity, or the modulus of elasticity and area moment of inertia separately, and read the maximum deflection and where it occurs.
Square Yards Calculator
Multiply a length and a width into square yards and price the material. Seven length units, nine area units from square centimeters to acres, and twenty currencies converted at live exchange rates.