Cylinder & Water Tank Volume Calculator (Liters & Gallons)

Last updated

Computes a cylindrical tank's capacity as pi times radius squared times its length or height, and the liquid inside from a measured depth. An upright tank fills in proportion to depth; a tank on its side multiplies the circular segment area r² arccos((r − d)/r) − (r − d)√(2rd − d²) by its length. Results come in liters, US gallons of 231 cubic inches, imperial gallons of 4.54609 liters and cubic units, plus water weight at 20 °C.

Tank orientation
Liquid in the tank –
Tank capacity –
Fill level –
Gauge reading –
Liquid in US gallons –
Liquid in UK (imperial) gallons –
Weight if it is water at 20 °C –
The same weight in pounds –
Liquid, capacity and empty space by unit
Dipstick chart: depth to volume

Choose whether the tank stands upright or lies on its side, pick a unit, and enter the inside diameter, the length (or height, for an upright tank) and the depth of liquid measured with a dipstick. The calculator returns the liquid in liters, US gallons and UK gallons, the full capacity, the fill level, and what that liquid would weigh as water. Leave the depth blank to see the full tank. A dipstick chart below the results lists the volume at every tenth of the tank's diameter, or of its height when upright. The defaults describe a tank on its side, 120 cm across and 300 cm long, with liquid 90 cm deep: it holds 2,729.6 liters of a possible 3,392.92, so it is 80.45% full.

How the volume is worked out

Every cylinder is a circle pushed along a straight line, so its volume is the area of the circle at its end multiplied by its length. With a radius r, half the diameter, the full capacity is:

V = πr²L

For an upright tank, liquid of depth d is just a shorter cylinder, so the liquid volume is πr²d and the fill level is d divided by the height. A tank lying on its side is different, because it is wider in the middle than near the top and bottom. The liquid fills a circular segment, the part of the circle below a chord, and that shape is carried along the whole length. Eric Weisstein's MathWorld entry on the circular segment gives its area as the area of the wedge-shaped sector minus the triangle between the chord and the center, and its entry on the horizontal cylindrical segment multiplies that area by the length:

V = L [r² arccos((r − d) ÷ r) − (r − d) √(2rd − d²)]

MathWorld notes that this gives zero at d = 0, half the capacity at d = r and the whole capacity at d = 2r, and its circular segment entry notes that these formulas apply in the common case of finding the volume of fluid in a horizontal cylindrical tank from the height of the fluid. When the depth passes the halfway mark, r − d turns negative and the second term adds area instead of taking it away, so the one formula covers the whole range. A depth greater than the diameter (or the height, for an upright tank) cannot fit, and the calculator says so instead of returning a number.

Liquid volume is converted with exact factors. NIST Handbook 44 defines the inch as exactly 2.54 centimeters, so a cubic inch is exactly 16.387064 milliliters, and the foot as exactly 0.3048 meter, which makes a cubic foot 28.316846592 liters. A liter is a cubic decimeter, as the UK's Weights and Measures Act 1985 also puts it, so a cubic meter holds 1,000 liters.

The default tank, worked through

The tank is 120 cm across, so r = 60 cm, and the liquid stands d = 90 cm deep, so r − d = −30 cm. The arccos of −30 ÷ 60 = −0.5 is 2.094395 radians, or 120°, and 60² × 2.094395 = 7,539.82 square centimeters. The square root of 2 × 60 × 90 − 90² = 2,700 is 51.9615, and −30 times that is −1,558.85, which the formula subtracts. The segment therefore covers 7,539.82 + 1,558.85 = 9,098.67 square centimeters of the 11,309.73 in the whole circle.

Times the 300 cm length, that is 2,729,600 cubic centimeters, or 2,729.6 liters. The full tank holds π × 60² × 300 = 3,392,920 cubic centimeters, which is 3,392.92 liters, so the tank is 80.45% full and has 663.32 liters of space left. In other units the liquid is 721.08 US gallons, 600.43 UK gallons, 2.7296 cubic meters or 96.39 cubic feet.

