🌐 EN

How many fish in a 40 gallon tank?

Short answer: a 40-gallon tank actually holds about 32 gal / 121 L of water. At a comfortable maximum, that is about 45 fish of 1.6 in (4 cm) (neon tetra size) or 20 fish of 2.4 in (6 cm) (platy size), if a single species fills the tank. In practice you mix several species: see the examples below.

📏 Standard size: 36 × 18 × 16 in · ⚖️ Filled weight: about 451 lb / 204 kg · other sizes

Plan my stocking for 40 gallons →

Stocking ideas for a 40-gallon tank

Generated automatically to stay around 75% bioload, with species that match in temperature, pH and behaviour.

Coolwater tank (no heater)

Species that do well at 64–72 °F (18–22 °C).

  • 20 White cloud mountain minnow
  • 12 Zebra danio

Bioload ≈ 64% 64–72 °F / 18–22 °CpH 6–8

Community with a centrepiece fish

Pearl gouramis above a school of rasboras.

  • 1 Pearl gourami
  • 8 Harlequin rasbora
  • 6 Peppered cory
  • 1 Bristlenose pleco

Bioload ≈ 77% 75–79 °F / 24–26 °CpH 6–7

Classic Amazon

The great classic: neon tetras and corys.

  • 14 Neon tetra
  • 9 Peppered cory
  • 6 Otocinclus

Bioload ≈ 75% 72–77 °F / 22–25 °CpH 6–7

Colourful livebearers

Easy guppies and platies, for fairly hard water.

  • 10 Guppy
  • 9 Platy
  • 1 Bristlenose pleco

Bioload ≈ 74% 72–79 °F / 22–26 °CpH 7–7.5

Suitable species for a 40-gallon tank

