How Many Fish Can You Put in a 20 Gallon Tank?

So you’ve got (or you’re eyeing) a 20-gallon tank, and you’re trying to figure out how many fish you can actually put in it without turning your living room into a science experiment gone wrong.

I get this question more than almost any other. I get why a 20-gallon tank is one of the most popular tank sizes for a reason. It’s big enough to do something interesting with, small enough to fit on a stand without a second mortgage, and it’s actually the size of my own high-tech planted 20-gallon long sitting in my fish room right now.

Here’s the thing though: if you Google this, you’ll get a dozen different answers, most of them based on the old “1 inch of fish per gallon” rule. I used that rule too, back before I understood why it’s wrong. It doesn’t account for bioload, filtration, adult fish size, or how different species actually behave, and it’s led a lot of beginners straight into ammonia spikes and dead fish.

So instead of giving you a made-up number, I’m going to walk you through how to actually calculate stocking for a 20-gallon tank — the same way I approach it on my own tanks — so you land on a number that’s right for your setup, not just a generic rule of thumb.

Disclosure: AquaLogicHQ.com is a participant in the Amazon Services LLC Associates Program, as well as other affiliate programs, designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites at no extra cost to you. Please see the Affiliate Disclosure for more details.


Quick Facts

20 Gallon Tank Stocking — At A Glance

🐠
Small Schoolers
12–15 fish
Neon tetras, ember tetras, or similar — kept in groups of 6+
🐟
Betta Setup
1 betta + 6–8 tankmates
One male betta, paired with peaceful schoolers or corydoras
⚖️
Real Deciding Factor
Bioload, not gallons
Filtration, water changes, and plants matter more than the “inch rule”
📐
Better Tank Shape
20 Long over 20 Tall
More surface area means better gas exchange and bioload headroom
🚫
Fish To Avoid
Goldfish, plecos, oscars
Outgrow a 20 gallon regardless of how the bioload math works out
🔄
Before You Stock Anything
Tank must be fully cycled
Ammonia and nitrite both reading zero, nitrates present

Why “1 Inch of Fish Per Gallon” Doesn’t Work

If you’ve been in the hobby for more than five minutes, you’ve heard this rule: one inch of adult fish per gallon of water. It’s simple, it’s memorable, and honestly, it’s the reason I overstocked my very first tank back when I started.

The problem is that it treats every fish like an identical, interchangeable unit — as if a 2-inch neon tetra and a 2-inch goldfish belong in the same math. They don’t. Here’s where the rule falls apart in practice:

A 3-inch neon tetra and a 3-inch goldfish compared side by side, showing why the 1 inch per gallon rule fails

It ignores body mass, not just length

A slim 3-inch tetra and a chunky 3-inch fancy goldfish are not the same fish. The goldfish has way more mass, eats more, and produces a lot more waste — but the “inch per gallon rule” scores them identically.

It doesn’t account for waste output

Some fish are just messier than others. Goldfish and plecos, for example, produce a disproportionate amount of waste for their size — nowhere close to what a similarly-sized tetra puts out. A rule based purely on length can’t capture that.

It measures fish at purchase size, not adult size

That inch-long oscar or pleco fry you brought home isn’t staying an inch long. A lot of beginners (myself included, once) stock based on the size of the fish in the bag, not the size they’ll be in a year.

It says nothing about swimming behavior or activity level

A fast, active schooling fish needs more oxygen and generates more bioload through activity and metabolism than a slow-moving, sedentary species of the same length.

It ignores filtration entirely

Two 20-gallon tanks with identical “inches” of fish can have completely different safe stocking levels depending on filter capacity, media, and how well the tank is maintained.

The inch rule isn’t useless as a rough starting point for very similar community fish, but as your only tool, it’s a good way to end up with a tank that looks fine on day one and crashes three weeks later. What actually determines whether your stocking level is safe isn’t length at all — it’s bioload, and that’s what we need to talk about next.


What Actually Determines Stocking Levels: Bioload

If there’s one concept I wish every beginner understood before buying their first fish, it’s bioload. This is the real answer to “how many fish can I keep” — not inches, not gallons, but bioload.

Diagram showing fish waste being converted by beneficial bacteria into less harmful byproducts in an aquarium

What bioload actually means

Bioload is the total amount of waste your fish produce relative to how much water you have and how well your filtration can process that waste. Every time your fish eat, breathe, and, well, poop, they’re adding ammonia and organic waste to the tank. Your filter’s beneficial bacteria break that ammonia down through the nitrogen cycle, converting it to nitrite and then to less-harmful nitrate. Bioload is essentially a tug-of-war between “waste being produced” and “waste being processed” — and stocking a tank is about keeping that fight in your favor.

