How many fish can you put in a 20-gallon tank?
Short answer: a 20-gallon is your first true community tank — it comfortably holds roughly 15–25 small, peaceful fish once cycled and well filtered, spread across two or three species. A classic mix is a small centerpiece fish, a school of 10–12 tetras or rasboras, and a group of 6 corydoras. Favor a 20-gallon long over a 20 high for community fish, stock slowly, and still skip goldfish and large cichlids. As ever, the “1 inch per gallon” rule overstates what fits.
The 20-gallon: where real community tanks begin
If a 10-gallon is your first school, a 20-gallon is your first community. Doubling the water again from 10 to 20 gallons is the single biggest jump in beginner fishkeeping: it buys enough volume and footprint to layer fish that live in different parts of the tank — surface, mid-water, and bottom — into one stable, varied display.
That extra water also buys forgiveness. A 20-gallon swings more slowly in temperature and water chemistry than a nano tank, so a small mistake is less likely to crash the whole system. It is the size most experienced keepers recommend a beginner actually start with, rather than the 5 or 10 they often buy first.
20-gallon long vs 20-gallon high — this matters
Two tanks both labelled “20 gallons” can stock very differently. A 20-gallon long (about 30×12×12 in) and a 20-gallon high (about 24×12×16 in) hold the same water, but the long spreads it over a bigger footprint and more surface area:
- The long wins for community fish. More floor space and swimming length suit schooling fish, corydoras, and most active community species, and more surface area means better oxygen exchange.
- The high suits tall, slow fish. The extra height is useful for tall-bodied fish like angelfish or for a heavily planted aquascape, but it stocks lower for busy swimmers.
When you can choose, pick the 20 long for a general community.
Realistic 20-gallon stocking examples
| Option | Stocking | Notes |
|---|---|---|
| Classic community | 1 dwarf gourami + 10–12 harlequin rasboras + 6 corydoras | Surface, mid, and bottom all covered — the textbook 20-long community. |
| Tetra display | 12 neon or cardinal tetras + 6 pygmy corydoras + 1 nerite snail | One big, calming school plus a tidy bottom crew. |
| Livebearer tank | Trio of platies + trio of guppies + 6 corydoras | Colorful and active; they breed, so plan to rehome fry. |
| Centerpiece + school | 1 male betta or 1 honey gourami + 8–10 ember tetras + shrimp | A peaceful centerpiece over a small school works well in a 20. |
| Single fancy goldfish | 1 fancy goldfish (20-long only, to start) | Workable as a starter; fancy goldfish are high-waste, so over-filter and plan to upgrade. |
| Over the line | Common/comet goldfish, oscars and most large cichlids, a school of full-size barbs, multiple angelfish long-term | Outgrow a 20 or pollute too heavily — size up. |
The pattern in every good option is the same: one peaceful centerpiece or one extra species at most, built around a single proper school, with the bottom worked by corydoras or shrimp. That layered approach — not a dozen singles of different fish — is what makes a 20 look full without being overstocked.
Why the “1 inch per gallon” rule still misleads here
At 20 gallons the inch rule would promise “20 inches of fish,” which sounds generous — but it still ignores the three things that actually set a tank’s limit:
- Waste output, not length. One 4-inch goldfish produces far more waste than four 1-inch tetras, even though the inch rule treats them as equal.
- Footprint and swimming room. A 20 long and a 20 high read identically to the inch rule, yet stock very differently — horizontal space is what active fish need.
- Adult size, not store size. The cute juvenile in the shop is the fish you have to plan for at full grown; inches counted today overstock the tank in six months.
A bioload-based estimate — what our stocking calculator uses — gives a far more honest picture than counting inches. For the full reasoning, see how many fish per gallon, really.
Make a 20-gallon work
- Cycle the tank first and add fish a species at a time over several weeks — a 20 lets you stock in stages, so use that room.
- Filter it properly. A 20-gallon does best with a filter rated above its volume; see the best filters for a 20-gallon tank.
- Heat it for tropical fish. Most communities want a stable 76–80°F, which a roughly 100 W heater handles; see the right heater size for a 20-gallon.
- Do regular water changes (around 20–25% weekly) to keep nitrate in check.
- Keep schooling fish in real groups of six or more — a 20 finally has room to do this properly, and it is what keeps them calm and colorful.
For a stable 20-gallon community: a filter rated a step above the tank, a roughly 100 W heater, a separate thermometer, and a siphon for water changes cover the essentials.
Right-sized filters: our best-filter picks for a 20 · AquaClear 50 (HOB) · Seachem Tidal 55
Heaters + thermometer: our heater-size guide for a 20 · 100 W heater · aquarium thermometer
Water-change kit: gravel vacuum / siphon
As an Amazon Associate, TankStocked earns from qualifying purchases — at no extra cost to you.
Frequently asked questions
How many tetras can I keep in a 20-gallon?
A 20-gallon comfortably holds a school of 10–12 small tetras such as neons, cardinals, or embers as the centerpiece school, with room left for a bottom group of corydoras or shrimp. Keeping them in a real group of at least six is what keeps schooling fish calm and showing their best color.
Can I keep angelfish in a 20-gallon?
One angelfish can work temporarily in a 20-gallon high, but angelfish grow tall and tall-bodied and are best kept in a 29-gallon or larger, especially as a pair. For a lasting community, treat a 20 as a small-fish tank rather than an angelfish tank.
How many corydoras can I keep in a 20-gallon?
A 20-gallon long is a great corydoras tank — a group of 6–8 of one standard species (or more of the dwarf species) works well and gives them the social group they need. The long footprint matters more to corydoras than the gallon number.
Can I put a betta in a 20-gallon community?
Often, yes. A 20-gallon gives a single male betta plenty of room alongside peaceful, non-nippy tankmates like ember tetras, rasboras, corydoras, and shrimp. Avoid fin-nippers, bright flashy fish, and other bettas, and always have a backup plan in case your individual betta turns out to be too aggressive.
Related: Aquarium stocking calculator · How many fish in a 10-gallon? · How many fish in a 5-gallon? · How many fish per gallon, really · Best filter for a 20-gallon · Best heater for a 20-gallon