Every Single CalculatorOne place for every calculator
ΩPlumbing, HVAC and electrical

Pipe volume calculator

Enter the inside diameter and length of a pipe to find how much water it holds.

Example: You are filling a radiant floor loop with glycol and need to know how many gallons the tubing holds.

Your numbers

Use the inside diameter, which is smaller than the nominal size for most pipe. A nominal ¾ inch copper pipe is about 0.785 inches inside.

in
ft
  • Water in the pipe0
  • In liters0
  • Weight of the water0
  • Gallons per foot0

How the volume is worked out

The inside of a pipe is a cylinder. Find its volume in cubic inches and divide by 231, the number of cubic inches in a US gallon.

Gallons = 3.1416 × (diameter ÷ 2)² × length in inches ÷ 231

A worked example

One hundred feet of pipe with an inside diameter of ¾ inch holds 530 cubic inches, which is 2.3 gallons. That water weighs about 19 pounds.

Where this is useful

  • Working out how long hot water takes to reach a tap, and how much water is wasted waiting.
  • Sizing an expansion tank or working out how much antifreeze a hydronic or radiant loop needs.
  • Finding the weight a run of full pipe adds to its hangers.
  • Estimating how much water to drain when winterizing.

Common questions

Where do I find the inside diameter?

It depends on the material and wall thickness. Copper, PEX, CPVC and schedule 40 PVC of the same nominal size all differ slightly. Manufacturer tables list the exact figure.

Does this work for a tank?

Yes, for an upright or horizontal cylinder that is completely full. Enter the inside diameter and the length in the same way.

How we know this calculator is right

Before this calculator went on the site, 6 answers were worked out separately from its code, by hand or straight from the formula above. Each time this page loads, your own browser runs the calculator on those same numbers and compares. Turn on JavaScript to see the comparison.

See every check
Numbers usedResultWorked out separatelyThis calculator

What this proves: the calculator does the arithmetic of the formula shown, correctly. What it cannot prove: your measurements, or figures such as coverage per bag, waste and spacing, which are typical starting values you can change. Go by the product label and your local code.

Used by: plumbers and pipefitters, irrigation installers.