Internal geometry and water level
Use internal measurements for a rectangular tank, a vertical flat-ended cylinder or a horizontal flat-ended cylinder. The calculator reports full geometric capacity, current water volume and unfilled geometric volume. Full capacity is not a recommended operating limit or usable storage rating. Water depth is measured vertically from the lowest internal bottom in a level tank.
Rectangular and vertical-cylinder formulas
For internal length L, width W, full height H and water depth h, a rectangular tank has full volume LWH and water volume LWh. For a vertical cylinder of internal diameter D, full volume is πD²H/4 and water volume is πD²h/4. In these two shapes, the water-volume fraction is h/H because cross-sectional area is constant with height.
Horizontal cylinders fill nonlinearly
For an internal radius R=D/2 and straight internal length L between flat end faces, full cylinder capacity is πR²L. At water depth h from the lowest bottom, water volume is L × [R²acos((R−h)/R) − (R−h)√(2Rh−h²)], with inverse cosine in radians. Half-depth is half-volume; quarter-depth is not quarter-volume. Empty h=0 and full h=2R are handled directly.
The implementation evaluates the smaller lower circular segment and its complement near full depth. A half-angle expression and small-angle series avoid subtracting nearly equal values for very shallow depths. The unfilled small segment is calculated separately near full depth instead of losing it by subtracting two rounded full volumes. Cylinder results still use floating-point π and trigonometry, not arbitrary-precision calibration.
US rectangular example
An internal 10 × 6 × 5 ft rectangular tank has 300 ft³ full capacity. At 3 ft water depth it contains 180 ft³, or 1,346.493506 US liquid gallons and 5,097.03238656 liters. Its unfilled geometric volume is 120 ft³ and its volume fill is 60%. Dimensions are editable arithmetic examples; usable storage may be smaller because of operating limits or equipment.
Metric and horizontal examples
A 2 × 1 × 1 m rectangular tank at 0.75 m water depth contains 1.5 m³, or 1,500 liters, with 2 m³ full capacity. A vertical cylinder of 2 m internal diameter and 3 m internal height contains 1.5π = 4.712388980 m³ at 1.5 m water depth, exactly half its full 3π m³ capacity.
A horizontal flat-ended cylinder of 2 m internal diameter and 4 m straight length has full capacity 4π = 12.566370614 m³. At 0.5 m water depth its volume is 4π/3 − √3 = 2.456739397 m³, approximately 19.5501% full rather than 25%. At 1 m depth it contains 2π = 6.283185307 m³; at 2 m depth it is geometrically full.
Units and validation
All dimensions accept ft, in, yd, m, cm or mm independently. Selectors retain the entered number; select the unit in which that dimension was measured. Results use m³, ft³, liters and clearly labeled US liquid gallons. One US liquid gallon is 231 in³, exactly 3.785411784 liters. Imperial gallons are not displayed.
Positive tank dimensions must be 0.000001–1,000,000 ft equivalent. Water depth may be zero and must not exceed internal height, or diameter for the horizontal orientation. Inputs accept up to 18 decimal places. Full capacity must not exceed one million m³. These are software bounds, not acceptable tank-design limits. Hidden dimensions for inactive shapes are ignored. Exact decimal comparisons validate water depth before numerical cylinder evaluation; displayed values round to three decimals.
What the result excludes
No dished or domed heads, tapered bottoms, wall thickness, internal obstructions, tilted geometry, dead storage, operating freeboard, usable reserve or gauge calibration is inferred. A rounded display of 100% can coexist with a very small unfilled geometric volume. Use the supplier’s tank chart and actual operating limits where measurement accuracy matters. Structural strength, pressure, pumping, flow, treatment and potable-water suitability are not calculated.
Primary references
Wolfram MathWorld: Horizontal Cylindrical Segment gives the circular-segment volume and its empty, half and full cases. The numerical stabilization described here is an implementation choice for that geometry. See NIST SP 811 conversion factors for measurement conversions. References checked 4 November 2026. No supplier endorsement or independent engineering review is claimed.
Related calculations
Use Pool Volume for pool footprints and depths. For current general volume conversion, use Unit Converter.