The Basic Rule: One Inch of Fish Per Gallon

A 20-gallon aquarium can hold roughly 15 to 20 small fish, depending on the species and how much waste they produce. The most common guideline is one inch of fish per gallon of water—so a 20-gallon tank theoretically fits 20 inches of fish length. A 2-inch neon tetra counts as 2 inches; a 1-inch guppy counts as 1 inch.

This rule is a starting point, not a hard limit. Some fish are messier than others. A 2-inch goldfish produces far more waste than a 2-inch tetra, so it needs more water to stay healthy. A 20-gallon tank can hold only one or two goldfish, even though the math says it should fit ten 2-inch fish.

The real constraint is not space—it is water quality. Fish produce ammonia as waste. In a small tank, ammonia builds up fast and poisons the fish. A filter removes some of it, but only if the tank is not overstocked. Overstocking is the single most common reason aquarium fish die.

Key Takeaways

  • A 20-gallon tank holds roughly 15 to 20 small fish using the one-inch-per-gallon rule, but this varies by species and how much waste each fish produces.
  • Goldfish and plecos are heavy waste producers and need more water per fish than tetras or guppies, so they reduce your total fish count.
  • A filter rated for at least 20 gallons per hour is necessary, and weekly water changes of 25 percent keep ammonia and nitrate under control.
  • Overstocking is the leading cause of fish death in home aquariums because waste builds up faster than the filter can remove it.
  • Starting with fewer fish than the rule allows gives you room to add more later and makes the tank easier to maintain.

Small Fish That Work Well in 20-Gallon Tanks

Neon tetras, cardinal tetras, and other small schooling fish are ideal for a 20-gallon tank. They grow to about 1.5 inches, school in groups of six or more, and produce relatively little waste. A school of ten neon tetras takes up only 15 inches of the one-inch rule, leaving room for other fish.

Guppies, platies, and mollies are also good choices. They reach 2 to 3 inches, tolerate a range of water conditions, and breed readily in captivity. A group of six to eight works well in 20 gallons. Corydoras catfish are bottom feeders that stay under 3 inches and help keep the substrate clean without producing excessive waste.

Dwarf gouramis and betta fish are solitary and territorial, so you can keep only one per tank. A single dwarf gourami or betta, plus a school of tetras and a few corydoras, makes a balanced 20-gallon community tank. Avoid keeping two bettas or two gouramis together—they will fight.

Fish to Avoid or Limit in 20 Gallons

Goldfish need at least 20 gallons for the first fish and 10 additional gallons for each one after that. A single fancy goldfish can live in a 20-gallon tank, but it will produce so much waste that you will need to change the water twice a week. Most people find this too demanding. Common goldfish grow even larger and should not go in a 20-gallon tank at all.

Plecos are popular algae eaters, but they grow to 12 inches or more and produce heavy waste. A pleco alone can foul a 20-gallon tank. Oscars, cichlids, and other large or aggressive fish need 55 gallons or more. Avoid them in a 20-gallon setup.

Freshwater sharks and barbs can be aggressive toward smaller fish, especially in a confined space. If you want them, choose peaceful species like denison barbs and keep them in groups of at least five so they do not target smaller tank mates.

Filtration and Water Changes Keep Fish Healthy

A filter is not optional—it is essential. Choose a filter rated for at least 20 gallons per hour, meaning it cycles the entire tank volume through the filter media once per hour. A 20-gallon hang-on-back filter or a small canister filter both work. The filter removes solid waste and provides surface area for beneficial bacteria that convert ammonia to less toxic nitrate.

Even with a good filter, you must change 25 percent of the water every week. This removes nitrate, which the filter does not eliminate. In a 20-gallon tank, that is 5 gallons per week. Use a gravel vacuum to siphon water from the bottom while you remove debris. Replace it with dechlorinated water at the same temperature as the tank.

Test the water every two weeks using a liquid test kit. You are looking for zero ammonia, zero nitrite, and nitrate below 40 parts per million. If ammonia or nitrite appears, you have overstocked or the filter is not working. Do a 50 percent water change when ready and reduce the number of fish.

How Tank Mates Affect Your Fish Count

Not all fish coexist peacefully. Aggressive species reduce how many fish you can keep because they need more space and may injure or kill smaller tank mates. A single betta can live with peaceful community fish like tetras and corydoras, but it will attack other bettas, guppies with flowing fins, and any fish small enough to fit in its mouth.

Territorial fish like dwarf cichlids need hiding places—caves, plants, or driftwood—to establish separate zones. Without them, they will harass other fish constantly. A 20-gallon tank with good decor can hold more fish than a bare tank with the same dimensions because the decor reduces conflict.

Schooling fish like tetras and rasboras must be kept in groups of at least six. A single tetra becomes stressed and may hide or die. A school of six takes up 6 inches of your one-inch rule but improves the overall health and behavior of the tank. It is better to have one healthy school than three lonely individual fish.

Starting Small and Adding Fish Gradually

A new 20-gallon tank should not be fully stocked on day one. The beneficial bacteria that convert ammonia to nitrate need time to establish. Start with four to six small fish and wait two weeks before adding more. Test the water during this time. If ammonia or nitrite appears, wait another week before adding fish.

This gradual approach, called cycling, prevents ammonia spikes that kill fish. After four to six weeks, the bacterial colony is stable and can handle a full load. At that point, you can add more fish up to your target number. If you rush and add too many fish at once, ammonia will spike and poison them.

Keep a record of what you add and when. This helps you track whether the tank is stable and makes it easier to diagnose problems later. If a fish dies unexpectedly, you can look back and see whether you added too many fish too fast.

Common Mistakes That Lead to Overstocking

The most common mistake is believing the one-inch rule applies equally to all fish. A 2-inch pleco is not the same as a 2-inch tetra in terms of waste production. Plecos, goldfish, and cichlids are heavy bioload fish and need more water per inch than small tetras.

Another mistake is counting juveniles at their current size rather than their adult size. A young pleco is 1 inch long, so it seems fine to add to a 20-gallon tank. Six months later, it is 6 inches and fouling the water. Research the adult size of every fish before you buy it.

A third mistake is assuming a larger filter lets you overstock. A filter removes solid waste and converts ammonia, but it does not remove nitrate. Overstocking still causes nitrate to accumulate, and no filter can fix that. Only water changes remove nitrate.

Frequently Asked Questions

Can I keep 20 one-inch fish in a 20-gallon tank?

Technically yes by the one-inch rule, but it is risky. Twenty fish produce a lot of waste, and any filter failure or missed water change will cause ammonia to spike. Start with 15 inches of fish and add more only if water tests stay at zero ammonia and zero nitrite for four weeks straight.

What if I want to keep fish that need more space, like goldfish?

A single fancy goldfish can live in a 20-gallon tank if you change the water twice a week and have a strong filter. Common goldfish need 55 gallons or more. If weekly maintenance is too much, choose smaller, less messy fish instead.

Do live plants reduce the number of fish I can keep?

Live plants help by consuming some of the nitrate and producing oxygen, but they do not eliminate the need for a filter or water changes. You can add a few more fish with plants than without, but the one-inch rule still applies as a baseline.

How often should I test the water in a 20-gallon tank?

Test every two weeks once the tank is cycled and stable. If you add new fish, test weekly for the next month. If ammonia or nitrite ever appears, test daily until it returns to zero, then resume weekly testing.

What happens if I overstock and fish start dying?

Do a 50 percent water change when ready to dilute ammonia and nitrite. Then remove some fish or upgrade to a larger tank. Do not add more fish until ammonia and nitrite stay at zero for two weeks.