Lelifi·tools

Aquarium Volume Calculator

A 36 by 18 by 20 inch tank holds 56.1 gallons at the rim. Water filled to 18 inches is 50.5 gallons, and after 2 inches of substrate and 2 gallons of rock you have about 42.9 gallons of actual water.

Enter your tank dimensions in inches to get gallons at the rim, then adjust the water line, substrate and decor to see the real water volume in your tank.

By the Lelifi editors ·

Key takeaways

From tape measure to real water volume36 in x 18 in x 20 in = 12,960 cu in12,960 / 231 = 56.1 gallons at the rimwater to 18 in: 36 x 18 x 18 / 231 = 50.5 gal2 in substrate: 36 x 18 x 2 / 231 = 5.6 galminus 2 gal of rock and driftwood= 42.9 gallons of actual water
A 36 by 18 by 20 inch tank is 56.1 gallons at the rim and 42.9 gallons of real water.
Where the 56.1 gallons of a 36 by 18 by 20 tank go42.9 gal5.6 gal5.6 galWater you can use (42.9 gal)Substrate (5.6 gal)Rock and wood (2.0 gal)Air above the line (5.6 gal)
Of the 56.1 gallons at the rim, 13.2 are taken by air, substrate and decor.
On this page
  1. Why tank gallons and water gallons differ
  2. The 231 formula, measured in inches
  3. Water level: measure to the line, not the rim
  4. Substrate, rock and hidden displacement
  5. Worked example: a 36 by 18 by 20 tank
  6. Standard tank sizes with real water volume
  7. Weight, liters and what the number is for

Why tank gallons and water gallons differ

A tank sold as 55 gallons almost never holds 55 gallons of water. The label describes the outside box, measured to the rim, with nothing inside it. Real water volume is smaller for three separate reasons: the water line sits below the rim, the substrate takes up space at the bottom, and rock, driftwood and equipment take up space in the middle.

That gap matters for anything dosed by volume. Aquarium salt, water conditioner, medication and plant fertilizer all come with instructions per gallon, and a 20 percent error is the difference between a correct dose and a wasted one. It matters even more for stocking, because the inch per gallon guideline and every bioload chart assume actual water, not the number printed on the box.

The calculator above works in inches, which is what tank dimensions are sold in the United States. Measure the outside of the tank for length and width, then measure the height from the inside bottom to the rim. If the glass is thick, the inside dimensions are a little smaller than the outside, and for most tanks the difference is under a gallon.

The 231 formula, measured in inches

One US gallon is exactly 231 cubic inches. That number is not an approximation, it comes from the definition of the US liquid gallon as 231 cubic inches, and it is why every aquarium volume formula divides by 231.

So the formula is length times width times height in inches, divided by 231. A tank 36 inches long, 18 inches wide and 20 inches tall is 36 x 18 x 20 = 12,960 cubic inches, and 12,960 / 231 = 56.1 gallons. That is the volume to the rim with nothing in the tank.

The same formula handles any rectangular tank, including a breeder, a long, or a custom build. For a tank with a bow front or a corner curve, measure the widest point and the deepest point and accept that the answer will be a few percent high. Cylindrical tanks use a different formula: radius squared times 3.1416 times height, divided by 231.

The unit ladder for US gallons is worth keeping in one place.
UnitCubic inchesEquals
1 US gallon231 cu in3.785 L, 8.34 lb of water, 128 fl oz
1 cubic foot1,728 cu in7.48 gal, 62.4 lb of water
1 liter61.02 cu in0.264 gal, 33.8 fl oz
1 US fluid ounce1.805 cu in29.57 mL

Liters come from the same cubic inch figure. One US gallon is 3.785 litres, so 56.1 gallons is 212 litres, and the calculator shows the conversion rather than asking you to run it twice.

Water level: measure to the line, not the rim

Water never fills a tank to the rim. Most people leave 1 to 2 inches of glass above the water line to keep fish in and splashes off the floor, and a tank with a hang on back filter often sits lower because the return water would otherwise overflow the lip.

