Building & DIY

Pipe Volume (Interior Capacity) Calculator

Work out how much a pipe holds from its inner diameter and length. Inputs take several units, and results come in gallons, liters, and cubic feet.

Reviewed and updated

How to use
  1. Enter the inner diameter of the pipe.
  2. Enter the pipe length.
Pipe size
Interior volume

π × (radius)² × length

Litres
Cubic feet
Cubic metres
Per unit length
Estimates only, allow for waste and confirm against local building codes and supplier specs.
Was this helpful?

Volume of a cylinder, using the inside bore

V = π r² L,   gallons = V(in³) ÷ 231

A pipe is a cylinder, so its capacity is the cross-section area (π times the inside radius squared) multiplied by the length. Everything must be in one unit: work in inches and divide the cubic inches by 231 for US gallons, or work in centimetres and divide by 1,000 for litres. The number that matters is the inside radius — the wall carries no fluid.

Capacity per foot for Schedule 40 steel

Nominal sizeInside dia.Gallons / ftLitres / m
1/2"0.622"0.0160.180
3/4"0.824"0.0280.314
1"1.049"0.0410.488
1½"1.610"0.0760.899
2"2.067"0.1471.714
3"3.068"0.2923.456
4"4.026"0.5246.194

Multiply the per-foot figure by your run length. A 100 ft run of 2" Sch 40 holds about 14.7 gallons.

Two things that trip people up

  • Nominal size is a label, not the bore. "2 inch" pipe (NPS 2) is 2.375" on the outside and 2.067" inside for Schedule 40. Don't plug the nominal number into the formula.
  • Volume scales with the square of the diameter. Double the bore and capacity quadruples, so a small error in inside diameter grows fast over a long run.
Sch 40 2" ID 2.067"0.147 gal/ft
Sch 80 2" ID 1.939"0.129 gal/ft

Same nominal size, thicker wall: the higher schedule holds about 12% less because the bore is narrower.

Common questions

How do I calculate the volume of a pipe?

Use V = pi x r squared x L, where r is the inside radius and L is the length in the same units. In inches, divide the result by 231 to get US gallons.

Do I use the inside or outside diameter?

Always the inside diameter, because that is the space the fluid actually fills. If you only know the outside diameter and wall thickness, the inside diameter is outside minus twice the wall thickness.

Does a higher schedule pipe hold more?

No, less. A higher schedule means a thicker wall, which narrows the inside bore. Schedule 80 holds about 12 percent less than Schedule 40 at the same nominal size.

From the blog

Guides & how-tos

All articles →