How many fish in a 20 gallon tank?

A 20 long (30 × 12 × 12 in) holds about 16.5 gal of water after substrate, so around 16 in of small fish. The two 20 gal shapes differ more than their labels suggest.

18.7 gal
gross
16.5 gal
net of substrate and decor
16 in
of small fish
10
neon tetras, max
Tank size

16.5 gal net · max 16 fish · comfortable 12

Water
Adult fish size full-grown, not store size
Fish type
Filtration our adjustment
Substrate & decor water they displace
30 × 12 × 12 in
16in

most adult fish this tank holds by the rule

16 fish max

comfortable: 12 (80%), at 1 in each

Comfortable, 75% of limit
  • One-inch-per-gallon rule: 1 in of fish per 1 gal.
  • 18.7 gal gross, minus 2.2 gal (12%) for substrate and decor = 16.5 gal of water.
  • Surface-area check: 30 × 12 = 360 sq in, about 30 in of tropical fish at 12 sq in per inch.

A rule of thumb, not science. Adult size, temperament, swimming space, and each species' minimum tank matter more than any inch rule.

Counts by species in a 20 gallon long
SpeciesAdult sizeCount by the rulePractical callNotes
Neon tetra1.5 in10One school of 6 to 10Schooling fish: keep 6+. Prefers soft, stable water.
Ember tetra0.8 in20One school of 6 to 10Schooling fish: keep 6+. Tiny, so the inch rule overstates how many you need to fill a tank.
Harlequin rasbora2 in8One school of 6 to 8Schooling fish: keep 6+.
Chili rasbora0.8 in20One school of 8 to 12Schooling fish: groups of 8+ show best. Very small mouths.
Zebra danio2 in8One school of 6 to 8Fast schooling fish: keep 6+. A long tank suits them better than a tall one.
Cherry barb2 in8One school of 6 to 8Keep 6+. Peaceful, but needs more swimming room than the inch rule suggests.
Male guppy1.5 in10Up to 10Keep males only or watch breeding: females and males together multiply fast.
Endler's livebearer1 in16Up to 16Same breeding caution as guppies.
Platy2.5 in6Up to 6Hardy, but livebearers breed. Plan for fry.
Panda cory2 in8One school of 6 to 8Bottom dweller: keep 6+ and use smooth sand, not gravel.
Bronze cory2.5 in6One school of 6Keep 6+. Needs floor space, so length and width matter more than height.
Otocinclus1.75 in9One school of 4 to 8Keep 4+. Needs a mature tank with algae to graze; often starve in new tanks.
Honey gourami2 in82 (single fish or a pair)Peaceful, often kept as a single fish or a pair.
Dwarf gourami3.5 in42 (single fish or a pair)One male per tank. Prone to disease in many stores; buy carefully.
Pearl gourami4.5 in3Too small. Usually 30+ galCalm but big and tall-finned. Plan on 30+ gal whatever the inch count says.
Kuhli loach4 in4Rule allows 4; group of 5+ wantedKeep 5+. Thin and shy, but needs a long, secure tank with lids and soft substrate.
Betta2.5 in61 (one per tank)One per tank (males fight). Each betta differs on tank mates.
Bristlenose pleco5 in1 (3 gal/in)Too small. Usually 29+ galHeavy waste producer. The inch rule overstates capacity in small tanks.
Angelfish6 in0 (3 gal/in)Too small. Usually 30+ galTall body: 30+ gal is common guidance, and taller tanks suit them. Will eat small tetras.
Boesemani rainbowfish4 in4Too small. Usually 55+ galActive schooling fish, 6+. Needs length: 4 ft tanks are the usual minimum.
Cherry shrimp1.25 in12One school of 6 to 10Minimal bioload, so the inch rule understates how many a tank holds. Colonies self-limit.

20 gal long (30 × 12 × 12 in): 18.7 gal gross, 16.5 gal net at 12%. Counts use one species alone, a medium filter, 1 gal per inch under 5 in and 3 gal per inch at 5 in or more. Adult sizes vary, and the counts are a ceiling. Do not add up two rows: the rule counts every fish in the tank together.

20 gallon high vs 20 gallon long

TankNet galMax in by gallonsSurface (sq in)Max in by surface, tropicalMax in by surface, goldfish
20 gal high (24 × 12 × 16)17.617.5288249.5
20 gal long (30 × 12 × 12)16.5163603012

The two shapes hold nearly the same water, but the long tank has 25% more surface. For active fish and anything at the 12 sq in per inch limit, pick the long one.

How to use this calculator

  1. Pick your shape

    Choose 20 gal long (30 × 12 × 12 in) or 20 gal high (24 × 12 × 16 in). They hold about the same water but differ in surface area.

  2. Set the adult size

    Use the species table to find your fish's adult length, then pick custom and enter it.

  3. Check the surface-area line

    The result shows an oxygen check: 12 sq in of surface per inch of tropical fish. A 20 long passes with room to spare.

The rule we use

For this page, the calculator applies the rule that matches the fish, and takes 12% of the gross gallons off by default for substrate and decor. The three rules are 1 gal per inch for small slim community fish, 3 gal per inch for goldfish and fish of 5 in or more, and 5 gal per inch for saltwater. See aquarium stocking rules explained for the formula, filtration factors, and the origin of each.

These are rules of thumb used by hobbyists, not science. Both 20 gal shapes land within 1 in of each other by the gallon rule. The surface-area rule favors the 20 long. If the two rules disagree, use the smaller number.

Common mistakes

  • Assuming 20 high and 20 long are equivalent

    The 20 long has 360 sq in of surface and a longer swimming lane. The 20 high has 288 sq in and suits fewer active fish.

  • Mixing a bottom-dwelling school with active danios

    Corydoras need floor space, and danios use the whole length. Check the footprint, not only the gallons.

  • Stocking to the number on day one

    Fill a 20 gal in three or four batches over a couple of months.

Frequently asked questions

How many fish can I put in a 20 gallon tank?

About 16 in of small fish in a 20 long by the one-inch rule at 12% deduction and a medium filter. That is around 10 neon tetras, or 8 harlequin rasboras.

Is a 20 gallon high or long better?

For fish, the 20 long. It has more surface area for gas exchange and more swimming length. The 20 high suits tall-bodied fish like a single angelfish only marginally; most would prefer a 29.

How many goldfish in a 20 gallon?

One fancy goldfish, by common guidance of about 20 gal for the first fish, quoted against the nominal size. That holds for both a 20 high and a 20 long. A 29 or 40 is a better start because it leaves room for a second.

How many guppies in a 20 gallon?

Males only: 8 to 10 is typical. A mixed group breeds quickly and overstocks the tank within months.

Can I keep a school plus bottom fish in a 20 long?

Yes. One school of 8 harlequin rasboras and 6 panda corydoras uses 28 in by the rule, which is above this tank's limit. Cut the schools to fit; the table lets you check each species.