Measure the water depth with a ruler, not with the tank height. A 20 inch tall tank filled to 18 inches holds 36 x 18 x 18 / 231 = 50.5 gallons, which is 5.6 gallons less than the rim figure. On a 125 gallon tank the same 2 inches costs about 11 gallons, so the taller the tank, the more the water line matters.

Use the water depth for every volume based dose, and use the rim figure only when you are comparing tanks in a store. A tank running 3 inches low loses roughly 15 percent of its volume on a 20 inch tall body, which is enough to throw off a salt mix by a wide margin.

If you mark the water line with a piece of tape after a water change, you can measure the drop after evaporation and estimate how much water to replace without guessing.

Substrate, rock and hidden displacement

Substrate is the largest hidden displacement in most tanks. Gravel, sand and soil all sit below the water line and all take up volume that the fish cannot use.

The math is the same 231 formula applied to the substrate layer. Two inches of gravel across a 36 by 18 footprint is 36 x 18 x 2 = 1,296 cubic inches, or 5.6 gallons. A deep sand bed at 4 inches in the same footprint takes 11.2 gallons, which is a fifth of the tank.

One square foot of substrate one inch deep is 144 cubic inches, or 0.62 gallons, so the table below works for any tank.
Tank footprint1 in deep2 in deep3 in deep4 in deep
24 by 12 in footprint (2.0 sq ft)1.2 gal2.5 gal3.7 gal5.0 gal
48 by 13 in footprint (2.7 sq ft)1.7 gal3.4 gal5.0 gal6.7 gal
36 by 18 in footprint (4.5 sq ft)2.8 gal5.6 gal8.4 gal11.2 gal
48 by 18 in footprint (6.0 sq ft)3.7 gal7.5 gal11.2 gal15.0 gal
72 by 18 in footprint (9.0 sq ft)5.6 gal11.2 gal16.8 gal22.4 gal

Rock, driftwood and ceramic decor are harder to measure. The practical approach is to estimate by weight or by size: a pound of dense rock displaces roughly 0.05 gallons, so 40 pounds of rock is about 2 gallons. Driftwood is lighter and displaces less per pound but more per piece, and a large centerpiece can hold 2 to 3 gallons on its own.

Equipment counts too, though the numbers are small. A large sponge filter, a heater and a couple of pounds of ceramic media together are usually under half a gallon, which is inside the error of the tape measure.

Worked example: a 36 by 18 by 20 tank

A 36 by 18 by 20 inch tank, filled to 18 inches, with 2 inches of substrate and about 2 gallons of rock and driftwood:

That is 76 percent of the number on the box. A dose calculated for 56 gallons would be 30 percent too strong, which is the sort of error that kills plants and stresses fish.

The weight is worth knowing before you fill it. Water weighs 8.34 pounds per gallon, so 42.9 gallons is about 358 pounds (357.6 on the calculator), and the glass, substrate and stand add more on top. A 40 gallon breeder on a 150 pound stand with 45 pounds of gravel lands near 600 pounds on the floor, which is why a level stand over a joist matters more than the tank brand.

In liters, 42.9 gallons is about 162 liters, which is the figure most European equipment and medication labels use.

Standard tank sizes with real water volume

Nominal sizes are standardized by convention, not by law, and the outside dimensions vary a little between manufacturers. The table below uses the common dimensions for each size and applies the same 2 inch substrate and 2 gallon decor allowance, with water 2 inches below the rim.

TankOutside sizeNominal volumeWater with 2 in substrate
10 gallon20 by 10 by 12 in10.4 gal4.9 gal
20 gallon high24 by 12 by 16 in19.9 gal13.0 gal
29 gallon30 by 12 by 18 in28.1 gal19.8 gal
40 gallon breeder36 by 18 by 16 in44.9 gal31.7 gal
55 gallon48 by 13 by 21 in56.7 gal43.9 gal
75 gallon48 by 18 by 21 in78.5 gal61.6 gal
125 gallon72 by 18 by 24 in134.6 gal110.2 gal

