As an Amazon Associate I earn from qualifying purchases. Learn more›

How Many Fish in a 40 Gallon Tank?

How many fish a 40 gallon tank holds by the published inch rule, how the wide 40 Breeder shape changes it, care sheet fish groups, and the 29 gallon.

How Many Fish in a 40 Gallon Tank?

How many fish in a 40 gallon tank? By the rule Tetra’s aquarium Q&A publishes, one gallon of water per inch of mature tropical fish, a 40 gallon tank tops out at about 40 inches of adult fish. That is a ceiling for a cycled, well-filtered tank, not a goal. Aqueon’s FAQ applies the same inch to net gallons, the water left after gravel and decor, so the real allowance is lower. The tank’s shape matters too: a wide 40 Breeder holds more fish comfortably than a tall, narrow tank of similar volume, and the fish you choose matter more than the count.

This guide summarizes stocking guidance published by aquarium makers and university extension services. It does not diagnose illness or replace veterinary care. If fish breathe rapidly, gasp at the surface, or stop eating, stop adding fish and contact a licensed veterinarian who treats fish.

How Many Fish in a 40 Gallon Tank: The Inch Rule and Its Limits

Tetra and Aqueon both count adult length, not the size of the fish in the store bag.

SourceRule as published40 gallon29 gallon
Tetra aquarium Q&AOne gallon of water per one inch of mature tropical fishAbout 40 inches of adult fishAbout 29 inches
Tetra 29 gallon kit pageOne inch of fish per gallon, with adult size, activity, schooling, waste, and temperament also consideredSame ceiling, adjusted down for those factorsSame ceiling, adjusted down for those factors
Aqueon FAQOne inch of adult fish per net gallon; a fully decorated 10 gallon holds about 8 gallons of waterAbout 32 inches if the same share held (our arithmetic)About 23 inches on the same basis (our arithmetic)
Aqueon fish compatibility articleOne inch of adult size fish per net gallon; territorial fish need even more spaceFewer inches again for territorial fishFewer inches again for territorial fish
Tetra aquarium Q&A (goldfish)Three gallons of water per one inch of goldfishAbout 13 inches of goldfish (our arithmetic)About 9 to 10 inches (our arithmetic)

Aqueon publishes the 10 gallon example only; the 40 and 29 gallon net figures above apply that same share by our arithmetic and are not maker figures. The rule has known gaps. Aqueon’s FAQ says activity level, territoriality, available habitat, and filtration should also be taken into account, and that most fish you buy are going to grow. The Tetra 29 gallon kit page lists the questions to ask about each fish: how large it will be as an adult, whether it is active and needs more space, whether it schools in groups of five or more, whether it produces a lot of waste, and whether it is aggressive. Aqueon’s fish compatibility article adds that crowded fish become more agitated and more likely to quarrel.

40 Breeder vs Taller Tanks: Why Shape Changes the Count

The size list on Aqueon’s standard glass aquarium page includes a 40 Breeder but no 40 tall or 40 high model. Its closest tall shape on the same 36 inch length is the 38. Aqueon’s light and lid fit lists also name a 40 Long, but the pages reviewed for this guide give no dimensions for it; the 40 gallon tank dimensions guide covers the shapes and weights in detail, and tank picks are in the fish tank roundup.

Aqueon tankDimensions on the product page (L x W x H)Floor area (our arithmetic)Shape
40 Breeder36.25″ x 18.25″ x 17″About 662 sq inWide and low
3836.25″ x 12.625″ x 19.75″About 458 sq inNarrow and taller
2930.25″ x 12.5″ x 18.75″About 378 sq inNarrow and tall

By our arithmetic, the 40 Breeder has about 45% more floor, and the same share more water surface, than the 38, and about 75% more than the 29. That difference matters when you plan the fish list. Aqueon’s freshwater setup article says wider aquariums provide more surface area for gas exchange and more room for active fish, give territorial fish such as cichlids more places to set up a home, and that tall, narrow aquariums hold fewer fish per gallon. Aqueon’s guide to choosing an aquarium says active fish like danios and barbs need longer tanks, territorial fish need lots of bottom space, and tall, narrow tanks can suit less active fish such as gouramis.

In practice: plan a 40 Breeder close to the inch ceiling only with a strong filter and a stocking schedule, and plan a tall tank of similar volume below it, built around slower fish.

Fish That Suit a 40 Gallon, From the Care Sheets

Aqueon’s beginner fish by tank size article groups 20 to 50 gallon tanks together and says this is where you can start to keep fish in the 3 to 4 inch range, with care not to overcrowd them because of territoriality. The table below lists what each source states; none gives a maximum count for any species. For a first tank, the starter fish guide covers hardy species to begin with.

