Overstocking is one of the most common causes of poor water quality and fish stress. This calculator applies two classic guidelines — the inch-per-gallon rule and the surface-area rule — to your actual fish list, then shows a capacity gauge so you can plan a balanced community before you buy.
How it works
You enter the net water volume, the tank’s surface dimensions, and a list of fish with their adult body lengths and counts. The tool sums the total inches of fish and compares them to two limits:
total_inches = Σ (adult_length × count)
inch_per_gallon = volume_in_gallons (≈ 1 inch / gallon)
surface_rule = (length × width) / 12 (≈ 1 inch / 12 sq inches)
capacity% = total_inches / stricter_limit × 100
The stricter of the two limits drives the capacity percentage, because the tank can only support as many fish as its weakest constraint allows.
Example and tips
A 20-gallon tank measuring 24 by 12 inches gives an inch-per-gallon limit of 20 inches and a surface-area limit of 24 inches, so the inch-per-gallon rule is stricter. Stocking six 2-inch tetras and one 4-inch fish totals 16 inches — about 80 percent capacity, a sensible target. Treat these rules as guard rails, not guarantees: research each species’ temperament, swimming level, and bioload, and favour stronger filtration and regular water changes over pushing the numbers.