Xerobit

Volume Calculator for Tank: Cylindrical, Rectangular and Oval

A vertical cylinder 48 in across and 60 in tall holds about 470 US gallons, which is 391.4 UK gallons or 1,779.2 liters. This volume calculator for tank sizing takes a shape, up to three dimensions and a unit (inches, feet, centimeters or meters) and returns the geometric capacity in all three liquid units. It runs in your browser and nothing is uploaded.

Result

  • Volume (US gal)
    470
  • Volume (UK gal)
    391.4
  • Volume (liters)
    1,779.2

How to use the tank volume calculator

  1. In the volume calculator for tank capacity, pick the tank shape: vertical cylinder, rectangular, or horizontal round tank (labelled oval).
  2. Fill the first two boxes: diameter and height for a cylinder, length and width for a horizontal tank, length and height for a rectangle. A rectangle also needs the third box (depth).
  3. Select the input unit that all dimensions share.
  4. Read the capacity in US gallons, UK gallons and liters.

Formulas for each shape

All volumes are computed in cubic inches first.

  • Vertical cylinder: V = pi x (d / 2)^2 x h. For d = 48 in and h = 60 in, V = pi x 576 x 60 = 108,573.44 cubic inches.
  • Rectangular: V = length x width x depth. A 4 ft x 3 ft x 2 ft box is 24 cubic feet.
  • Horizontal round tank (the Oval option): V = pi x (w / 2)^2 x l, where w is the width of the circular cross-section and l the straight length. A 120 cm long tank that is 48 cm wide holds pi x 24^2 x 120 = 217,147 cubic centimeters.

The Oval option treats the cross-section as a true circle, so it does not model an elliptical tank, and it ignores domed ends.

Method and sources

Lengths are converted to inches with 1 in = 2.54 cm exactly (the 1959 international yard and pound agreement, listed in NIST SP 811, 2008 edition) and 1 ft = 12 in. Volume in cubic inches is converted with two exact definitions: 1 US gallon = 231 cubic inches = 3.785411784 liters (NIST SP 811, Appendix B), and 1 UK gallon = 4.54609 liters. The liter equals one cubic decimeter, as in the BIPM SI Brochure (9th edition, 2019, with 2022 update). The circle area uses the full-precision value of pi, not 3.14159.

Worked results from the tool

Outputs of the volume calculator for tank shapes, checked against the formulas above.

InputUS galUK galLiters
Cylinder 24 x 36 in70.50258.705266.9
Cylinder 36 x 48 in211.5176.1800.6
Cylinder 48 x 60 in470391.41,779.2
Cylinder 60 x 72 in881.3733.83,336
Box 4 x 3 x 2 ft179.5149.5679.6
Cylinder 2 m x 3 m2,489.82,073.29,424.8

A drum 22.5 in across and 33.5 in tall gives 57.662 US gallons at the brim, the size class of a 55-gallon drum.

Rounding and invalid input

Results are trimmed to 12 significant digits, then shown with 3 decimals below 100 gallons or liters and 1 decimal at 100 or more. Trailing zeros are dropped, so 470.0149 gallons appears as 470.

  • A zero, negative or empty dimension returns an error.
  • A rectangle without a depth returns an error. For cylinders the third box is ignored, so 10 cm x 10 cm with depth 99 gives 0.785 liters.
  • Very small tanks round to 0: a cylinder 0.001 in by 0.001 in displays 0 gallons.
  • Very large inputs are formatted in full, for example a 1,000,000 m by 1,000,000 m cylinder shows about 785,398,163,397,000,000,000 liters.

Capacity versus usable volume

The result is the volume to the brim of a perfect shape. Tanks with domed tops, conical bottoms or internal baffles hold less, and outdoor liquid needs room to expand, so the usable volume is lower than the brim figure. Use the manufacturer's rating for regulated fills. For aquariums see the fish tank volume calculator, and for long runs of tubing the pipe volume calculator.

Worked examples

ExampleInputResult
55-gallon drum sizeTank shape: cylindrical; Diameter / Length: 22.5; Height / Width: 33.5; Input unit: inVolume (US gal): 57.662; Volume (UK gal): 48.013; Volume (liters): 218.3
Small rectangular cisternTank shape: rectangular; Diameter / Length: 4; Height / Width: 3; Depth: 2; Input unit: ftVolume (US gal): 179.5; Volume (UK gal): 149.5; Volume (liters): 679.6
Horizontal oval fuel tankTank shape: oval; Diameter / Length: 120; Height / Width: 48; Input unit: cmVolume (US gal): 57.364; Volume (UK gal): 47.766; Volume (liters): 217.1
Metric cylindrical tankTank shape: cylindrical; Diameter / Length: 2; Height / Width: 3; Input unit: mVolume (US gal): 2,489.8; Volume (UK gal): 2,073.2; Volume (liters): 9,424.8

FAQ

Why does the 48 x 60 inch cylinder show 470 and not 470.015?

Results are formatted to 3 decimals below 100 and 1 decimal from 100 up. The underlying value is 470.0149 gallons, which rounds to 470.0 and is shown without the trailing zero.

What does the Oval option actually calculate?

A horizontal cylinder with a circular cross-section: pi x (width / 2)^2 x length. It is not an elliptical tank formula and it does not account for partial fill levels.

Is a US gallon the same as a UK gallon?

No. A US gallon is 3.785411784 liters (231 cubic inches). A UK gallon is 4.54609 liters, about 20 percent larger. The tool shows both so the same tank reads 470 US gal or 391.4 UK gal.

Can I mix units, such as inches and feet?

No. Every dimension uses the one unit chosen in Input unit. Convert first: 4 ft 6 in is 54 in, or 4.5 ft.

Which dimensions go in which box?

Cylinder: diameter then height. Horizontal tank: length then width (diameter of the cross-section). Rectangle: length, height, then depth. The product is the same in any order.

How do I convert cubic inches to liters by hand?

One cubic inch is exactly 0.016387064 liters, so 108,573.44 cubic inches is 1,779.2 liters. Dividing by 231 first gives US gallons.

Does this volume calculator for tank partial fills work?

No. It returns total capacity only. For a part-filled vertical cylinder, replace the height with the liquid depth in the cylinder formula.