Fish in Aquarium Calculator: Stocking Guide
- Water Volume
- US gallons
- Result
- Fish by Volume
- fish
- Result
- Fish by Surface
- fish
- Result
This calculator estimates the maximum number of fish your aquarium can safely hold based on the tank’s volume and the adult size of the fish. You enter the tank dimensions (or volume) and the average adult length of the fish species, and the calculator returns a recommended stocking number using the common ‘one inch of fish per gallon’ rule. It also provides a more conservative estimate based on surface area for better oxygen exchange.
Formula
The calculator uses two common stocking formulas:
- Volume rule (one inch per gallon):
Number of fish = Tank volume (US gallons) / Adult fish length (inches) - Surface area rule:
Number of fish = Tank length (cm) × Tank width (cm) / (Adult fish length (cm)² × 2.5)
Variables: Tank length (l), width (w), height (h) in centimeters; fish adult length (fl) in centimeters. Volume is first calculated in liters (l × w × h / 1000), then converted to US gallons (1 liter = 0.264172 gallons). The surface area rule uses the tank’s footprint (length × width) and the fish’s adult length squared, with a factor of 2.5 to account for swimming space.
Worked Example
Using the default values: tank 60 cm long, 30 cm wide, 36 cm high, fish adult length 5 cm.
- Volume in liters: (60 × 30 × 36) / 1000 = 64.8 L
- Volume in gallons: 64.8 × 0.264172 = 17.1 gallons
- Fish by volume: 17.1 / (5 / 2.54) = 17.1 / 1.97 ≈ 8.7 → floor → 8 fish
- Fish by surface: (60 × 30) / (5 × 5 × 2.5) = 1800 / 62.5 = 28.8 → floor → 28 fish
The calculator shows 8 fish by volume and 28 by surface. The lower number (8) is the safer recommendation for most community tanks.
Why Two Formulas?
The one-inch-per-gallon rule is the most quoted guideline, but it has a major flaw: it ignores the tank’s footprint. A tall, narrow tank may hold the same volume as a long, shallow one, but the long tank offers more swimming area and better gas exchange. The surface area rule addresses this by focusing on the water’s surface, where oxygen enters and carbon dioxide leaves. For fish that are long and slender (like many tetras), the volume rule works reasonably. For deep-bodied fish (like angelfish or goldfish), the surface rule is more accurate because these fish need more horizontal space.
How to Choose the Right Number
When using the calculator, always use the adult size of the fish, not the size at purchase. A baby pleco that is 3 cm will quickly become 30 cm. Here are practical steps:
- Measure your tank’s interior dimensions (not the outside, which includes glass thickness).
- Look up the average adult length for the species you plan to keep. For example, neon tetras reach about 3.5 cm, while common goldfish can reach 20 cm.
- Enter the largest fish you plan to keep if mixing species.
- Use the smaller of the two results as your starting point.
- Reduce the number by 20–30% if you have live plants, decorations, or a heavy bioload.
Common Mistakes and Misconceptions
Many beginners make the following errors:
- Using the tank’s nominal size – a “20-gallonâ€� tank actually holds about 18 gallons of water after substrate and decorations displace volume.
- Mixing inches and centimeters – the calculator expects centimeters for dimensions and fish length; if you enter inches, the result will be wildly off.
- Ignoring the adult size – as mentioned, fish grow. Always use the maximum size the fish can reach, not the size at the store.
- Applying the rule to all fish – the rule is for small, active fish like tetras and danios. It does not apply to fish that need special conditions, like goldfish (high waste) or cichlids (territorial).
Limitations of the Formula
The one-inch-per-gallon rule and the surface area rule are rough guidelines, not biological laws. They do not account for:
- Filtration capacity – a heavily stocked tank needs a stronger filter.
- Behavioral needs – some fish need schools of six or more, while others are solitary and aggressive.
- Waste production – a 10 cm goldfish produces far more waste than ten 1 cm guppies.
- Oxygen demand – surface area helps, but water movement and plants also matter.
- Temperature and species compatibility – tropical fish need warm water; cold-water fish need cooler water. Mixing them is a bigger problem than numbers.
Practical Stocking Tips
Beyond the calculator, here are real-world guidelines from experienced aquarists:
- Start with fewer fish and add gradually over weeks, allowing the filter to adjust.
- For community tanks, aim for a total fish length (in cm) that is less than the tank’s surface area (in cm²) divided by 12.5 (or 2.5 inches per square foot).
- When in doubt, understock. Overcrowding leads to stress, disease, and poor water quality.
- Use the calculator as a planning tool, not a final verdict. Observe your fish behavior and water tests.
Frequently Asked Questions
Can I keep more fish if I have a strong filter?
A powerful filter can process more waste, but it does not give fish more swimming space. The filter helps with ammonia and nitrite, but it cannot compensate for a tank that is too small for the fish’s adult size. Always prioritize tank dimensions over filtration when deciding stocking numbers.
Does the shape of the tank matter?
Yes. Long, shallow tanks (like a 40-gallon breeder) have a larger surface area and are better for fish that need oxygen. Tall, narrow tanks (like a 20-gallon high) have less surface area per gallon, so they support fewer fish. This is why the surface area rule is often more accurate than the volume rule.
What about fish that are not small, like goldfish?
Goldfish produce a lot of waste and need much more space than the one-inch-per-gallon rule suggests. A common goldfish can reach 20 cm and needs at least 75 liters (20 gallons) for the first fish, plus 40 liters (10 gallons) for each additional fish. The calculator’s volume rule would recommend only 1 fish in a 20-gallon tank, which is actually correct for a single goldfish. For fancy goldfish, a 40-gallon tank for two is a better minimum.
How do I measure the fish’s adult length?
Adult length is the maximum size the fish can reach in a home aquarium, not the size it reaches in the wild. You can find this information on reputable fish databases or from your local aquarium store. For example, neon tetras reach about 3.5 cm, while angelfish can reach 15 cm. Always use the larger number if you are unsure.
Can I keep shrimp or snails with fish?
Invertebrates like shrimp and snails produce far less waste than fish, so they do not count as much toward the stocking limit. You can usually add a few shrimp or snails without affecting the fish count, but they still need space and hiding spots. The calculator is for fish only; for a mixed tank, reduce the fish number by 10–20% to accommodate the invertebrates.
What if I have live plants?
Live plants can help with water quality by absorbing nitrates, but they do not increase the tank’s carrying capacity. Plants also take up space, so you might need to reduce the fish count slightly. A heavily planted tank can sometimes support a few more fish, but it is safer to stick to the calculator’s recommendation and rely on plants as a bonus, not a solution.
Related
Formula used
in l | Tank Length | cm | 60 | 0 in w | Tank Width | cm | 30 | 0 in h | Tank Height | cm | 36 | 0 in fl | Fish Adult Length | cm | 5 | 1 out vol | Water Volume | liters | (l * w * h) / 1000 | 1 out gal | Water Volume | US gallons | ((l * w * h) / 1000) * 0.264172 | 1 out fish_vol | Fish by Volume | fish | floor((((l * w * h) / 1000) * 0.264172) / (fl / 2.54)) | 0 out fish_sa | Fish by Surface | fish | floor((l * w) / (fl * fl * 2.5)) | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.