Aquarium Tank Calculator: Volume & Gallons
- Usable volume (inside glass)
- US gallons
- Result
- Total volume in liters
- L
- Result
- Length
- 48 in
- You entered
An aquarium tank calculator works out the water volume of a fish tank in gallons or liters from its dimensions and shape. You enter the length, width, and height (and for some shapes, the diameter or base dimensions), choose the glass thickness if you want the inside volume, and the calculator returns the total and usable water capacity. This article explains the formulas, how to use them correctly, and common pitfalls so you get an accurate number for stocking, dosing, and equipment sizing.
Formula
The basic formula for a rectangular aquarium is the same as for any rectangular box:
Volume = Length × Width × Height
For US gallons, divide the cubic inches by 231 (since 1 US gallon = 231 cubic inches). For liters, divide the cubic centimeters by 1000, or if you measured in inches, divide the cubic inches by 61.024 (1 liter ≈ 61.024 cubic inches).
- L – length of the tank (inches or cm)
- W – width (front to back, inches or cm)
- H – height (inches or cm)
- G – glass thickness (inches or cm) – subtract 2×G from length and width, and 1×G from height (the bottom pane)
For a cylindrical tank, the formula is π × r² × h, where r is the radius (half the diameter) and h is the height. For a bowfront or hexagonal tank, the volume is usually approximated by splitting the shape into rectangles and triangles, or by using a manufacturer’s stated volume.
Worked Example
Using the default values from the calculator above: a tank 48 inches long, 12 inches wide, 20 inches high, with 0.5-inch glass.
- Total volume in cubic inches: 48 × 12 × 20 = 11,520 in³
- Convert to US gallons: 11,520 ÷ 231 = 49.87 gallons
- Inside dimensions: length = 48 − 1 = 47 in, width = 12 − 1 = 11 in, height = 20 − 0.5 = 19.5 in
- Inside volume: 47 × 11 × 19.5 = 10,081.5 in³
- Usable volume: 10,081.5 ÷ 231 = 43.64 gallons
The calculator rounds to one decimal place, so it shows 49.9 total gallons and 43.6 usable gallons. The difference (about 6 gallons) is the glass and the air gap at the top – you never fill a tank to the brim.
Why Use a Tank Calculator?
Knowing your aquarium’s true water volume matters for several practical reasons:
- Stocking levels: Most fish stocking guidelines are based on gallons or liters of water. Overestimating volume can lead to overcrowding.
- Medication dosing: Many fish medications specify a dose per gallon. An incorrect volume can underdose (ineffective) or overdose (harmful).
- Heater sizing: A general rule is 3–5 watts per gallon, so a 50-gallon tank needs a 150–250 watt heater.
- Filter capacity: Filters are rated for a maximum tank size; you need a filter rated for at least your actual water volume.
- Water changes: If you do a 25% water change, you need to know how many gallons to remove and replace.
Even if the manufacturer labels a tank as “50 gallons,� that is often the nominal size based on outside dimensions. The real water volume is lower because of glass thickness and the fact that you leave an air gap.
How to Measure Your Tank
To get accurate results, measure the inside dimensions if possible, or measure the outside and subtract the glass thickness. Use a tape measure and measure in inches or centimeters – be consistent.
- Measure the length from left to right at the longest point (for a rectangle, it’s the front-to-back dimension).
- Measure the width from front to back.
- Measure the height from the bottom glass to the top rim – not to the water line. The water line is usually 1–2 inches below the rim.
- If you have a bowfront or hexagonal tank, measure the longest width and the narrowest width, and use an average for a rough estimate.
For a more precise usable volume, measure the water you actually add when filling the tank – that is the true volume. You can use a 5-gallon bucket and count how many buckets you pour in.
Common Mistakes and Misconceptions
One of the most common errors is mixing units. If you measure in inches and use a formula meant for centimeters, you’ll be off by a factor of 16.4. Always convert to the same unit system before calculating.
Another mistake is forgetting to subtract the glass thickness. A “50-gallon� tank with 0.5-inch glass actually holds about 43–45 gallons of water, depending on how high you fill it. That’s a 10–15% difference, which can affect dosing and stocking.
People also confuse US gallons with imperial gallons. 1 US gallon = 3.785 liters, while 1 imperial gallon = 4.546 liters. The calculator above uses US gallons, which are standard in the United States and Canada for aquariums. If you live in the UK or Australia, you’ll often see liters used instead.
Finally, the “volume� of a tank is not the same as the weight. Water weighs about 8.34 pounds per US gallon, so a 50-gallon tank weighs over 400 pounds just for the water, plus the glass and substrate. That’s why floor support matters for large tanks.
Alternatives to a Rectangular Tank
Not all aquariums are rectangles. Here’s how to handle other common shapes:
- Bowfront: Multiply the length × width × height, then multiply by 0.85 (a rough factor for the curved front). For a more accurate number, measure the water you add.
- Hexagonal: Divide the hexagon into triangles and rectangles, or use a formula for a hexagonal prism. A simple approximation is to treat it as a rectangle using the longest width and multiply by 0.866.
- Cylindrical: Use π × r² × h. If you measure diameter, divide by 2 to get the radius.
- Custom/irregular: The most reliable method is to fill the tank with a known-volume container and count how many containers it takes.
For any non-standard shape, the calculator above works for the rectangular portion, but you may need to add or subtract the volume of the curved or angled parts. When in doubt, measure the water during the initial fill – that’s the number you should use for dosing and stocking.
Frequently Asked Questions
How many gallons is my 20-inch long tank?
You need the width and height too. If it’s a standard 10-gallon, it’s usually 20×10×12 inches. But a 20-inch long tank could be a 5-gallon or a 15-gallon depending on the other dimensions. Use the formula: (L×W×H) ÷ 231.
Does the calculator account for substrate and decorations?
No, it only calculates the water volume based on tank dimensions. Substrate, rocks, and decorations displace water, so the actual water volume is slightly less. For dosing, it’s safer to use the calculated volume minus about 10% if you have a lot of hardscape.
What is the difference between total volume and usable volume?
Total volume is the full capacity if the tank were filled to the very top. Usable volume subtracts the glass thickness and the air gap you leave at the top (usually 1–2 inches). Fish need that air gap for oxygen exchange, and you never fill to the brim.
How do I convert gallons to liters?
Multiply the number of US gallons by 3.785 to get liters. For example, 50 gallons × 3.785 = 189.25 liters. If you have liters and want gallons, divide by 3.785.
Why does my tank label say 50 gallons but the calculator says 43?
Manufacturers often list the nominal volume based on outside dimensions, not the actual water capacity. Glass thickness, the top rim, and the fact that you don’t fill to the brim all reduce the real volume. The calculator’s usable volume is closer to what you actually have.
Related
Formula used
in l | Length | in | 48 | 0 in w | Width | in | 12 | 0 in h | Height | in | 20 | 0 in g | Glass thickness | in | 0.5 | 0 out total | Total volume | US gallons | (l * w * h) / 231 | 1 out usable | Usable volume (inside glass) | US gallons | ((l - 2*g) * (w - 2*g) * (h - g)) / 231 | 1 out liters | Total volume in liters | L | (l * w * h) / 61.024 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.