How Many Fish in a 40 Gallon Tank?
There's no single magic number — a 40-gallon tank can hold a big school of small fish or just a couple of large, messy ones. What matters is each species' adult size, bioload, schooling needs, and temperament. The calculator below is pre-set to 40 gallons; add the fish you're considering and it'll flag any problems.
Example 40-gallon stocking ideas
- Community showpiece: 1 pearl gourami + 12 tetras + 8 corydoras + bristlenose pleco.
- Rainbowfish: 6 boesemani rainbowfish + 8 harlequin rasboras.
- Ram community: 2 German blue rams + 12 cardinal tetras + 6 corydoras.
Always cycle the tank first, add fish gradually, and keep up with weekly water changes. These are starting points — run your exact list through the calculator above.
Fish featured in these 40-gallon setups




Photos via Wikimedia Commons under their respective licenses — click a credit for the source.