Pipe Volume Calculator

Quick answer

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.

Updated 2026-10-17By Shakeel Muzaffar | Reviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Your details
Water
in
The inside diameter of the pipe in inches, not the nominal size on the label.
ft
The length of the pipe run in feet.
Your results

Volume

—
Liters—
Cubic feet—

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)
Calculator GuideMethod, worked examples, factors and FAQ

How to Use the Pipe Volume Calculator

  1. Enter the inside diameter of the pipe in inches.
  2. Enter the length of the pipe run in feet.
  3. Read the volume in gallons, liters and cubic feet.
ResultWhat it means
Volume (gal)How many US gallons the pipe holds when full.
LitersThe same volume in liters (gallons times 3.785412).
Cubic feetThe 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?

Formula: Volume (cu in) = pi x (Diameter / 2)^2 x Length (in), Gallons = Volume / 231, Liters = Gallons x 3.785412
  1. Convert any unit that is not already in the stated unit.
  2. Apply the formula to the values you entered.
  3. 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 diameterVolume per 100 ft (gallons, our arithmetic)Liters
1 inch4.0815.4
2 inches16.3261.8
4 inches65.28247.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

Method
Volume (cu in) = pi x (inside diameter / 2)^2 x length in inches. Gallons = cubic inches / 231. Liters = gallons x 3.785412.
Inputs used
Inside diameter in inches and length in feet.
Assumptions
A straight, full pipe with a circular cross-section.
Rounding
Gallons to two decimals; liters to one; cubic feet to three.
Edge cases
Zero, negative or empty inputs show a message and no result.
Sources
See Sources below.
Last reviewed
2026-11-20.

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

Related Calculators

Sizing a tank or flushing a pipe run?

Explore all framing calculators

This 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.