The depth is three quarters of the diameter, yet the tank is more than three quarters full. Scaling the capacity by depth alone would give 2,544.69 liters, 184.91 short, because the bottom quarter of a lying tank is narrow and the middle is wide. Stand the same tank on its end, 300 cm tall, and 90 cm of liquid is exactly 30% of the height and 1,017.88 liters.

Reading the dipstick chart

The chart steps the depth by tenths of the diameter, or of the height for an upright tank. For the default tank, 12 cm of liquid is only 176.58 liters, 5.2% of the tank, while the step from 48 cm to 60 cm adds 429.1 liters. The curve is symmetric: the empty space above a liquid level of 90 cm equals the liquid below 30 cm, 663.32 liters in each case. A horizontal tank is a quarter full at 0.2980 of its diameter, 35.76 cm here, and three quarters full at 0.7020 of it. MathWorld calls finding that first depth the quarter-tank problem. The gauge reading puts the fill level as shown in fuel-gauge terms.

Liters, US gallons and imperial gallons

The calculator reports two gallons, and Handbook 44 puts the imperial one at about 20% larger. According to Appendix B of NIST Handbook 44, the American colonists adopted the English wine gallon of 231 cubic inches. England also had an ale gallon of 282 cubic inches. In 1824 Britain abandoned both for the imperial gallon, defined as the volume of 10 pounds of water at 62 °F, which works out to 277.42 cubic inches.

Both are now fixed in metric terms. Appendix C of the handbook sets the US gallon at 231 cubic inches exactly, which is 3.785411784 liters. Schedule 1 of the UK's Weights and Measures Act 1985 defines the gallon as 4.54609 cubic decimeters, under a heading for units that may not be used for trade except as supplementary indications. So the calculator divides liters by 3.785411784 for US gallons and by 4.54609 for UK ones. The volume converter uses the same two gallons, and converts US and UK pints, US cups and fluid ounces too.

What the water weighs

A liter of water weighs close to a kilogram, but not exactly. The NIST Chemistry WebBook lists the density of water at atmospheric pressure as 999.975 kilograms per cubic meter at 4 °C and 998.207 at 20 °C, and the calculator uses the 20 °C figure. The default tank's 2,729.6 liters therefore weigh 2,724.7 kg, or 6,007 lb at the exact 0.45359237 kilograms per pound in Handbook 44, and the full tank would weigh 3,386.8 kg, not counting the tank itself. Handbook 44 makes the same point in old units: a US gallon of water at 62 °F weighs about 8⅓ pounds. For heating oil, diesel or milk, the volume figures hold but the weight does not, since each liquid has its own density.

From the Rhind papyrus to Archimedes

Finding the volume of a round container is one of the oldest problems in written mathematics. Problem 41 of the Rhind Mathematical Papyrus, in T. Eric Peet's 1923 translation, works out "a circular container of diameter 9 and height 10": the scribe subtracts a ninth of the diameter, squares the remaining 8 to get 64, and multiplies by the height to get 640 cubic cubits. The scribe then adds half of that to express it as 960 khar, a measure of capacity for grain. The correct volume, π × 4.5² × 10, is 636.17, and the rule amounts to taking π as 256 ÷ 81, about 3.1605. Peet calls it "a very reasonable approximation". Peet accepts the scribe's own statement that the papyrus copies an older document from the reign of King Amenemmes III.

Archimedes went further. In the letter that opens On the Sphere and Cylinder, in T. L. Heath's 1897 edition, he tells Dositheus that a cylinder whose base is the greatest circle in a sphere, and whose height equals the sphere's diameter, is "half as large again as the sphere". Heath relates that Archimedes is said to have asked for a cylinder around a sphere to be carved on his tomb, and that Cicero, as quaestor in Sicily, found the tomb neglected and restored it. In Measurement of a Circle he showed that the ratio of a circle's circumference to its diameter, π, lies between 3 10/71 and 3 1/7.

