Stocking

How Many Fish Can a 20-Gallon Tank Hold? A Worked Approach

Key takeaways

  • A 20-gallon tank usually holds only 13-16 gallons (49-61 L) of water once substrate, hardscape and the gap below the rim are subtracted.
  • Adult size, group size and footprint limit a 20-gallon more than the raw fish count; a 20 long gives 25% more floor space than a 20 high.
  • Treat any stocking estimate as a starting point and confirm it with weekly nitrate readings before adding more fish.

A 20-gallon aquarium can hold anything from a single betta to about 20-35 small schooling fish, depending on which species you choose, whether it is a “20 high” or a “20 long,” and how well it is filtered and planted. A group of ten 1.8-inch (4.5 cm) harlequin rasboras produces far more waste than ten 0.8-inch (2 cm) ember tetras, so “how many” only has a meaningful answer once you know “which.” The method below gets you to a defensible number, and then shows you how to check it with a nitrate test.

Start with the water you actually have

The “20” on the label is a nominal volume based on outside dimensions. The two common shapes are:

Tank Outside dimensions Gross volume Footprint
20 high 24 × 12 × 16 in (61 × 30 × 41 cm) 19.9 gal (75 L) 288 sq in (1,858 cm²)
20 long 30 × 12 × 12 in (76 × 30 × 30 cm) 18.7 gal (71 L) 360 sq in (2,323 cm²)

Gross volume is length × width × height in inches, divided by 231 (the number of cubic inches in a US gallon). For the 20 high: 24 × 12 × 16 = 4,608 cubic inches, and 4,608 ÷ 231 = 19.9 gallons.

Now subtract what is not water. Assume a 2-inch (5 cm) substrate bed and a water line 1 inch (2.5 cm) below the rim:

  • 20 long: water column = 12 − 2 − 1 = 9 in. 30 × 12 × 9 = 3,240 cu in ÷ 231 = 14.0 gal (53 L).
  • 20 high: water column = 16 − 2 − 1 = 13 in. 24 × 12 × 13 = 3,744 cu in ÷ 231 = 16.2 gal (61 L).

Rock and wood take a further bite. A moderate hardscape might displace around 0.5 to 1 gallon, leaving roughly 13.3 gal (50 L) in a 20 long and 15.5 gal (59 L) in a 20 high. Glass thickness trims a little more, so these figures are slightly generous.

Volume versus footprint

The 20 high holds more water, but the 20 long has 25% more floor space (360 vs 288 sq in). Floor space matters for bottom-dwellers, for territorial fish that claim patches of substrate, and for active swimmers that need horizontal distance. A 20 long’s shallower water column also has more surface area relative to its volume, which helps gas exchange. For most community stocking the 20 long is the more flexible tank; the 20 high suits fish that use vertical space, such as gouramis hovering among tall plants.

Seriously Fish lists a minimum aquarium base of 24 × 12 in (60 × 30 cm) for harlequin rasboras, neon tetras and honey gouramis, and 18 × 12 in (45 × 30 cm) for ember tetras, pygmy corys and celestial pearl danios. Both 20-gallon shapes meet all of these, but the 20 high meets the larger ones with no room to spare.

Think in bioload, not inches

Fish excrete ammonia continuously. In a cycled tank, bacteria in the filter and on surfaces convert it to nitrite and then nitrate, as UF/IFAS explains in its ammonia fact sheet. The amount of waste a fish produces tracks its body mass and metabolism, not its length. Because mass rises roughly with the cube of length, a 3-inch fish is not “three 1-inch fish” but closer to twenty-seven of them by mass. We cover this in detail in why the inch-per-gallon rule fails.

The stocking planner uses a transparent heuristic built on that idea:

  • Per-fish bioload units = shape factor × (adult length in cm ÷ 5)^2.5
  • Capacity = net gallons × filtration factor × planting factor
  • Filtration factor by real turnover: under 4× per hour 0.8; 4-6× 1.0; 6-10× 1.15; over 10× 1.25
  • Planting factor: none 1.0; low 1.05; heavy 1.15

The 2.5 exponent sits a little below the 3 you would use for mass, reflecting that larger fish have a lower metabolic rate per gram. It is a planning heuristic, not a measurement. For the examples below we use a shape factor of 1.0 for simplicity; the planner adjusts body shape per species and uses its own reference lengths, so its totals will differ slightly from these hand calculations.

Using adult standard lengths from Seriously Fish, per-fish units work out as:

Species Adult length Units per fish
Ember tetra 0.8 in (2.0 cm) 0.10
Celestial pearl danio 0.8 in (2.1 cm) 0.11
Pygmy cory 1.2 in (3.0 cm) 0.28
Neon tetra 1.2 in (3.0 cm) 0.28
Harlequin rasbora 1.8 in (4.5 cm) 0.77
Honey gourami 2.2 in (5.5 cm) 1.27
Betta 2.8 in (7.0 cm) 2.32

A 20 long with 13.3 net gallons, a filter delivering 4-6× real turnover and light planting has a capacity of 13.3 × 1.0 × 1.05 = 14.0 units. Heavily planted, it becomes 13.3 × 1.15 = 15.3 units. A 20 high at 15.5 net gallons with light planting reaches 15.5 × 1.05 = 16.3 units. The guide on filter flow rate explains how to measure real turnover rather than trusting the box.

Five example stocking plans

Every plan below respects minimum group sizes and overlapping temperature ranges, and leaves some headroom. Bioload is only one limit; behavior and space often bind first.