What increases bioload

A few factors stack up here, and it’s worth thinking through each one when you’re planning stock for a 20-gallon tank:

  • Fish size and body mass. Bigger fish, more waste. This sounds obvious, but people underestimate how much a fish’s adult size matters, not its size at the store.
  • Species-specific waste output. Some fish are just dirtier than others relative to their size. Goldfish and larger plecos are the classic examples — I’ve kept both, and neither one belongs in a 20-gallon long-term, no matter how the inch math works out.
  • Feeding frequency and amount. More food in means more waste out. Overfeeding is one of the fastest ways to spike bioload without adding a single fish.
  • Metabolism and activity level. Active, fast-swimming fish tend to have higher metabolisms, which means more waste and higher oxygen demand than a similarly-sized, slower-moving species.
  • Number of fish, period. Even small, “clean” fish add up. Ten neon tetras is a very different bioload than two.

What offsets bioload

This is the part the inch rule completely ignores, and it’s the reason two 20-gallon tanks can safely hold very different numbers of fish:

  • Filtration capacity. A filter rated well above your tank’s actual volume, with enough media to house a healthy colony of beneficial bacteria, can process waste faster and support a higher bioload than a bare-minimum filter.
  • Water change frequency. Regular water changes physically remove nitrates and organic waste before they accumulate, which is part of why a tank on a consistent maintenance schedule can support more fish than one running on neglect.
  • Live plants. Live plants take up ammonia and nitrate directly as a nutrient source, which gives you a bit of a bioload buffer — one of the reasons I run my high-tech 20-gallon long the way I do.
  • Surface agitation and gas exchange. More oxygen at the surface supports a larger, more efficient bacterial colony and keeps fish healthier under a given bioload.
  • Tank maturity. A well-established tank with a mature bacterial colony processes waste more efficiently than a freshly cycled one, even with identical filtration on paper.

Why this matters for your stocking number

Two people can each set up a 20-gallon tank, and one might comfortably stock 15 small fish while the other should stop at 8 — same size tank, very different safe bioload depending on filtration, plants, maintenance habits, and fish selection. That’s why I’m not going to hand you one magic number for a 20-gallon tank and call it done. Instead, in the next section, I’ll walk through real stocking examples by fish type, so you can see how bioload plays out with actual species you might be considering.


Stocking Examples by Fish Type

Numbers below assume a standard 20-gallon (long or tall) with solid filtration, a fully cycled tank, and reasonable maintenance. Treat these as a starting range, not gospel — your actual bioload management will push you toward the higher or lower end.

Small schooling fish (nano fish)

This is where a 20-gallon really shines. Species like neon tetras, ember tetras, chili rasboras, or harlequin rasboras:

Neon tetras suited for a 20 gallon community tank
  • 12–15 neon or ember tetras
  • 15–20 chili rasboras (they’re tiny, so you can go higher)
  • Keep these in groups of 6+ — schooling fish stress out and actually show worse bioload-adjacent behavior (hiding, poor appetite) in numbers too small to feel secure

For smaller tanks, like nano setups, these fish also will work really well. Check my nano stocking guide for my info if a smaller set is something you’re more interested in.

Betta + tankmates

A single betta doesn’t need much bioload budget on its own, which leaves room for a peaceful community:

Betta fish swimming in a planted tank
  • 1 betta + 6–8 small tetras or rasboras (avoid fin-nippers like some barbs)
  • 1 betta + 6 corydoras (bottom of the tank, minimal overlap)
  • 1 betta + a small group of shrimp
  • Skip other bettas or long-finned fish that might get mistaken for a rival

Livebearers (guppies, mollies, platies)

These come with an asterisk I always warn: they breed. A lot.

Molly fish, a livebearer species suitable for a 20 gallon tank
  • 6–8 guppies to start, mixed sex — but expect that number to climb fast
  • If you don’t want an ever-growing bioload, stick to one sex or budget for the fact that “6 guppies” often becomes 20+ within a few months
  • Mollies get bigger than guppies, so I’d cap around 5–6 in a 20-gallon

Bottom dwellers (corydoras, kuhli loaches)

A corydora catfish foraging along the substrate

These pair well with almost anything above since they occupy different water column space:

  • 6 corydoras (they’re a schooling fish too — don’t go below 5-6)
  • 3–5 kuhli loaches alongside a smaller cory group if you want variety

