Skip to content

Pipe Volume Calculator - Calculate Cylindrical Pipe Capacity

Calculate pipe volume instantly using the πr²h formula. Enter diameter and length to determine water capacity, material needs, or fluid storage for engineering and plumbing projects.

Pipe Volume Calculator

Calculate cylindrical pipe volume instantly by entering diameter and length. Get accurate results using the πr²h formula.

Volume = π × r² × h (where r = diameter/2 and h = length)

Enter Pipe Dimensions

units
units

Volume Result

Calculation Steps:

Radius = Diameter ÷ 2 = 10.00 ÷ 2 = 5.00 units

Volume = π × r² × h = π × 5.00² × 20.00 = 1570.80 cubic units

Pipe Volume
1,570.80cubic units

Pipe Visualization

Loading calculator...
📚

Documentation

What is a pipe volume calculator?

A pipe volume calculator finds how much space is inside a cylindrical pipe. It uses the diameter and length of the pipe to work out the volume in cubic units. This tells someone how much water, gas, or other fluid the pipe can hold.

Pipe volume formula

A pipe is a cylinder, so its volume follows the standard cylinder formula:

V=π×r2×hV = \pi \times r^2 \times h

  • VV is the volume, in cubic units
  • π\pi (pi) is about 3.14159
  • rr is the radius of the pipe (half the diameter)
  • hh is the length of the pipe

Pipe sizes are usually given as a diameter, not a radius, so the formula is often written this way instead:

V=π×(d2)2×hV = \pi \times \left(\frac{d}{2}\right)^2 \times h

Here dd is the diameter. This formula gives the volume inside the pipe, the space fluid actually flows through. It only works for circular pipes with a constant diameter along their length.

Two things trip people up. First, real pipes have a wall thickness, so their outer diameter is larger than their inner diameter. For fluid capacity, always use the inner diameter (ID). A pipe sold as "4-inch schedule 40 steel pipe" has an actual inner diameter of about 4.026 inches, not exactly 4 inches. Second, diameter and length must be in the same unit before multiplying. If diameter is in inches, convert length from feet to inches first (multiply by 12), or the result will be off by a large factor.

Worked example: residential water line

A plumber is sizing a water line with an inner diameter of 4 inches and a length of 10 feet.

Step 1: Match units. Convert length to inches: 10 ft × 12 = 120 in.

Step 2: Find the radius. Radius = 4 ÷ 2 = 2 in.

Step 3: Apply the formula.

V = π × 2² × 120 = π × 4 × 120 ≈ 1,508 cubic inches

Converting the result: 1,508 cubic inches equals about 6.53 gallons, or 24.7 liters. That is roughly how much water sits in the pipe between the water heater and the fixture at any moment.

Unit conversions

The calculator returns a result in cubic units, matching whatever unit was entered for diameter and length. Common conversions:

  • 1 cubic foot = 7.48 gallons (US)
  • 1 cubic foot = 28.32 liters
  • 1 cubic inch = 0.0164 liters
  • 1 cubic meter = 1,000 liters
  • 1 cubic meter = 264.17 gallons (US)

Why pipe volume matters

Knowing pipe volume helps in several practical situations:

  • Plumbing. The volume of water sitting in a pipe run affects how long it takes for hot water to reach a fixture, and how much water a pump has to move. A 1,000-foot run of 6-inch pipe holds about 1,469 gallons of standing water.
  • Chemical and process piping. Volume determines how much product is lost during a line flush or changeover, and how long fluid stays inside the pipe (retention time).
  • Construction. Cylindrical concrete forms, such as sonotubes for deck posts, need a volume calculation to know how many bags of concrete mix to buy.
  • Irrigation. Mainline and drip-line volume affects how many emitters a system can run at once and how much fertilizer solution is needed for injection.
  • Groundwater monitoring. Well casing volume is used to calculate how much water must be pumped out (purged) before a valid sample can be taken.

Related calculations

Pipe wall (material) volume and weight

Estimating the weight or cost of the pipe material itself, rather than what flows through it, requires both the inner and outer diameter:

