The answer depends on the fish species and their adult size
A 20-gallon aquarium can hold somewhere between 4 and 20 fish, depending entirely on what kind of fish you choose. The rule most aquarists follow is the one inch per gallon guideline—meaning one inch of fish length per gallon of water. By that measure, a 20-gallon tank holds 20 inches of fish total. But that rule is a starting point, not a hard limit, because some fish need far more space than their body length suggests.
Small, active fish like neon tetras or guppies can live at close to the one-inch-per-gallon density. Larger fish like goldfish or plecos need much more room. A single goldfish actually needs 20 gallons on its own. The real question is not how many fish fit, but which fish thrive in the space you have.
Key Takeaways
- The one-inch-per-gallon rule suggests a 20-gallon tank holds 20 inches of adult fish length, but this works only for small, calm species.
- Schooling fish like tetras and rasboras need groups of at least 6 to 8 individuals, so plan your stocking around their social needs, not just body size.
- Large fish like goldfish, plecos, and cichlids need 20 to 40 gallons each and should not be crowded into smaller tanks.
- Overstocking creates poor water quality, stress, and disease, so it is better to stock lightly and add fish gradually as you monitor water conditions.
- Tank shape and filtration matter as much as volume—a tall, narrow 20-gallon tank has less usable swimming space than a long, shallow one.
Small fish that work well in 20 gallons
Neon tetras, cardinal tetras, and harlequin rasboras are among the best choices for a 20-gallon tank. These fish grow to about 1 to 1.5 inches and live in schools, meaning they need to be kept in groups of at least 6 to 8 individuals. A school of 8 neon tetras uses about 8 to 12 inches of the one-inch-per-gallon budget, leaving room for other fish or plants.
Guppies, mollies, and platies are also small and hardy. Males and females look different, and if you keep both, they will breed—so plan accordingly or keep only males. A group of 6 to 8 guppies fits comfortably in 20 gallons alongside a small school of tetras.
Corydoras catfish are bottom-dwellers that grow to 1 to 2 inches and help keep the substrate clean. They also prefer groups of at least 3 to 4 individuals. A combination of a tetra school, a few corydoras, and a small group of guppies is a realistic, balanced stocking for 20 gallons.
Medium fish that need more careful planning
Dwarf cichlids like ram cichlids or apistogramma grow to 2 to 3 inches and are territorial. A single pair can occupy a 20-gallon tank with little room for other fish. If you want a dwarf cichlid, plan on that fish taking up most of your stocking budget, with only small schooling fish or bottom-dwellers as companions.
Gouramis grow to 2 to 4 inches depending on species. Dwarf gouramis are less aggressive than larger varieties, but they still claim territory. A single gourami plus a school of tetras and a few corydoras is a workable combination, but two gouramis in 20 gallons often leads to conflict.
Plecos are popular algae-eaters, but most species grow far larger than people expect. Common plecos reach 12 to 24 inches and need 75 to 100 gallons. Smaller species like bristlenose plecos grow to 4 to 5 inches and can live in 20 gallons, but they still produce a lot of waste and need strong filtration.
Fish that do not belong in 20 gallons
Goldfish need far more space than most people realize. A single fancy goldfish requires 20 gallons, and each additional goldfish needs another 10 gallons. Fancy goldfish also produce heavy waste, so they need powerful filtration. A 20-gallon tank with one goldfish leaves no room for other fish and demands frequent water changes.
Oscars, jack dempseys, and other large cichlids grow to 8 to 12 inches and are aggressive. They need 55 to 75 gallons minimum. Putting one in a 20-gallon tank stunts its growth, causes stress, and often leads to aggression toward tank mates.
Bettas are small but highly territorial. A male betta cannot live with other males, and many bettas attack females or other fish. A single betta in a 20-gallon tank is fine, but do not assume the extra space means you can add more fish—it depends on the individual betta's temperament.
How filtration and tank shape affect stocking
A 20-gallon tank with a weak filter cannot support as many fish as one with strong filtration. Filtration removes waste (ammonia and nitrite) that builds up as fish produce it. Overstocking with weak filtration causes ammonia spikes, which stress and kill fish. A good rule is to choose a filter rated for 1.5 to 2 times your tank volume—so for 20 gallons, use a filter rated for 30 to 40 gallons.
Tank shape also matters. A 20-gallon tall tank (24 inches high, 12 inches wide, 12 inches deep) has less horizontal swimming space than a 20-gallon long tank (30 inches wide, 12 inches high, 12 inches deep). Small, active fish like tetras prefer the long shape. Tall tanks work better for plants and for fish that do not swim much, like corydoras.
How to stock a 20-gallon tank safely
Start with fewer fish than you think the tank can hold. Add fish gradually over several weeks, testing water quality after each addition. This gives the filter time to build up beneficial bacteria that process waste. If you add too many fish at once, ammonia and nitrite spike, and fish die even though the tank is not permanently overstocked.
Choose fish that have similar water temperature and pH needs. Tetras, rasboras, guppies, and corydoras all prefer warm, slightly acidic water around 72 to 78 degrees Fahrenheit. Goldfish prefer cooler water around 65 to 72 degrees. Mixing fish with very different needs creates stress and disease.
Watch for signs of overstocking: fish gasping at the surface, hiding constantly, torn fins, or algae blooms. These are signs that water quality is declining. If you see them, do a 25 to 50 percent water change when ready and consider removing a fish.
Stocking examples for a 20-gallon tank
Light stocking (good for beginners): 8 neon tetras, 4 corydoras catfish, 1 dwarf gourami. Total: 13 inches of fish, leaving room for growth and error.
Moderate stocking: 8 cardinal tetras, 6 harlequin rasboras, 4 corydoras catfish, 1 bristlenose pleco. Total: about 18 inches of fish, with good filtration and weekly water changes.
Single-species focus: 1 male betta, 8 neon tetras, 3 corydoras catfish. The betta may or may not tolerate the other fish—watch closely for the first week.
Avoid: 1 goldfish (needs 20 gallons alone), 2 oscars (need 75+ gallons each), 1 common pleco (grows to 12+ inches).
Frequently Asked Questions
Can I keep 20 one-inch fish in a 20-gallon tank?
Technically yes by the one-inch-per-gallon rule, but only if those fish are small, calm species like tetras or guppies. If they are aggressive or produce heavy waste, 20 inches of fish will foul the water. Start with 10 to 15 inches and watch water quality before adding more.
How often do I need to change the water if I stock heavily?
Heavy stocking requires 25 to 50 percent water changes weekly or even twice weekly. Light stocking needs only 25 percent weekly. Test your water (ammonia, nitrite, nitrate) to know whether your schedule is working. If ammonia or nitrite is above zero, change water more often or remove fish.
Do plants count toward the stocking limit?
No. Plants consume ammonia and nitrite, which actually improves water quality and lets you stock slightly more heavily. But plants do not replace filtration—you still need a good filter. Plants are a bonus, not a substitute.
Can I keep two bettas in a 20-gallon tank if I divide it?
You can divide the tank with a solid barrier, but each betta then lives in a 10-gallon space, which is smaller than ideal. Bettas in divided tanks also cannot see each other, which reduces stress. Make sure each side has its own filter and heater, because a single filter cannot serve both compartments equally.
What if I want a community tank with many different species?
Choose small, peaceful species with similar water needs: tetras, rasboras, guppies, corydoras, and small gouramis. Avoid aggressive fish, large fish, and fish that eat smaller ones. Plan on 10 to 15 inches of total fish length, not 20, to leave room for error and to keep water quality stable.