Pipe Volume Calculator
A pipe volume calculator uses gallons = π × (inside diameter ÷ 24)² × length × 7.48. A 2 in inside diameter pipe 50 ft long holds 1.09 ft³, or 8.16 gallons.
Pipe volume calculator: gallons held inside a run of pipe
A pipe volume calculator treats the pipe as a long thin cylinder. The formula is π × radius² × length, with the radius taken from the inside diameter. Divide the inside diameter in inches by 24 to get the radius in feet, then multiply the cubic feet by 7.48 to get gallons. A 2-inch pipe, 50 feet long, holds 1.09 cubic feet, or 8.16 gallons.
Only the bore counts. Wall thickness does not hold any water.
The formula in plain words
Imagine pouring water into a long drinking straw laid flat. The straw’s opening is a circle. The length is how far the water stretches. The water fills the circle all the way along.
- Radius in feet = inside diameter in inches ÷ 24
- Cubic feet = π × radius² × length in feet
- Gallons = cubic feet × 7.48
The 24 is 12 inches per foot times 2 to turn diameter into radius.
Worked examples
- Irrigation main, 2 in inside diameter, 50 ft long
- Radius: 2 ÷ 24 = 0.0833 ft
- Cubic feet: π × 0.0833² × 50 = 1.091 ft³
- Gallons: 1.091 × 7.48 = 8.16 gal
- Drain line, 4 in inside diameter, 100 ft long
- Radius: 4 ÷ 24 = 0.1667 ft
- Cubic feet: π × 0.1667² × 100 = 8.727 ft³
- Gallons: 8.727 × 7.48 = 65.28 gal
Example 2 uses a pipe only twice as wide and twice as long as example 1, yet it holds eight times the water. Doubling the width quadruples the area, and doubling the length doubles it again, so 4 × 2 = 8.
Gallons per foot of pipe
| Inside diameter | Gallons per foot | Gallons per 100 ft |
|---|---|---|
| 1 in | 0.041 | 4.1 |
| 1.5 in | 0.092 | 9.2 |
| 2 in | 0.163 | 16.3 |
| 3 in | 0.367 | 36.7 |
| 4 in | 0.653 | 65.3 |
| 6 in | 1.469 | 146.9 |
Nominal size versus actual inside diameter
Pipe sizes are names, not measurements. For Schedule 40 PVC, the inside diameters are about 1.049 in for 1 in, 1.610 in for 1.5 in, 2.067 in for 2 in, 3.068 in for 3 in, 4.026 in for 4 in, and 6.065 in for 6 in. Using nominal sizes instead of these makes the volume come out low, by about 1 percent for 4 in pipe and about 9 percent for 1 in pipe. Other materials, such as copper or PEX, have their own inside diameters, so check the manufacturer’s data.
Putting it to use
Hot-water wait time is a good example. If a 0.785 in inside diameter copper line is 40 ft long, it holds π × (0.785 ÷ 24)² × 40 × 7.48 = 1.01 gallons. At a fixture flow of 2 gallons per minute, that is about 30 seconds of water running before hot water arrives.
How to measure
- Find the true inside diameter. Look it up from the pipe markings or product data sheet.
- Add up the path. Sum each straight run and each vertical drop.
- Split different sizes. If a line steps down from 2 inch to 1 inch, calculate each section separately.
- Check units. Diameter goes in inches, length in feet.
- Treat fittings as zero. Include them only if you need exact fill volume.
Common mistakes
- Using the outside diameter. The outside includes the wall, which overstates volume.
- Entering nominal size. A “2-inch” pipe is not exactly 2.000 inches inside.
- Mixing inches and feet. Entering length in inches makes the answer 12 times too small.
- Forgetting vertical lines. A tall riser can hold as much as a long horizontal run.
- Assuming the pipe runs full. Drain lines often flow partly full, so the volume is a maximum.
Related calculators
To see how fast water moves, use the pipe velocity calculator or the GPM calculator. For pressure loss over a long run, try the pipe friction loss calculator, and for larger vessels, the tank volume calculator.
Frequently asked questions
Why use inside diameter, not the pipe's nominal size?
Nominal pipe size (like ½-inch) is a label, not the actual bore. Type L ½-inch copper has an inside diameter near 0.545 inches, and Schedule 40 PVC in 2-inch size measures about 2.067 inches inside. For accurate volume, look up or measure the true inside diameter.
What is pipe volume useful for?
Knowing the water a pipe holds helps you estimate how long hot water takes to reach a fixture, dose chemicals in irrigation or pools, work out drain-down volume, and size a fill or flush. The volume also shows how much water is wasted waiting for hot water.
How many gallons are in a foot of pipe?
It depends entirely on diameter. A 1-inch inside diameter holds about 0.041 gallons per foot, 2 inches holds 0.163, 3 inches holds 0.367, and 4 inches holds 0.653. Volume rises with the square of the diameter, so doubling the diameter quadruples the water.
Does length include fittings and vertical runs?
Enter the total developed length of the pipe, horizontal plus vertical runs. Fittings add a small amount of volume that is usually negligible for estimating; add it only for precise system-fill calculations.
Can I use this for a round tank or well casing?
Yes, the math is the same cylinder formula, so a well casing's inside diameter in inches works here. For larger vessels measured in feet, the Tank Volume Calculator uses foot-based inputs and also lets you set a fill level.
Estimates only. Verify quantities with your supplier before purchasing.