Tank Stocking Calculator

How Many Fish Can You Put in a 20-Gallon Tank?

A 20-gallon tank (a "20 high" is 24 × 12 × 16 inches, a "20 long" is 30 × 12 × 12) holds about 17 gallons of water after gravel and decorations. That is room for a real community: a school, a bottom group and a centrepiece fish. Last reviewed December 1, 2026.

Short answer

With a filter rated for the tank, a 20-gallon tank usually holds one school of 8–12 small fish, a group of 6 corydoras and one centrepiece fish, or a group of livebearers with a bottom group. A 20 long gives bottom dwellers and active swimmers more floor and length than a 20 high.

Stocking ideas that work

Each idea was run through the stocking calculator with a matched filter; open any of them to change the numbers.

IdeaFishStockingShared temp.Cautions
Peaceful community8 × Harlequin rasbora, 6 × Panda cory, 1 × Honey gourami, 1 × Nerite snail91%72–77°FNoneOpen in calculator
Livebearer tank4 × Platy, 6 × Panda cory, 1 × Nerite snail83%72–77°FNoneOpen in calculator
Betta centrepiece1 × Betta (male), 10 × Ember tetra, 6 × Panda cory62%76–77°FThe shared temperature range is very narrow (76–77°F). Use a reliable heater and thermometer.Open in calculator
Dwarf cichlid1 × Cockatoo dwarf cichlid, 8 × Cardinal tetra, 6 × Otocinclus83%75–79°FNoneOpen in calculator
Shrimp-safe planted tank12 × Chili rasbora, 6 × Otocinclus, 20 × Cherry shrimp, 3 × Amano shrimp51%72–79°FNoneOpen in calculator

How many of one species fit in 20 gallons

Bioload limit for each species that is suitable for a 20-gallon tank, kept on its own with a matched filter. Mixing species shares the same budget.

Species (alone in the tank)Adult sizeMin. groupMax by bioloadNotes
Chili rasbora0.8"8116
Ember tetra0.8"8116
Celestial pearl danio1"674
Pygmy cory1"674
Endler's livebearer1"359
Pea (dwarf) puffer1"—49fin nipper, eats shrimp
Black neon tetra1.5"633
Forktail blue-eye1.5"633
Glowlight tetra1.5"633
Marbled hatchetfish1.5"633jumper
Neon tetra1.5"633
Pencilfish (Nannostomus beckfordi)1.5"633
Sparkling gourami1.5"333
White cloud mountain minnow1.5"633unheated tank
Otocinclus1.75"624
Serpae tetra1.75"624fin nipper
X-ray tetra1.75"624
Bloodfin tetra2"618
Cardinal tetra2"618
Cherry barb2"618
Harlequin rasbora2"818
Lemon tetra2"618
Rummynose tetra2"818
Zebra danio2"618fin nipper
Guppy2"314long fins
Honey gourami2"—14
Panda cory2"614
African dwarf frog2.5"211
Julii cory (false julii)2.25"611
Penguin tetra2.5"611
Reticulated hillstream loach2.5"311
Dwarf neon rainbowfish2.5"610
Kuhli loach4"510
Black skirt tetra2.5"69fin nipper
Gardneri killifish2.5"—9jumper
German blue ram2.5"—9eats shrimp, territorial
Platy2.5"39
Sterbai cory2.5"69
Bleeding heart tetra2.75"67
Bronze cory2.75"67
Clown pleco3.5"—3
Betta (male)2.75"—1 (one male only)one male per tank, long fins, eats shrimp
Cockatoo dwarf cichlid3"—1 (one male only)one male per tank, eats shrimp
Dwarf gourami3.5"—1 (one male only)one male per tank
Fancy goldfish6"—1long fins, eats shrimp, unheated tank, eats plants
Paradise fish3.5"—1 (one male only)one male per tank, fin nipper, eats shrimp

Fish that need more than 20 gallons

For a smaller tank see how many fish fit in a 10-gallon tank.