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
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 Visualization
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:
- is the volume, in cubic units
- (pi) is about 3.14159
- is the radius of the pipe (half the diameter)
- 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:
Here 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 outer diameter of 4.500 inches and an inner diameter of 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: water line
Take 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 how much water the full pipe holds.
Unit conversions
The calculator returns a result in cubic units, matching whatever unit was entered for diameter and length. It shows two decimal places, and a diameter or length of zero or less gives an error instead of a result. Common conversions, rounded from NIST's table of conversion factors:
- 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 pipe with a 6-inch inner diameter 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 cardboard tube forms for deck posts, need a volume calculation to know how many bags of concrete mix to buy.
- Groundwater monitoring. Well casing volume is used to calculate how much water must be pumped out (purged) before a sample is taken. The U.S. Environmental Protection Agency's traditional method removes at least three well volumes, each found with V = πr²h × 7.4805 gallons per cubic foot.
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:
Here is the outer radius and 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. A manufacturer's table lists this pipe at 10.80 pounds per foot, so the 20-foot section weighs about 216 pounds. That matches 0.44 cubic feet of steel at about 490 pounds per cubic foot.
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:
Here is flow rate, is the cross-sectional area of the pipe (), and 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 pipes whose inner diameter equals the listed size:
| Pipe size | Volume per foot | Gallons per 100 ft |
|---|---|---|
| 1/2 inch | 0.0102 gallons | 1.02 gallons |
| 1 inch | 0.0408 gallons | 4.08 gallons |
| 2 inches | 0.1632 gallons | 16.32 gallons |
| 4 inches | 0.6528 gallons | 65.28 gallons |
| 6 inches | 1.469 gallons | 146.9 gallons |
| 8 inches | 2.611 gallons | 261.1 gallons |
| 12 inches | 5.875 gallons | 587.5 gallons |
Real pipe rarely has an inner diameter exactly equal to its nominal size. For example, 2-inch schedule 40 steel pipe has an inner diameter of 2.067 inches. Inner diameter varies by schedule and material, so check the manufacturer's specification for critical work. The EPA's well-casing table gives 0.16 gallons per foot for a 2-inch casing, in line with the table above.
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
- National Institute of Standards and Technology. NIST Guide to the SI, Appendix B.9: Factors for units listed by kind of quantity or field of science. Volume conversion factors — cubic foot, cubic inch and U.S. gallon in cubic meters, the basis of the conversions listed.
- Wheatland Tube. Standard Pipe. Product brochure, ASTM A53 schedule 40 and 80 tables — outer and inner diameters and weight per foot of schedule 40 and schedule 80 steel pipe.
- U.S. Environmental Protection Agency, Region 4. Groundwater Sampling. Operating procedure LSASDPROC-301-R7 — well volume equation and the minimum three-volume purge; 0.16 gallons per foot for a 2-inch casing.
- U.S. Geological Survey. A Million Gallons of Water - How much is it?. Water Science School — water weighs about 8.34 pounds per gallon.