Pipe capacity and material

Pipe Volume Calculator

Enter the inside diameter and pipe length to find its capacity. Add the outside diameter to calculate the volume of the pipe wall too.

Hollow round pipe marked with inside diameter ID, outside diameter OD and length L

Enter the pipe measurements

Add this to calculate the volume of the pipe material. It must be larger than the inside diameter.

Use this unit for both diameters.

How to calculate pipe capacity

The empty space inside a straight, round pipe is a cylinder. Use its actual inside diameter: V = π × (inside diameter ÷ 2)² × length. The calculator converts this to US gallons, liters and cubic feet.

How to calculate pipe material volume

Subtract the inside cylinder from the outside cylinder: V = π × [(outside diameter ÷ 2)² − (inside diameter ÷ 2)²] × length. This measures the volume of the solid pipe wall, not how much liquid the pipe holds.

Example: 10 ft of pipe with a 2 in inside diameter

Ten feet equals 120 inches. The inside capacity is π × 1² × 120 ≈ 376.99 in³, or approximately 1.63 US gallons. If the outside diameter is 2.5 inches, the material volume is π × (1.25² − 1²) × 120 ≈ 212.06 in³.

Nominal pipe size may differ from the actual inside diameter. Use actual dimensions for the best estimate. The formula assumes a straight pipe with a constant circular cross-section.

Calculate another shape →