Guide

Great setups for a 40 gallon community tank

Larger tanks mean bigger schools and more variety. Example combinations that work.

⏱ 11 min read 📐 Stocking 📅 Updated May 2026
Quick answer
  • 40 gallons gives you real options: large schools (10-15 fish), a centrepiece species, and a proper cleanup crew can all coexist comfortably.
  • Match water chemistry first: build your stocking list around your tap water's hardness and pH - not the other way around.
  • Cycle before anything goes in: a fully cycled tank is non-negotiable; rushing this kills fish and wastes money.
  • Filter for more than 40 gallons: aim for turnover of 8-10× the tank volume per hour; canister filters or dual HOBs both work well at this size.
  • Stock gradually: add fish in groups two to three weeks apart to let your biological filter catch up.
  • Avoid fin-nipper and long-fin combinations: tiger barbs with angelfish, or serpae tetras with bettas, will end badly regardless of tank size.

Why 40 gallons is a genuinely good size

Most entry-level tanks are 10-20 gallons, which forces compromises - tiny schools, no centrepiece, limited species choices. At 40 gallons (roughly 150 litres) you clear a threshold where aquascaping and community keeping both become easier. You can run a school of 12 rummynose tetras and a pair of German blue rams and a crew of corydoras without everything feeling crowded. Parameters also stay more stable in a larger water volume, which gives you a wider margin for error.

The footprint matters too. A standard 40-gallon breeder (36″ × 18″ base) gives corydoras and other bottom-dwellers significantly more floor space than a tall 40-gallon, making it the better choice for most community setups. If you're planning angelfish, a taller tank suits them better - but for everything else, go wide over tall.

Tip

A 40-gallon breeder (36″ × 18″ × 16″) is often easier to aquascape and provides more bottom surface area for corydoras than a standard 40-gallon high. If you haven't bought your tank yet, the breeder footprint is worth the search.

Before you stock: the non-negotiables

Two things will determine whether your community tank thrives or slowly falls apart: the nitrogen cycle and your water parameters. Get both right before a single fish goes in.

Cycle the tank first

A new tank has no beneficial bacteria to process ammonia. Fish produce ammonia constantly; without Nitrosomonas and Nitrospira colonies established in your filter media, that ammonia spikes and burns fish alive from the inside out. Cycling typically takes four to six weeks using an ammonia source (pure ammonia or fish food) and patience. You can speed it up with a seeded filter sponge from an established tank. You're done when you can add 2-3 ppm ammonia and it converts completely to nitrate within 24 hours. Full details in our guide to how to cycle a fish tank.

Know your tap water

Test your tap water for pH, GH (general hardness), and KH (carbonate hardness) before you plan a stocking list. Most UK and US municipal supplies sit somewhere between pH 7.0-7.8 with moderate hardness. That's ideal for livebearers, rainbowfish, and many tetras, but less suitable for softwater species like discus or wild-type cardinal tetras. Chasing the wrong parameters with RO water and remineralisation is possible, but it adds cost and complexity. Work with what comes out of your tap where you can. See our guide to aquarium water parameters for a full breakdown.

Common mistake

Most people plan their stocking list, buy the fish, then test their water - and discover their soft-water tetras are sitting in pH 8.0, hard tap water. Test first, stock second.

Setup 1: Three schools and a centrepiece pair

Best for: soft-to-neutral water (pH 6.5-7.4, GH 4-10 dGH)

  • 12 cardinal or neon tetras (Paracheirodon axelrodi / P. innesi)
  • 10-12 harlequin rasboras (Trigonostigma heteromorpha)
  • 8-10 sterbai or peppered corydoras (Corydoras sterbai / C. paleatus)
  • 1 pair German blue rams (Mikrogeophagus ramirezi) or a single dwarf gourami (Trichogaster lalius)

This is a hard setup to beat for visual impact. The tetra school catches light in the midwater, the rasboras add a warm copper layer above them, and the rams work the substrate in bursts of blue and gold. Corydoras handle bottom-level activity and general detritus.

German blue rams need warmer water than most community fish - keep the tank at 27-29°C (80-84°F). Cardinals handle that fine; corydoras sterbai was practically selected for warm tanks and copes well. If you're using peppered corydoras (C. paleatus), they prefer 22-25°C (72-77°F), so swap them out for sterbai if you're running a warm setup.

Watch out

Dwarf gouramis (Trichogaster lalius) sold in shops today are frequently infected with Dwarf Gourami Iridovirus (DGIV), a fatal and incurable disease. Buy from a reputable breeder if you can, and quarantine for at least three weeks before introducing to your main tank.

Setup 2: Angelfish community

Best for: neutral to slightly hard water (pH 6.8-7.5, GH 5-12 dGH), tall tank preferred

  • 2 angelfish (Pterophyllum scalare)
  • 12-15 rummynose tetras (Hemigrammus bleheri) or larger cardinals
  • 8 bronze or sterbai corydoras
  • Nerite snails for algae (5-6)

Angelfish are cichlids, and people consistently underestimate that. A pair that bonds will defend territory and may harass tankmates, particularly during spawning. In a 40-gallon, keep two juveniles and accept they may form a pair - if aggression becomes a problem, rehome one. Never keep a lone angel with one target fish; at least keep a second to dilute any fixation.

The tetra choice matters here. Small neon tetras (P. innesi) are a common recommendation but in practice, adult angelfish will eat neons. Rummynose tetras are faster, school more tightly, and grow large enough that adult angels generally ignore them. Cardinals are acceptable once fully grown. Whatever you choose, add the tetras first and the angels last - fish established in the tank first tend to receive less aggression from newcomers.

