Aquarium volume calculator

Inside dimensions in. Gallons, liters, and water weight out — for rectangular, bow-front, cylindrical, and hex tanks.

Volume calculatorno decor · 0.0″ sub

Working volume

25.7gal

97.3 L · 28.1 gal gross · 234 lb water

L · 30H · 18W · 12
Adjust
Tank shape
in
in
in

Total tank height. Fill-below-rim and substrate depth come below.

Working volume adjustments

in

Inches of air between waterline and rim. Most tanks are filled 1–2 inches below the rim.

in

Sand or gravel bed at the bottom. Displaces water 1:1.

Hardscape (rocks, driftwood, decor)

None: bare tank · Light: a few small ornaments · Medium: rock pile or large wood · Heavy: aquascape with substantial stone/wood

Use inside dimensions, not outside

Manufacturer-stated tank gallons are computed from outside dimensions. Glass thickness (1/4" on small tanks, up to 5/8" on larger ones), the 1–2 inches of air below the rim, and substrate displacement reduce the actual water volume by 10–20%. A “20-gallon long” sold at 30 × 12 × 12 actually holds about 17 gallons of water once it's set up. Use water height (not tank height) and inside dimensions for accurate stocking, dosing, and water-change math.

Why box gallons lie

Three layers of error stack between the "20 gallons" printed on the box and the water you're actually treating with dechlorinator:

  1. Outside-vs-inside dimensions.A 20-long's stated 30 × 12 × 12 outside reduces to roughly 29.5 × 11.5 × 11.5 inside once you subtract glass thickness on each face. That alone cuts volume by ~7%.
  2. Fill below the rim. Most aquarists fill 1–2 inches below the top edge to leave room for the lid, surface agitation, and to prevent splash-out. On a 12-inch-tall tank, 1.5 inches of air gap is another 12.5% reduction in usable height.
  3. Substrate + hardscape displacement. Two inches of substrate over a 30 × 12 footprint displaces ~3 gallons of potential water. A medium aquascape adds another 5% loss.

Stack those: a stated 20 → ~17 inside-dimensions → ~14.5 after fill drop → ~13 working volume. That's why the calculator above surfaces both gross (geometric capacity) and working (what you actually treat) numbers — they can differ by 30%+ on the same tank.

Working volume vs gross volume

The headline of the calculator is working volume— that's the number to use for dosing chemicals (dechlorinator, ferts, medication) and for sizing weekly water changes. Gross volume only shows up for floor-load planning, where the geometric capacity matters because the tank weighs the same whether you put substrate in it or not.

Most online aquarium calculators only report a single "volume" number (typically gross). That's fine if you understand the gap, fragile if you don't. Beginner stories of overdosing medication usually trace back to dosing for the box gallons, not the working gallons.

Formulas this calculator uses

Standard tank sizes — stated vs actual

From Aqueon and Marineland published spec sheets. Outside dimensions are what the manufacturer states; approximate water is what you actually fill once the tank is set up at 1.5" below rim with a shallow substrate bed.

Stated sizeOutside (in)Stated galActual ~gal
5 gallon16 × 8 × 105~4
10 gallon20 × 10 × 1210~9
20 long30 × 12 × 1220~17
29 gallon30 × 12 × 1829~26
40 breeder36 × 18 × 1640~37
55 gallon48 × 13 × 2155~50
75 gallon48 × 18 × 2175~70
125 gallon72 × 18 × 23125~118

Where this calculator falls short

Related tools

Sources: NIST gallon definition (1 US liquid gallon = 231 cubic inches, exact), Aqueon and Marineland published tank spec sheets for standard sizes, peer-reviewed aquaculture literature on substrate-displacement effects. Working-volume math layer in lib/aquarium/tankVolume.ts on GitHub.