Four communities the math approves
The 20-long opens the beginner community canon. These four are math- checked starting points; click Apply on any to land in the checker with that combo prefilled.
Beginner community classic
Apply →Eight neon tetras (mid-water school) plus six corydoras (bottom school). The textbook combo — temp/pH/GH overlap is generous, bioload sits comfortably below 0.7, and behavioral layers (mid-water vs bottom) keep the tank visually busy without species competing for the same space.
Active mid-water community
Apply →Six cherry barbs plus six corydoras. Cherry barbs are faster swimmers than neons and hold school structure tighter; the warm-red body color reads better in planted setups than neons' iridescent stripe. Same parameter window, similar bioload.
Heavily-planted aquascape
Apply →Ten ember tetras as the school + one dwarf gourami as centerpiece + one mystery snail. The 20-long supports a single dwarf gourami comfortably (males are territorial; one is the cleanest answer at this size). Plant load buffers the bioload — this stocking is tighter than the first two, but planted tanks add capacity.
Hardier mix
Apply →Six zebra danios + six cherry barbs + four kuhli loaches. Wider parameter tolerance than the planted combos — zebra danios handle a 64–77°F range, cherry barbs 72–79°F. Better choice if your tap water is cool or your house runs cold in winter. Kuhli loaches replace cories as the bottom layer (more nocturnal, more sand-burrowing, fewer bioload demands).
What the 20-gallon still doesn't fit
- Angelfish.29 gallons is the conservative single- adult minimum. The 20-long's 12-inch height stunts the fin geometry — angelfish are vertical-body cichlids and need depth, not length.
- Fancy goldfish.Same as the 10-gallon answer. 30 gallons per single fancy is the realistic floor; the 20g doesn't close the gap.
- Common pleco. Adult length still 18+ inches. Bristlenose plecos work in 25+ gallons but the 20g is borderline for one — the height-to-grazing-surface ratio is tight.
- Discus. Three or more is the minimum (highly social), and each adult needs ~25 gallons. 75+ gallons is the realistic discus minimum, not 20.
- Multiple male bettas, multiple male dwarf gouramis, two males of any small cichlid. Territory + footprint arithmetic doesn't close in a 20.
- Tiger barbs at minimum group size. 6+ barbs in a 20-long fits bioload-wise but the nipping behavior compounds with limited space; better in 30+ gallons or a species-only tank.
The 20-long vs 20-high trap
Pet stores stock both shapes under the same “20-gallon” label. Same nominal volume, very different stocking math:
- 20-long — 30 in × 12 in × 12 in. Lateral swim space, suits schoolers, supports the textbook beginner community.
- 20-high — 24 in × 12 in × 16 in. Same volume, less floor, more height. School structure breaks down faster; better for tall-body species (gourami pair) than horizontal swimmers.
When a guide says “works in 20 gallons,” assume 20-long unless explicitly noted. If the tank you have is a 20-high, treat schooling-fish stockings as one shape category up — what fits in a 20-high is what fits in a 10-gallon for behavioral purposes, not what fits in a 20-long.
When you outgrow 20 gallons
The 29-gallon is the natural next step. Same 30 in × 12 in footprint as the 20-long, plus 9 inches of height — that's enough bioload headroom to add a centerpiece angelfish or beef up community combos. How many fish fit in a 29-gallon covers what the extra height unlocks.
Frequently asked
20-long vs 20-high — which is better for stocking?
20-long, by a wide margin, for any community tank. The 20-long footprint is 30 in × 12 in (the same width and depth as a 29-gallon, just shorter); the 20-high is 24 in × 12 in. Same volume, but the 20-long gives schoolers 6 extra inches of lateral swim space, which is what schooling fish actually use. Cories, danios, harlequin rasboras, and barbs all read better in 20-long. The 20-high is fine for tall-body species (gourami pair) where vertical space matters more than horizontal.
Can I keep an angelfish in a 20-gallon?
Marginal at best, and 29 gallons is the conservative minimum. Angelfish are tall-body cichlids; the adult fin span exceeds 10 inches vertically and the 20g's 12-inch height is too cramped for normal posture. They're also active swimmers that benefit from depth more than length. The 20-long is wrong for angelfish geometry; if angelfish is the goal, jump to 29 minimum.
How many corydoras fit in a 20-gallon?
Six is the minimum and works comfortably; 8–10 of a single species fits with appropriate community above them. Cories are the textbook 20-long bottom-dwelling school — the footprint matches their need for floor space. They cruise the substrate together for 3–4 hours of active behavior daily; below the 6-fish threshold the school behavior breaks down and individuals hide.
Can I keep two dwarf gourami in a 20-gallon?
Risky. Two males will fight; one male and one female has its own dynamics (the male can chase the female to exhaustion if there's nowhere for her to retreat). The 20-long footprint is enough physical space for the breakup-and-retreat pattern to work IF the tank is heavily planted with line-of-sight breaks. The cleaner answer is one dwarf gourami centerpiece; if a pair is the goal, 29+ gallons with extensive plant cover.
What's a beginner-safe 20-gallon community?
8 neon tetras + 6 corydoras is the textbook combination — the math approves it (parameter overlap, schooling minimums, bioload ratio under 0.7). It survives parameter swings better than tighter combinations because all species share the soft, slightly-acidic, 72–78°F window. Add a single mystery snail and the bioload still sits in comfortable range. Avoid centerpiece species in this stocking; the school structure is the visual interest.
What's the realistic working volume of a 20-gallon tank?
About 16–17 gallons after substrate, decor, and fill below the rim. The 20-long specifically loses slightly less to substrate per gallon than a 20-high because the substrate bed runs longer but isn't deeper. Stocking math should use working volume; the calculator above defaults to 16 for that reason.
Related
- Full compatibility checker →
- Stocking density calculator →
- Setting up a 20-gallon community tank →
- Aquarium volume calculator →
- How many fish in a 10-gallon →
- How many fish in a 29-gallon →
By Jimmy L Wu. Species data uses FishBase for taxonomy, native distribution, and maximum size where the field is populated; husbandry ranges (temperature / pH / GH) and bioload weights are synthesized from established hobby references (Aquarium Co-Op care guides, The Aquarium Wiki, university extension publications) and labeled hobby-practice. Engine logic in lib/aquarium/stocking.ts and lib/aquarium/compatibility.ts. Working volume math assumes ~80% of nominal after substrate and fill below the rim — the volume calculator handles your specific dimensions if your setup differs. Not veterinary advice — for sick fish or tank emergencies, consult an aquatic veterinarian or a qualified local aquarium professional.