Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Pipe volume calculator

Pick a Schedule 40 size or enter the inside diameter, add the length, and get the volume of water the pipe holds in gallons and liters.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Need the flow rate too? Use the gallons per minute calculator. Filling a tank? See the tank volume calculator.

How pipe volume is calculated

A pipe is a long cylinder, so its volume is the inside cross-section times the length. Use the inside diameter: the nominal size (like "2 inch") is only a name.

Area (sq in) = π × (inside diameter ÷ 2)²
Volume (cu in) = area × length (ft) × 12
US gallons = cubic inches ÷ 231; liters = gallons × 3.78541

A US gallon is exactly 231 cubic inches (NIST).

Worked example

100 ft of 2 in Schedule 40 steel pipe has an inside diameter of 2.067 in. Area = π × 1.0335² = 3.3557 sq in. Volume = 3.3557 × 1,200 = 4,026.8 cu in ÷ 231 = 17.43 gallons (65.99 L), or 0.174 gallons per foot. The same length of 2 in Schedule 40 PVC (average inside diameter 2.047 in) holds 17.10 gallons.

Schedule 40 sizes

Nominal size (in)Outside diameter (in)Inside diameter, steel (in)Average inside diameter, PVC (in)
½0.8400.6220.602
¾1.0500.8240.804
11.3151.0491.029
1¼1.6601.3801.360
1½1.9001.6101.590
22.3752.0672.047
2½2.8752.4692.445
33.5003.0683.042
44.5004.0263.998
66.6256.0656.031
88.6257.9817.942
1010.75010.0209.976
1212.75011.93811.889

Schedule 40 steel and PVC share the same outside diameter, but PVC is made to a minimum wall with some tolerance above it, so its average inside diameter is slightly smaller. Steel inside diameters are the outside diameter minus twice the nominal wall (ASME B36.10). Copper tube, PEX and Schedule 80 pipe have different inside diameters; enter yours directly.

Uses and limits

  • Flushing and disinfecting lines: the volume tells you how much water fills the line.
  • Glycol or antifreeze: add the volume of tanks, boilers and coils, which are often much larger than the pipe.
  • Fittings add a little volume; for long runs it's small.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • 100 ft of 2 in Schedule 40 steel (2.067 in ID): 17.43 gallons ✓
  • 100 ft of 2 in Schedule 40 PVC (2.047 in ID): 17.10 gallons ✓
  • 50 ft with a 1.5 in inside diameter: 4.59 gallons ✓
  • 1 ft of 4 in steel: 0.6613 gallons per foot ✓
  • Edge: no size and no diameter asks for one ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

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

About 17.4 gallons for Schedule 40 steel (2.067 in ID) and 17.1 gallons for Schedule 40 PVC (2.047 in ID).

How many gallons per foot are in a 1 inch pipe?

About 0.045 gallons per foot for 1 in Schedule 40 steel (1.049 in ID), or about 4.5 gallons per 100 ft.

How many gallons per foot are in a 4 inch pipe?

About 0.661 gallons per foot for 4 in Schedule 40 steel (4.026 in ID).

Why isn't a 2 inch pipe 2 inches inside?

Nominal pipe sizes are names. For sizes up to 12 in, the outside diameter is fixed and the inside diameter depends on the wall thickness (the schedule).

How do I convert cubic inches to gallons?

Divide by 231. A US gallon is defined as 231 cubic inches.

Related calculators