The pattern is consistent: a tank holds about 75 to 80 percent of its nominal volume once it is set up. A 55 gallon tank with a deep gravel bed and a large piece of driftwood can land under 40 gallons of water, which is closer to a 40 breeder than to the number on the label.

That is also why the inch per gallon guideline is a rough starting point rather than a rule. It was written for small tanks with light stocking, and it says nothing about filtration, surface area or the adult size of the fish. Use actual water volume, then check the species requirements against it.

Weight, liters and what the number is for

Once you have a real number, several other calculations get easier.

The weight of the water also sets the floor requirement. A tank that holds 42.9 gallons of water carries about 358 pounds of water alone, and the total with glass, stand and substrate is often double that. The USGS water density page explains why a gallon weighs 8.34 pounds and how temperature changes it slightly.

For unit conversions beyond gallons, the NIST unit conversion reference is the authoritative source, and it confirms the 231 cubic inch definition. If you are also thinking about water use in the house, the EPA WaterSense program covers efficient fixtures and the volume they save.

Measure your own tank rather than trusting the label. Glass thickness, brace placement and the exact water line all move the number by a few percent.

Frequently asked questions

How many gallons is a 36 by 18 by 20 inch tank?

56.1 gallons at the rim. Multiply 36 x 18 x 20 to get 12,960 cubic inches, then divide by 231. Filled to 18 inches with 2 inches of substrate and 2 gallons of rock, the real water volume is 42.9 gallons.

Why do I divide by 231 to get gallons?

Because one US liquid gallon is defined as exactly 231 cubic inches. Any volume in cubic inches divided by 231 gives US gallons, with no other conversion factor needed.

How much water does 2 inches of gravel displace?

5.6 gallons in a 36 by 18 footprint. The math is 36 x 18 x 2 = 1,296 cubic inches, divided by 231. A 4 inch sand bed in the same tank takes 11.2 gallons.

Should I use the tank size or the water volume for dosing?

Use the water volume. A 56 gallon label on a tank holding 42.9 gallons of water overstates the dose by 30 percent, which matters for salt, medication and fertilizer.

How much does the water in a 42.9 gallon tank weigh?

About 358 pounds. Water weighs 8.34 pounds per gallon, so 42.9 x 8.34 = 357.6, which rounds to 358. Add glass, substrate and stand and the floor load is usually double that.

How many gallons of water does a 55 gallon tank hold?

About 44 gallons of water in a typical setup. The 48 by 13 by 21 inch box is 56.7 gallons at the rim, and 2 inches of water line plus 2 inches of gravel and 2 gallons of decor bring it to roughly 44.

How do I convert tank volume to liters?

Multiply US gallons by 3.785. A 42.9 gallon tank holds about 162 litres, and a 56.1 gallon rim volume is about 212 litres.

Does a taller tank hold more water than a longer one?

Not necessarily. Volume is length times width times height, so a 48 by 13 by 21 inch tank holds 56.7 gallons while a 36 by 18 by 20 inch tank holds 56.1. The longer tank has more surface area, which matters for gas exchange.

How full should I fill my aquarium?

Leave 1 to 2 inches of glass above the water line. On a 20 inch tall tank that costs 5.6 gallons, and on a 24 inch tall 125 gallon tank it costs about 11 gallons.

How much rock can I add before it matters?

A pound of dense rock displaces about 0.05 gallons, so 40 pounds is about 2 gallons. A large piece of driftwood can hold 2 to 3 gallons by itself, which is 5 percent of a 55 gallon tank.

What size heater does a 42.9 gallon tank need?

Roughly 130 to 215 watts at the usual 3 to 5 watts per gallon. Size at the higher end for a cold room or a tank that runs a few degrees below the target temperature.

How big a water change is 25 percent of 42.9 gallons?

10.7 gallons. Working from the nominal 56 gallon figure would give 14 gallons, which is a third larger than the change you intended.

Can I use the outside dimensions of the tank?

Yes, with a small correction. Glass thickness of half an inch on each side removes about a gallon from a 36 inch tank, so the inside measurement is slightly smaller than the outside one.

Spotted a wrong number or a broken result?

More Pets tools

See all Pets tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.