A pipe volume calculator finds how much water a length of pipe holds. It uses the volume of a cylinder, pi times the radius squared times the length, then converts cubic inches to gallons (divide by 231) and liters. A 100 foot run of pipe with a 4 inch inside diameter holds 65.28 gallons.
Volume
Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.
Saved results (0)
How to Use the Pipe Volume Calculator
- Enter the inside diameter of the pipe in inches.
- Enter the length of the pipe run in feet.
- Read the volume in gallons, liters and cubic feet.
| Result | What it means |
|---|---|
| Volume (gal) | How many US gallons the pipe holds when full. |
| Liters | The same volume in liters (gallons times 3.785412). |
| Cubic feet | The same volume in cubic feet (cubic inches divided by 1,728). |
What Is Pipe Volume?
A pipe is a cylinder. The volume of a cylinder is the area of its circular cross-section times its length. The cross-section area is pi times the radius squared, and the radius is half the inside diameter.
The volume tells you how much water the pipe holds when full. It is useful for filling, draining, flushing and sizing a tank.
How Does the Pipe Volume Calculator Work?
Volume (cu in) = pi x (Diameter / 2)^2 x Length (in), Gallons = Volume / 231, Liters = Gallons x 3.785412- Convert any unit that is not already in the stated unit.
- Apply the formula to the values you entered.
- Convert the result to the other units shown.
The factor 231 cubic inches per gallon is our derivation: the NIST gallon (0.003785412 cubic meters) divided by the NIST cubic inch (0.00001638706 cubic meters) is 231. The factor 1,728 is 12 x 12 x 12, the cubic inches in a cubic foot. The factor 3.785412 for liters is from the NIST table.
Pipe Volume Example
A pipe has an inside diameter of 4 inches and is 100 feet long.
Radius = 2 inches. Area = pi x 2 x 2 = 12.566 square inches. Length = 100 x 12 = 1,200 inches. Volume = 12.566 x 1,200 = 15,080 cubic inches.
Gallons = 15,080 / 231 = 65.28. Liters = 65.28 x 3.785412 = 247.1. Cubic feet = 15,080 / 1,728 = 8.727. Our arithmetic checks the calculator.
Units Compared: How the Results Relate
| Inside diameter | Volume per 100 ft (gallons, our arithmetic) | Liters |
|---|---|---|
| 1 inch | 4.08 | 15.4 |
| 2 inches | 16.32 | 61.8 |
| 4 inches | 65.28 | 247.1 |
Doubling the diameter multiplies the volume by four, because the area grows with the diameter squared.
Factors That Change Your Result
Inside Versus Nominal Size
Pipe is sold by a nominal size that is not the inside diameter. Use the true inside diameter from the pipe specification.
Fittings and Bends
The calculator treats the run as a straight pipe. Fittings add a little volume.
Full or Partly Full
The result is the volume when the pipe is full. A partly full pipe holds less.
When to Use It
Filling and Flushing
Estimate how much water a run holds before you fill or flush it.
Tank Sizing
Compare the pipe volume with the size of an expansion or storage tank.
Comparing Pipe Sizes
See how the diameter changes the volume per foot.
Common Mistakes
1. Using the Nominal Size
The label size is not the inside diameter. Check the specification.
2. Entering the Radius
The field takes the diameter, which is twice the radius.
3. Mixing Units
The diameter is in inches and the length is in feet. Entering feet for the diameter gives a wrong volume.
4. Forgetting Fittings
Fittings and valves hold extra water that the calculator does not add.
Accuracy and Limitations
The calculator is exact for a straight, full cylinder of the inside diameter you enter. Most error comes from the diameter, which depends on the pipe type and wall thickness.
What it calculates accurately
- Volume of a full straight pipe
- Conversion to gallons, liters and cubic feet
What it does not account for
- Fittings, valves and bends
- Partly full pipes and pipe wall thickness
How We Calculate the Result
Frequently Asked Questions
How do I calculate the volume of a pipe?
Multiply pi by the radius squared by the length, with all in inches, then divide by 231 for gallons. A 4 inch pipe 100 feet long holds 65.28 gallons.
How many cubic inches are in a gallon?
There are 231 cubic inches in a US gallon. This is our derivation from the NIST factors.
How do I convert gallons to liters?
Multiply the gallons by 3.785412. The NIST table gives that factor.
Why does doubling the diameter quadruple the volume?
The cross-section area grows with the square of the diameter, so twice the diameter is four times the area.
Which diameter should I use?
Use the inside diameter, not the nominal size. Check the pipe specification for the inside diameter.
Does the calculator include fittings?
No. It treats the run as straight pipe.
Can I use it for a partly full pipe?
No. It gives the volume of a full pipe.
Can I enter the diameter in millimeters?
Divide millimeters by 25.4 to get inches, then enter the inches.
Is my data saved?
No. The calculator runs in your browser and nothing is stored.
Sources
- NIST Guide to the SI, Appendix B.8 (conversion factors) (US gallon to cubic meter, 3.785 412 x 10^-3; cubic inch to cubic meter, 1.638 706 x 10^-5; US gallon to liter, 3.785 412. Created Feb 1, 2016, updated Aug 18, 2025.)
- NIST Special Publication 811, Guide for the Use of the SI (Official SI unit guide; updated Dec 8, 2025. The factors are on Appendix B.8.)
Related Calculators
Sizing a tank or flushing a pipe run?
Explore all framing calculatorsThis calculator gives a planning estimate of the volume of a straight, full pipe. It does not include fittings or wall thickness. Check the pipe specification and confirm with a qualified plumber. Spotted an error? Let us know.