Aquarium Volume Calculator

Accurately calculate your aquarium water volume

How Many Corydoras in a 20-Gallon Tank?

You're planning your 20-gallon stocking and you've decided on corydoras catfish as the cleanup crew. Smart choice — they're peaceful, fascinating to watch, and genuinely useful for keeping the substrate clean. Now you just need to know how many to get, and whether your tank can handle them alongside other fish.

The short answer: 6 is the minimum, 6–8 is the sweet spot for a 20-gallon. But the details matter — which species, long vs. tall tank, substrate type, and who they'll share water with all affect whether your cory school thrives or just survives.

Why School Size Is Non-Negotiable for Corydoras

Corydoras are shoaling fish, meaning they naturally live in groups and derive security from numbers. A lone corydoras or a pair will hide constantly, refuse to forage actively, and often show symptoms of chronic stress — dull coloration, reduced appetite, and shortened lifespan.

Six is the widely accepted minimum school size where corydoras start to behave naturally: actively foraging, playfully "popcorning" to the surface, and chasing each other around. Below six, you'll have stressed fish that never really show you what they're capable of.

Quick rule: Never buy fewer than 6 corydoras at once. If your budget only allows 4 now, wait until you can afford 6. A school of 4 is not a compromise — it's a welfare issue.

How Many Corydoras in 20 Gallons: The Math

Standard-sized corydoras (panda, peppered, julii, sterbai, false julii) reach 2–3 inches at adult size. Using the common inch-per-gallon guideline as a rough starting point, 6 adults at 2.5 inches each = 15 inches of fish. That leaves 5 usable gallons for tankmates in a dedicated cory tank — more than enough.

But the inch-per-gallon rule is just a starting point. Corydoras are bottom dwellers, which means they don't compete for mid-water or surface territory. Their bioload exists in a single layer of the tank. In a 20-gallon, you can comfortably add a school of small mid-water fish (tetras, rasboras) without affecting the corydoras' space at all.

Tank Size Recommended School Notes
10 gallon 6 pygmy or nano cories only Standard cories need more floor space
20 gallon (long) 6–8 standard cories Ideal setup — best floor footprint
20 gallon (tall) 6 standard cories Less floor space — limit to 6
29–30 gallon 8–10 standard cories Allows a more impressive school display

20-Long vs. 20-Tall: Floor Footprint Matters

If you're choosing between a "20-gallon long" (30" × 12" footprint) and a "20-gallon tall" (24" × 12" footprint), the long version is significantly better for corydoras. The extra 6 inches of floor length gives the fish more horizontal territory to patrol.

Corydoras don't use vertical space the way cichlids or angelfish do. A 20-tall holds the same volume of water but gives them 20% less bottom territory. For six active bottom-dwellers, that difference is real. Use our Aquarium Volume Calculator to compare the actual water volumes of different tank dimensions — a 20-tall sometimes holds less water than its label suggests depending on substrate depth.

Best Corydoras Species for a 20-Gallon

Not all corydoras are the same size, and species selection affects how many you can keep comfortably. Here are the most commonly available species and how they fit a 20-gallon:

  • Panda corydoras (C. panda) — 1.5–2 inches. Peaceful, distinctive black/white markings. The most popular species; available at most fish stores. A school of 6–8 is ideal in 20 gallons.
  • Peppered corydoras (C. paleatus) — 2–2.5 inches. Hardy and tolerant of a wider temperature range (68–78°F). Excellent for beginners. 6 fit a 20-gallon; prefer the 20-long format.
  • Julii corydoras / False julii (C. julii / C. trilineatus) — 2 inches. Similar care to panda cories. Most "julii" sold in fish stores are actually false julii (C. trilineatus), which are equally good tank fish.
  • Sterbai corydoras (C. sterbai) — 2.5 inches. One of the few cory species that thrives at higher temperatures (79–84°F), making them compatible with discus or altum angelfish tanks. 6 in a 20-gallon is tight but workable.
  • Pygmy corydoras (C. pygmaeus) — 1 inch. True nano species. A 20-gallon can hold a school of 10–12 pygmy cories. They're mid-water swimmers as much as bottom dwellers, which makes stocking math slightly different.
Don't mix species unless… Corydoras of different species can coexist, but they won't naturally school together. A mixed group of 3 pandas and 3 peppered cories will form two separate groups of 3 — too small to be comfortable for either. For a 20-gallon, pick one species and get at least 6.

The Substrate Requirement You Can't Skip