FishTank size the source givesGroup and temperament notesTemperature
Pearl and three spot gouramis (blue, gold, opaline)30 gallons or largerMales usually kept individually; extra females can reduce male aggression75° to 80°F
Tiger, rosy, and black ruby barbsA minimum of 30 gallonsSchools of at least 6 to 10; avoid timid or long-finned tank mates75° to 80°F
Most Corydoras30 gallons is best for most speciesGroups of 5 or more; never add to new aquariums74° to 80°F
Swordtails and sailfin molliesThe 20 to 50 gallon rangeFemale swordtails can get well over 3 inches; 2 to 3 females per male74° to 78°F
Bristlenose plecoThe 20 to 50 gallon rangeStays small; the common pleco gets too large for these tanks74° to 80°F (most captive bred plecos)
Dwarf cichlids from Lake TanganyikaCommunities in 30 to 50 gallonsTerritorial; do not mix with cichlids from other regions74° to 80°F
Dwarf South American cichlids (rams, Apistogramma)10 to 20 gallons for a mated pair; larger tanks allow larger groupsMales may quarrel over territory; need caves and cover78° to 84°F

Table sources: Aqueon care guides for gouramis, barbs, Corydoras, livebearers, plecos, African Rift Lake cichlids, and dwarf South American cichlids, plus the tank size article for swordtail, sailfin molly, bristlenose, and gourami pairing notes.

Run the Inch Math Before the Second Group

Only some care sheets give adult sizes, so only some plans can be counted. Aqueon’s rasbora guide says harlequin-type rasboras typically do not get larger than 2 inches and do best in groups of 7 or more, so one group is up to 14 inches. Aqueon’s community fish article says swordtails grow to about 5 inches, so one male with three females is about 20 inches. By our arithmetic those two groups reach about 34 inches, above the roughly 32 net gallons estimated earlier and close to Tetra’s 40 inch ceiling. A 40 gallon fills faster than its label suggests. The barb, gourami, and Corydoras guides give no adult lengths, so ask your shop for the adult size of the exact fish before you count it.

Fancy Goldfish in a 40 or a 29

Aqueon’s goldfish care sheet calls for at least 10 gallons per adult fancy goldfish and at least 20 gallons per adult common goldfish, comet, or shubunkin. Read literally, a 40 gallon reaches that floor at four fancy or two common goldfish, before decor takes up water. Aqueon’s tank size article is more generous for the smaller tank: it calls a 29 gallon a good home for 3 to 4 fancy Ryukin or Oranda goldfish, while the care sheet’s figure works out to two (our arithmetic). The two Aqueon pages disagree, so start at the lower count. Tetra’s beginner guide says tropical fish and goldfish should not mix, so a goldfish tank is its own plan, kept at 68° to 74°F for fancy goldfish per Aqueon. The goldfish tank setup guide covers equipment for that plan.

How Many Fish in a 29 Gallon Tank

The same rule gives a 29 gallon tank a ceiling of about 29 inches of adult tropical fish, and about 23 net gallons if Aqueon’s decorated-tank share holds (our arithmetic). The Tetra 29 gallon kit page lists its tank at approximately 30 x 12 x 18 inches; Aqueon’s 29 is 30.25″ x 12.5″ x 18.75″. Compared with a 40 Breeder, the 29 is 6 inches shorter, 5.75 inches shallower front to back, and 1.75 inches taller.

Two care sheet limits sit right at the 29’s edge. Aqueon gives tiger, rosy, and black ruby barbs a minimum of 30 gallons, and calls 30 gallons best for most Corydoras. A 29 is a gallon short of both by label, and less once gravel goes in. Tetras, rasboras, livebearers other than swordtails and sailfin mollies, and the smaller gouramis fit a 29 without stretching a care sheet; the tank size article puts the 29 in the same 20 to 50 gallon group as the 40. Its tall, narrow shape favors slower fish, per Aqueon’s choosing guide. The 29 gallon tank dimensions guide covers weight and stands.

Fish That Need More Than a 40 Gallon

FishTank size the source givesSource
Most larger rainbowfish (Melanotaeniids)At least 50 gallonsAqueon rainbowfish care guide
Angelfish55 gallons or larger when full grownAqueon angelfish care guide
Kissing gouramis55 gallons or larger when full sizeAqueon gourami care guide
Denisonii barbs55 gallons or larger when full sizeAqueon barb care guide
Most Rift Lake cichlidsAt least 55 gallonsAqueon Rift Lake cichlid care guide
Discus75 gallons or larger when full grownAqueon discus care guide
Common plecoAt least 75 gallons; can grow to over 12 inchesAqueon plecostomus care guide
Bala, black, harlequin, and Colombian sharksAt least 100 gallons when full grownAqueon freshwater shark care guide
Tinfoil barbs125 gallons or larger as adultsAqueon barb care guide

