Pipe Volume Calculator
Find how much water or other fluid a length of pipe holds, from its inside diameter and length: volume in liters, gallons, cubic feet and cubic meters, and the weight of the fluid.
How it works
A pipe is a cylinder, so its volume is the inside cross-section area times the length. Enter the inside diameter (not the nominal size) and the length to get the volume of fluid it holds, the fluid weight, and the volume per meter or per foot.
V = π d² L ÷ 4
per length: π d² ÷ 4
m = ρ V
| Symbol | Meaning | Unit |
|---|---|---|
| d | Inside diameter of the pipe | m |
| L | Length of pipe | m |
| V | Volume of fluid held | m³ |
| ρ | Fluid density (water 998 kg/m³) | kg/m³ |
For nominal pipe sizes the inside diameter depends on the schedule: NPS 2 Schedule 40 is 52.5 mm (2.067 in) inside, Schedule 80 is 49.3 mm. See the pipe schedule reference table. A handy figure: 1 meter of pipe with a 100 mm inside diameter holds 7.85 liters, and a 1 inch inside diameter pipe holds 0.0408 gallons per foot. Remember a pipe also holds water in its fittings, valves and equipment.
Related: Reference tables (pipe sizes), Tank Volume Calculator, Pipe Flow and Pressure Drop Calculator.
Worked example
100 m of NPS 2 Schedule 40 pipe (52.5 mm inside): the area is π × 0.0525² ÷ 4 = 21.65 cm², so each meter holds 2.165 liters and the whole run holds 216 liters (57 US gallons), which weighs 216 kg of water.
Check: a 100 mm inside-diameter pipe holds 7.854 liters per meter, and a 25 mm one holds 0.491 liters per meter (area scales with the square of the diameter).
Things to know
Use the inside diameter, which is smaller than the nominal size and varies with the wall thickness (schedule or pressure class).
The volume matters for filling, flushing and chemical dosing, for the thermal mass of a heating loop, and for the water hammer and thermal expansion volume.
For a pipe that is only partly full use the Tank Volume Calculator (horizontal cylinder with a fill depth).
Another worked example: waiting for hot water
A hot-water line runs 50 ft from the heater to a faucet in ¾ in Type L copper tube, which has an inside diameter of 0.785 in. The volume per foot is π ÷ 4 × 0.785² × 12 = 5.81 in³, and with 231 in³ per US gallon that is 0.0251 gal/ft. The run holds 50 × 0.0251 = 1.26 US gallons (4.8 liters).
At a faucet flow of 2 gallons per minute, the cold water standing in the pipe takes 1.26 ÷ 2 = 0.63 minutes, about 38 seconds, to clear before hot water arrives, and a little longer in practice because the pipe itself has to warm up. The same sum gives the flushing or residence time of any line: time = volume ÷ flow.
Volume held by Schedule 40 steel pipe
| Size | Inside diameter | Liters per meter | US gallons per foot |
|---|---|---|---|
| NPS ½ (DN 15) | 15.80 mm (0.622 in) | 0.196 L/m | 0.0158 gal/ft |
| NPS ¾ (DN 20) | 20.93 mm (0.824 in) | 0.344 L/m | 0.0277 gal/ft |
| NPS 1 (DN 25) | 26.64 mm (1.049 in) | 0.557 L/m | 0.0449 gal/ft |
| NPS 1½ (DN 40) | 40.89 mm (1.610 in) | 1.313 L/m | 0.1057 gal/ft |
| NPS 2 (DN 50) | 52.50 mm (2.067 in) | 2.165 L/m | 0.1743 gal/ft |
| NPS 3 (DN 80) | 77.93 mm (3.068 in) | 4.770 L/m | 0.3841 gal/ft |
| NPS 4 (DN 100) | 102.26 mm (4.026 in) | 8.213 L/m | 0.6613 gal/ft |
| NPS 6 (DN 150) | 154.05 mm (6.065 in) | 18.639 L/m | 1.5008 gal/ft |
Standard inside diameters from ASME B36.10. Schedule 80 pipe, copper tube and plastic pipe of the same nominal size have different bores, so look up the actual inside diameter.
Common mistakes
- Using the nominal size as the diameter. A “2 inch” Schedule 40 pipe is 2.067 in inside and 2.375 in outside. Neither is 2.000.
- Using the diameter where the radius belongs. V = π r² L, or π d² L ÷ 4. Mixing them gives four times too much.
- Mixing millimeters and meters. Convert the diameter to meters (or use the shortcut below) before multiplying by a length in meters.
- Confusing US and imperial gallons. A US gallon is 3.785 liters; an imperial gallon is 4.546 liters, 20 percent more.
Common questions
How do you calculate the volume of water in a pipe?
V = π d² L ÷ 4, with the inside diameter d and the length L in the same units. For d in inches and L in feet, gallons = 0.0408 × d² × L.
How many gallons per foot are in a pipe?
0.0408 × (inside diameter in inches)² gallons per foot; a 2 inch inside diameter pipe holds 0.163 gallons per foot.
How many liters per meter are in a pipe?
0.07854 × (inside diameter in cm)² liters per meter: a 100 mm (10 cm) pipe holds 7.85 liters per meter.
What is the inside diameter of a Schedule 40 pipe?
Look it up in the pipe schedule table: NPS 1 is 26.6 mm, NPS 2 is 52.5 mm, NPS 4 is 102.3 mm.
Is there a quick formula for gallons per foot?
Yes: US gallons per foot = d² × 0.0408, with the inside diameter d in inches. A 2 in bore holds 4 × 0.0408 = 0.163 gal/ft.
Is there a quick formula for liters per meter?
Yes: liters per meter = d² ÷ 1 273, with the inside diameter d in millimeters. A 50 mm bore holds 2 500 ÷ 1 273 = 1.96 L/m.
How much does the water in a pipe weigh?
One kilogram per liter, or 8.34 lb per US gallon, for cold water. Add it to the weight of the pipe itself when sizing supports: a full NPS 4 Schedule 40 pipe carries about 8.2 kg of water per meter.
Sources
- ASME B36.10M: welded and seamless wrought steel pipe dimensions.
- Crane Technical Paper 410, Flow of Fluids Through Valves, Fittings and Pipe.
Last reviewed: November 10, 2026
