How many fish in a 40 gallon tank? About 20 to 25 small community fish, or an angelfish pair with a school or two, or 2 fancy goldfish. The answer depends on which fish, not just the gallons, and that is where most stocking advice goes wrong. A 40 gallon breeder is 36 inches long, 18 deep, and 16 tall, and it sits right at the average tank size in real keeper data, which makes it the most flexible "second tank" in the hobby. It is big enough for a centerpiece fish and real schools, and small enough that one bad choice still fills it.
How many fish in a 40 gallon tank: the short answer
The inch-per-gallon rule is the starting point, not the answer. It says a 40 gallon tank holds about 40 inches of adult fish, and it was written for small, slim fish. Count adult size, not the size at the shop, and remember the tank holds less water than the label says. Substrate, decor, and the fill line leave about 35 to 37 gallons of actual water in a 40 breeder, so treat 35 gallons as your real budget.
Here is what that budget buys, by species, when each is kept on its own:
- Neon or cardinal tetras: 15 to 20. Small, low bioload, and they school tightly.
- Guppies: 20 to 23, males only unless you want a population explosion.
- Mollies: 10 to 12, or 5 to 6 sailfins, which grow larger.
- Zebra danios: 15 to 23. The 36-inch length is where a school of 15 or more really shows off.
- Harlequin rasboras: 12 to 15 in a proper school.
- Corydoras: 6 to 10, in a school of 6 or more, on sand.
- Angelfish: 3 to 4, and a pair is the safer plan in a breeder footprint.
- Fancy goldfish: 2 to 3. Each one counts as a heavy bioload, so two fill about 75 percent of the tank.
- Bristlenose pleco: 1. One is enough for algae duty in this size.
Mixing species shares the same budget. A tank with 15 tetras and 6 corydoras is already near full, even though the water looks empty. The fish use different layers, top, mid, and bottom, which makes the tank look busier than the bioload suggests, but the filter only sees total waste.
Four stocking plans that work
Pick one framework and stock it slowly, a few fish at a time, in a cycled tank with a filter rated for 40 gallons or more.
The community tank: 15 neon tetras, 6 pygmy corydoras, and 1 bristlenose pleco. Everything stays small, the layers are covered, and the bioload lands comfortably under the limit. This is the plan I would hand a first-time 40 gallon owner.
The angelfish tank: 1 pair of angelfish, 8 to 10 harlequin rasboras, and 6 corydoras. The breeder footprint gives a pair its own territory, and the rasboras are big enough not to become food. Skip a third angelfish unless you are prepared to rehome one when a pair forms and turns on it.
The goldfish tank: 2 fancy goldfish and nothing else. The median goldfish keeper in real tank data runs exactly 40 gallons, and two fancies is the safe limit. A third pushes the tank past full, and a comet or common goldfish does not belong here at all. It needs a pond or a 75 gallon tank.
The livebearer tank: 10 to 12 mollies, or 10 to 15 male guppies. Livebearers breed constantly, so mixed-sex guppies will fill a 40 gallon with fry within months. Males only keeps the count where you set it.
What does not fit, and the mistakes that shrink the number
An oscar does not fit. One adult needs about 75 gallons, and a 40 gallon is a grow-out tank at best. Adult discus need 55 gallons or more, though juveniles can grow out in a 40. A betta sorority of 8 to 9 females can work in a breeder footprint, because the width spreads aggression, but a single male betta with a peaceful community is the simpler choice.
Three mistakes shrink every number on this page. Stocking all the fish at once overwhelms a new filter, even in a cycled tank. Counting juvenile size instead of adult size fills the tank six months later, when the fish are twice as big. And weak filtration, a filter rated exactly at 40 gallons with no margin, leaves no room for a missed water change. Check any combination before you buy with our Aquarium Stocking Calculator, set to 40 gallons, and stock in stages so the bacteria keep up.
Frequently asked questions
How many fish can I put in a 40 gallon breeder?
Can I keep an oscar in a 40 gallon tank?
How many goldfish can live in a 40 gallon tank?
How many angelfish in a 40 gallon tank?
Is a 40 gallon tank good for beginners?
Next steps: Check your exact mix in the Aquarium Stocking Calculator, then read How Many Fish in a 30 Gallon Tank? and How to Stock a 55-Gallon Freshwater Aquarium: 3 Plans That Work if you are deciding between sizes.
One stocking idea a month: subscribe to the newsletter.