Aqueon’s questions to ask before buying fish warns that some store fish may double, triple, or more in size. Plan for a fish that outgrows the tank before you buy it. The University of Florida IFAS Extension’s publication on responsible aquarium fish ownership says never to release aquarium fish into the wild or flush them, and to try returning or trading an animal you can no longer keep.

Stocking a 40 Gallon Tank in Rounds

  1. Cycle the filter first. UF/IFAS’s ammonia publication says a new biofilter requires six to eight weeks to build up enough bacteria, and Aqueon’s nitrogen cycle article gives three to eight weeks for the whole process. The guide on how to cycle a fish tank covers the steps.
  2. Add a few fish at a time. Aqueon’s first 60 days guide says to buy only a few fish at a time and wait at least a week between additions. Tetra’s Q&A says that after three to four weeks you can add one to two fish per week.
  3. Save bottom fish for later. Aqueon says Corydoras should never go into new aquariums, and its new tank tips say to wait several weeks before adding scavengers.
  4. Check ammonia and nitrite before each round. Use a water test kit. Tetra says elevated ammonia and nitrite should not occur in a cycled tank and, in a mature system, point to overstocking or over-feeding.

A tank stocked near the ceiling needs the equipment to match. Aqueon’s FAQ advises a filter rated one size larger than the aquarium and extra biological media in heavily populated tanks. Aqueon’s filter buying article says flow should be four to six times the tank’s volume, which is 160 to 240 gallons per hour for a 40 by our arithmetic; the filters section compares types. For tropical fish, Aqueon’s heater tips give a rule of 5 watts per gallon for tanks of 55 gallons or smaller, about 200 watts for a 40; heater options are in the heaters section. Aqueon’s FAQ calls a 10% weekly water change ideal, about 4 gallons a week here.

Who Should Look Elsewhere

  • Keepers set on angelfish, discus, most Rift Lake cichlids, or larger rainbowfish. Their care sheets call for 50 to 75 gallons or more.
  • Anyone planning a common pleco, a bala shark, or tinfoil barbs. Aqueon calls for at least 75, 100, and 125 gallons.
  • Keepers who want several full schools plus a centerpiece fish. Two groups of medium fish already approach the inch ceiling in a 40.
  • Saltwater keepers. This guide covers freshwater only; none of the sources here gives saltwater counts for a 40.
  • Anyone with sick fish. Stocking changes do not treat illness. Aqueon’s 60 day guide lists rapid breathing, gasping at the surface, clamped fins, white spots, and scratching against objects as signs to watch. Contact a licensed veterinarian who treats fish rather than adding treatments on a guess.

For the next sizes up and down, the 30 gallon stocking guide and the 55 gallon stocking guide apply the same rule.

Frequently Asked Questions

How many neon tetras can go in a 40 gallon tank?

None of the sources here gives a maximum. Tetra’s tropical fish page recommends at least six neon tetras to start, and Aqueon’s tetra guide says tetras do best in schools of 6 or more. Start with one school in a cycled tank, count adult sizes against the inch rule, and check ammonia and nitrite before adding more.

Is a 40 Breeder better than a 29 gallon for fish?

For active and territorial fish, the published guidance favors the 40 Breeder: it has about 75% more floor by our arithmetic, and Aqueon says wider tanks give more surface for gas exchange and more room for territories. The 29 suits a smaller, slower community.

Can angelfish live in a 40 gallon tank?

Not as adults, by Aqueon’s figure: its angelfish guide says they require an aquarium of 55 gallons or larger when full grown.

Can African cichlids live in a 40 gallon tank?

Most cannot: Aqueon recommends at least 55 gallons for most Rift Lake cichlids. The exception is dwarf species from Lake Tanganyika, which Aqueon says can be kept as communities in 30 to 50 gallon tanks. Plan that tank species by species with a shop that knows the fish.

How many goldfish can go in a 40 gallon tank?

By Aqueon’s care sheet, up to four adult fancy goldfish or two common goldfish, before decor takes up water. Keep them without tropical fish, as Tetra advises.

About the author

Marsha Bates
Marsha Bates

Marsha Bates is an aquarium enthusiast focused on freshwater fishkeeping and everyday tank maintenance. At AquariumTechLab.com, Marsha shares practical guides on tank setup, water quality, and essential equipment to help beginners build healthy, manageable aquariums.