StatGardenREF. DESK
Calculators/Pets/Fish tank stocking
Pets

Fish tank stocking calculator

Roughly how many inches of fish a freshwater community tank can hold.

Published 8 August 2026 · Updated 24 September 2026

What this calculator does

The classic stocking guideline is one inch of adult fish per gallon of water, so a 20 gallon tank supports around 20 inches of fish. Enter the adult length of each fish and the calculator totals them and reports what is left.

It is a rough rule and it fails in predictable ways. It uses length while waste production scales closer to body volume, so a single six inch deep-bodied fish produces far more than six one inch tetras. It also ignores territory, swimming style and schooling needs entirely. Treat it as an upper bound for small peaceful community fish and as inapplicable to anything else.

The formula

FormulaCapacity (in of fish) ≈ tank size in gallons, the classic "1 inch of fish per gallon" community-tank rule

The adult lengths entered are added together and compared against the tank volume in gallons, taking one gallon as supporting one inch. The remaining capacity is the difference. The calculation uses adult sizes rather than current sizes, which is the single most important thing to get right when stocking a new tank.

TermMeaning
Inch per gallonThe stocking rule of thumb, using adult fish length against tank volume.
Adult lengthFull grown size, which is what to enter. Juvenile size is irrelevant to whether a tank will work.
BioloadThe waste burden a fish places on the system, which scales with body mass rather than length.

The inputs explained

FieldWhat to enter
Tank size (US gal)Tank volume in US gallons. Use the actual water volume rather than the nominal tank size, since substrate and decoration displace a noticeable amount.
Fish lengths (comma-separated, inches)Adult lengths in inches, separated by commas, one figure per fish.

When to use it

Planning a new community tank

Listing the adult lengths of everything you intend to keep before buying anything is the point at which overstocking is easiest to avoid.

Checking whether there is room for more

The remaining capacity figure answers the common question directly, subject to all the caveats about what kind of fish.

Reality-checking a shop recommendation

Fish are routinely sold at juvenile size with adult size unmentioned. Running the adult figures is the check worth doing before buying.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How much does a 20 gallon tank hold?

Four stocking lists against the same 20 gallon tank.

20 gallons, one inch per gallon
Adult lengths (inches)Fish inches currently stockedRoom remainingNumber of fish counted
2, 2, 1.55.5 in14.5 in3
2, 2, 1.5, 38.5 in11.5 in4
3, 3, 3, 3, 315.0 in5.0 in5
2, 2, 2, 2, 2, 2, 2, 2, 2, 220.0 in0.0 in10
The last row reaches exactly capacity at 20 inches from ten small fish, while the third row uses 15 inches with only five larger ones. That contrast is the rule weakness in one line: ten two inch fish and five three inch fish are not equivalent in waste output, even though the arithmetic treats length as the only thing that matters.

Questions

Is the one inch per gallon rule reliable?

Only as a rough upper bound for small, peaceful freshwater community fish. It uses length while waste scales closer to volume, so it badly understates the burden of large or deep-bodied fish. For anything beyond small community species, species-specific guidance is the only sensible basis.

Should I use adult size or current size?

Adult size, always. Fish are sold young and a common goldfish bought at two inches reaches eight or more. Stocking to current size guarantees the tank becomes overstocked as the fish grow, which is the most common way tanks fail.

Does filtration change how much I can stock?

It helps but it does not rewrite the rule. Stronger filtration processes waste faster, which raises the ceiling somewhat, but it does not create swimming space or territory. Overstocking a heavily filtered tank still produces stressed fish.

What about goldfish?

The rule does not apply to them at all. Goldfish are large, long-lived and produce a great deal of waste, and common goldfish need substantially more than an inch per gallon each. A single fancy goldfish is usually given 20 gallons as a starting point.

For aquatic turtles, which need far more volume per animal, see the turtle tank size calculator. To estimate the weight of a caught fish, see the fish weight calculator.