Liquid Tank Volume Calculator: How to Find Capacity
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
A liquid tank volume calculator works out the capacity of a tank from its shape and dimensions, returning the volume in litres, cubic metres, US gallons, or imperial gallons. You enter the tank’s measurements (length, width, height, diameter, or radius) and the calculator applies the geometric formula for that shape to give the total volume and, in many cases, the volume at a given fill level.
Formula
The formulas depend on the tank’s shape. For a vertical cylinder (the most common type), the total volume is the cross-sectional area multiplied by the height:
V = π × (d/2)² × h
where V is the volume in cubic metres (m³), d is the internal diameter in metres, h is the height (or length) in metres, and π ≈ 3.14159. To convert to litres, multiply by 1,000 (1 m³ = 1,000 L). For US gallons, multiply cubic metres by 264.172; for imperial gallons, by 219.969.
For a horizontal cylinder (a tank lying on its side), the total volume is the same formula, but the partially filled volume uses the circular segment area:
V_fill = L × (r² × acos((r – h)/r) – (r – h) × √(2rh – h²))
where L is the tank length, r is the radius (d/2), h is the fill depth from the bottom, and acos is the inverse cosine in radians.
For a rectangular tank (a box):
V = length × width × height
For a sphere:
V = (4/3) × π × r³
All dimensions must be in the same unit (e.g., all metres or all feet). If you mix units, the result will be off by a factor of 12³ (or 3.28³) or more.
Worked Example
Using the default values from the calculator above: a vertical cylinder with diameter 1.2 m, length (height) 2.5 m, and fill level 0.6 m.
- Radius = 1.2 / 2 = 0.6 m
- Total volume = π × (0.6)² × 2.5 = 3.14159 × 0.36 × 2.5 = 2.827 m³
- Convert to litres: 2.827 × 1000 = 2,827 L
- Fill volume (vertical cylinder, simple: area of circle × fill height) = π × (0.6)² × 0.6 = 3.14159 × 0.36 × 0.6 = 0.679 m³ = 679 L
- Fill percentage = 679 / 2827 × 100 = 24.0%
The calculator’s first output shows 2,827 L, matching the manual calculation.
How to Use a Liquid Tank Volume Calculator
Using one is straightforward, but accuracy depends on the numbers you enter. Follow these steps:
- Identify the tank shape – most calculators offer cylinder, rectangular, sphere, and sometimes horizontal cylinder or elliptical. Choose the one that matches your tank.
- Measure the internal dimensions – not the outside. Wall thickness can be significant on large tanks; using outside dimensions overestimates volume by the wall thickness cubed.
- Use consistent units – if you measure in inches, convert to feet or metres before entering. Many calculators have unit dropdowns; if not, do the conversion yourself (1 inch = 0.0254 m, 1 foot = 0.3048 m).
- For horizontal cylinders, you also need the fill depth (the height of the liquid from the bottom) to get the partial volume. The calculator will ask for it.
- Read the result – check whether the output is in litres, cubic metres, or gallons. If you need a different unit, convert: 1 m³ = 1,000 L = 264.172 US gal = 219.969 imp gal.
Common Mistakes and How to Avoid Them
The most frequent errors people make with tank volume calculations are:
- Mixing units – entering diameter in metres and length in centimetres, for example. Always convert everything to the same unit first.
- Using outside dimensions – for a tank with 10 mm walls, the internal diameter is 20 mm less than the outside. On a 1 m tank, that’s a 2% error in diameter, which becomes a 6% error in volume (since volume scales with diameter²).
- Forgetting the fill level – a horizontal cylinder’s partial volume is not proportional to the fill depth. At half depth, the volume is exactly half, but at quarter depth it is only about 19.5% of total, not 25%.
- Rounding too early – if you round π to 3.14, you introduce a 0.05% error, which is fine for most purposes, but if you round intermediate results, errors accumulate. Keep full precision until the final step.
- Confusing US and imperial gallons – a US gallon is 3.785 L, an imperial gallon is 4.546 L. They differ by about 20%, so using the wrong one can be a costly mistake.
When to Use a Tank Volume Calculator
These calculators are useful in a wide range of situations:
- Home brewing – to know how much liquid a fermenter or kettle holds, or to calculate the volume of a partially filled conical fermenter.
- Aquariums – to determine water volume for dosing medications or fish stocking levels. Note that the actual water volume is less than the tank volume because of substrate, decorations, and the fact that water doesn’t fill to the very top.
- Fuel storage – for diesel, gasoline, or heating oil tanks, to estimate how much fuel is left from a dip reading.
- Chemical and process industries – to size tanks, plan batches, and monitor inventory.
- Rainwater harvesting – to calculate how much water a cistern or barrel can collect, based on roof area and rainfall.
- Septic and water tanks – to estimate capacity for pumping schedules or treatment planning.
In all cases, the calculator gives a theoretical maximum volume. Real tanks have fittings, baffles, and internal structures that reduce usable volume. Always leave a safety margin (typically 10–20%) when using the result for planning.
Limitations of the Formula
The formulas assume a perfect geometric shape – a perfect cylinder, a perfect sphere, or a rectangular box with flat sides. Real tanks often have:
- Dished or elliptical ends – common on pressure vessels. The extra volume from the heads is not accounted for by the simple cylinder formula. For a standard 2:1 elliptical head, the additional volume is about 0.13 × d³ (where d is diameter).
- Sloped bottoms – many tanks are not flat-bottomed; they have a cone or slope to aid drainage. The volume below the slope is a cone or frustum, which needs its own calculation.
- Internal components – agitators, coils, sensors, and baffles displace liquid. For precise measurements, you need to subtract their volumes or calibrate the tank with a known amount of water.
- Thermal expansion – liquids expand when heated. A tank that is 100% full at 10°C may overflow at 30°C. This is especially relevant for petroleum products and water in hot climates.
For most everyday purposes, the simple formulas are accurate to within a few percent, which is acceptable. For regulatory or safety-critical applications, you need a professional tank calibration (often done by strapping, which measures the actual volume at every height).
Frequently Asked Questions
How do I calculate the volume of a horizontal cylinder tank?
For a horizontal cylinder, the total volume is π × (d/2)² × L, where L is the length. The partial volume at a fill depth h is L × (r² × acos((r – h)/r) – (r – h) × √(2rh – h²)). This formula is more complex because the cross-section is a circular segment, not a full circle. Many online calculators have a dedicated horizontal cylinder mode.
What is the difference between US gallons and imperial gallons?
A US gallon is 231 cubic inches (about 3.785 litres). An imperial gallon is 277.42 cubic inches (about 4.546 litres). So an imperial gallon is about 20% larger. When you see “gallons” on a product or calculator, it’s usually US gallons unless it says imperial. Always check the unit in the output.
Can I use the calculator for a tank that is not a perfect cylinder?
If the tank has dished ends, a sloped bottom, or is elliptical, the simple formulas will be inaccurate. For dished ends, you can add the head volume (for a 2:1 elliptical head, about 0.13 × d³ per head). For other shapes, you may need to break the tank into sections and calculate each separately, or use a tank strapping chart from the manufacturer.
How do I convert cubic metres to litres?
Multiply the volume in cubic metres by 1,000. So 1.5 m³ = 1,500 litres. To convert to US gallons, multiply by 264.172 (1 m³ = 264.172 US gal). To convert to imperial gallons, multiply by 219.969.
Why does the fill percentage not match the fill depth percentage?
For a vertical cylinder or rectangular tank, the volume is directly proportional to the fill height, so 50% height = 50% volume. But for a horizontal cylinder or sphere, the cross-sectional area changes with height. At 25% of the diameter, the volume is only about 19.5% of the total; at 75% height, it’s about 80.5%. This is because the tank is narrower near the bottom and top.
What is the most accurate way to measure tank volume?
The most accurate method is to fill the tank with a known volume of liquid (using a flow meter or a calibrated container) and record the level at each increment. This produces a strapping table that accounts for all irregularities. For a quick estimate, the geometric formula is usually within 5% for a well-made tank.
Related
Formula used
in shape | Tank shape | Cylinder=1, Rectangular=2, Sphere=3 | 1 in d | Diameter | m | 1.2 | 0 in l | Length (cyl/rect) | m | 2.5 | 0 in h | Height (rect) | m | 1.0 | 0 in fill | Fill level | m | 0.6 | 0 out vol_total | Total volume | L | (shape == 1 ? pi * (d/2)^2 * l : shape == 2 ? l * h * d : (4/3) * pi * (d/2)^3) * 1000 | 0 out vol_fill | Volume at fill level | L | (shape == 1 ? l * (d/2)^2 * (acos(1 - 2*fill/d) - sin(acos(1 - 2*fill/d)) * cos(acos(1 - 2*fill/d))) : shape == 2 ? l * d * fill : (pi * fill^2 * (3*(d/2) - fill)) / 3) * 1000 | 0 out pct | Fill percentage | % | vol_fill / vol_total * 100 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.