Pipe Volume Calculator

A pipe run can hold far more liquid than it looks like from the outside: 100 feet of 4 inch pipe holds over 65 gallons, enough to flood a room if you cut into it unprepared. This free pipe volume calculator works out exactly how much liquid a pipe holds from its inside diameter and length. Enter the two measurements and it shows the capacity in cubic feet, cubic yards, US gallons and liters, plus the gallons per foot, with a comparison table for common pipe diameters.

Pipe Dimensions

Enter the inside diameter (the bore), not the outside diameter or the nominal trade size. Inside diameter equals outside diameter minus twice the wall thickness. For a rough estimate the nominal size is close, but for exact work use the inside diameter from the pipe schedule or the manufacturer's data sheet.

Pipe capacity
Cross-sectional area
Volume
Volume
Volume
Volume
Gallons per foot of pipe
Note: volume grows with the square of the diameter, so doubling the bore quadruples the capacity. A nominal 4 inch Schedule 40 pipe has an actual inside diameter of 4.026 inches and holds about 1.3 percent more than a true 4.000 inch bore, so use the real inside diameter when accuracy matters. This calculator assumes the pipe is completely full.
Inside DiameterVolume (cubic feet)Volume (gallons)Volume (liters)

Each row uses the length entered above, at a different inside diameter. Volume grows with the square of the diameter, so a 6 inch pipe holds nine times as much per foot as a 2 inch pipe.

Powered by Techraxy

Creator & Reviewer

Faiq Ur Rahman

Founder & CEO, Techraxy

Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.

Share:

Rate this Tool

User Ratings:

0
0 out of 5 stars (based on 0 reviews)
Excellent
Very good
Average
Poor
Terrible

ADVERTISEMENT

ADVERTISEMENT

What is a Pipe Volume Calculator?

Pipe volume is the internal capacity of a pipe, the amount of liquid it holds when completely full. A pipe is a cylinder, so its volume is the area of the circular cross-section multiplied by the length: V = pi x r squared x L, where r is the inside radius and L is the length. The key measurement is the inside diameter (the bore), not the outside diameter or the nominal trade size printed on the pipe. Nominal sizes are historical labels that exist so fittings line up, and the real bore is smaller by twice the wall thickness: inside diameter equals outside diameter minus twice the wall thickness. A nominal 4 inch Schedule 40 pipe, for example, has an actual inside diameter of 4.026 inches.

Knowing pipe volume matters whenever liquid moves through or sits in a pipe: draining a run before cutting into it, flushing a system before water sampling, dosing chemicals into a boiler or hydronic loop by system volume, sizing an expansion tank, or working out how long it takes to fill a new system. If you need the weight of the pipe material itself rather than the liquid inside it, the Pipe Weight Calculator works that out from the pipe dimensions and material.

How to Use the Pipe Volume Calculator

  1. Enter the inside diameter in inches in the Pipe Dimensions section. Use the actual bore from the pipe schedule or the manufacturer’s data sheet when accuracy matters; the nominal size is a reasonable estimate within a few percent.
  2. Enter the total length of the pipe run in feet. For a system with several runs, add the lengths together first, or run each size separately.
  3. Click Calculate, or just type: the results update as you enter the numbers.
  4. Read the Summary tab for the cross-sectional area, the volume in cubic feet, cubic yards, gallons and liters, and the gallons per foot.
  5. Open the Compare Diameters tab to see how much the same length of pipe holds at 1, 2, 3, 4 and 6 inch inside diameters.

Formula

Radius in feet = inside diameter (in) / 12 / 2

Cross-sectional area (sq ft) = pi x radius squared

Volume (cu ft) = cross-sectional area (sq ft) x length (ft)

Volume (cu yd) = volume (cu ft) / 27

Volume (gallons) = volume (cu ft) x 7.48052

Volume (liters) = volume (gallons) x 3.78541

Gallons per foot = volume (gallons) / length (ft)

The same formula can be written with the full diameter instead of the radius: V = (pi / 4) x D squared x L. The conversion factors are exact definitions, not rounded estimates: one US gallon is exactly 231 cubic inches and one cubic foot is 1,728 cubic inches, so one cubic foot is 1,728 / 231 = 7.48052 US gallons. One US gallon is 3.78541 liters, so the liter figure comes from gallons x 3.78541. A handy shortcut for estimating in your head is gallons per foot = 0.0408 x inside diameter in inches squared, which folds pi, the area formula and the 231 cubic inch gallon into one constant.

Worked Example

A pipe with a 4 inch inside diameter and a 100 foot run. All steps below use the unrounded values; displayed figures are rounded to two decimals only at the end.

Diameter in feet = 4 / 12 = 0.333333 ft.

Radius = 0.333333 / 2 = 0.166667 ft.

Cross-sectional area = pi x 0.166667 squared = 0.087266 sq ft.

