Fish Tank Stocking Calculator
A 30 by 12 by 12 inch tank holds 18.7 gallons with 360 square inches of surface. For slim-bodied fish at medium filtration that allows 30 inches of adult fish, so 15 fish at 2 inches each. The old inch-per-gallon rule would allow only 18.7 inches.
| Tank volume | |
| Water surface area | |
| Safe inches of adult fish | |
| Fish at your chosen adult size | |
| Inch per gallon rule would say |
Every calculation runs in your browser. Nothing you type is uploaded or stored.
Enter your tank dimensions, filtration and fish type, and this calculator uses the surface area rule to estimate how many inches of adult fish the tank can hold.
Key takeaways
- A 30 by 12 by 12 inch tank holds 18.7 gallons
- Surface area is 360 square inches
- Medium filtration allows 30 inches of slim-bodied fish
- That is 15 fish at 2 inches each
- The inch-per-gallon rule would say 18.7 inches
On this page
Why the inch per gallon rule gets you in trouble
The old rule says one inch of fish for every gallon of water. It is easy to remember and wrong often enough to harm fish. The rule ignores the shape of the tank, the body of the fish and how much waste it makes.
Oxygen enters water at the surface, where air touches the water. A tall narrow tank and a long shallow tank can hold the same gallons but wildly different amounts of surface area. The long tank supports more fish because more oxygen gets in. The rule sees only gallons, so it misses that.
Body shape matters too. A slim fish like a neon tetra moves through water with little waste. A fat-bodied fish like a goldfish or a pleco produces several times the waste for the same length. Counting inches treats them as equal, which is why goldfish in a small tank foul the water so fast.
This calculator uses surface area and body type instead, then lets you adjust for how good your filter is. It gives a starting number, not a license to fill the tank. Test your water, and let the readings have the final word.
The math behind the stocking estimate
The surface area rule gives about 12 square inches of water surface to every inch of slim-bodied fish. Fat-bodied fish need more, about 20 square inches per inch of fish, and heavy waste species like goldfish and plecos need around 30.
Surface area is the tank length times the width, both measured in inches inside the glass. A 30 inch by 12 inch tank has 360 square inches of surface. Divide by 12 and you get 30 inches of slim fish. Divide by 30 and the same tank holds only 12 inches of heavy waste fish.
Filtration shifts the number. A weak filter with infrequent water changes should be treated as 20 percent less capacity, and a strong filter with weekly water changes as 20 percent more. Nothing in the math replaces testing. If ammonia or nitrite shows up, the tank is stocked too heavily no matter what the formula says.
| Fish type | Surface per inch of fish | Examples |
|---|---|---|
| Slim-bodied | 12 square inches | Neon tetra, danio, rasbora, guppy |
| Medium-bodied | 20 square inches | Molly, platy, betta, angelfish |
| Heavy waste | 30 square inches | Goldfish, pleco, oscar |
Tank volume still matters for swimming room even though the stocking math is based on surface. Compute gallons as length times width times height in inches, divided by 231. The ASPCA's pet care library recommends a 20 gallon tank as a sensible first setup for a beginner.
Worked example: a 20-gallon long tank
Take a standard 20 gallon long tank, 30 inches long, 12 inches wide and 12 inches tall. Volume is 30 times 12 times 12 divided by 231, which is 18.7 gallons of actual water space.
Surface area is 30 times 12, which is 360 square inches. For slim-bodied fish at 12 square inches each, the tank holds 360 divided by 12, which is 30 inches of adult fish. That is more than the inch per gallon rule allows, which would say 18.7 inches. The extra comes from the long footprint, where a lot of surface meets the air.
If your adult fish are neon tetras that reach about 2 inches, you can plan for about 15 of them, but only after the tank cycles. With medium filtration the number stays the same. A weak filter drops it to 24 inches and a strong one lifts it to 36.
Now switch to goldfish. At 30 square inches per inch, the tank holds 12 inches of fish. Two fancy goldfish reach about 6 inches each, so that is your limit, and two goldfish in a 20 gallon long need heavy filtration and weekly water changes to stay healthy. Goldfish are a cold water fish and do not belong in a small heated tank.
Why you stock slowly and cycle first
A new tank has no bacteria to convert fish waste. Ammonia from the fish builds up and burns their gills. The filter has to grow a colony of nitrifying bacteria, a process called cycling, and that takes weeks, not hours.
Cycle the tank before you add fish, or add only two or three hardy fish and test the water daily. Feed lightly, only what the fish finish in a couple of minutes. Change water whenever ammonia climbs above 1 part per million. Once ammonia and nitrite both read zero and nitrate starts to rise, the tank is cycled and you can add fish a few at a time.
Add fish in small groups and wait two weeks between groups. Dropping a full load of fish into a fresh tank overwhelms the bacteria and crashes the water quality. Even a fully cycled tank can only process so much waste at once, so a slow build is a healthy build.
Quarantine new fish for four weeks in a separate tank if you can. It is the cheapest insurance there is against bringing a disease into a tank that is finally running well. The Merck Veterinary Manual's guide to housing fish covers filtration, heaters and lighting in more depth.
Filter, temperature and water changes
The filter should turn over the whole tank volume three to five times an hour. A 20 gallon tank needs a filter rated for at least 60 gallons per hour. More is fine and often better for heavy stocking, as long as the current does not blow your fish around.
Keep the water clean with weekly partial changes. Take out 25 to 30 percent and replace it with dechlorinated water of the same temperature. That removes nitrate and replaces minerals, and it is the single most useful habit in fish keeping. Skip it and nitrate climbs until the fish get sick.
Match the temperature to your fish. Tropical community fish like 73 to 82 degrees Fahrenheit. Goldfish are cool water fish and do better near room temperature. Size a heater at about 5 watts per gallon for a tropical tank, so a 20 gallon tank takes a 100 watt heater.
Watch the tank, not just the numbers. Fish that hang at the surface, gasp, or sit on the bottom are telling you the water is off. Test ammonia, nitrite and nitrate whenever behavior changes, and do a water change while you wait for the result. When in doubt, a partial water change is almost never the wrong move.
Frequently asked questions
How many fish can I put in a 20 gallon tank?
A 20 gallon long tank has about 360 square inches of surface, so it holds about 30 inches of slim-bodied fish, or roughly 15 neon tetras at 2 inches each. Heavy waste fish like goldfish are limited to about 12 inches, or two 6 inch fish.
Is the one inch per gallon rule accurate?
No. It ignores surface area, body shape and waste output, so it overstocks tall tanks and understocks long ones. The surface area rule gives about 30 inches for a 20 gallon long, against 18.7 inches for the inch per gallon rule.
How many goldfish can live in a 20 gallon tank?
About two fancy goldfish, and only with strong filtration and weekly water changes. Goldfish need around 30 square inches of surface per inch of fish, so a 360 square inch tank supports about 12 inches of adult goldfish.
How do I figure out surface area for stocking?
Multiply the inside length of the tank by the inside width, both in inches. A 30 by 12 inch tank has 360 square inches. Depth does not count, because oxygen enters at the surface.
How many gallons is a 30 by 12 by 12 tank?
18.7 gallons. The formula is length times width times height in inches, divided by 231. That tank is sold as a 20 gallon long, but the actual water volume is a little under 19 gallons.
How long do I cycle a new tank before adding fish?
Two to six weeks, until ammonia and nitrite both read zero. Cycling grows the bacteria that convert fish waste. Add only two or three hardy fish at first if you cycle with fish in the tank.
How often should I change aquarium water?
Weekly. Take out 25 to 30 percent and replace it with dechlorinated water at the same temperature. That keeps nitrate low and replaces minerals the fish use.
What filter size do I need for a 20 gallon tank?
One rated for at least 60 gallons per hour, which turns the tank volume over three times an hour. Aim for three to five times per hour, so up to 100 gallons per hour for a 20 gallon tank.
How many neon tetras can go in a 10 gallon tank?
About six to eight, and no fewer than six because they are schooling fish. A 10 gallon tank has around 200 square inches of surface, which supports about 16 inches of slim fish, but schooling fish need swimming length as well as oxygen.
Do I count fish at adult size or the size I buy?
Always at adult size. Fish you buy small will grow, and a tank stocked to the baby size will be overcrowded within a year. Look up the adult length for each species before you buy.
Does a bigger tank mean more fish?
Yes, and a bigger tank is also more stable. Water chemistry swings slower in more volume, so a 40 gallon tank is easier to keep healthy than two 20 gallon tanks holding the same total water.
Can I keep a betta in a 5 gallon tank?
Yes, one betta in a 5 gallon tank is a good setup. Bettas are medium-bodied and territorial, so keep one male per tank. A 5 gallon tank has about 100 square inches of surface, which suits a single betta well.
Spotted a wrong number or a broken result?
More Pets tools
- Aquarium Glass Thickness Calculator
- Aquarium Heater Size Calculator
- Aquarium Salt Calculator
- Aquarium Tank Weight Calculator
- Aquarium Volume Calculator
- Aquarium Water Change Calculator
- Benadryl for Dogs Dosage Calculator
- Bird Age Calculator
- Cat Age Calculator
- Cat BMI Calculator
- Cat Calorie Calculator
- Cat Feeding Calculator
- Cat Food Calculator
- Cat Life Stages Calculator
- Cat Litter Calculator
- Cat Medication Safety Checker
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.