Pipework
Pipe volume calculator
Add pipe segments using actual internal diameters and lengths. Find total capacity in litres, cubic metres, US liquid gallons and Imperial gallons.
Measure the internal diameter
Enter the actual internal diameter and length for each straight circular pipe segment. Add segments when diameters or lengths differ. Nominal DN/NPS and outside diameter do not identify the internal bore by themselves; obtain it from the exact pipe specification or a reliable measurement.
The result is the full internal capacity of the listed cylinders. It does not calculate flow, pressure loss, expansion-vessel size, treatment dosage or the volume of fittings, valves, radiators or equipment.
Cylinder formula and volume units
For internal diameter d and length L in metres, segment volume is V = π × d² × L / 4 in cubic metres. Total volume is the sum of segment volumes. One cubic metre equals 1,000 litres.
Length conversions use exactly 1 inch = 0.0254 m and 1 foot = 0.3048 m. One US liquid gallon is 231 cubic inches = 3.785411784 L; one Imperial gallon is 4.54609 L. The calculator labels both gallon types separately. A US dry gallon is a different unit and is not used.
Example: two pipe sizes over 10 m
- 20 mm internal diameter, 10 m long: π × 0.02² × 10 / 4 = 0.003141592654 m³ ≈ 3.14159 L.
- 40 mm internal diameter, 10 m long: ≈ 12.56637 L.
- Combined capacity: ≈ 15.70796 L.
Doubling the internal diameter quadruples capacity at the same length. Doubling the length doubles capacity. These examples describe geometry, not a nominal pipe product.
Why can the real system hold more or less?
Wall thickness affects the bore, and fittings or equipment add their own volumes. Deposits, liners, obstructions and non-circular sections can change the usable capacity. Include only segments represented by the stated circular-cylinder model; account for other components separately.
Sources and scope
- NIST: SI Units — Length supports the exact inch-to-metre relationship.
- NIST Guide to the SI, Appendix B.8 distinguishes US and Imperial gallon conversions. The US liquid factor here is derived from 231 cubic inches without rounding the intermediate conversion.
The cylinder model and examples are original. These references establish units, not a pipe sizing standard or local installation rule.