ThisCalculator

Home and garden

Aquarium Water Volume Calculator: Gallons & Liters

Updated · Standard formula, shown below

Total volume (US gal) 59.8 gal
Total volume (L)
226.5 L
Result
Water volume (US gal)
50.4 gal
Result
Water volume (L)
190.6 L
Result

Aquarium Water Volume Calculator: Gallons & Liters

This calculator works out the water volume of a rectangular, square, or cylindrical aquarium in US gallons and liters. You enter the tank’s dimensions (length, width, and height for rectangular tanks, or diameter and height for round tanks) and the calculator returns the total volume, plus the actual water volume if you account for the typical 1–2 inches of empty space at the top. It uses the standard geometric volume formulas and converts the result into both gallons and liters.

Formula

The calculator uses the basic volume formula for a rectangular prism:

Volume (cubic inches) = Length × Width × Height

For a cylindrical (round) tank, the formula is:

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

To convert cubic inches to US gallons, divide by 231 (since 1 US gallon = 231 cubic inches). To convert to liters, multiply cubic inches by 0.0163871 (since 1 cubic inch = 0.0163871 liters).

Variables:

  • Length (l) – the longest horizontal dimension of a rectangular tank, in inches (or cm).
  • Width (w) – the shorter horizontal dimension, in inches (or cm).
  • Height (h) – the vertical dimension from bottom to top, in inches (or cm).
  • Glass thickness – the thickness of the glass or acrylic walls, in inches. This reduces the internal volume.
  • Fill height – the actual water level from the bottom, in inches. Usually 1–2 inches below the top rim.

Worked Example

Using the default values from the calculator above:

  • Length = 48 in
  • Width = 12 in
  • Height = 24 in
  • Glass thickness = 0.5 in
  • Fill height = 22.5 in

Step 1: Calculate total volume in cubic inches.

48 × 12 × 24 = 13,824 cubic inches

Step 2: Convert to US gallons.

13,824 ÷ 231 = 59.84 gallons (rounded to 59.8)

Step 3: Convert to liters.

13,824 × 0.0163871 = 226.5 liters (rounded to 226.5)

Step 4: Calculate internal water volume.

Internal dimensions: (48 – 1) × (12 – 1) × 22.5 = 47 × 11 × 22.5 = 11,632.5 cubic inches

Water gallons: 11,632.5 ÷ 231 = 50.36 gallons (rounded to 50.4)

Water liters: 11,632.5 × 0.0163871 = 190.6 liters (rounded to 190.6)

So a 48×12×24 tank holds about 59.8 US gallons total, but the actual water volume is closer to 50.4 gallons because of glass thickness and the unfilled top space.

Why Tank Volume Matters

Knowing your aquarium’s water volume is not just a fun fact – it drives several practical decisions:

  • Dosing medications: Most fish medications list the dose per gallon. An overestimate can harm fish; an underestimate can make the treatment ineffective.
  • Choosing a heater: Heater wattage is rated for tank size. A 50-gallon tank needs roughly 150–200 watts, while a 20-gallon tank needs 50–75 watts.
  • Filter sizing: Filters are rated for a maximum tank volume. A filter rated for 30 gallons on a 40-gallon tank will underperform.
  • Water changes: When you do a 25% water change, you need to know exactly how many gallons to remove and replace.
  • Stocking levels: The “one inch of fish per gallonâ€� rule (though rough) requires an accurate volume.

How to Measure Your Tank Correctly

To get accurate results, measure the inside dimensions of your tank, not the outside. Here’s how:

  1. Use a tape measure or ruler.
  2. For a rectangular tank, measure the internal length, width, and height from glass edge to glass edge.
  3. For a cylindrical tank, measure the internal diameter (across the widest point) and the internal height.
  4. Decide your fill height – typically 1–2 inches below the top rim to leave space for equipment and to prevent fish jumping.
  5. If your tank has a thick glass bottom or a rim, subtract that thickness from the height.

If you only have outside dimensions, subtract twice the glass thickness from length and width, and subtract the bottom glass thickness from height. The calculator includes a glass thickness field to do this automatically.

Common Mistakes and Misconceptions

Many people make these errors when calculating aquarium volume:

  • Using outside dimensions: This overestimates volume by 5–10% depending on glass thickness.
  • Ignoring substrate and decorations: Gravel, rocks, and driftwood displace water. A tank with 2 inches of gravel actually holds 10–15% less water than an empty tank.
  • Mixing units: If you measure in centimeters but use a formula meant for inches, you’ll be off by a factor of 16.4. Always convert to the same unit system.
  • Confusing US and UK gallons: A UK gallon is about 1.2 US gallons. This calculator uses US gallons, which are standard in the aquarium hobby.
  • Forgetting the top space: The total volume includes the empty space above the waterline. The actual water volume is always less.

Rectangular vs. Cylindrical Tanks

Most home aquariums are rectangular, but cylindrical tanks are also popular for small setups and shrimp tanks. The formulas differ:

  • Rectangular: Volume = L × W × H
  • Cylindrical: Volume = Ï€ × (D/2)² × H

For a cylindrical tank, you need the diameter (not the radius) and the height. If you only have the radius, double it to get the diameter. The calculator above is set for rectangular tanks; for a cylinder, you can compute the volume manually using the formula above, or use a dedicated cylindrical aquarium calculator.

Frequently Asked Questions

How many gallons is a 20-inch long, 10-inch wide, 12-inch high tank?

Using the formula: 20 × 10 × 12 = 2,400 cubic inches. Divide by 231 = 10.4 US gallons. That’s a common “10-gallon� tank size.

Does substrate affect the water volume?

Yes. Substrate (gravel, sand, soil) displaces water. A 2-inch layer of gravel in a 20-gallon tank can reduce water volume by 2–3 gallons. If you need precise dosing, subtract the volume of your substrate (measure how much water it displaces by placing it in a bucket and measuring the rise).

What is the difference between total volume and water volume?

Total volume is the full capacity of the tank from bottom to top rim. Water volume is the actual amount of water you put in, which is less because of the unfilled top space (for equipment, air, and fish jumping) and the space taken up by substrate and decorations.

How do I calculate volume if my tank is not a perfect rectangle?

If your tank has a curved front (bowfront) or an irregular shape, the simple formula won’t be exact. You can approximate by measuring the average width and using that in the formula, or fill the tank with a known volume of water (e.g., using a 5-gallon bucket) and count how many buckets it takes.

Why do some calculators use liters and others gallons?

It depends on the region. The US uses US gallons, while most other countries use liters. The conversion is: 1 US gallon = 3.78541 liters. This calculator gives both so you don’t have to convert.

Is the “one inch of fish per gallon� rule accurate?

No, it’s a rough guideline. It doesn’t account for fish shape, activity level, or waste production. A 6-inch goldfish produces far more waste than six 1-inch tetras. Use it as a starting point, but research each species’ needs.

Related

Formula used
in l | Length | in | 48 | 0
in w | Width | in | 12 | 0
in h | Height | in | 24 | 0
in glass | Glass thickness | in | 0.5 | 0
in fill | Fill height (from bottom) | in | 22.5 | 0
out vol_g | Total volume (US gal) | gal | (l * w * h) / 231 | 1
out vol_l | Total volume (L) | L | (l * w * h) * 0.0163871 | 1
out water_g | Water volume (US gal) | gal | ((l - 2*glass) * (w - 2*glass) * fill) / 231 | 1
out water_l | Water volume (L) | L | ((l - 2*glass) * (w - 2*glass) * 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.