Vmaterial=π×h×(R2r2)V_{material} = \pi \times h \times (R^2 - r^2)

Here RR is the outer radius and rr is the inner radius. Multiplying this volume by the material's density gives its weight.

Example: a 20-foot section of 4-inch schedule 40 steel pipe has an outer diameter of 4.5 inches and an inner diameter of 4.026 inches. Converting to feet, R = 0.1875 ft and r = 0.1678 ft (approx.). The wall volume works out to about 0.44 cubic feet. Steel has a density of about 490 pounds per cubic foot, so the pipe weighs about 216 pounds.

Flow rate through a pipe

Volume measures how much a pipe holds. Flow rate measures how much fluid moves through it per unit of time:

Q=A×vQ = A \times v

Here QQ is flow rate, AA is the cross-sectional area of the pipe (πr2\pi r^2), and vv is fluid velocity.

Example: a 4-inch pipe has a cross-sectional area of about 12.57 square inches. At a velocity of 3 feet per second, it carries about 117.5 gallons per minute. Doubling the diameter to 8 inches quadruples the area, so the same velocity carries about 470 gallons per minute. Flow capacity scales with the square of the diameter, not with the diameter itself.

Partially filled pipes

Storm drains and gravity sewers often run partly full rather than completely full. The volume of fluid in a partially filled horizontal pipe depends on the fill angle and is more complex to compute than a full pipe. Drainage engineers typically use reference charts or software for this rather than calculating it by hand.

Common pipe volumes (quick reference)

Approximate volume held by common pipe sizes, based on inner diameter:

Pipe sizeVolume per footGallons per 100 ft
1/2 inch0.0102 gallons1.02 gallons
1 inch0.0408 gallons4.08 gallons
2 inches0.1632 gallons16.32 gallons
4 inches0.6528 gallons65.28 gallons
6 inches1.469 gallons146.9 gallons
8 inches2.611 gallons261.1 gallons
12 inches5.875 gallons587.5 gallons

These figures assume nominal pipe size. Actual inner diameter varies by pipe schedule and material, so check the manufacturer's specification for critical work.

Frequently asked questions

What is the formula for calculating pipe volume?

V = πr²h, where r is the radius (half the diameter) and h is the length. Since pipe is usually specified by diameter, the practical version is V = π(d/2)²h.

Should I use the inner or outer diameter?

Use the inner diameter (ID) to find how much fluid a pipe can hold. The outer diameter (OD) is only needed alongside the ID to find the volume of the pipe wall material itself, for example to estimate weight.

How do I convert the volume result to gallons or liters?

Multiply by a conversion factor: 1 cubic foot equals 7.48 gallons or 28.32 liters, and 1 cubic inch equals 0.0164 liters. Make sure the volume and the conversion factor use the same base unit (feet or inches).

How do I find the weight of liquid inside a pipe?

Multiply the volume by the liquid's density. Water weighs about 8.34 pounds per gallon, so a pipe holding 100 gallons of water carries about 834 pounds. This matters for structural supports holding filled pipe overhead.

Does pipe wall thickness affect the volume calculation?

It affects the volume indirectly, by changing the inner diameter. A 4-inch pipe in schedule 40 has an inner diameter of 4.026 inches, while the same nominal size in schedule 80 has an inner diameter of 3.826 inches, about 10% less volume, because schedule 80 has a thicker wall.

How is flow rate different from pipe volume?

Volume is a fixed capacity; flow rate is how much fluid passes a point per unit of time, found with Q = A × v. For example, a 2-inch pipe (cross-sectional area about 3.14 square inches) carrying water at 5 feet per second delivers about 49 gallons per minute.

References

  1. ASME B36.10M – Welded and Seamless Wrought Steel Pipe — standard pipe dimensions and tolerances.
  2. International Plumbing Code (IPC) — code requirements for pipe sizing and hydraulic design.
  3. Cengel, Y. A., & Cimbala, J. M. (2017). Fluid Mechanics: Fundamentals and Applications (4th ed.). McGraw-Hill Education.
  4. ASTM A53/A53M-20 – Standard Specification for Pipe, Steel — manufacturing standards for steel pipe.