How the calculation works
Average depth = (front depth + back depth) / 2. Liters = length × width × average depth / 1,000 for centimeters, or × 0.016387064 for inches. Bags = round up(liters / labeled bag liters). Optional mass = liters × your product bulk density. A level regular-hexagon bed has area 3 × √3 × side² / 2, multiplied by its depth. Mass-to-volume mode divides mass by the entered bulk density after unit conversion; 1 lb = 0.45359237 kg and 1 ft³ = 28.316846592 L. Whole bags round up from the unrounded geometric quantity.
A worked example
A 60 × 30 cm footprint with 5 cm depth at both ends holds 9 L of substrate. A 4 L volume-labeled bag would require three bags. If a supplier specifically gives a bulk density of 1.5 kg/L, the same 9 L would weigh 13.5 kg; this density is only an arithmetic example.
Before you use the result
Rectangle mode fills the footprint with a straight slope between front and back. Hexagon mode requires a level bed in a regular six-sided footprint with equal sides and angles; enter one internal side, not the full width. Arbitrary mounds and hardscape displacement are excluded. Leave density and bag volume at 0 to skip them. Use product bulk density rather than solid-particle density; no universal conversion from liters to kilograms is assumed. Depth defaults are examples, not animal-care recommendations. Irregular, corner, bow-front or tapered footprints are not supplied. Mass-to-volume mode requires an actual product bulk density in the same moisture and packing condition as the measured mass; a 100 lb/ft³ default is only an illustrative input, not a universal gravel density. No species, depth, cleaning or product-suitability recommendation is made. Loose substrate bulk volume includes pore spaces and is not automatically water displacement. A tank’s gallon label does not establish its substrate footprint. All numeric inputs are nonnegative, at most 1 billion and nine decimal places; relevant lengths and inverse bulk density must be positive. Reported quantities are limited to 1 trillion and bag counts to 1 billion. Whole-bag decisions use unrounded arithmetic without an epsilon. Small positive values use scientific notation; other displayed decimals are approximate.