A practical guide

How to Calculate Aquarium Water Volume in Gallons and Liters

Estimate rectangular aquarium water volume using internal dimensions, filled height, and decor displacement.

Use the calculator

For a rectangular aquarium, multiply the internal length, internal width, and actual filled water height in inches, divide by 231 to get US gallons, then subtract the estimated volume displaced by substrate and decorations. To convert the result to liters, multiply by 3.785411784.

The aquarium volume calculator uses this rectangular estimate. It calculates water volume from your measurements; it does not determine how many fish a tank can support or prescribe a treatment dose.

Measure the water space, not the product label

Use the distance between the inside surfaces of the glass. Outside dimensions include material that water cannot occupy. A manufacturer's named tank capacity may also differ from your actual operating volume, particularly when the tank is not filled to the rim.

Measure water height from the internal bottom to the intended waterline. If you then subtract substrate displacement, do not measure height only from the top of the substrate: that would remove the same occupied space twice. Take care to distinguish an empty tank's full height from the water height you actually intend to use.

Enter every dimension in inches for this tool. Convert feet to inches by multiplying by 12. If you measure in centimeters, divide each dimension by 2.54 before entering it. The displacement field uses US gallons, so a liter estimate must be converted separately.

The formula and its units

Let L be internal length, W internal width, H filled height, and S estimated solid displacement in US gallons. The calculation is water gallons = L × W × H ÷ 231 − S. Then water liters = water gallons × 3.785411784.

NIST identifies one US gallon as exactly 231 cubic inches. The US gallon is different from the imperial gallon, so a result marked simply “gallons” without identifying the unit can be misleading.

The model assumes a rectangular water space with parallel sides. It does not account for a bowed front, curved corners, tapering walls, or a cylindrical tank. Use a calculator intended for the actual shape rather than treating the widest dimensions of a curved tank as a rectangular volume.

Worked example with decorations

Consider a tank with internal measurements of 24 inches by 12 inches and a filled water height of 12 inches. Assume, solely for this example, that substrate and decor displace 1.5 US gallons.

  1. Rectangular volume: 24 × 12 × 12 = 3,456 cubic inches.
  2. Volume before displacement: 3,456 ÷ 231 ≈ 14.9610 US gallons.
  3. Estimated water: 14.9610 − 1.5 ≈ 13.4610 US gallons.
  4. Liter conversion: 13.4610 × 3.785411784 ≈ 50.96 liters.

Without the displacement estimate, the same dimensions give approximately 56.63 liters. The subtraction therefore matters. Keep full precision through the calculation and round the final display, rather than rounding gallons before converting them.

Handle displacement as an estimate

Rocks, ornaments, equipment inside the tank, and substrate occupy space. However, a substrate layer's outer rectangular envelope is not necessarily all solid material: water can occupy spaces between particles. Subtracting the whole layer volume can overstate displacement.

If you do not know the displacement, enter zero to see the rectangular upper estimate and label it accordingly. You can compare that result with a second run using a reasonable measured estimate. Do not present an uncertain displacement input as a precise measurement merely because the calculator returns decimal places.

A measured fill record can help check the estimate. Keep track of known quantities of water added to the actual setup, allowing for water left in containers and any already present. This is a practical check, not a reason to disturb an established aquarium for measurement.

Keep system volume separate

A sump or other connected water reservoir can add operating water beyond the display tank. Calculate each rectangular compartment using its operating water height, not its maximum possible fill, and avoid counting a shared space twice. This tool does not automatically include plumbing or reservoirs.

When planning a water change, distinguish total tank volume from the amount removed. A 25% change based on the example's 13.4610 gallons would be about 3.3653 gallons. That is arithmetic only; the appropriate change schedule depends on the aquarium.

Frequently asked questions

Why is the result below the tank's advertised capacity?

Internal dimensions, a lower waterline, and displacement can all reduce operating volume. Check the inputs before assuming the tank label or calculator is wrong.

Can displacement be larger than the rectangular volume?

No valid water estimate can result from that input. The calculator rejects it. Check the units and whether liters were entered in a US-gallon field.

Can I use this number directly for aquarium medication?

This is an estimated volume, not dosing advice. Follow the specific product instructions and obtain appropriate aquarium guidance when the actual volume or treatment is uncertain.

Sources and further reading