Plan 1: Honey gourami community (20 long, lightly planted)

  • 4 honey gouramis, 10 pygmy corys, 10 ember tetras
  • Units: 5.08 + 2.79 + 1.01 = 8.88 of 14.0 (63%)
  • Shared temperature range: 72-79°F (22-26°C)

Seriously Fish recommends at least 4-6 honey gouramis because they interact with each other and form hierarchies, and at least 6 (preferably 10 or more) pygmy corys. Both species are easily intimidated, so the tankmates here are small and calm.

Plan 2: Nano species tank (20 long, heavily planted)

  • 15 ember tetras, 12 celestial pearl danios, 10 pygmy corys
  • Units: 1.52 + 1.37 + 2.79 = 5.68 of 15.3 (37%)
  • Shared temperature range: 72-79°F (22-26°C); the pH overlap is narrow, about 6.5-7.0

The waste load is light, but this is not an invitation to double the numbers. Celestial pearl danio males spar, and Seriously Fish advises dense planting to break lines of sight. Here the limit is behavior and cover, not ammonia.

Plan 3: Betta centerpiece (either shape)

  • 1 male betta, optionally 8 pygmy corys
  • Units: 2.32 alone, or 2.32 + 2.23 = 4.55

Seriously Fish states that bettas are best kept alone and that peaceful tankmates are the exception rather than the norm. If you add pygmy corys, which swim in mid-water as well as near the bottom, have a spare tank ready in case the betta harasses them. A betta alone in a 20-gallon is a perfectly good outcome.

Plan 4: Two schools (20 long, lightly planted)

  • 12 neon tetras, 8 harlequin rasboras, 8 pygmy corys
  • Units: 3.35 + 6.15 + 2.23 = 11.73 of 14.0 (84%)
  • Shared temperature range: 72-77°F (22-25°C)

Neons prefer the cooler end of tropical, 70-77°F (21-25°C) per Seriously Fish, which narrows the overlap. At 84% of the heuristic capacity, this plan is where you should rely on nitrate readings before adding anything else.

Plan 5: Vertical layout (20 high, lightly planted)

  • 10 harlequin rasboras, 4 honey gouramis, 6 pygmy corys
  • Units: 7.68 + 5.08 + 1.67 = 14.43 of 16.3 (89%)

The smaller floor area of the 20 high is why the cory group stays at the minimum. The model says this fits; the tight margin says stock it slowly and check nitrate before calling it finished.

Checking the plan with nitrate

A heuristic gives you a starting number. Your test kit tells you whether it works in your tank, with your feeding and maintenance habits. Once the tank is cycled and fully stocked, test nitrate right after a water change and again just before the next one. The rise over the week is your tank’s weekly production.

If nitrate rises by P ppm per week and you change a fraction f of the water weekly, the pre-change reading settles at about P ÷ f (plus whatever nitrate is in your tap water). A rise of 6 ppm per week with 30% weekly changes settles near 6 ÷ 0.30 = 20 ppm. If that figure is higher than you want, reduce stock, feed less, or change more water. Our water change math guide walks through the arithmetic.

What to avoid in a 20-gallon

  • Fish that outgrow the tank. Common plecos and clown loaches can exceed 12 inches (30 cm). Fancy and common goldfish grow large, produce heavy waste and are better suited to much bigger coldwater setups.
  • Tall or predatory cichlids. Angelfish grow tall and will eat neon-sized tankmates as they mature.
  • Undersized groups of schooling fish. Three neons are stressed, not “understocked.” Seriously Fish suggests groups of at least 8-10 for neons, harlequins and embers.
  • Temperature mismatches. Check the overlap before buying; a compromise temperature at the edge of both ranges suits neither species well.
  • Stocking everything on day one. Even a fully cycled tank needs time to adjust to a jump in waste. Add fish in batches a couple of weeks apart and watch ammonia and nitrite. If the tank is new, start with fishless cycling, and quarantine new arrivals in a separate tank where possible.

Troubleshooting a stocked 20-gallon

Nitrate climbs quickly even though the planner says you are under capacity. Overfeeding is the usual cause. Uneaten food decays into ammonia just as fish waste does. Cut portions until food is gone within a minute or two, then recheck.

Ammonia or nitrite appears after adding fish. The bacterial population has not caught up with the new load. Stop adding fish, test daily, and change water to keep ammonia and nitrite low while it catches up.

Fish hide constantly or colors stay washed out. Look at group size, cover and tankmates before blaming water quality. Small schooling species often settle once the group is larger or once floating plants dim the light.

Run the numbers

Stocking & Bioload Planner

Estimate net water volume, bioload and compatibility for a planned community, with every formula shown.

Fishless Cycle Ammonia Dosing Calculator

Work out how much household ammonia or ammonium chloride reaches your target ppm, with unit conversions.

Sources and further reading

  1. Trigonostigma heteromorpha (Harlequin) - Seriously Fish
  2. Corydoras pygmaeus (Pygmy Cory) - Seriously Fish
  3. Hyphessobrycon amandae (Ember Tetra) - Seriously Fish
  4. Trichogaster chuna (Honey Gourami) - Seriously Fish
  5. Betta splendens (Siamese Fighting Fish) - Seriously Fish
  6. FA16/FA031: Ammonia in Aquatic Systems - UF/IFAS Extension

Fishkeeping guidance on this page is general. Species, local tap water and equipment vary, so confirm decisions with your own water tests. For sick fish, follow medication labels and consult an aquatic veterinarian. Spotted an error? Tell us and we will review it under our corrections policy.