Limits of the model

The calculator treats the tank as a straight cylinder with flat ends, lying exactly level or standing exactly upright. A tilted tank, a tank with domed or dished heads, or one with internal fittings will hold a different amount, and a manufacturer's own chart should then win. Measure the inside diameter where you can. A tank 120 cm across with 5 mm walls is 119 cm inside, and that 1 cm difference is 56.31 liters of capacity, about 1.66%. For round pours of concrete the same πr²h applies, though that calculator adds bag counts and waste.

Frequently asked questions

How do I calculate the volume of a cylindrical tank?

Multiply pi by the radius squared to get the area of the round end, then multiply by the length, or by the height for an upright tank. A tank 120 cm across and 300 cm long has a radius of 60 cm, an end area of 11,309.73 square centimeters and a capacity of 3,392,920 cubic centimeters, which is 3,392.92 liters, 896.31 US gallons or 746.34 UK gallons. Measure the inside diameter, since the walls take up space.

How do I work out the liquid in a horizontal tank that is partly full?

Find the area of the circular segment the liquid fills at the end of the tank and multiply it by the length. The segment area is r² arccos((r − d)/r) − (r − d)√(2rd − d²), where r is the radius and d the depth. In a 120 cm by 300 cm tank, liquid 90 cm deep fills a segment of 9,098.67 square centimeters, which gives 2,729.6 liters, or 80.45% of the tank. Depth is three quarters of the diameter, but the tank is more than three quarters full.

At what depth is a horizontal tank a quarter full?

At 0.2980 of its diameter, which is 35.76 cm in a tank 120 cm across. It is half full at exactly half the diameter, and three quarters full at 0.7020 of the diameter, or 84.24 cm. In an upright tank the fill always matches the depth, so a quarter of the height means a quarter full. Finding the quarter depth for a tank on its side is known as the quarter-tank problem.

Why does the calculator give two kinds of gallon?

The US gallon is 231 cubic inches, exactly 3.785411784 liters, and goes back to the English wine gallon that the American colonists adopted. Britain dropped that gallon in 1824 for the imperial gallon, now defined as 4.54609 liters, about 20% larger. The 2,729.6 liters in the default tank are 721.08 US gallons but only 600.43 UK gallons.

How much does the water in a tank weigh?

Fresh water at 20 °C has a density of about 998.2 kilograms per cubic meter, so a liter weighs just under a kilogram. The 2,729.6 liters in the default tank weigh 2,724.7 kg, or 6,007 lb, and the full tank would hold 3,386.8 kg. That load sits on whatever supports the tank, so check that the base or stand is rated for it.

Does the calculator handle tanks with domed or dished ends?

No. It treats the tank as a plain cylinder with flat ends. Rounded or dished heads hold extra liquid beyond the straight section, so the result undercounts them. For those, measure the straight cylindrical length and treat the result as a lower bound, or use the maker's tank chart.

Sources

  1. Circular Segment (Eric W. Weisstein), MathWorld, Wolfram Research
  2. Horizontal Cylindrical Segment (Eric W. Weisstein), MathWorld, Wolfram Research
  3. NIST Handbook 44, Appendix C: General Tables of Units of Measurement, National Institute of Standards and Technology, 2026
  4. NIST Handbook 44, Appendix B: Units and Systems of Measurement, Their Origin, Development, and Present Status, National Institute of Standards and Technology, 2026
  5. Weights and Measures Act 1985, Schedule 1: Definitions of Units of Measurement, legislation.gov.uk, The National Archives
  6. Thermophysical Properties of Fluid Systems: Water at 0.101325 MPa, NIST Chemistry WebBook, SRD 69
  7. The Works of Archimedes, edited by T. L. Heath, Cambridge University Press, via Internet Archive, 1897
  8. The Rhind Mathematical Papyrus, British Museum 10057 and 10058 (T. Eric Peet), University Press of Liverpool, via Internet Archive, 1923