Fish that don’t belong in a 20-gallon tank

I get asked about these constantly, so let’s just address them directly:

Fancy goldfish, a species that outgrows a 20 gallon tank long-term
Common pleco, a species too large for a 20 gallon tank as an adult
  • Goldfish — even “small” fancy varieties get too big and produce too much waste for a 20-gallon long-term
  • Common plecos — sold small, but they’ll outgrow a 20-gallon tank fast and are heavy bioload contributors
  • Oscars and other large cichlids — need 55+ gallons as adults
  • Angelfish (long-term) — doable young, but they outgrow a 20-gallon’s height and footprint as adults

Sample stocking combos

Putting it together, here are three builds I’d actually stock in a 20-gallon:

  • Colorful community: 8 guppies (one sex if possible) + 6 corydoras + a small group of shrimp
  • Peaceful nano community: 10 ember tetras + 6 corydoras + 5 amano shrimp
  • Betta showcase tank: 1 betta + 6 chili rasboras + 6 nerite snails

Building your own combo

If none of these three quite match what you’re after, the formula behind them is repeatable: pick one schooling or centerpiece fish first, add a bottom dweller to fill unused water column space, and stop there unless your bioload budget has real room left over. That’s the same logic the calculator below runs through automatically — plug in your picks and quantities, and it’ll tell you whether you’ve actually got the budget for that third addition or whether you’re better off stopping at two.

The 20 Gallon Fish Tank Stocking Calculator

AquaLogicHQ Tool

20 Gallon Bioload & Stocking Calculator

Forget “inches per gallon.” Set your filtration and maintenance routine, add the fish you’re considering, and see how your actual bioload stacks up.

🐠
0 pts used of 0 pt budget
Bioload Reference — Common 20 Gallon Picks
Species Bioload Pts / Fish Min. Group Note

Points are a relative scale, not a lab measurement — they’re built from body mass, waste output, and activity level so you can compare species on the same terms. For the full reasoning, see the bioload section above.


Why the Nitrogen Cycle Changes Everything About These Numbers

Every stocking number in this post comes with an assumption baked in: that your tank is fully cycled. If it isn't, none of this bioload math matters yet — you could stock the most conservative combo on this page and still crash your water quality.

A quick refresher on what's actually happening

Your fish produce ammonia, which is toxic even in small amounts. In a cycled tank, colonies of beneficial bacteria living in your filter media (and on surfaces throughout the tank) convert that ammonia into nitrite, then a second group of bacteria converts nitrite into nitrate — which is far less harmful and gets removed through regular water changes. This whole process is the nitrogen cycle, and it's the biological engine that everything in the bioload section depends on.

Why this matters for stocking a 20-gallon specifically

A brand new tank has none of this bacteria built up yet. That's why "new tank syndrome" is such a common way for beginners to lose fish in the first few weeks — they stock based on the tank's gallon capacity, not realizing there's no functioning biological filter yet to process any of it. I've watched this happen to people who did everything else right; they just didn't wait for the cycle to establish.

This is also why two tanks with identical filtration and stocking can behave completely differently depending on maturity. A 20 gallon that's been running for eight months has a far more established bacterial colony than one that finished cycling last week — which is exactly the "tank maturity" factor I flagged back in the bioload section. Same gallons, same fish, different real-world capacity.

The practical takeaway

Before you stock anything close to the numbers in this post, confirm your tank is fully cycled — ammonia and nitrite both reading zero, nitrates present and being exported through water changes. If you're not there yet, start with a much smaller, hardier stock (or a fishless cycle) and build up from there as your bacterial colony matures.


Does It Matter If Your 20 Gallon Is Long or Tall?

Yes — more than most people realize when they're shopping by gallon number alone. "20 gallon" actually refers to two pretty different tanks:

  • 20 Gallon Long (20L): roughly 30" x 12" x 12"
  • 20 Gallon High/Tall (20H): roughly 24" x 12" x 16"

Same water volume, same "20 gallons" on the box, but very different shapes — and that difference actually affects how many fish you can comfortably stock.

Why footprint matters more than height

The 20 long has a bigger footprint — more surface area where water meets air. That matters because gas exchange (oxygen coming in, CO2 leaving) happens at the surface, not throughout the whole water column. A wider, shallower tank with more surface area supports better oxygen exchange, which in turn supports a healthier, more efficient bacterial colony processing your bioload. This is the same "surface agitation and gas exchange" factor from the bioload section — tank shape is one of the things that determines how much of it you're working with before you even add a filter.

