Formula and method
Volume = πr²L, with radius and length in meters. For diameter in mm, radius in meters is diameter/2,000.
Worked example
A 50 mm internal diameter over 10 m holds approximately 19.635 L when full, or about 5.187 US gallons at 1 gal = 231 in³ = 3.785411784 L exactly (NIST Handbook 44, Appendix C).