Inner diameter and length
Cylinder volume is V = πr²L, where r is half the inner diameter — inner, not outer. Litres follow SI: 1 L = 0.001 m³ (NIST Handbook 44 – 2026 Appendix C: the liter is a special name for the cubic decimetre; 1 000 cubic decimetres = 1 cubic metre; the volume table lists 1 L = 0.001 m³). The US liquid gallon is taken from the same appendix: 1 US liquid gallon = 231 in³ exactly, with the international inch 1 in = 0.0254 m exactly. Imperial gallons are listed separately, from the UK Weights and Measures Act 1985, Schedule 1 Part VI: 1 Imperial gallon = 4.54609 cubic decimetres = 4.54609 L exactly, and are never mixed with US gallons. This is empty-pipe capacity, not flow, pressure, or fill time.
This is an empty-pipe capacity estimate, not flow, pressure, or fill time. The US liquid gallon and the Imperial gallon are different units.