Tube Volume Calculator
This tube volume calculator works out the volume of a hollow cylinder, the material in a pipe's wall, from the outer diameter, inner diameter and length. It also shows the pipe's inside capacity, how much water it holds, and the wall thickness. The answer updates as you type.
Tube Volume Calculator
Tube volume formula
Material (the wall): V = π/4 × (D² − d²) × l Inside capacity: V = π/4 × d² × l D = outer diameter, d = inner diameter, l = length Wall thickness = (D − d) ÷ 2 Surface area = π(D + d)l + π/2 × (D² − d²) (outside, inside and both ends)A tube is a cylinder with a smaller cylinder removed from the middle. The wall's volume is the big one minus the hole. Using diameters, the area of a circle is π/4 × d², which is why the π/4 appears.
Worked example: a 10 ft pipe
A pipe is 4 in across the outside, 3.5 in across the inside, and 10 ft (120 in) long. Its wall is (4 − 3.5) ÷ 2 = 0.25 in thick.
Material = π/4 × (4² − 3.5²) × 120 = π/4 × 3.75 × 120 = 353.43 in³ Inside = π/4 × 3.5² × 120 = 1,154.54 in³ = 18.92 liters = 5 US gallonsThe wall itself is 353.43 in³, which is 5.79 liters. The pipe holds about 5 gallons of water when full.
Material or capacity?
Which number you need depends on the job. To work out weight, cost of material or concrete for a cylindrical form, use the wall volume. To find how much liquid a run of pipe holds, for example when filling or draining a heating loop or irrigation line, use the inside capacity. Pipe is sold by nominal size, which isn't exactly either diameter, so measure or look up the actual outer diameter and wall thickness.
For other shapes, the volume calculator has a quick calculator for each one, and links to its own page.
Frequently asked questions
What is the volume of a tube?
The outer cylinder minus the hole: V = π/4 × (D² − d²) × l. A 10 ft (120 in) pipe that's 4 in outside and 3.5 in inside has π/4 × (16 − 12.25) × 120 ≈ 353.4 cubic inches of material.
How much water does a pipe hold?
Use only the inner diameter: capacity = π/4 × d² × l. The same pipe holds π/4 × 12.25 × 120 ≈ 1,154.5 cubic inches, about 18.9 liters or 5 gallons. The calculator shows this as the inside capacity.
How do I get the weight of a pipe?
Multiply the material volume by the material's density. Steel is about 0.284 lb per cubic inch, so 353.4 cubic inches of steel would weigh about 100 lb. Real pipe sizes are nominal, so check the actual outer diameter and wall thickness.
See also
- Cylinder Volume Calculator: Volume of a cylinder or round tank from radius and height.
- Capsule Volume Calculator: Volume of a cylinder with rounded (hemispherical) ends.
- Frustum Volume Calculator: Volume of a truncated cone: buckets, pots, cups and lampshades.
- Rectangular Prism Volume Calculator: Volume of a box, room or rectangular tank in gallons and liters.
Last updated: November 28, 2026