Aquarium Volume Calculator
Calculate aquarium water volume.
Formula
Gallons = Cubic Inches / 231
Example
48×12×16 in → 39.9 gallons.
Embed this calculator on your site
Add this free calculator to your own website with one line of code. The embedded version is responsive, ad-free, and includes a small attribution link back to CalcNest AI.
<iframe src="https://calcnestai.com/embed/aquarium-volume-calculator.html" width="100%" height="700" frameborder="0" style="border: 1px solid #e5e5e5; border-radius: 12px; max-width: 720px;" loading="lazy" title="Aquarium Volume Calculator — Free Tool by CalcNest AI"></iframe>
Aquarium volume seems like a simple multiplication problem. It is, until you factor in displacement. Substrate, decorations, equipment, and the actual water level all reduce the real volume below the nominal "20 gallons" stamped on the box. Most home aquariums hold 10-20% less water than their labeled capacity. That gap matters when you're calculating fish stocking, water treatment doses, and filter capacity.
The basic formula and what it leaves out
For a rectangular tank, volume in US gallons equals length × width × height (all in inches) divided by 231. So a 24" × 12" × 16" tank works out to 4,608 ÷ 231 = 19.95 gallons — what manufacturers round to "20 gallons."
But that's the volume of the empty tank measured to its outside dimensions. The actual water capacity is meaningfully less:
| What displaces water | Typical reduction |
|---|---|
| Substrate (gravel, sand): ~1-2 inches deep | 5-12% of total volume |
| Glass thickness (interior smaller than exterior) | 2-3% |
| Water level kept below rim (2-3 inches) | 10-15% |
| Heater, filter intake, equipment | 1-3% |
| Hardscape (rocks, driftwood) | 5-20% depending on amount |
| Plants (when established) | 3-8% |
A typical planted 20-gallon tank actually holds about 14-16 gallons of water. This matters for dosing — fertilizers, medications, and water conditioners are all calculated per gallon of water, not per gallon of tank.
Standard tank sizes and what fits
| Tank size | Dimensions (L × W × H) | Best for |
|---|---|---|
| 5 gallon | 16" × 8" × 10" | One betta or small shrimp colony only |
| 10 gallon | 20" × 10" × 12" | Single betta, shrimp, or 4-6 tiny tetras |
| 20 gallon long | 30" × 12" × 12" | Community tank — small schools, peaceful fish |
| 20 gallon high | 24" × 12" × 16" | Tall plants, single angelfish, dwarf cichlid pair |
| 29 gallon | 30" × 12" × 18" | Larger community; first "serious" tank size |
| 40 gallon breeder | 36" × 18" × 16" | Excellent footprint; many community options |
| 55 gallon | 48" × 13" × 21" | Larger schools; some American cichlids |
| 75 gallon | 48" × 18" × 21" | Better footprint than 55; African cichlids |
| 125 gallon | 72" × 18" × 22" | Most freshwater fish; some saltwater |
| 180+ gallon | 72" × 24" × 24"+ | Large fish, predators, reef tanks |
Counterintuitively, the "20 gallon long" is a much better tank for most fish than the "20 gallon high" — same water volume but more swimming room and surface area. Surface area, not depth, drives gas exchange and bioload capacity.
Why "20 long" beats "20 high" for fish keeping
The "1 inch per gallon" myth
The classic stocking advice — one inch of fish per gallon of water — is a oversimplified rule that fails for almost every real-world situation. A 10-inch oscar shouldn't go in a 10-gallon tank. A 1-inch ember tetra in 1 gallon would be cruel. The rule treats fish as if mass and waste scale linearly with length, when they actually scale with the cube of length.
A better framework considers fish swimming space, waste production, schooling behavior, and territoriality:
| Fish category | Realistic stocking | Why |
|---|---|---|
| Small schooling (tetras, rasboras) | ~1 fish per gallon (10+ schools) | Low waste; need group for stress reduction |
| Medium community (gouramis, rainbows) | 1 fish per 5-10 gallons | Higher waste; territorial spacing |
| Larger fish (angelfish, larger cichlids) | 1 fish per 15-30 gallons | High waste; need swim space |
| Goldfish (common) | 20-30 gallons for one; 10 more per fish | Massive waste producers; need filtration overkill |
| Plecos (common) | 55+ gallons for one | Grows to 18"; produces enormous waste |
| Bettas | 5+ gallons (alone) | Solitary; need heated stable water |
| African cichlids (Mbuna) | 55+ gallons; overstock intentionally | Aggression diffuses with crowding (counterintuitively) |
Filter capacity vs tank volume
The filter is rated in "gallons per hour" (GPH) — how much water it circulates per hour. The rough rule is 4-6× tank volume per hour for normal stocking, 8-10× for heavy stocking. So a properly filtered 20-gallon tank needs an 80-200 GPH filter.
But filter ratings are aspirational. Manufacturers test with brand-new media and empty boxes. In real use with mature biological media, flow drops 20-30%. Plus the filter's actual "filtration capacity" (how much waste it can biologically process) matters more than just flow rate. A canister filter with 1 liter of biological media outperforms a hang-on-back with similar GPH but less media volume.
| Tank size | Minimum GPH | Recommended filter type |
|---|---|---|
| 5 gallon | 30 GPH | Small sponge or nano internal |
| 10 gallon | 50-60 GPH | Hang-on-back or sponge |
| 20 gallon | 100-150 GPH | HOB or small canister |
| 40-55 gallon | 250-400 GPH | Medium canister preferred |
| 75+ gallon | 500+ GPH | Canister or sump |
| Reef / saltwater | 10× tank volume | Sump + protein skimmer essential |
Cycling and why it matters before adding fish
An aquarium isn't ready for fish the day you set it up. The biological filtration that converts ammonia (from fish waste) to less-toxic forms takes 4-8 weeks to establish. Adding fish to an uncycled tank typically kills them — and not always quickly. Many die-offs blamed on "bad water" or "bad fish from the store" are actually new tank syndrome from skipped cycling.
Modern shortcuts (bottled bacteria starters like Seachem Stability, Tetra SafeStart, or media from established tanks) can cut cycling time to 2-3 weeks. Doing it the slow way with pure ammonia source and patience produces the most stable result.
Water chemistry: what you actually need to monitor
Beyond volume calculations, four water parameters matter for keeping fish alive: ammonia, nitrite, nitrate, and pH. The cycling process (the 4-8 weeks before you should add fish) is about establishing bacteria that convert ammonia → nitrite → nitrate. Ammonia and nitrite are toxic. Nitrate is much less toxic but accumulates and needs water changes to remove.
| Parameter | Safe range | What it tells you |
|---|---|---|
| Ammonia (NH3) | 0 ppm | Any detectable level means fish stress; over 1 ppm causes deaths |
| Nitrite (NO2) | 0 ppm | Any detectable level is dangerous; cycling incomplete |
| Nitrate (NO3) | Under 20 ppm | Accumulates between water changes; over 40 ppm stresses fish |
| pH | 6.5-7.8 (most fish) | Stability matters more than exact number; rapid changes kill |
| KH (carbonate hardness) | 4-8 dKH (most) | Buffers pH; low KH = unstable pH swings |
Saltwater vs freshwater: the real cost difference
Many beginners look at the basic equipment costs and think saltwater is "about twice as expensive." It's actually 3-5× more expensive when you include everything saltwater specifically needs.
| Cost category | Freshwater (40 gal) | Saltwater reef (40 gal) |
|---|---|---|
| Tank + stand | $200-350 | $300-500 |
| Filtration | $80-200 | $300-600 (sump + skimmer) |
| Lighting | $50-150 | $200-1,000 (reef-capable) |
| Substrate + rock | $60-120 | $200-400 (live rock) |
| Salt mix (annual) | — | $200-400/year |
| Testing equipment | $30-50 | $100-200 (more parameters) |
| RO/DI water unit | — | $100-250 (essential) |
| Fish + coral | $50-200 | $300-2,000+ |
| 5-year total | $700-1,400 | $3,000-7,000+ |
Cycling shortcuts that actually work
Three legitimate ways to speed up the cycling process: (1) seed your new tank with filter media or substrate from an established, healthy tank — adds bacteria instantly, can cut cycling to under 2 weeks. (2) Use bottled bacteria starters like Seachem Stability or Tetra SafeStart — quality varies between brands but quality ones cut cycling by 30-50%. (3) Cycle with ammonia rather than with fish — safer for the fish and faster than the old "throw in feeder goldfish" method that often killed the cyclers.
The fastest legitimate cycling combines all three: established media + bottled bacteria + ammonia source. Tanks set up this way can be ready for full stocking in 7-10 days.
Common mistakes
- Skipping the cycle. Adding fish on day 1. Most beginners do this; most beginners lose fish within weeks.
- Starting too small. 5-gallon and below tanks are harder to keep stable than 20-gallon and above. Smaller tanks crash faster from any imbalance. Beginners should start at 20+ gallons.
- Overstocking out of the gate. "I have room for one more fish" is the universal aquarist lie. Stock to 60-70% of theoretical capacity to leave room for growth.
- Underfiltering. The included filter on a starter kit is almost always undersized. Plan to replace or supplement.
- Not testing water. $25 in test strips and a liquid kit reveals problems before fish die. Most beginners skip this until they need it.
- Treating algae as a problem to chemical-fix. Algae is a symptom (too much light, too many nutrients, too few plants). Chemical algae killers temporarily clear it but don't fix the cause.
Questions and answers
How do I calculate volume for a non-rectangular tank?
For bow-front or rounded tanks, manufacturer-stated volume is usually accurate. For hexagonal tanks, use the average diameter × height. For corner pentagon tanks, treat as a quarter-circle approximation. Or just trust the label and round down 10%.
Does the temperature affect water volume?
Negligibly for any reasonable tank temperature. Water density changes about 0.4% between 65°F and 85°F — irrelevant for stocking or dosing math.
What's the most beginner-friendly tank size?
Most experienced aquarists recommend 20-40 gallons for beginners. Large enough to be stable (small changes don't crash the system), small enough to be affordable. The 40-gallon breeder is a particularly good footprint.
Sources
- American Veterinary Medical Association: aquatic animal welfare guidelines
- The Aquarium Wiki: standard tank dimensions reference
- Tropical Fish Hobbyist Magazine: stocking density research
- Practical Fishkeeping: cycling and biological filtration guides
Related: Dog Food Portion · Cat Food Portion · Pet Medication Dosage · Dog Crate Size