ThisCalculator

Everyday

Fish Tank Water Volume Calculator: Gallons & Liters

Updated · Standard formula, shown below

Water volume 18.7 US gal
Water volume
70.8 L
Result
Length
24 in
You entered
Width
12 in
You entered

Fish Tank Water Volume Calculator: Gallons & Liters

This calculator works out the water volume of a rectangular, square, or cylindrical fish tank. You enter the tank’s dimensions (length, width, and height, or diameter and height for a cylinder), and it returns the volume in US gallons and liters, accounting for the fact that you won’t fill the tank to the very brim.

Formula

The calculator uses the standard geometric volume formulas, then converts cubic inches to gallons and liters.

For rectangular tanks:

Volume (cubic inches) = Length × Width × Fill Height

Volume (US gallons) = (Length × Width × Fill Height) / 231

Volume (liters) = (Length × Width × Fill Height) × 0.0163871

  • Length, Width, Fill Height – measured in inches (in).
  • 231 – the number of cubic inches in one US gallon.
  • 0.0163871 – the number of liters in one cubic inch.

For cylindrical tanks:

Volume (cubic inches) = π × (Diameter/2)² × Fill Height

Volume (US gallons) = (π × (Diameter/2)² × Fill Height) / 231

Volume (liters) = (π × (Diameter/2)² × Fill Height) × 0.0163871

  • Diameter – the inside diameter of the cylinder in inches.
  • Fill Height – the water depth in inches.
  • π ≈ 3.14159.

Worked Example

Using the default values from the calculator: a rectangular tank with Length = 24 in, Width = 12 in, and Fill Height = 15 in.

  1. Multiply length × width × fill height: 24 × 12 × 15 = 4,320 cubic inches.
  2. Convert to US gallons: 4,320 ÷ 231 = 18.7 gallons (rounded to one decimal).
  3. Convert to liters: 4,320 × 0.0163871 = 70.8 liters (rounded to one decimal).

So the calculator returns 18.7 US gallons and 70.8 liters for the default inputs.

Why Use a Fish Tank Water Volume Calculator?

Knowing the true water volume of your aquarium is essential for several practical reasons:

  • Medication dosing: Most fish medications specify a dose per gallon or liter. An overestimate can harm fish; an underestimate can make the treatment ineffective.
  • Stocking levels: A common guideline is “one inch of fish per gallon� (though this is rough and varies by species). Accurate volume helps you avoid overcrowding.
  • Filter and heater sizing: Filters and heaters are rated for a maximum tank volume. Using the actual water volume (not the tank’s nominal size) ensures proper turnover and heating.
  • Water changes: When replacing 25% of the water, you need to know exactly how much to remove and prepare.

Many aquarists use the tank’s advertised size (e.g., “20-gallon tank�) for these tasks, but that number usually refers to the total volume when filled to the brim. In reality, you leave an air gap at the top, and decorations, substrate, and equipment displace water. The calculator above lets you enter the actual water depth to get a more accurate figure.

How to Measure Your Tank Correctly

Accuracy starts with measurement. Here are the steps:

  1. Measure the inside dimensions. Use a tape measure or ruler. Measure from the inside glass, not the outside, because glass thickness adds to the dimensions. For a rectangular tank, measure the length (longest side), width (shorter side), and height.
  2. Decide on the fill height. This is the distance from the bottom of the tank to the water surface. Typically you leave 1–2 inches of air space at the top, so the fill height is less than the tank height.
  3. For a cylindrical tank, measure the inside diameter (the widest point across the circle) and the fill height.
  4. Enter the numbers in the same unit. The calculator uses inches, but you can convert centimeters to inches by dividing by 2.54.

If your tank is an unusual shape (bow-front, hexagonal, pentagon), the rectangular formula will not be accurate. For those, you can approximate by breaking the shape into rectangles and triangles, or use a formula specific to that shape.

Common Mistakes and Misconceptions

