Pipe Volume Calculator
Find how much water is inside a pipe run, from its inside diameter and length.
Reviewed by the ToolNestr Editorial Team — July 2026
How the pipe volume calculator works
A pipe is a cylinder, so the water it holds is the bore's cross-sectional area multiplied by the length. Using the inside diameter, the area is π × (diameter ÷ 2)². Multiply by the length — converted to inches — to get cubic inches, then divide by 231, the number of cubic inches in a US gallon, to read the volume directly in gallons.
The single most important detail is to use the inside diameter, not the nominal size or the outside diameter. Water only occupies the bore, and pipe walls have real thickness, so a "1 inch" pipe rarely has a true 1-inch inside diameter. Feeding the outside diameter into the formula overstates the volume, sometimes substantially on thick-walled pipe.
Knowing pipe volume answers several practical questions: how much water must run before a line is fully flushed or purged, how much is needed to fill and pressure-test a new run, how long a system takes to drain, and how much standing water sits in a supply line between uses. Multiplying gallons by 8.34 pounds also gives the weight of that water, which matters when long, large-diameter pipe is supported overhead.
The cylinder volume formula and the 231 cubic-inch-per-gallon conversion are standard references used throughout plumbing and civil engineering design manuals, including AWWA pipe design guidance.
Measure the bore
Use the true inside diameter in inches.
Enter the length
Total run length of the pipe in feet.
Read the volume
Gallons, liters, and the water weight it holds.
The formula explained
Cubic inches
= π × (dia⁄2)² × (L × 12). A 1 in bore, 100 ft pipe: π × 0.5² × 1200 = 942.5 in³.
Gallons
= in³ ÷ 231 = 942.5 ÷ 231 = 4.08 gallons.
Water weight
= gallons × 8.34 lb = 4.08 × 8.34 = 34 lb of water in the line.
Worked example
A 2 in inside-diameter irrigation main, 250 ft long.
Use cases for the pipe volume calculator
Pressure testing new runs
Before a new water line is buried or closed behind drywall, plumbers fill and pressure-test it. Knowing the exact volume tells you how much water is needed to fill the line and how long a fill should take at a given flow rate.
Draining and winterizing systems
Irrigation systems and outdoor plumbing need to be drained before freezing weather. Pipe volume tells you roughly how much water — and how much compressed air, if you are blowing out lines — is needed to fully clear a run.
Flushing and dosing chemicals
Chlorinating a well line or dosing a chemical treatment into a pipe run requires knowing the standing volume so the concentration lands where it is supposed to, rather than being diluted or over-concentrated.
Structural support planning
Long runs of large-diameter pipe suspended overhead need hangers rated for the pipe's weight plus the water inside it. Calculating water weight per foot helps engineers size supports correctly.
Real-world context
Repiping a home with 3/4-inch PEX is one of the most common uses for this calculator. A 50-foot supply run of 3/4-inch inside-diameter PEX holds about 1.15 gallons — small enough that plumbers rarely worry about drain-back, but knowing it matters when pressure-testing a newly run line before it gets buried in a wall.
Sewer laterals sit at a different scale. A 4-inch inside-diameter lateral running 40 feet from a house to the main holds about 26.1 gallons of standing water — a figure septic and sewer inspectors use when estimating how much water needs to flow before a dye test or camera inspection actually reaches the point being checked.
Fire protection mains are sized generously, and the weight adds up fast. A 6-inch inside-diameter fire main just 20 feet long holds roughly 29.4 gallons, weighing about 245 lb — compare that to a 4-inch, 40-foot lateral at roughly 217.8 lb, and it is clear why long runs of large-bore pipe need real structural support when they are hung overhead rather than buried.
Common misconceptions
"A 1-inch pipe has a 1-inch inside diameter." Almost never true. Nominal pipe sizes describe a naming convention, not the actual bore. Schedule 40 PVC, copper, and PEX all have inside diameters that differ from their nominal size — sometimes by a tenth of an inch or more — so always measure or look up the true inside diameter before calculating volume.
"Pipe volume and flow rate measure the same thing." They answer different questions. Volume tells you how much water is standing inside the pipe at any given moment; flow rate (GPM) tells you how fast water moves through it. A long pipe can hold a lot of standing volume while carrying a modest flow rate, or vice versa.
Related calculators
Frequently asked questions
How do I calculate the volume of water in a pipe?
A pipe is a cylinder: volume = π × (inside radius)² × length. Work in inches, then divide the cubic inches by 231 to get US gallons. For a 1-inch inside diameter, 100-foot pipe that is π × 0.5² × 1200 = 942 in³ ÷ 231 = about 4.1 gallons.
Should I use inside or outside diameter?
Always use the inside (bore) diameter, because that is the space water actually occupies. Nominal pipe sizes are not the true bore — a "1 inch" copper or PVC pipe has an inside diameter slightly different from 1 inch, so use the real inside measurement for accuracy.
Why does pipe volume matter?
It tells you how much water must be flushed to clear a line, how long it takes to purge or drain a system, the water needed to fill or pressure-test a run, and the standing volume that sits in a pipe between uses — useful for both plumbing and irrigation design.
How much does the water in a pipe weigh?
Water weighs about 8.34 pounds per gallon, so multiply the pipe volume in gallons by 8.34 to estimate the weight of the water it holds — important when a long, large-diameter line is supported overhead.
Sources & references
This tool uses standard formulas and reference values from:
- • American Concrete Institute — ACI 318, Building Code Requirements for Structural Concrete. concrete.org
- • ICC — International Residential Code (IRC), span, footing and framing tables. codes.iccsafe.org
- • APA – The Engineered Wood Association, allowable span and load guidance.
Estimates for planning only. Span, load and code values vary by jurisdiction — verify against your local adopted code and a licensed engineer before building.