Skip to content

Pipe Volume Calculator: Inner Diameter and Length

Calculates the volume inside a cylindrical pipe from its inner diameter and length with V = π(d/2)²h. Includes a worked example and unit conversions table.

Pipe Volume Calculator

Finds the volume inside a cylindrical pipe from its inner diameter and its length, using V = π × r² × h. Enter both dimensions in the same unit; the answer is in the matching cubic unit.

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

Enter Pipe Dimensions

units
units

Volume Result

Calculation Steps:

Radius = inner 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 inner diameter and the 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.

How to use this calculator

The calculator has two fields: the inner diameter of the pipe and its length. It does not ask for a unit. Both numbers must be in the same unit, and the answer comes back in the matching cubic unit. Entering the diameter in inches and the length in inches gives cubic inches; entering both in metres gives cubic metres.

Under the answer the calculator shows its two working steps, rounded to two decimal places: the radius it derived from the diameter, and the volume it computed from that radius. A diameter or length of zero or less is rejected, and the result stays blank until both numbers are above zero.

The tool also draws the pipe. That drawing is a schematic, not a scale model. It always fits the same 300 by 200 box, and it has a minimum size, so a very long thin pipe still shows up as a visible tube rather than a hairline.

Example using the calculator's default values

The calculator opens with a diameter of 10 and a length of 20.

  • Radius = 10 ÷ 2 = 5.00
  • Volume = π × 5.00² × 20 = π × 500 ≈ 1,570.80 cubic units

Change the diameter to 5 and the length to 10 and the answer becomes π × 2.5² × 10 ≈ 196.35 cubic units.

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 feet × 12 = 120 inches

Step 2. Find the radius. Radius = 4 ÷ 2 = 2 inches

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 feet and r = 0.1678 feet (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.