Corydoras forage by burying their snouts in substrate, sifting it through their mouths, and filtering out food particles. Their barbels — the short whisker-like projections on either side of the mouth — are sensory organs critical to this behavior.

Sharp gravel physically erodes these barbels over time. Eroded barbels get infected by bacteria in the substrate, leading to barbel rot — a common corydoras disease that's distressing to watch and difficult to reverse. The fix is to simply use the right substrate from the start.

Safe substrates for corydoras:

  • Pool filter sand (silica sand) — widely available, cheap, completely safe
  • Aquarium play sand — same as above, slightly finer grain
  • Smooth-polished river gravel (1–2mm) — acceptable if truly smooth
  • Flourite black sand — safe, adds nutrients for planted tank

Substrates to avoid: Standard aquarium gravel with sharp edges, lava rock substrate, crushed coral (too rough and raises pH).

Know your exact water volume: If your 20-gallon has a thick layer of sand substrate and rocks, your actual water volume may be 15–17 gallons. Use the Aquarium Volume Calculator with your internal dimensions and subtract displacement for accurate stocking math.

What Can I Keep With Corydoras in a 20-Gallon?

Corydoras are genuinely peaceful bottom-dwellers that ignore other fish completely. They're about as community-friendly as it gets. The constraint isn't their temperament — it's the water column zones and your total bioload budget.

A 20-gallon with 6–8 corydoras has roughly 12–14 gallons of usable bioload capacity remaining for mid-water and surface fish (after accounting for the corydoras' contribution). Good options:

  • Neon tetras (10–12): Small bioload, peaceful, thrive in the same 72–78°F temperature range. Classic pairing.
  • Harlequin rasboras (8–10): Slightly larger than neons; similar care requirements.
  • Ember tetras (12–15): Tiny bioload; excellent for planted tanks with low light.
  • One male betta: Works with corydoras if the betta isn't hyperaggressive. Avoid females-only setups (sorority tanks) with corydoras — too much competition for floor space.
  • Otocinclus catfish (2–3): Another bottom dweller, but they eat algae rather than food particles. Compatible with cories if there's enough algae or supplemental feeding.

Fish to avoid: Cichlids (most are territorial and will harass bottom feeders), large plecos (territorial over floor space), aggressive barb species like tiger barbs (fin-nipping risk on corydoras' fins and barbels).

Feeding Corydoras in a Community Tank

Corydoras are often marketed as "cleanup crew" fish that eat leftover food, but this isn't quite right — leftovers alone don't provide adequate nutrition. They need dedicated bottom feeder food delivered directly to the substrate.

The best approach: drop sinking wafers, sinking pellets, or frozen bloodworms right before lights-out when the tank is calm and top-level fish are less aggressive about competing for food. Hikari Sinking Wafers and Omega One Sinking Mini Pellets are both popular and reliable.

Feed corydoras every day, not just when "leftovers" exist. A well-fed group of corydoras is visibly more active, maintains better coloration, and lives significantly longer (7–10+ years with good care).

🧪 API Freshwater Master Test Kit

Corydoras are sensitive to ammonia and nitrite. Testing weekly is essential, especially in the first months of a new tank. The API Master Kit covers pH, ammonia, nitrite, and nitrate — everything you need to keep your cories healthy.

View on Amazon

Frequently Asked Questions

How many corydoras can I keep in a 20-gallon tank?
A 20-gallon tank can comfortably house 6–8 corydoras of a small-to-medium species (like panda, peppered, or julii cories). Six is the minimum for a healthy school. A long 20-gallon (20-L) is better than a tall because corydoras need horizontal swimming space.
Can I keep corydoras in a 10-gallon tank?
Yes, with smaller species. Pygmy corydoras (C. pygmaeus) or salt-and-pepper cories (C. habrosus) can form a school of 6 in a 10-gallon. Standard-sized species like panda or peppered corydoras need at least 20 gallons for a proper school of 6.
Do corydoras need sand substrate?
Corydoras strongly prefer fine sand or smooth, rounded gravel. They forage by sifting substrate through their barbels — sharp gravel erodes and infects these whiskers over time. Pool filter sand or aquarium-grade play sand are the most popular budget-friendly options.
What fish go well with corydoras in a 20-gallon?
Corydoras are peaceful, bottom-dwelling community fish. Ideal tankmates for a 20-gallon include neon or ember tetras (10–12), harlequin rasboras (8–10), or a small school of guppies. Avoid large cichlids, aggressive bettas, and fin-nipping barbs.

Related Guides