Enter your tank's length, width and height and get the real volume in gallons and litres, plus how much the water weighs — for rectangular, bow-front, cylinder (including flat-back half-cylinder), hexagon and octagon tanks. An optional water-depth field measures to the waterline instead of the rim, so the answer is the water actually in the tank. Everything runs in your browser; nothing is saved.
How it works
Every shape is a base area times a height. The volume you get is the gross volume from the outside dimensions — glass, substrate and the gap above the waterline are not taken off here. For the water actually in a rectangular tank, use the Actual Water Volume Calculator.
Rectangular. Volume = length × width × height. In inches, divide the cubic inches by 231 (one US gallon = 231 in³) for US gallons. In centimetres, divide the cubic centimetres by 1,000 for litres. 1 US gallon = 3.78541 litres, so gallons × 3.78541 gives litres either way.
Bow-front. The tank is a rectangle plus the curved bow. The bow depth is the centre depth minus the side depth. The bow is worked out as an exact circular segment: arc radius R = (L² ÷ 4 + B²) ÷ (2B), segment area = R² × arccos((R − B) ÷ R) − (R − B) × √(2RB − B²), base area = L × side depth + segment area. Real bows are close to circular arcs, so this is a good approximation — and it is the geometrically exact area of an arc, not a shortcut.
Cylinder. Volume = π × radius² × height, radius = diameter ÷ 2. A flat-back half-cylinder is exactly half of that.
Hexagon (regular only). Base area = (3√3 ÷ 2) × side², about 2.598 × side², times height. If you measured across the flats instead of one side, the side is that width ÷ √3 — about ÷ 1.732. Do not use the corner-to-corner width as the side: it is twice the side, and area scales with the square, so it would overstate the volume.
Octagon (regular only). Base area = 2(1 + √2) × side², about 4.828 × side², times height. Hexagon and octagon both assume all sides equal; unequal panels make the result an approximation.
Water depth. If you enter a water depth, it replaces the height — the volume is the water in the tank, not the volume to the brim. A depth deeper than the height is clamped to the height. Switching units converts every dimension you entered (24 in becomes 61.0 cm), so the physical tank stays the same.
Water weight. Freshwater weighs about 8.34 lb per US gallon, and 1 litre of water weighs 1 kg. The weight shown is water only — add the glass, substrate, decor and stand on top.
Worked example
The "55-gallon" tank, measured outside: 48 × 13 × 21 in.
Rectangular · Length 48 in · Width 13 in · Height 21 in · Water depth blank (filled to the rim).
Volume = L × W × H ÷ 231 for US gallons; litres = gallons × 3.78541; weight = gallons × 8.34 lb.
48 × 13 × 21 = 13,104 in³. 13,104 ÷ 231 = 56.73 gal. 56.73 × 3.78541 = 214.7 L. 56.73 × 8.34 = 473.1 lb.
56.7 US gallons · 214.7 litres · the water weighs about 473 lb. Sold as 55 gal — the label is a size class, not an exact volume.
The other shapes check out the same way. Bow-front, 36 in long, 12 in at the ends, 4 in bow, 20 in deep: R = (324 + 16) ÷ 8 = 42.5 in; segment = 96.94 sq in; base area = 432 + 96.94 = 528.94 sq in; 528.94 × 20 = 10,578.8 in³ ÷ 231 = 45.8 gallons. Cylinder, diameter 12 in, height 24 in: π × 36 × 24 = 2,714.3 in³ ÷ 231 = 11.75 gallons (half-cylinder 5.88). Hexagon, 12 in sides, 24 in high: 2.598 × 144 × 24 = 8,979 in³ ÷ 231 = 38.9 gallons. Octagon, 20 cm sides, 60 cm high: 4.828 × 400 × 60 = 115,882 cm³ = 115.9 litres.
How to read your results
The verdict is the water volume in US gallons — the headline number. Under it, the shape line says which shape was calculated and whether the tank is filled to the brim or below the rim. The stat grid shows the same volume in litres and how much the water weighs.
Below the stats, the checks are grouped. "OK" means that check passed. "Caution" appears when the volume is under 5 gallons — below the minimum most fish need — with a fix underneath telling you to pick a bigger tank for fish. Shape notes sit in the OK group: the bow-front breakdown, the hexagon flats conversion, or the reminder that a regular polygon was assumed.
If you entered a water depth, the result also states the full volume to the brim, so you can see how much the freeboard costs. Stock by the water number, not the label — and for dosing, use the net water volume from the Actual Water Volume Calculator, which takes glass, substrate and rock off as well.
Common mistakes
- Trusting the label. A "55-gallon" tank measures 56.7 gallons from its outside dimensions, and a "125-gallon" only 117.8 — the label is a size class.
- Measuring the outside and calling it the water volume. Outside dimensions give the gross volume; glass, substrate and the gap above the waterline all take water away.
- Forgetting the water depth. A tank filled an inch below the rim holds less than its full height suggests — enter the depth to the waterline.
- Bow-front with the centre depth equal to (or less than) the side depth. Then there is no bow — it is a rectangle, and the calculator says so.
- Hexagon measured corner to corner. The corner-to-corner width is twice the side; entering it as the side overstates the volume badly. Measure one flat panel, or the width across the flats.
- Unequal panels on a hexagon or octagon. The formulas assume a regular shape — measure two or three panels and check they match.
- Mixing units. The units toggle converts what you typed, but a length typed in centimetres while the tool is set to inches is still read as inches — check the unit before you calculate.
- Dosing by the gross volume. Medication, salt and conditioner are dosed by the water actually in the tank, not the gross figure — see the Actual Water Volume Calculator.
Standard rectangular sizes
The seven standard sizes on the quick-pick buttons, with the gross volume their outside dimensions give.
| Standard size | Outside L × W × H (in) | Gross volume (US gal) | Gross volume (L) |
|---|---|---|---|
| 10 gal | 20 × 10 × 12 | 10.4 | 39.3 |
| 20 long | 30 × 12 × 12 | 18.7 | 70.8 |
| 20 high | 24 × 12 × 16 | 19.9 | 75.5 |
| 29 gal | 30 × 12 × 18 | 28.1 | 106.2 |
| 40 breeder | 36 × 18 × 16 | 44.9 | 169.9 |
| 55 gal | 48 × 13 × 21 | 56.7 | 214.7 |
| 75 gal | 48 × 18 × 21 | 78.5 | 297.3 |
Shape formulas at a glance
| Shape | Base area | Volume | Worked example |
|---|---|---|---|
| Rectangular | L × W | Area × H | 48 × 13 × 21 in = 56.7 gal |
| Bow-front | L × side depth + circular segment | Area × H | 36 in, 12 in sides, 4 in bow, 20 in deep = 45.8 gal |
| Cylinder | π × r² (r = diameter ÷ 2) | Area × H (÷ 2 for half-cylinder) | Dia 12 in × 24 in = 11.75 gal |
| Hexagon (regular) | (3√3 ÷ 2) × side² ≈ 2.598 × side² | Area × H | 12 in sides × 24 in = 38.9 gal |
| Octagon (regular) | 2(1 + √2) × side² ≈ 4.828 × side² | Area × H | 20 cm sides × 60 cm = 115.9 L |
FAQ
How do I calculate the gallons in my tank?
Multiply length × width × height in inches and divide by 231 — that is the US gallon. In centimetres, multiply and divide by 1,000 for litres, then divide by 3.78541 for US gallons. Pick your shape above and the calculator does it, including the bow-front, cylinder, hexagon and octagon formulas.
Why is my "55-gallon" tank not 55 gallons?
The label is a size class, not a measurement. A standard 55 measures 48 × 13 × 21 in, which is 13,104 cubic inches ÷ 231 = 56.7 gallons gross — and the water actually in it is less again once glass, substrate and the rim gap are counted. Brands also vary by about half an inch, so measure the tank you own.
Should I measure inside or outside?
Outside dimensions give the gross volume — the number this calculator returns. Inside dimensions give a figure closer to the water volume, but still before substrate and the rim gap. For the water actually in a rectangular tank, use the Actual Water Volume Calculator, which starts from the outside dimensions and takes the glass off properly.
What is the water-depth field for?
The depth to the waterline, not the rim. If your tank is filled an inch below the rim, enter the water depth and the result is the water in the tank — the figure that matters for stocking and dosing — with the full brim volume shown alongside for comparison.
Other bow-front calculators give a different number — which is right?
Three methods circulate and they disagree by about 8% on the same tank. The average-depth shortcut (length × the average of side and centre depth × height) reads about 5% low, and the 0.785-factor shortcut about 3% high, on the 36 × 12 / 16 × 20 in worked example. This calculator uses the exact circular-segment area, which is the geometrically correct area of a circular arc and reproduces the published worked example exactly at 45.8 gallons. A real bow is close to an arc, so the segment is a good approximation — and the page says so rather than hiding it.
Hexagon — do I enter a side length or the width across the flats?
Either — pick the one you measured. One side length goes in as it is. The width across the flats (between opposite parallel panels) is divided by √3 to get the side. Never enter the corner-to-corner width as the side: it is twice the side and would overstate the volume.
What about corner or quarter-cylinder tanks?
No single verified formula covers them here — a quarter-cylinder is a quarter of a round tank (π × r² × height ÷ 4, where r is the back side length), and a pentagon corner tank is a square minus the cut-off corner triangle, times height. For those, work out the gross volume from the geometry and take the same share off for glass and substrate as a rectangular tank of the same size, or use the Actual Water Volume Calculator's method as a guide.
Sources
- NIST Handbook 44, Appendix C — US gallon = 231 in³, inch = 2.54 cm (Standard).
- NIST Special Publication 811 — US gallon = 3.785411784 L (Standard).
- UK Weights and Measures Act 1985, Schedule 1 — Imperial gallon = 4.54609 L (Law).
- Calcist — Aquarium Volume Calculator, bow-front circular-segment formula and 45.8-gallon worked example (Reference). calcist.com/aquarium-volume-calculator/
- DexoCalc — Aquarium Volume Calculator, bow-front segment in the θ − sin θ form (Reference). dexocalc.com/pet-calculators/aquarium-volume-calculator/
- OmniCalculator — Aquarium Calculator, cylinder and half-cylinder formulas (Reference). omnicalculator.com/other/aquarium-volume
- AquariumVolume — Hexagonal Aquarium Volume Calculator, side and across-flats formulas and 14.40-gallon worked example (Reference). aquariumvolume.com/hexagon-aquarium-volume-calculator/
- FishTankVolumeCalculator — Octagon Fish Tank Volume Calculator, 2(1 + √2) × side² formula (Reference). fishtankvolumecalculator.com/octagon/
- Wolfram MathWorld — Circular segment, the geometry behind the bow-front formula (Reference).