Tank Volume Calculator
This tank volume calculator estimates liquid volume and full capacity for rectangular tanks and vertical or horizontal circular cylinders. It uses internal dimensions and liquid depth, with circular-segment geometry for a partly filled horizontal cylinder rather than treating depth fraction as volume fraction.
By Dr. Hassan Khames EliwaLast updated
Result
- Full capacity
- 12.566371 m³
- Liquid litres
- 6,283.1853 L
- Liquid US gallons
- 1,659.8420 US gal
- Filled
- 50.0000%
How it works
Select the shape before taking dimensions
A rectangular tank needs internal length, width and height. A vertical cylinder needs internal diameter and vertical height. A horizontal cylinder needs internal diameter and straight cylindrical length. Only fields relevant to the selected shape are validated; stale values in hidden fields do not affect the calculation.
Metric dimensions are metres and imperial dimensions are feet, including liquid depth. The calculation converts all active lengths to metres internally. Outputs report cubic metres, litres and US gallons for the liquid, along with full capacity and percentage filled. These are geometric volumes, not certified gauge-table values.
Depth is measured vertically from the lowest internal point to the liquid surface. For a horizontal cylinder, the greatest permissible depth is the internal diameter. For the other shapes it is the entered internal height. Depth may be zero or exactly full, but an overfilled depth is rejected rather than silently clipped into an apparently valid measurement.
Apply the appropriate cross section
A rectangular tank has constant horizontal area, so liquid volume is length multiplied by width multiplied by depth. A vertical cylinder likewise has constant horizontal area: circular base area multiplied by liquid depth. In both cases, fill percentage follows the fraction of height occupied, assuming the vessel truly matches the selected geometry.
A horizontal cylinder behaves differently. Near the bottom, a small depth occupies a narrow circular segment. Around the centerline, the same extra depth adds much more cross-sectional area. Volume is therefore segment area multiplied by cylindrical length, not full volume multiplied by depth divided by diameter.
The segment calculation uses radius and the smaller of liquid depth or empty depth above the liquid. It evaluates the smaller segment and subtracts from full capacity when the tank is above half full. Near empty or full, a small-angle series avoids subtracting nearly equal terms. Exact empty and full limits remain bounded, and roundoff is constrained so liquid volume never exceeds full capacity.
Check whether the real vessel is a cylinder
The horizontal model assumes flat ends perpendicular to the axis and a level tank. Dished heads, domed ends, conical bottoms, sloping floors, saddles intruding internally and internal coils are not represented. A tank with elliptical rather than circular cross section needs another model. Do not disguise those differences by adjusting the diameter until a convenient capacity appears.
A vessel installed out of level can have different liquid depths at opposite ends. A single depth then cannot characterize the entire cylinder using this formula. Use a suitable calibration method or supplier gauge table where accuracy is operationally important. Thermal expansion, liquid density, usable draw-off volume and safe operating limits are also outside the calculation.
Preserve the measurement basis
Record that dimensions are internal and state where the depth reading was taken. A sight gauge or level instrument may use an offset datum; translate it to bottom-referenced liquid depth before entry. Display precision should not be confused with the uncertainty of a tape measurement or an irregular tank wall.
Worked example
Scenario: half-full horizontal cylinder
A horizontal cylinder has a 2 m internal diameter and a 4 m straight length. At 1 m liquid depth, volume is 6.283185 m³, or 6283.1853 L and 1659.8420 US gal. Full capacity is 12.566371 m³ and fill is 50.0000%. Half-depth happens to mean half-volume at the centerline, not at arbitrary depths.
Scenario: imperial rectangular tank
A rectangular tank measures 10 ft by 4 ft internally and is 3 ft high. At a depth of 1.5 ft, liquid volume is 1.699011 m³, or 1699.0108 L and 448.8312 US gal. Full capacity is 3.398022 m³ and fill is 50.0000%. Hidden cylinder fields are irrelevant to this selection.
Expert tips
Common mistakes
- A quarter-depth horizontal cylinder does not contain a quarter of full capacity. The curved cross section makes the depth-to-volume relationship nonlinear.
- Outside shell dimensions and dished ends change the geometry. Use internal measurements and a separate end-volume model where the real vessel needs one.
- A stable depth reading cannot make an inclined tank level. Check installation alignment before applying the single-depth horizontal-cylinder formula.
Frequently asked questions
Can depth be zero?
Yes. Empty tanks return zero liquid volume and zero fill percentage.
Is full depth allowed?
Yes. Exact internal height or diameter returns full capacity.
Why is horizontal volume nonlinear?
The width of the circular liquid cross section changes with depth.
Are rounded ends included?
No. Cylinders here have flat ends and constant circular cross section.
Do hidden fields matter?
No. Only dimensions relevant to the selected tank shape are used and validated.
Is this a certified tank chart?
No. It is a geometric estimate, not a calibrated gauge table or safe operating limit.
Related calculators
Related guides
Construction & ProjectRoof pitch, rafters and slope: one triangle, three tradesOne labeled triangle connects roof pitch, percent grade, and rafter slope length, but a geometric answer is not a structural design or cutting list.15 November 2026 · 8 min read
Construction & ProjectHow to order concrete without running short or overpayingA field-focused guide to concrete quantities, thickness checks, sensible allowances and the delivery details that prevent expensive surprises.14 November 2026 · 7 min readSources and standards
About the author
Dr. Hassan Khames Eliwa holds a PhD in Construction & Built Environment and has more than 20 years of international project controls experience. He is Director of Eliwa Project Controls Limited in Auckland and founder of PMMilestone.org and PMMilestone.com.
Buy me a coffee