Several errors can lead to an incorrect volume:

  • Using outside dimensions. The glass thickness can add 0.25–0.5 inches per side, which over a large tank can add several gallons to the calculation.
  • Using the tank’s nominal size. A “55-gallon� tank may actually hold 55 gallons when filled to the brim, but you rarely fill it that high. The real water volume is often 10–15% less.
  • Mixing units. If you measure in centimeters, you must convert to inches (or use a metric formula). The calculator expects inches; entering centimeters will give a wildly wrong result.
  • Forgetting to account for displacement. Substrate, rocks, driftwood, and equipment take up space. The calculator gives the volume of the water column, not the actual water volume after displacement. For a rough estimate, subtract 5–10% for a planted tank with substrate.

A common misconception is that a gallon of water weighs 8.34 pounds, so a 20-gallon tank weighs about 167 pounds. That is true, but the total weight includes the tank, stand, substrate, and equipment, which can easily double the weight. Always ensure your stand can support the total weight.

US Gallons vs. Imperial Gallons vs. Liters

The calculator uses US gallons, which are smaller than imperial gallons. One US gallon equals 3.785 liters, while one imperial gallon equals 4.546 liters. If you are in the UK or elsewhere using imperial gallons, multiply the US gallon result by 0.833 to get imperial gallons. Conversely, liters are the same worldwide, so the liter output is universal.

When reading fish medication labels, check whether the dose is per US gallon or per imperial gallon. Many products sold in the US use US gallons; those sold in the UK may use imperial. Using the wrong gallon can lead to a 20% dosing error.

Limitations of the Formula

This calculator is accurate for rectangular and cylindrical tanks with straight, vertical sides. It does not account for:

  • Sloped or curved fronts (e.g., bow-front tanks).
  • Hexagonal or pentagonal shapes.
  • Substrate and decoration displacement.
  • Water evaporation – the volume will slowly decrease over time.

For a bow-front tank, you can approximate by treating it as a rectangle with the average width (the widest point plus the narrowest point divided by two). For a hexagon, you can break it into rectangles and triangles, but it is often easier to use an online calculator specifically for that shape.

For most hobbyists, the rectangular formula is sufficient. The error from ignoring displacement is usually less than 10%, which is acceptable for stocking and water change purposes. For medication dosing, it is better to be slightly under than over, so if in doubt, use the calculated volume without subtracting displacement.

Frequently Asked Questions

How many fish can I keep in my tank?
A common rule of thumb is one inch of fish per gallon of water, but this is very rough. It works for small, peaceful fish but fails for large, messy, or territorial species. A better approach is to research the adult size and bioload of each species and use a stocking calculator that considers filtration and surface area.

Does the shape of the tank affect the volume?
Yes. A tall, narrow tank holds the same volume as a short, wide tank, but the surface area (where gas exchange happens) is smaller. This affects oxygen levels and fish comfort. The volume formula only gives the amount of water, not the surface area.

Should I include the substrate in the volume?
No. Substrate displaces water, so the actual water volume is less than the tank’s empty volume. For a gravel bed of 1–2 inches, subtract about 5–10% from the calculated volume. For sand, the displacement is similar.

How often should I check the water volume?
You only need to calculate it once, unless you change the water depth or add large decorations. However, evaporation lowers the water level, so you may want to top off regularly, which does not change the volume calculation if you refill to the same level.

What if my tank is not a rectangle or cylinder?
For bow-front tanks, use the average width. For hexagons, break into rectangles and triangles. For irregular shapes, you can measure the water you add when filling the tank for the first time – that gives the true volume directly.

Can I use this calculator for a pond?
Yes, if the pond is rectangular or cylindrical. For irregularly shaped ponds, you can approximate by measuring the average length, width, and depth, but the result will be less accurate. For ponds, it is often easier to use a flow meter or bucket test.

Related

Formula used
in length | Length | in | 24 | 0
in width | Width | in | 12 | 0
in height | Height | in | 16 | 0
in fill | Fill height | in | 15 | 0
out gallons | Water volume | US gal | (length * width * fill) / 231 | 1
out liters | Water volume | L | (length * width * fill) * 0.0163871 | 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.