B & W P I P E , I N C .

Loading....

Pipe Volume Calculator

Pipe volume is calculated from the pipe’s internal diameter and length, using the cylinder volume formula applied to the pipe’s bore. Whether you’re sizing a hydrostatic test, calculating pigging displacement, or dosing a chemical treatment based on total line volume, B&W Pipe built this pipe volume calculator using the same verified OD, wall thickness, and ID data behind every order we ship.

So whether you’re sizing a hydrostatic test, calculating pigging displacement, or dosing a chemical treatment based on total line volume, the number you get here reflects real, documented pipe dimensions, not a rough estimate. 

Pipe Volume Calculator

Enter your pipe details to calculate volume:

How to Calculate Pipe Volume

Pipe volume uses the standard formula for the volume of a cylinder, applied to the pipe’s internal bore:

Volume = π × (ID ÷ 2)² × Length

The critical detail is using internal diameter (ID), not outside diameter (OD). OD is the number stamped on a mill certificate and used for fitting compatibility, but it’s the ID, what’s left after the wall thickness is subtracted that actually holds fluid. Using OD instead of ID overstates volume, and the gap grows as wall thickness increases.

Worked Example: Calculating Volume for 6" Schedule 40 Pipe

For a 100-foot run of 6″ Schedule 40 pipe, that’s 150 gallons, the same result the pipe volume calculator above returns instantly once you enter size, schedule, and length.

Unit Conversions for Pipe Volume

FromToConversion Factor
Cubic inchesGallons÷ 231
Cubic inchesCubic feet÷ 1,728
Cubic feetGallons× 7.48
GallonsLiters× 3.785
GallonsBarrels (oil)÷ 42

 

Keep these on hand when you need to calculate pipe volume in a unit other than what the pipe volume calculator defaults to, or when cross-checking a result by hand.

Why Pipe Volume Calculations Matter

Pipe Volume by Common Size and Schedule

NPS Schedule ID (in) Volume (gal/ft) Volume (cu ft/ft)
2″ 40 2.067 0.174 0.0233
2″ 80 1.939 0.153 0.0205
4″ 40 4.026 0.661 0.0884
4″ 80 3.826 0.597 0.0798
6″ 40 6.065 1.501 0.2006
6″ 80 5.761 1.354 0.1810
8″ 40 7.981 2.599 0.3474
8″ 80 7.625 2.372 0.3171
10″ 40 10.020 4.096 0.5475
10″ 80 9.564 3.733 0.4990
12″ 40 11.938 5.815 0.7773
12″ 80 11.376 5.280 0.7057

This table covers general volume in gallons and cubic feet across the sizes B&W Pipe stocks most. If you’re specifically working with water and want a broader size range in a quick-reference format, our Gallons of Water Per Foot of Pipe Chart covers that in more detail.

How B&W Pipe Supports Volume-Based Planning

Every volume calculation is only as accurate as the dimensional data behind it. B&W Pipe’s pipe chart and stock list provide verified OD, wall thickness, and ID figures across every size and schedule we carry, so a pipeline volume calculator result reflects real, documented dimensions rather than a nominal chart assumption. Every order also ships with Mill Test Report certification, confirming the wall thickness the volume calculation depends on.

This pipe volume calculator is part of B&W Pipe’s broader Pipe Formulas suite, which also covers weight per foot, yield strength, and Charpy conversion calculations.

Related Resources

Need Help Verifying Pipe Dimensions for Your Project?

If your volume calculation depends on confirming exact OD, wall thickness, or ID for a specific size, B&W Pipe’s stock list and pipe chart can verify it against documented, in-stock inventory.

Frequently Asked Questions

How do you calculate the volume of a pipe?

Multiply π by the square of half the internal diameter, then multiply by the pipe’s length: Volume = π × (ID ÷ 2)² × Length. The result is in cubic inches if ID and length are both in inches, and can be converted to gallons, cubic feet, or liters from there.

 Inside diameter. Outside diameter is used for fitting and flange compatibility, but the fluid a pipe holds is bounded by the internal diameter, which is smaller than the OD by twice the wall thickness.

 It varies by size, but the gap grows as diameter increases. At 2″, Schedule 80 holds about 12% less volume per foot than Schedule 40. At 12″, that gap widens to roughly 9%, driven by Schedule 80’s significantly thicker wall at larger diameters.

A pipe volume calculator handles general pipe volume in multiple units (gallons, cubic feet, liters, barrels) for any fluid. The water gallons-per-foot chart is a water-specific quick reference across a broader range of sizes, without the unit conversion or multi-fluid flexibility this calculator provides.

Download

Products Brochure

Download

Do You Need Help? We're Here to Support You
construction cap favicon