What the calculator gives
A horizontal cylindrical tank, filled to a level h, holds a volume that is not proportional to the level. The calculator returns the liquid volume in m³ and litres, the fill percentage of the diameter, and the full capacity, from the tank diameter, length and level.
The geometry
Seen from the end the tank is a circle; the liquid is a circular segment:
- V = L · [ R²·acos((R−h)/R) − (R−h)·√(2Rh−h²) ], R = D/2
At h = 0 the segment is empty, at h = R it is exactly half the circle, and at h = D it is the whole circle. The formula is exact for a flat-ended cylinder.
Worked example
A tank 2 m in diameter and 5 m long, filled to 1 m:
- full volume = π/4 × 2² × 5 = 15.708 m³
- at h = 1 m the segment is half the circle, so V = 7.854 m³
- at h = 0.5 m the segment area is 0.614 m², so V = 3.071 m³, not 3.927 m³
The last line is the point: half the level is not half the volume. A dipstick or a level transmitter needs the curve, not a linear scale.
Level versus volume
The fill percentage shown is h/D, the level as a share of the diameter. It equals the volume percentage only at 0 %, 50 % and 100 %. A tank at 25 % level holds about 19.6 % of its volume; at 75 % level it holds about 80.4 %. For inventory and dosing, convert the level with the segment formula or a strapping table, not with a linear factor.
A level error does not cost the same volume everywhere. The volume change per unit of level is the chord width times the length — widest at half level, narrow near the ends. In the example above, a 5 mm reading error is about 50 L at half level, under 1 % of the 7.854 m³ present; at 0.1 m level the same 5 mm is about 22 L, but the tank then holds only 0.294 m³, so the error is over 7 % of the contents. Judge a level instrument for inventory or low-stock alarms by the volume error at the levels you act on, not by its millimetre specification alone.
Dished heads
Real tanks often have dished, elliptical or conical heads. The head volume is a separate term (for a 2:1 elliptical head, about 0.2618·D³ per head), and the level-to-volume relation changes near the ends. This calculator assumes flat ends, so for a headed tank use the maker’s strapping table or add the head volume from the tank drawing. The pipe velocity calculator and the flow rate converter cover the rest of the line.
Common mistakes
Using a linear level-to-volume factor. The error is largest at low levels; a quarter level is about 19.6 % of the volume, not 25 %.
Measuring from the wrong datum. Use the bottom of the shell; a nozzle or a gauge tapping shifts the zero.
Ignoring the heads. Dished heads add volume and change the low-level curve.
Using the outside diameter. The volume uses the internal diameter; wall thickness matters on small tanks.
Frequently asked questions
How do I calculate the volume of a horizontal tank?
V = L·[R²·acos((R−h)/R) − (R−h)·√(2Rh−h²)], with R = D/2, or use this calculator.
Is half level half volume?
Yes, exactly half at h = D/2 for a flat-ended cylinder; other levels are not linear.
What about a vertical tank?
V = π/4·D²·h, linear in level.
Does the calculator include the heads?
No. It assumes flat ends; add the head volume from the tank drawing or use the maker’s table.