Pipe Volume Calculator
Find out exactly how much water or fluid a pipe holds. Enter the pipe diameter and length, and get the internal volume instantly in gallons, liters, cubic feet, and cubic meters — for round pipes and rectangular ducts, in imperial or metric units.
Plumbers use it to size water heaters and estimate drain-down volumes. Irrigation installers use it to work out how much water sits in a long supply line. DIYers use it before flushing, winterizing, or filling a system — because guessing the volume of a 100-foot line can be off by tens of gallons.
Calculate pipe volume
Advanced options
Wall thickness and fill level already have defaults (inner diameter, 100% full) and are included in the result above. Open this section only to change them.
Your numbers stay in your browser. Nothing is stored or sent anywhere.
Key takeaways
- Round pipe formula: Volume = π × radius² × length. For a 4-inch inner-diameter pipe that is 10 feet long, that is 0.87 cubic feet, or 6.53 US gallons (24.71 liters).
- Rectangular duct formula: Volume = width × height × length. A 12 by 8 inch duct, 10 feet long, holds 6.67 cubic feet, or 49.87 gallons (188.78 liters).
- Diameter beats length: doubling the diameter quadruples the volume, while doubling the length only doubles it. Measure the diameter carefully — it matters most.
- Inner diameter counts, not outer: a pipe sold as 6-inch outside diameter with a 0.5-inch wall only holds the volume of a 5-inch bore. Use the Advanced options to subtract wall thickness.
- One cubic foot = 7.48 US gallons = 28.32 liters. That single conversion turns any pipe volume into a number you can use for heaters, pumps, and chemical dosing.
Contents
- How pipe volume is calculated
- Unit conversions
- Volume of common pipe sizes
- Inner diameter vs outer diameter
- Rectangular ducts
- Common mistakes
- Frequently asked questions
Related tools
Volume of horizontal, vertical, and rectangular tanks. Cylinder Volume Calculator
Volume of any cylinder, tank, or drum. Volume Calculator
Volumes for spheres, cones, boxes, and more.
How pipe volume is calculated
A pipe is a long cylinder, so its internal volume is its cross-sectional area times its length. For a round pipe, the cross-section is a circle: area = π × radius², where radius is half the inner diameter. Multiply by the length (in the same units) and you have the volume.
Worked example — round pipe. A pipe with a 4-inch inner diameter and a length of 10 feet: radius = 2 inches, area = π × 2² = 12.57 square inches, length = 120 inches. Volume = 12.57 × 120 = 1,507.96 cubic inches = 0.87 cubic feet = 6.53 US gallons = 24.71 liters.
Worked example — rectangular duct. A duct 12 inches wide and 8 inches high, 10 feet long: area = 12 × 8 = 96 square inches, length = 120 inches. Volume = 96 × 120 = 11,520 cubic inches = 6.67 cubic feet = 49.87 gallons = 188.78 liters.
Metric works the same way: a 100 mm diameter pipe that is 2 meters long holds 15.71 liters (4.15 US gallons). The calculator converts every unit to inches first, then converts the result, so mixed units (millimeters for diameter, meters for length) work without manual conversion.
Unit conversions
| From | Equals |
|---|---|
| 1 cubic foot | 7.48052 US gallons, 28.3168 liters, 1,728 cubic inches |
| 1 US gallon | 231 cubic inches, 3.78541 liters, 0.133681 cubic feet |
| 1 liter | 1,000 cubic centimeters, 0.264172 US gallons, 61.0237 cubic inches |
| 1 cubic meter | 1,000 liters, 264.172 US gallons, 35.3147 cubic feet |
| 1 foot of length | 12 inches, 30.48 cm, 0.3048 meters |
Note the difference between US gallons and imperial (UK) gallons: 1 imperial gallon = 1.20095 US gallons. This calculator reports US gallons, the standard used in US plumbing.
Volume of common pipe sizes (per 100 feet, round pipe, inner diameter)
| Inner diameter | Cubic feet | US gallons | Liters |
|---|---|---|---|
| 1 inch | 0.55 | 4.08 | 15.44 |
| 2 inches | 2.18 | 16.32 | 61.78 |
| 4 inches | 8.73 | 65.28 | 247.11 |
| 6 inches | 19.63 | 146.88 | 556.00 |
These figures scale directly with length: a 50-foot run holds half the 100-foot figure, and a 200-foot run holds double. The jump from 4 inches to 6 inches nearly triples the volume, which is why upsizing a pipe changes drain-down and fill times far more than most people expect.
Inner diameter vs outer diameter
Pipes are often sold by nominal size or outer diameter, but only the bore carries fluid. A 6-inch outer-diameter pipe with a 0.5-inch wall has a 5-inch inner diameter, and its volume per foot is 235.62 cubic inches (1.02 gallons per foot) — about 31 percent less than a true 6-inch bore would hold. If you only know the outer diameter, open Advanced options, choose "Outer diameter (OD) minus wall," and enter the wall thickness; the calculator subtracts twice the wall (once per side) before computing.
Where nominal pipe sizes are stamped on the pipe, the actual inner diameter depends on the schedule (wall thickness class). When precision matters — chemical dosing, water-heater sizing, pressure testing — measure the bore directly or check the manufacturer's schedule table rather than trusting the nominal size.
Rectangular ducts
Rectangular ducts, used for HVAC air and sometimes for drainage channels, have a rectangular cross-section, so volume is simply width × height × length. Unlike a round pipe, there is no π in the formula and no diameter question — but the same rule applies: use the inside dimensions. Duct board and insulation thickness reduce the free area, so measure the clear opening, not the outside of the duct.
Common mistakes
- Using diameter instead of radius. Forgetting to halve the diameter quadruples the result, because area depends on radius squared.
- Mixing units. Diameter in inches with length in feet must be converted to a common unit first. This calculator does that conversion for you.
- Using outer diameter as bore. On thick-walled pipe this overstates volume by 20 to 40 percent. Subtract the wall, or measure the bore.
- Confusing US and imperial gallons. An imperial gallon is about 20 percent larger. If a UK supplier quotes gallons, convert before comparing with this calculator's US-gallon result.
- Ignoring partial fill. A drain pipe running half full holds half the full-bore volume. Use the fill-level option in Advanced options for drain and gravity-flow estimates.
How it works
Choose round pipe or rectangular duct, then enter the size and length in whatever units you measured in.
Open Advanced options to enter an outer diameter with wall thickness, or a partial fill level for drain lines.
See gallons, liters, cubic feet, and cubic meters at once, and use the result for heaters, pumps, dosing, or winterizing.
Frequently asked questions
How do you calculate the volume of a pipe?
Multiply the cross-sectional area by the length. For a round pipe: volume = π × (inner diameter ÷ 2)² × length. Example: a 4-inch inner-diameter pipe, 10 feet long, holds 1,507.96 cubic inches = 0.87 cubic feet = 6.53 US gallons.
How many gallons are in a 100-foot length of 4-inch pipe?
About 65.28 US gallons (247.11 liters). A 4-inch bore holds 0.65 gallons per foot, so 100 feet holds 65.28 gallons.
Do I use inner diameter or outer diameter?
Inner diameter. Only the bore carries fluid. If you only know the outer diameter, subtract twice the wall thickness first — the calculator's Advanced options do this for you.
What is the volume of a rectangular duct?
Width × height × length, using inside dimensions. A 12 by 8 inch duct, 10 feet long, holds 6.67 cubic feet (49.87 gallons).
How do I convert pipe volume to gallons?
Divide cubic inches by 231, or multiply cubic feet by 7.48052. For example, 1,507.96 cubic inches ÷ 231 = 6.53 US gallons.
Does a half-full drain pipe hold half the volume?
For a rectangular channel, yes exactly. For a round pipe the relationship is close but not exact at partial depths, because the cross-section is a circular segment. The fill-level option gives a linear estimate, which is fine for planning but not for precision flow engineering.
More volume tools
Horizontal, vertical, and rectangular tanks. Cylinder Volume Calculator
Any cylinder, drum, or tube. Volume Calculator
Spheres, cones, boxes, and more shapes. Concrete Calculator
How much concrete a slab or footing needs. Cubic Feet Calculator
Convert any volume to cubic feet.
Disclaimer: This calculator provides general information for planning and estimation. Actual pipe capacity depends on the measured inner diameter, fittings, and installation conditions. For regulated plumbing, pressure testing, or chemical dosing, verify dimensions with the pipe manufacturer and consult a licensed professional. Results are estimates, not engineering advice.