Volume = 0.087266 x 100 = 8.726646 cu ft, displayed as 8.73 cu ft.

Volume in cubic yards = 8.726646 / 27 = 0.323209 cu yd, displayed as 0.32 cu yd.

Volume in gallons = 8.726646 x 7.48052 = 65.279852 gallons, displayed as 65.28 gallons.

Volume in liters = 65.279852 x 3.78541 = 247.111005 liters, displayed as 247.11 liters.

Gallons per foot = 65.279852 / 100 = 0.652799 gal/ft, displayed as 0.65 gal/ft.

So the run holds 65.28 gallons (247.11 liters) of liquid when full. That matches the published reference figure of 0.653 gallons per foot for 4 inch pipe, or 65.3 gallons per 100 feet.

Benefits of Using a Pipe Volume Calculator

  • Gives the capacity in every unit at once: cubic feet, cubic yards, US gallons and liters, so the figure matches whichever unit your job, supplier or dosing chart uses.
  • Uses the real bore, not the label: the formula runs on inside diameter, with the nominal-versus-actual difference explained so you know when the label is close enough and when it is not.
  • Shows gallons per foot: a single number you can multiply by any run length in your head, backed by the 0.0408 shortcut for quick site estimates.
  • Compares diameters side by side: the Compare Diameters tab shows what the same length holds from 1 inch to 6 inches, so you can see at a glance how much capacity a larger pipe adds.
  • Built on exact conversions: 7.48052 gallons per cubic foot and 3.78541 liters per gallon come from the definitions of the gallon and the foot, not from rounded rules of thumb.
  • Free and instant: no sign-up, no download, and the results update as you type.

Frequently Asked Questions

Should I use the inside diameter or the nominal pipe size?

Use the inside diameter whenever you can. Nominal pipe size is a trade label, not a measurement: it exists so pipes and fittings from different makers line up, and it does not equal either the inside or the outside diameter. The inside diameter is the outside diameter minus twice the wall thickness, and wall thickness varies by schedule, so the same nominal size can have different bores. A nominal 4 inch Schedule 40 pipe has an actual inside diameter of 4.026 inches and holds about 1.3 percent more than a true 4.000 inch bore would. For rough estimates the nominal size is close enough, within a few percent; for dosing, commissioning or billing, use the real bore from the pipe schedule or data sheet.

How many gallons does 100 feet of pipe hold?

It depends on the diameter, and the volume grows with the square of the bore. Using the inside diameter as entered, 100 feet holds about 4.08 gallons at 1 inch, 16.32 gallons at 2 inches, 36.72 gallons at 3 inches, 65.28 gallons at 4 inches and 146.88 gallons at 6 inches. A 6 inch pipe therefore holds nine times as much per foot as a 2 inch pipe, even though the diameter is only three times larger. The Compare Diameters tab in the calculator shows these figures for any length you enter.

Is there a quick way to estimate gallons per foot?

Yes. Gallons per foot equals 0.0408 times the inside diameter in inches squared. So a 2 inch bore holds about 0.0408 x 4 = 0.16 gallons per foot, and a 4 inch bore holds about 0.0408 x 16 = 0.65 gallons per foot. The constant folds pi, the circle area formula and the 231 cubic inch gallon into one number, and it reproduces the full calculation to within rounding. Multiply the result by the run length in feet for the total gallons.

Why does doubling the diameter quadruple the volume?

Because the volume depends on the cross-sectional area, and area depends on the radius squared. Double the diameter and the radius doubles too, so the area becomes two squared, or four times larger, and the volume follows. This is why upsizing a pipe is such a powerful way to add capacity, and why a small error in the diameter measurement has an outsized effect on the result: measure the bore carefully, because a 10 percent error in diameter becomes roughly a 21 percent error in volume.

What if the pipe is only partly full?

This calculator assumes the pipe is completely full, which is the right figure for draining, flushing, filling and dosing, since those jobs deal with the full contents. For a horizontal pipe that is exactly half full, the liquid volume is half the full capacity. For other fill levels the wetted cross-section is a circular segment, which needs a different formula, and for a vertical pipe the liquid depth is simply the height of the liquid column, so volume is the cross-sectional area times that height rather than times the full length.

Disclaimer

This calculator gives the internal volume of a uniform, round pipe that is completely full, based on the inside diameter and length you enter. Real pipes vary: the actual bore depends on the schedule and the manufacturer, and using the nominal size instead of the measured inside diameter can shift the result by a few percent. Fittings, valves, bends and connected equipment add volume that this calculator does not count, and partially full pipes hold less than the full capacity shown here. Use the figures for planning, estimating and dosing preparation, and confirm critical volumes against the manufacturer’s data for your specific pipe. This tool is for estimating only and is not a substitute for professional engineering advice.

ADVERTISEMENT

ADVERTISEMENT