Plant densely. Tall stem plants like Vallisneria and Echinodorus give angelfish visual breaks and reduce conflict.

Honest take

Two angelfish in a 40-gallon is workable, but it's toward the lower end of appropriate space if they pair up and spawn. Some pairs become extremely aggressive when guarding eggs. If you want an angelfish tank long-term, a 55-gallon gives you meaningfully more options.

Setup 3: Rainbowfish display tank

Best for: hard, alkaline water (pH 7.2-8.0, GH 8-18 dGH)

  • 6-8 Boeseman's rainbowfish (Melanotaenia boesemani) or dwarf neon rainbowfish (Melanotaenia praecox)
  • 10-12 cherry barbs (Puntius titteya) or black skirt tetras (Gymnocorymbus ternetzi)
  • 8 corydoras (bronze or peppered, both tolerate harder water)
  • 1 bristlenose pleco (Ancistrus sp.) for algae

Rainbowfish are underused in the hobby. A group of male Boeseman's in full colour - orange fading to teal - is genuinely striking, and they're hardy, fast, and peaceful. The catch: they need hard water and they need swimming space. Don't crowd the midwater with too many species; rainbowfish want open runs.

Males develop their best colour when kept with females - keep a ratio of roughly 2 females per male to prevent any one female being chased relentlessly. A mixed-sex group of six (two males, four females) works well in 40 gallons.

8-10×
Target filter turnover

Active species like rainbowfish and barbs produce significant waste - filter flow rate should turn over the full tank volume 8-10 times per hour minimum.

Setup 4: Mixed peaceful community

Best for: neutral water (pH 7.0-7.6), beginners wanting a low-drama tank

  • 8-10 black neon tetras (Hyphessobrycon herbertaxelrodi)
  • 8-10 cherry barbs (Puntius titteya)
  • 8 platies (Xiphophorus maculatus) - mixed sex, watch for breeding
  • 8 corydoras (bronze or pepper)
  • 1 bristlenose pleco or 5-6 nerite snails

This is the setup to recommend to someone who asks "what can I put in a 40-gallon that won't cause problems?" Everything here tolerates a wide pH range, handles neutral hardness, and coexists without territorial issues. The colour variety - black and silver tetras, red cherry barbs, and patterned platies - gives visual interest across multiple levels without complexity.

One warning on platies: they breed. A mix of males and females will produce fry constantly. Either keep all one sex (easier with males), or accept that fry will mostly be eaten in a community tank and population will self-regulate.

This setup works well for beginners - if you want a broader starting point, our guide to best fish for beginners covers species compatibility in more detail.

Filtration, maintenance, and keeping it stable

A 40-gallon community tank with a full stocking list produces a meaningful bioload. A single small HOB filter is not enough. Your options:

  • Canister filter: best mechanical and biological filtration, quiet, keeps equipment out of the tank. A 700-1000 l/h model suits a 40-gallon well.
  • Dual HOB filters: two medium HOBs give redundancy - if one fails, the other keeps your cycle alive. Easier to maintain than a canister for some people.
  • Sponge filter + powerhead: cheap, excellent biological filtration, good for breeding setups or tanks with fry.

Water changes: in a fully stocked 40-gallon, 25-30% weekly is the standard. Skipping weeks lets nitrates climb, stresses fish, and encourages algae. If you want to understand the relationship between water change frequency and nitrate accumulation, our guide on how often to do water changes covers the maths. You can use our free stocking calculator to check whether your planned list is within reasonable bioload limits before you buy.

Tip

Use App-aquatic to log your weekly test results. Tracking pH, ammonia, nitrite, and nitrate over time makes it much easier to spot a slow parameter drift before it becomes a fish health problem.

What most stocking guides miss

Most lists tell you what to stock but not how to introduce fish without crashing your cycle. Adding 30 fish to a 40-gallon in one visit is a fast route to an ammonia spike, even in a cycled tank. The bacteria colony in your filter is sized to the current bioload - add fish incrementally, in groups, two to three weeks apart. Test ammonia and nitrite after each addition.

Quarantine is also systematically ignored in hobby guides. A separate 10-20 gallon quarantine tank lets you observe new fish for three to four weeks before they contact your display tank. Disease introductions - ich, velvet, internal parasites - are far more common than most beginners expect, and treating a full planted community tank is considerably harder than treating a bare quarantine tank.

Finally: research adult size, not shop size. Bristlenose plecos stay at 10-15 cm (4-6″) - appropriate for a 40-gallon. Common plecos (Pterygoplichthys pardalis) reach 45-60 cm (18-24″) and are still sold in shops as "algae eaters" with no size warning. They don't belong in a 40-gallon at any age.

Track your parameters and get care reminders with App-aquatic.

Get the free app

How many fish can I keep in a 40-gallon tank?

It depends heavily on species, filtration, and maintenance - the old "1 inch per gallon" rule is meaningless for most modern community fish. A realistic fully stocked 40-gallon might hold 35-50 small fish (tetras, rasboras, corydoras), or fewer larger species like angelfish or rainbowfish. Use our stocking calculator to check a specific list.

Can I keep angelfish in a 40-gallon?

Yes, with caveats. Two juveniles work in a 40-gallon, but a bonded pair that starts spawning can become aggressive enough to dominate the tank. A 40-gallon breeder with a tall profile (or a dedicated 55-gal

More guides · 20 gallon setups · 30 gallon setups · Community fish · Get the app