How the calculation works
US gallons = internal length × internal width × water height / 231, minus displacement. Liters = US gallons × 3.785411784. A regular hexagon has footprint area 3 × √3 × side² / 2. Multiply by the actual water height, then subtract the entered displacement. One inch = 2.54 cm; 1,000 cm³ = 1 L. Rectangular centimeter measurements use length × width × water height / 1,000 to obtain liters before displacement.
A worked example
24 × 12 × 12 inches is about 14.96 US gallons before displacement.
Before you use the result
Use internal dimensions and actual water height. The regular-hexagon mode requires six equal straight sides and six equal angles, with a constant footprint and vertical walls; enter one side, not the distance across the tank. A marketed hexagon or corner tank may have a different shape. Unspecified corner, bow-front, irregular or tapered tanks are not supported. The displacement input is always US liquid gallons, even when lengths are centimeters. Enter actual submerged displacement rather than loose substrate bulk volume: water can occupy spaces between particles. The result is an estimate and does not specify stocking, treatment doses, filter selection, safe water changes, structural capacity or sump operating reserve. The rectangle default and published example are retained. Inputs must be numeric, from zero through 1 billion with at most nine decimal places; lengths must be positive. Each reported result is limited to 1 trillion. Small positive values use scientific notation; displayed decimals are approximate.