A cylinder and tank volume calculator, plus boxes, spheres and cones. Get the answer in gallons and liters as well as cubic units.
Cylinder and cone: diameter and height. Box: length, width (third box) and height. Sphere: diameter. Horizontal tank: diameter, length, and liquid depth in the third box.
Cylinder: π × radius² × height. Box: length × width × height. Sphere: 4/3 × π × radius³. Cone: one third of the cylinder with the same base and height. A horizontal tank that is partly full uses the area of the circle segment below the liquid, times the tank’s length. Results are converted to gallons, liters, cubic feet and cubic yards.
Multiply π by the radius squared and by the height. A cylinder 6 in across and 10 in tall: π × 3² × 10 ≈ 282.7 cubic inches, about 1.22 gallons.
Measure it in inches, work out the cubic inches, and divide by 231 (cubic inches per US gallon). Pick the horizontal tank shape for a partly full fuel or water tank on its side.
Multiply by 7.48. For cubic yards to gallons, multiply by about 202.