What Is an Aquarium Calculator and How Does It Work?
An aquarium calculator converts a fish tank's length, width, and height into its water volume, then compares that volume — or the tank's surface area — against fish-length guidelines to estimate how many fish it can safely support. It works for rectangular, cylindrical, and bow front tanks, the three most common commercial aquarium shapes.
For a rectangular tank the formula is Volume = Length × Width × Height. For a cylinder it is Volume = π × (Diameter ÷ 2)² × Height. A bow front tank adds a curved section, so its volume is Volume = [(Length × Back Width) + (π × Length ÷ 2 × (Full Width − Back Width) ÷ 2)] × Height, where the second term approximates the elliptical bulge at the front of the tank.
Volume in cubic inches converts to US gallons by dividing by 231, since one US gallon equals 231 cubic inches; volume in cubic centimeters converts to liters by dividing by 1,000. This calculator shows both units regardless of which one you enter your dimensions in.
How to Use This Aquarium Calculator
Pick your tank shape, choose inches or centimeters, and enter the tank's dimensions. The calculator instantly shows volume in US gallons and liters, then estimates a safe fish stocking limit using two methods:
- Length / Width / Height: The straight-line inside dimensions of a rectangular or bow front tank. For a bow front, width is the flat back panel and full width is the widest point of the curved front.
- Diameter: The inside width of a cylindrical tank at its widest point.
- Total Fish Length: Optional — the combined adult (not juvenile) nose-to-tail length of every fish you keep or plan to keep, used to check your stocking level.
- Fish Body Type: Slender-bodied fish (tetras, danios, guppies) tolerate denser stocking than full-bodied fish (goldfish, cichlids, oscars), which need more surface area per inch of body length.
This calculator works in both imperial (inches, US gallons) and metric (centimeters, liters) units, so it applies equally to standard US tank sizes and the metric tank sizes common in Europe, Australia, and Asia.
What the Fish Stocking Numbers Mean
The classic “one inch of fish per gallon” rule is a simple starting point, but it only reliably applies to small, slim-bodied fish under about 3 inches long. A more accurate guideline is the surface-area method, which uses 12 square inches of water surface per inch of slender fish, or 20 square inches per inch of full-bodied fish, because dissolved oxygen enters the water through the surface, not the total volume.
| Method | Guideline | Best For |
|---|---|---|
| 1 inch per gallon | 1 in of fish per US gallon | Quick estimate for small, slim fish only |
| Surface area (slender) | 12 sq in of surface per inch of fish | Tetras, danios, guppies, rasboras |
| Surface area (full-bodied) | 20 sq in of surface per inch of fish | Goldfish, cichlids, oscars |
A tall, narrow tank and a short, wide tank can hold the exact same volume of water but support very different numbers of fish, because the taller tank has less surface area for oxygen exchange. This is why the surface-area method is generally considered more reliable than the volume-based inch-per-gallon rule.
Frequently Asked Questions
How many gallons is my fish tank?
For a rectangular tank, multiply length × width × height in inches and divide by 231. A standard 20×10×12 inch tank, for example, holds 2,400 cubic inches, which works out to exactly 10.4 US gallons.
Is the “one inch per gallon” rule accurate?
It's a useful rough guideline for small, slim-bodied fish under 3 inches, but it breaks down for larger or full-bodied fish and ignores tank shape entirely. A 10-inch oscar, for instance, needs closer to 65–75 gallons of space, not the 10 gallons the rule would suggest, so the surface-area method gives a more realistic limit.
What is the difference between tank volume and surface area for stocking?
Tank volume measures total water capacity, while surface area measures the water's top footprint, where oxygen from the air actually dissolves into the water. Two tanks can hold the same volume of water, but the one with more surface area — typically a shorter, wider tank — can safely support more fish.
How accurate is this aquarium calculator?
The volume formulas are geometrically exact for the tank shape you select. The fish stocking estimates are widely used hobbyist guidelines, not hard limits — actual safe stocking also depends on filtration strength, water changes, plant load, and individual fish species, so treat the results as a starting point and research specific species requirements before stocking.