About this tool
Knowing what a tank holds, and how much is left in it, matters for heating oil and diesel deliveries, rainwater and drinking water storage, septic and chemical tanks, aquariums and brewing. A dipstick or sight gauge gives you the liquid height, but in any tank that is not a straight-sided box or an upright cylinder the volume does not rise evenly with the height.
A horizontal cylinder filled to a quarter of its diameter, for example, holds only about 19.6% of its capacity, and at three quarters it holds about 80.4%. This calculator applies the exact geometry of each shape, so you can read the contents from a measured level instead of guessing from a percentage of the height.
How it works
Choose the tank shape and the unit you measured in, then enter the inside dimensions. Add the liquid height, measured from the lowest point inside the tank, to see how much it holds now. The result shows the capacity, the liquid volume, how full the tank is and the space left, in liters, cubic meters, US and imperial gallons and cubic feet.
In an upright tank with straight walls the volume rises in step with the height. In a horizontal cylinder the liquid surface cuts the round end as a chord, so the wetted cross-section is a circular segment with area for radius and liquid height ; the volume is that area times the length . Capsule tanks add their rounded ends as a sphere filled to the same height, oval tanks stretch the circular segment by the ratio of width to height, and a cone-bottom tank fills its cone first.
Example
A horizontal cylindrical tank is 48 inches in diameter and 96 inches long. Its capacity is cubic inches, or US gallons.
With 12 inches of liquid, a quarter of the diameter, the segment area is square inches, 19.55% of the circle. The tank holds cubic inches, about 147 gallons, although the level is at 25% of the height.
Assumptions and limits
Enter inside dimensions: wall thickness, baffles, pipes, heating coils and sludge at the bottom all reduce the usable volume. Real tank ends are often shallow dished heads rather than full hemispheres, so the capsule shapes overstate their volume slightly; for those tanks, the manufacturer's chart is more accurate.
The tank is assumed to be level. A tilted horizontal tank, or a dipstick that does not reach the lowest point, gives a different reading. Use the results as an estimate for planning deliveries and checking levels, not for billing or legal measurement.
Frequently asked questions
How do I calculate the volume of a cylindrical tank?
Multiply the area of the round end by the length or height: , where is half the inside diameter. A tank 1 m across and 2 m high holds cubic meters, which is 1,571 liters or about 415 US gallons.
How do I find the volume of liquid in a horizontal tank?
Measure the liquid height from the bottom, work out the circular segment area for that height and multiply it by the tank length. The percentage full is not the same as the percentage of the height: at half the diameter the tank is exactly half full, but at a quarter of the diameter it holds only about 19.6% of its capacity.
How many gallons are in a cubic foot or a cubic meter?
One cubic foot holds about 7.48 US gallons or 6.23 imperial gallons. One cubic meter is 1,000 liters, about 264.2 US gallons or 220 imperial gallons. A US gallon is 3.785 liters and an imperial gallon 4.546 liters.
Which dimensions should I measure?
Measure the inside diameter or width, the length and the height, or measure the outside and subtract twice the wall thickness. For a capsule tank, measure the straight cylindrical part separately from the rounded ends; for a cone-bottom tank, measure the cylinder and the cone heights separately.
Why doesn't the result match my tank chart exactly?
Manufacturers' charts are based on the exact head shape, wall thickness and fittings of their tank, and some are calibrated by filling it. Differences of a few percent usually come from dished ends, internal parts or a tank that is not quite level.
Link with your values
Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.
| Parameter | Value | If omitted |
|---|---|---|
shapeTank shape | one of: vertical_cylinder, horizontal_cylinder, rectangular, horizontal_capsule, vertical_capsule, horizontal_oval, cone_bottom | default vertical_cylinder |
diameter_inDiameter | number; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed > 0 – 39370.07 in; used with shape = vertical_cylinder, horizontal_cylinder, horizontal_capsule, vertical_capsule, cone_bottom | required |
length_inLength | number; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed > 0 – 39370.07 in; used with shape = horizontal_cylinder, rectangular, horizontal_capsule, vertical_capsule, horizontal_oval | required |
width_inWidth | number; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed > 0 – 39370.07 in; used with shape = rectangular, horizontal_oval | required |
height_inHeight | number; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed > 0 – 39370.07 in; used with shape = vertical_cylinder, rectangular, horizontal_oval, cone_bottom | required |
cone_height_inCone height | number; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed > 0 – 39370.07 in; used with shape = cone_bottom | required |
fill_height_inLiquid height | number; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed 0–39370.07 in | optional |
volume_unitShow volume in | one of: l, m3, gal, gal_uk, ft3 | default gal |
Examples
?diameter_in=36&height_in=72&fill_height_in=50?shape=horizontal_cylinder&diameter_cm=120&length_cm=250&fill_height_cm=60&volume_unit=l?shape=rectangular&length_m=2&width_m=1&height_m=1.5?shape=horizontal_capsule&diameter_ft=4&length_ft=10?shape=vertical_capsule&diameter_ft=3&length_ft=6&volume_unit=ft3?shape=horizontal_oval&width_in=60&height_in=40&length_in=120?diameter_cm=100&height_cm=150&cone_height_cm=40
Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.
Result elements: [data-result-block="tank-volume"]