ThisCalculator

Home and garden

Fish Tank Calculator Gallons: Volume Made Easy

Updated · Standard formula, shown below

Water volume 17.5 US gal
Water volume
66.1 L
Result
Total volume
19.9 US gal
Result
Length
24 in
You entered

Fish Tank Calculator Gallons: Volume Made Easy

This fish tank calculator works out the water volume of a rectangular, square, or bow-front aquarium in US gallons and liters. You enter the tank’s dimensions (length, width, and height, or the three measurements for a bow-front), and it returns the total volume and the actual water capacity after accounting for gravel and a typical water level. The result is the number of gallons your tank holds, which is the first figure every aquarist needs for stocking, medication dosing, and equipment sizing.

Formula

The calculator uses the standard geometric volume formula for a rectangular prism, then converts cubic inches to gallons. The core formula is:

Volume (gallons) = (Length × Width × Water Depth) ÷ 231

  • Length (l) – the tank’s longest horizontal dimension, in inches.
  • Width (w) – the tank’s front-to-back dimension, in inches.
  • Water Depth (d) – the actual height of the water, not the tank height, in inches.
  • 231 – the number of cubic inches in one US gallon.

For metric users, the equivalent formula is Volume (liters) = (Length × Width × Water Depth in cm) ÷ 1000, since 1 liter = 1000 cubic centimeters. The calculator above uses inches and gives both gallons and liters.

Worked Example

Using the default values: Length = 24 in, Width = 12 in, Height = 16 in, Gravel depth = 2 in, Water depth = 14 in (which is tank height minus gravel depth, 16 – 2 = 14).

  1. Compute the water volume in cubic inches: 24 × 12 × 14 = 4032 in³.
  2. Convert to US gallons: 4032 ÷ 231 = 17.4545… gallons.
  3. Rounded to one decimal place: 17.5 US gallons.
  4. For liters: 4032 × 0.0163871 = 66.08 liters (calculator shows 66.1 L).
  5. Total tank volume (if filled to the brim) would be 24 × 12 × 16 = 4608 in³ ÷ 231 = 19.9 gallons – but you never fill it that high.

This matches the calculator’s output exactly.

Why the Water Depth Matters

Many people use the tank’s height in the formula, but that overestimates the actual water volume. In a real aquarium, you leave an air gap at the top (usually 1–2 inches) for the lid, filter, and to prevent fish from jumping out. You also have a layer of gravel or sand at the bottom that displaces water. The calculator’s “water depth� input lets you subtract both the gravel depth and the air gap from the total height. For a standard 20-gallon tall tank (24″ × 12″ × 16″), the actual water volume is about 17–18 gallons, not 20. This matters when dosing medications – an overdose can be fatal – and when choosing a heater or filter, which are rated for the water volume they can handle.

How to Measure Your Tank

To get accurate numbers, measure the inside dimensions of your tank, not the outside. Glass thickness (typically ¼ to ½ inch) adds to the outside measurement but not to the water volume. Use a metal tape measure or a ruler, and measure from the inside glass edge to the opposite inside edge. For the water depth, measure from the bottom of the tank (inside, on the glass) to the water surface. If you have gravel, measure the gravel depth separately and subtract it from the water depth – or just measure from the top of the gravel to the water surface and add the gravel depth to get the true water depth from the bottom.

Bow-Front and Other Shapes

Rectangular tanks are the most common, but bow-front (curved glass) aquariums are popular. For a bow-front, the volume is not a simple rectangle. A common approximation is to treat it as a rectangular tank with a width that is the average of the front curve’s widest point and the back width. For example, if the tank is 36″ long, 15″ tall, with a back width of 12″ and a front bulge that reaches 18″, you could use an average width of 15″. That gives a rough volume of 36 × 15 × 15 ÷ 231 = 35 gallons. The actual volume will be slightly less because the curve is not a perfect rectangle. For precise measurement, you can fill the tank with a known volume of water using a bucket or a flow meter, but that is impractical for a large tank. The average-width method is usually within 10%.

Common Mistakes and Misconceptions

  • Using the tank’s height instead of water depth: As shown, this can overestimate by 10–15%. Always subtract the air gap and gravel.
  • Mixing inches and centimeters: If you measure in centimeters, the formula changes. Using inches in the 231 formula gives gallons; using centimeters gives cubic centimeters, which you divide by 1000 for liters. Never mix units.
  • Forgetting the gravel displacement: Gravel takes up space. A 2-inch layer in a 24″×12″ tank displaces about 24×12×2 = 576 in³, or 2.5 gallons. That is a significant amount.
  • Thinking a “20-gallonâ€� tank holds 20 gallons: The name refers to the total volume when filled to the brim, not the usable water volume. The actual water is always less.

Limits of the Formula

This formula assumes perfectly straight sides and a flat bottom. It does not account for decorations (rocks, driftwood, plants) that displace water, nor for the volume taken up by the filter, heater, or substrate beyond gravel. For stocking decisions, it is safer to use the actual water volume minus a bit more for decorations. Also, the formula gives the volume of the tank, not the weight. One US gallon of freshwater weighs about 8.34 pounds (3.78 kg), so a 20-gallon tank with water, gravel, and glass can easily weigh over 200 pounds – a critical factor for floor support. The calculator is a planning tool, not a substitute for careful measurement of your specific setup.

Frequently Asked Questions

How many gallons is my 48x13x20 tank?

Using the formula with those inside dimensions (48 × 13 × 20) gives 48 × 13 × 20 = 12,480 cubic inches ÷ 231 = 54.0 gallons total. If you have 2 inches of gravel and leave 1 inch of air, the water depth is 17 inches, so the water volume is 48 × 13 × 17 = 10,608 ÷ 231 = 45.9 gallons. That is the number to use for stocking.

Do I need to measure the outside or inside of the tank?

Always measure the inside. The glass thickness adds to the outside dimensions, which would overestimate the volume. For a typical 10-gallon tank, the glass is about ¼ inch thick, so the outside measurement is about ½ inch longer and wider than the inside. That small difference can throw off your volume by a few percent.

How do I convert gallons to liters for my API test kit?

One US gallon equals 3.78541 liters. Multiply the gallon figure by 3.785 to get liters. For example, 17.5 gallons × 3.785 = 66.2 liters. The calculator gives both, so you do not need to convert manually.

What if my tank is a hexagon or cylinder?

This calculator is for rectangular and bow-front tanks. For a cylinder, use the formula π × r² × h (in inches) ÷ 231 for gallons. For a hexagon, divide it into triangles or use the formula for a hexagonal prism. There are specialized calculators for those shapes; this one is for the most common aquarium shapes.

Why does my 20-gallon tank only hold 17 gallons of water?

Because the “20-gallon� rating is the total volume when filled to the very top. In practice, you leave an air gap (about 1 inch) and have gravel that displaces water. In a 24″×12″×16″ tank, 1 inch of air reduces the volume by 24×12×1 = 288 in³ (1.25 gallons), and 2 inches of gravel reduces it by 576 in³ (2.5 gallons). So the usable water is about 20 – 1.25 – 2.5 = 16.25 gallons, close to the 17.5 the calculator gives with a 14-inch water depth.

Related

Formula used
in l | Length | in | 24 | 0
in w | Width | in | 12 | 0
in h | Height | in | 16 | 0
in g | Gravel depth | in | 2 | 0
in d | Water depth | in | 14 | 0
out gal | Water volume | US gal | (l * w * d) / 231 | 1
out lit | Water volume | L | (l * w * d) * 0.0163871 | 1
out tgal | Total volume | US gal | (l * w * h) / 231 | 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.