The 20 tall, by contrast, has roughly 25% less surface area than the long, packed into a taller column of water. That's not a dealbreaker, but it does mean you're working with a slightly tighter oxygen budget for the same volume of water and waste.

What this means for stocking

  • A 20-gallon long generally has a bit more real-world bioload capacity than a 20-gallon tall, gallon-for-gallon, mostly due to that surface area difference
  • A 20-gallon long also plays to the strengths of most nano/small community fish — it gives horizontal swimming fish (tetras, rasboras, danios) much more usable space, since they spend far more time swimming across a tank than up and down in it
  • A 20-gallon tall can make sense for fish that use vertical space — like angelfish (as juveniles) or certain gouramis — but it's a worse fit for the horizontal schoolers that make up most 20-gallon stocking lists

The Way I See It

I run a high-tech planted 20-gallon long myself, and it's not a coincidence — for almost every stocking scenario in this post, the long footprint gives you more usable space and slightly more bioload headroom for the same gallon count. If you're choosing between the two and don't have a specific tall-tank fish in mind, the long is the better default.


Signs Your 20 Gallon Tank Is Overstocked

Even with careful planning, bioload can creep up on you — fish grow, feeding habits change, filters get neglected. Here's what to actually watch for.

Overstocked aquarium showing a heavy algae bloom caused by excess bioload

Ammonia or nitrite readings above zero

This is the most direct signal there is. In a fully cycled tank, ammonia and nitrite should both read zero or near zero on a test kit. If either one is creeping up (and you've ruled out a cycle crash from cleaning your filter media too aggressively), your bioload is outpacing what your bacterial colony can process. If you're not sure your test kit is giving you an accurate read in the first place, it's worth knowing how accurate your kit actually is before you trust the numbers — and if ammonia is confirmed high, here's how to bring it down fast.

Algae blooms and water that won't stay clear

Excess nutrients from uneaten food and fish waste feed algae, and the same excess organic waste can turn water hazy or cloudy. An occasional bloom in a new tank is normal; algae or cloudiness that keeps coming back despite reasonable lighting and a normal maintenance routine is often a sign your bioload has outgrown your filtration. If this is a recurring fight for you, this breakdown of clearing green water and getting cloudy water clear can help you attack it directly while you address the underlying bioload.

Increased aggression or fin damage

Overstocked tanks mean less territory and more competition for resources, which shows up as chasing, nipped fins, or fish that suddenly won't leave hiding spots. This is especially telling if aggression appears in a group that was peaceful when it was smaller.

Fish gasping at the surface

This usually points to low dissolved oxygen, which happens when bioload outpaces your surface agitation and gas exchange. If you see multiple fish doing this, especially at night or early morning when oxygen is naturally lowest, that's a real warning sign, not a quirky behavior — an air pump can buy you breathing room while you sort out the bigger picture.

Slow, creeping decline

Not every sign is dramatic. Fish that should be growing steadily but aren't, or that seem chronically listless despite normal water temperature, can be showing the effects of consistently elevated ammonia or nitrate — even at levels that aren't spiking, just staying persistently high. Nitrates creeping up faster than they used to despite your usual water change routine is the same story in numbers. Getting your nitrates back down is a good first move if you're seeing either.

What to do if you spot these

Don't panic-rehome everything. Start with an immediate water change to buy some breathing room — a good water change pump makes this a lot less painful — then work backward: test your parameters, check your filter isn't clogged or under-maintained, and decide whether the fix is more filtration, more frequent water changes, or actually reducing your stock.



Conclusion

If you take one thing away from this post, let it be this: there's no single number that answers "how many fish in a 20-gallon tank." Anyone who gives you one flat answer without asking about your filtration, your maintenance routine, or what species you're actually considering is still thinking in inches-per-gallon terms — and that's the exact rule that got me into trouble on my first tank.

What actually matters is bioload: how much waste your fish produce versus how well your setup processes it. Get that balance right, and a 20-gallon can comfortably support anything from a dozen ember tetras to a betta showcase tank to a mixed community of corydoras and rasboras. Get it wrong, and even a "textbook" stocking list can spiral into ammonia spikes and algae battles — the kind I've fought more than once in my own fish room.

Run the numbers with the calculator above, keep an eye out for the overstocked warning signs, and don't be afraid to stock conservatively at first. You can always add more once you've confirmed your tank — and your bacterial colony — can actually handle it.

Donny Miller

Leave a Comment