Formula and Method for Cylinder Volume in Gallons
Volume of a Cylinder:
V = π × r² × h
r = radius (½ × diameter); h = height or length
A cylinder's volume is the area of its circular cross-section times its height: V = π × r² × h, where r is the radius (half the diameter) and h is the height or length of the cylinder. Because a "gallon" is a unit of volume, this calculator also converts that raw cubic-unit volume into US liquid gallons, UK imperial gallons, and liters — useful for sizing water tanks, propane tanks, drums, pipes, and other cylindrical containers.
How the calculation works
Enter the cylinder's diameter and height (or length, for a tank lying on its side) and choose the unit they're both measured in. The calculator halves the diameter to get the radius, squares it, and multiplies by π and the height to get the raw volume in that unit's cubic form. It then converts every measurement to cubic centimeters internally and applies 1 US gallon = 3.785411784 liters and 1 UK imperial gallon = 4.54609 liters, so the gallon results are correct no matter which unit you picked. Diameter — not radius — is what most people measure with a tape measure across a tank or pipe, so double-check which one you're entering.
Common mistakes
- Diameter vs. radius: measuring across the cylinder gives the diameter. Using that number directly as the radius doubles the calculated volume — always halve the diameter first.
- Mixing units: keep diameter and height in the same unit before calculating; entering one in feet and the other in inches produces a badly wrong volume.
- US vs. UK gallons: a UK imperial gallon is about 20% larger than a US gallon (4.546 L vs 3.785 L) — using the wrong one under- or over-states capacity by roughly a fifth.
- Partial fill vs. full capacity: this formula gives the cylinder's total (100%) capacity. A horizontal tank filled only partway needs a circular-segment formula, not a simple percentage of this number.
Real-world applications
- Sizing water storage tanks, cisterns, rain barrels, and well casings
- Estimating propane, fuel oil, or chemical drum capacity in gallons
- Calculating pipe or pipeline segment volume for flow, dosing, or flush-out planning
- Converting aquarium, silo, or cylindrical planter dimensions into fill volume