SpeciesAdult sizeMin. groupMaximum*Temperature
Chili rasbora
Boraras brigittae
0.8 in / 2 cm8up to 9068–82 °F / 20–28 °C
Celestial pearl danio
Danio margaritatus
1 in / 2.5 cm10up to 9068–79 °F / 20–26 °C
Cherry shrimp
Neocaridina davidi
1 in / 2.5 cm10up to 30264–81 °F / 18–27 °C
Ember tetra
Hyphessobrycon amandae
1 in / 2.5 cm8up to 9068–82 °F / 20–28 °C
Endler's livebearer
Poecilia wingei
1.2 in / 3 cm3up to 8075–86 °F / 24–30 °C
Green neon tetra
Paracheirodon simulans
1.2 in / 3 cm8up to 8075–81 °F / 24–27 °C
Pygmy cory
Corydoras pygmaeus
1.2 in / 3 cm6up to 8072–79 °F / 22–26 °C
Marbled hatchetfish
Carnegiella strigata
1.4 in / 3.5 cm10up to 5972–82 °F / 22–28 °C
Black phantom tetra
Hyphessobrycon megalopterus
1.6 in / 4 cm8up to 4568–82 °F / 20–28 °C
Neon tetra
Paracheirodon innesi
1.6 in / 4 cm8up to 4570–77 °F / 21–25 °C
White cloud mountain minnow
Tanichthys albonubes
1.6 in / 4 cm10up to 4557–72 °F / 14–22 °C
Cardinal tetra
Paracheirodon axelrodi
1.8 in / 4.5 cm8up to 3573–84 °F / 23–29 °C
Glowlight tetra
Hemigrammus erythrozonus
1.8 in / 4.5 cm6up to 3575–82 °F / 24–28 °C
Lemon tetra
Hyphessobrycon pulchripinnis
1.8 in / 4.5 cm8up to 3568–82 °F / 20–28 °C
Otocinclus
Otocinclus spp.
1.8 in / 4.5 cm6up to 3572–82 °F / 22–28 °C
Serpae tetra
Hyphessobrycon eques
1.8 in / 4.5 cm12up to 3568–82 °F / 20–28 °C
Cherry barb
Puntius titteya
2 in / 5 cm6up to 2968–81 °F / 20–27 °C
German blue ram
Mikrogeophagus ramirezi
2 in / 5 cmcan live aloneup to 2981–86 °F / 27–30 °C
Guppy
Poecilia reticulata
2 in / 5 cm3up to 2964–82 °F / 18–28 °C
Harlequin rasbora
Trigonostigma heteromorpha
2 in / 5 cm8up to 2970–82 °F / 21–28 °C
Honey gourami
Trichogaster chuna
2 in / 5 cm2up to 2972–81 °F / 22–27 °C
Panda cory
Corydoras panda
2 in / 5 cm6up to 2972–77 °F / 22–25 °C
Zebra danio
Danio rerio
2 in / 5 cm8up to 2964–77 °F / 18–25 °C
Black skirt tetra
Gymnocorymbus ternetzi
2.2 in / 5.5 cm8up to 2468–79 °F / 20–26 °C
Betta (Siamese fighting fish)
Betta splendens
2.4 in / 6 cmcan live aloneup to 172–86 °F / 22–30 °C
Julii cory
Corydoras trilineatus
2.4 in / 6 cm6up to 2072–79 °F / 22–26 °C
Lyretail killifish
Aphyosemion australe
2.4 in / 6 cm3up to 2070–90 °F / 21–32 °C
Pearl danio
Danio albolineatus
2.4 in / 6 cm8up to 2061–77 °F / 16–25 °C
Platy
Xiphophorus maculatus
2.4 in / 6 cm3up to 2068–79 °F / 20–26 °C
Peppered cory
Corydoras paleatus
2.6 in / 6.5 cm6up to 1772–79 °F / 22–26 °C
Sterba's cory
Corydoras sterbai
2.6 in / 6.5 cm6up to 1775–82 °F / 24–28 °C
Tiger barb
Puntigrus tetrazona
2.8 in / 7 cm8up to 1468–79 °F / 20–26 °C
Bolivian ram
Mikrogeophagus altispinosus
3.1 in / 8 cmcan live aloneup to 1175–82 °F / 24–28 °C
Cockatoo dwarf cichlid
Apistogramma cacatuoides
3.1 in / 8 cmcan live aloneup to 1172–84 °F / 22–29 °C
Congo tetra
Phenacogrammus interruptus
3.1 in / 8 cm6up to 1173–82 °F / 23–28 °C
Dwarf gourami
Trichogaster lalius
3.1 in / 8 cmcan live aloneup to 172–81 °F / 22–27 °C
Kribensis
Pelvicachromis pulcher
3.9 in / 10 cm2up to 775–81 °F / 24–27 °C
Kuhli loach
Pangio kuhlii
3.9 in / 10 cm6up to 2970–79 °F / 21–26 °C
Molly
Poecilia sphenops
3.9 in / 10 cm3up to 770–82 °F / 21–28 °C
Zebra loach
Botia striata
3.9 in / 10 cm6up to 770–79 °F / 21–26 °C
Blue gourami
Trichopodus trichopterus
4.7 in / 12 cmcan live aloneup to 575–86 °F / 24–30 °C
Bristlenose pleco
Ancistrus sp.
4.7 in / 12 cmcan live aloneup to 572–81 °F / 22–27 °C
Pearl gourami
Trichopodus leerii
4.7 in / 12 cmcan live aloneup to 575–86 °F / 24–30 °C
Swordtail
Xiphophorus hellerii
4.7 in / 12 cm3up to 564–82 °F / 18–28 °C
Yellow lab cichlid
Labidochromis caeruleus
4.7 in / 12 cm4up to 575–82 °F / 24–28 °C

* Maximum if it is the only species in the tank. With several species, use the calculator.

