Pipe Volume Calculator

A 100-foot straight run with a measured 2.000-inch inside diameter holds π × 1² × 1,200 = 3,769.91 cubic inches, or 16.32 US gallons. Doubling that bore to 4 inches multiplies volume by four at the same length. At unchanged flow, flushing that volume therefore takes four times as long.

Pipe Volume Calculator: inputs

Calculated result
Pipe volume (gallons)16.3
Pipe volume (cubic feet)2.2

Pipe diameter and pipe volume (gallons)

Pipe Volume Calculator: Pipe diameter and Pipe volume (gallons)5 calculations vary the “Pipe diameter” input while holding the other entered inputs constant.1.610.41.813.2216.32.219.72.423.5

Enter the measured inside diameter in inches and the straight-run length in feet. Use product dimensions for the actual material and wall specification, and split a run into separate calculations when its bore changes. Fittings and valves require their own internal volumes if the fill quantity must include them.

The cylinder model assumes a full straight pipe. Fittings, valves and branches add internal volume that the length-and-bore calculation excludes. Trapped air and fluid expansion affect the actual fill requirement.

A volume estimate does not select freeze protection, pipe material or a hydronic-system design.

Pipe volume (gallons) from pipe diameter

Pipe diameter2
Pipe length100
Pipe volume (gallons)16.3
Pipe volume (cubic feet)2.2

Common error: Using the nominal size as the inside diameter. The error is squared in the volume, so a small difference in diameter becomes a larger difference in gallons.

Pipe Volume: formula

Volume = π × (D ÷ 24)² × L × 7.48052 (D in inches, L in feet)

IAPMO: Uniform Plumbing Code

Pipe Volume: changing Pipe diameter

Pipe volume (gallons): assumed Pipe diameter scenarios.
Pipe diameterPipe volume (gallons)Pipe volume (cubic feet)
1.610.41.4
1.813.21.8
2 (example)16.32.2
2.219.72.6
2.423.53.1

Pipe Volume: compare input ranges

Pipe Volume Calculator: Pipe volume (gallons) with each input moved on its own, every other input held at the worked-example value.
InputTested fromToPipe volume (gallons): low inputPipe volume (gallons): high inputSwing
Pipe diameter1.82.213.219.76.5 (40%)
Pipe length9011014.7183.3 (20%)

Pipe Volume: individual input comparisons

Pipe Volume Calculator: change one input at a time; other values remain at the stated example.
InputValuePipe volume (gallons)Pipe volume (cubic feet)
Pipe diameter1.610.41.4
1.813.21.8
216.32.2
2.219.72.6
2.423.53.1
Pipe length8013.11.7
9014.72
10016.32.2
110182.4
12019.62.6

Pipe volume (gallons): Pipe diameter against Pipe length

Pipe Volume: Pipe volume (gallons) at combined Pipe diameter and Pipe length settings.
Pipe diameter / Pipe length80100120
1.68.410.412.5
1.810.613.215.9
213.116.319.6
2.215.819.723.7
2.418.823.528.2

Pipe Volume: values and definitions

Worked-example inputs and the results they produce for the Pipe Volume Calculator.
Quantity and definitionValue used
Pipe diameter — Inside diameter of the pipe, in inches.2
Pipe length — Length of the pipe run, in feet.100
Pipe volume (gallons)16.3
Pipe volume (cubic feet)2.2

Pipe diameter: half and double

Pipe Volume scale comparison; assumed inputs.
Pipe diameterPipe volume (gallons)
14.1
216.3
465.3

The water a pipe holds grows with the square of its diameter, so a modest change in size changes the volume a lot. One hundred feet of 2 inch pipe holds about 16.3 gallons, and the same run in 4 inch pipe holds about 65.3, four times as much. That matters for how long hot water takes to arrive, how much to drain before a repair and how much fluid a closed loop needs.

Use the inside diameter, which is smaller than the nominal size.

Look up the actual inside diameter for your pipe material and schedule. Copper, PVC and pex with the same nominal size have different inside diameters.

See flow through the pipe on the flow rate calculator, pressure loss on the pipe friction calculator and slope on the drain slope page. The cylinder volume and volume converter calculators handle the geometry and units, and the water heater sizing page covers hot water supply.

Why does a larger pipe take longer to run hot?

Because it holds much more cold water that must be flushed first, in proportion to the square of the diameter.

How many gallons are in 100 feet of 2-inch pipe?

For an assumed actual inside diameter of exactly 2 inches and 100-foot length, π × 1² × 1200/231 = about 16.32 US gallons.

Should I use the nominal or actual pipe diameter?

Use the actual inside diameter, since the nominal size is only a name and the real bore differs by material and wall thickness.