Species to avoid in a 40-gallon tank

  • Red-tailed shark: recommended minimum 43 gal / 162 L. One per tank: as it grows, it defends its territory on the bottom.
  • Angelfish: recommended minimum 53 gal / 200 L. Once adult, it can eat small fish such as neon tetras; a tall tank is best.
  • Oscar: recommended minimum 71 gal / 270 L. A large predatory cichlid that is not a community tank fish.
  • Clown loach: recommended minimum 86 gal / 324 L. Grows large and lives in groups of 6 to 10: only for very large aquariums.
  • Common pleco: recommended minimum 132 gal / 500 L. Often sold tiny, it grows past 40 cm (16 in): only for very large aquariums.

Heater, filter and water changes for 40 gallons

150 WHeater
120–200Filter flow (GPH)
3.2–7.9 galWater to change per week

What size heater for a 40-gallon tank?

A 150 W heater in a heated room, or 250 W if the room gets cool in winter (below 64 °F / 18 °C). Rule of thumb: about 4 W per gallon (1 W per litre), 6 W per gallon in a cold room.

What filter flow for 40 gallons?

Aim for 120 to 200 GPH (450–760 L/h), that is 3 to 5 times the tank volume per hour. Manufacturers rate the flow with an empty filter: once it is packed with media the flow drops noticeably, so pick the upper end of the range.

How much water to change in a 40-gallon tank?

Change 3.2 to 7.9 gallons a week, that is 10 to 25% of the ~32 gal / 121 L of real water. Stay at the low end for a lightly stocked, well-planted tank and at the high end for a heavily stocked one. Use water at the same temperature, treated with a water conditioner.

Calculate for another tank size →

Full equipment guide for a 40-gallon tank: heater, filter, light, substrate →

Electricity use of a 40-gallon aquarium

A 40-gallon aquarium draws about 80 W on average, or roughly 58.7 kWh per month — about $10.00 per month at $0.17/kWh, or $120 per year. Breakdown: 45 W for the heater, 15 W for the filter and 20 W on average for the lights. In a cold room the heater runs more and the bill goes up.

Calculate with your electricity rate →

Why a 40-gallon tank doesn't hold 40 gallons of water

The stated volume is that of the empty tank. Once the substrate, rocks, wood, filter and the space under the lid are taken out, about 80% of it is usually water — here about 32 gal / 121 L. That real volume is what matters for your fish and for dosing products. Calculate your tank's exact volume.

What are the dimensions of a 40-gallon tank?

Standard 40-gallon glass tanks from the big US brands usually come in these sizes (length × width × height, outside dimensions, rounded; check your own model):

  • 36 × 18 × 16 in (91 × 46 × 41 cm) — lots of swimming length: the best choice for active fish
  • 36 × 12 × 20 in (91 × 30 × 51 cm) — tall: good for angelfish and plants, less so for schooling fish

How much does a 40-gallon tank weigh?

Expect about 451 lb / 204 kg once filled: 267 lb / 121 kg of water, plus the glass, substrate and decor. Above about 15 gallons, use a stand made for aquariums, and keep in mind what your floor can bear.

40 gallons or 29 / 55 gallons: what changes

The same calculations as on the rest of the site (75% target), side by side for the neighbouring sizes.

29 gal40 gal55 gal
Real water23 gal / 88 L32 gal / 121 L44 gal / 167 L
1.6 in (4 cm) fish324562
2.4 in (6 cm) fish142027
Suitable species414550
Heater100 W150 W200 W
Filter flow85–145 GPH120–200 GPH165–275 GPH
Filled weight326 lb / 148 kg450 lb / 204 kg619 lb / 281 kg

Going from 29 to 40 gallons, you gain 13 neon-sized fish, 4 suitable species and 50 W of heating. Going from 40 to 55 gallons, you gain 17 neon-sized fish, 5 suitable species and 50 W of heating.

Other tank sizes: 15 gallons 20 gallons 29 gallons 55 gallons
How these numbers are calculated →