Enclosure Lab / Tool 04
Tank volume calculator
Type the inside dimensions of the glass box. You get the real volume in US gallons, litres and cubic feet, the standard tank class it matches, and how much of that volume your substrate will take.
Real volume
—
—
- Floor area
- —
- Standard tank
- —
| Depth | Volume taken | Share of box |
|---|---|---|
| 2.5 cm | 18.0 L | 4.2% |
| 5 cm | 36.0 L | 8.3% |
| 7.5 cm | 54.0 L | 12.5% |
| 10 cm | 72.0 L | 16.7% |
Measured inside the glass? Outside dimensions include the glass and trim, which removes about 11% of the volume on a 40 breeder.
The gallon label is a name, not a measurement
Tank sizes are trade names. The arithmetic does not have to land on the name, and usually does not.
A 40 gallon breeder is sold at about 36 × 18 × 16 inches. Multiply that out: 10,368 cubic inches, which is 44.9 US gallons. The box is called a 40 because that is the number the trade uses, not because the glass holds 40 gallons.
The same drift runs the other way on other sizes. A 20 gallon long works out to 18.7 gallons, while a 55 gallon works out to 56.7. Manufacturers round, and the dimensions they print are outside measurements, so the water volume is smaller again.
None of this matters if you only need a rough size. It matters when you compare two tanks, buy substrate by the litre, or check whether a tank leaves enough floor space for the animal.
How the volume is calculated
A rectangular tank is a box, so the volume is length × width × height. Nothing is estimated and nothing is fitted to a curve. The only choices are the unit you measure in and whether you measured the inside or the outside of the glass.
Divide by 1,000 for litres, by 3,785.411784 for US gallons, and by 28,316.846592 for cubic feet. The US gallon is defined as exactly 231 cubic inches, which is why the divisor is not a round number.
Measure the inside of the glass. Catalog dimensions include glass, trim and frame, so a box listed at 36 × 18 × 16 in measures a little less inside. With 10 mm glass, subtract 2 cm from each dimension before you calculate.
Gallons, litres and cubic feet
A US gallon and an imperial gallon are different units with the same name. The calculator shows both, and labels the imperial one.
| Unit | Litres | Cubic inches |
|---|---|---|
| US gallon | 3.785 | 231 (exact) |
| Imperial gallon | 4.546 | 277.42 |
| Cubic foot | 28.317 | 1,728 |
| Litre | 1.000 | 61.024 |
Most reptile enclosures sold in the US are described in gallons, most European and Asian enclosures in centimetres and litres, and glass boxes imported from either market can be sold under both. Convert once, then work in the unit the animal's care sheet uses.
Which standard tank is this?
The calculator compares your dimensions with the common US tank classes and accepts a match when every side is within 2.5 cm (1 in).
| Tank | Dimensions (in) | Dimensions (cm) | Volume from dimensions (US gal) | Label (US gal) | Drift |
|---|---|---|---|---|---|
| 5.5 gallon | 16 × 8 × 10 | 40.6 × 20.3 × 25.4 | 5.5 | 5.5 | +1% |
| 10 gallon | 20 × 10 × 12 | 50.8 × 25.4 × 30.5 | 10.4 | 10 | +4% |
| 15 gallon | 24 × 12 × 12 | 61.0 × 30.5 × 30.5 | 15.0 | 15 | 0% |
| 20 gallon high | 24 × 12 × 16 | 61.0 × 30.5 × 40.6 | 19.9 | 20 | 0% |
| 20 gallon long | 30 × 12 × 12 | 76.2 × 30.5 × 30.5 | 18.7 | 20 | -6% |
| 29 gallon | 30 × 12 × 18 | 76.2 × 30.5 × 45.7 | 28.1 | 29 | -3% |
| 30 gallon breeder | 36 × 18 × 12 | 91.4 × 45.7 × 30.5 | 33.7 | 30 | +12% |
| 40 gallon breeder | 36 × 18 × 16 | 91.4 × 45.7 × 40.6 | 44.9 | 40 | +12% |
| 55 gallon | 48 × 13 × 21 | 121.9 × 33.0 × 53.3 | 56.7 | 55 | +3% |
| 75 gallon | 48 × 18 × 21 | 121.9 × 45.7 × 53.3 | 78.5 | 75 | +5% |
| 90 gallon | 48 × 18 × 24 | 121.9 × 45.7 × 61.0 | 89.8 | 90 | 0% |
| 120 gallon | 48 × 24 × 24 | 121.9 × 61.0 × 61.0 | 119.7 | 120 | 0% |
| 125 gallon | 72 × 18 × 22 | 182.9 × 45.7 × 55.9 | 123.4 | 125 | -1% |
| 180 gallon | 72 × 24 × 24 | 182.9 × 61.0 × 61.0 | 179.5 | 180 | 0% |
Two tanks can share a gallon label and share nothing else. The 20 gallon high and the 20 gallon long hold almost the same volume, but one is 24 in long and the other is 30 in, which changes what the animal can do inside it.
Brands vary by up to about half an inch on the same nominal size, so treat a match as a class, not as a promise that your tank was built to that drawing.
Substrate takes volume and height
A 5 cm substrate layer in a 40 breeder displaces 20.9 litres, about 12% of the box. At 10 cm it takes 41.8 litres, a quarter of the volume, and 10 cm of the 40.6 cm height.
That is why a deep substrate is a design decision, not a rounding error. Burrowing species need the depth; a tall tank with 10 cm of soil can end up with less usable height than a shallow one with 2 cm.
Buy about 1.2 to 1.5 times the calculated litres if you want a slope or a deep corner. Loose substrate does not pack to the same volume as the bag it arrives in.
Why floor area beats gallons for reptiles
The 55 gallon is 48 × 13 inches, which is 624 square inches of floor. The 40 gallon breeder is 36 × 18 inches, which is 648 square inches. The tank with the smaller gallon label has more floor space.
For a terrestrial or semi-arboreal reptile, floor area and usable height decide more than volume does. A tall, narrow tank can hold more gallons and still leave an adult animal unable to turn around.
Use the enclosure size calculator to get the minimum length, width and height for the species first. Come back to this page to check the volume of the box you are considering, or to convert the dimensions on a listing.
Sources and limits
- NISTHandbook 44, Appendix C: the US gallon is 231 cubic inches exactly, 3.785411784 L; the imperial gallon is 4.54609 L.
- Aqueon2026 product catalog: dimensions and labeled gallons for the standard tank classes in the table.
- SecondaryAdvanced Aquarium Concepts states that labels are rounded and catalog dimensions are outside measurements.
- SecondaryReefCalcs gives the same standard dimensions and the same warning about rounded labels.
The arithmetic is exact for a rectangular box measured inside the glass. It does not correct for bowing, rim thickness, brace bars, overflow boxes or decor, and it is not a substitute for the species' minimum enclosure size.
Questions keepers actually ask
How many gallons is a 36 × 18 × 16 tank?
44.9 US gallons, or 169.9 litres. That is the tank sold as a 40 gallon breeder. The label rounds down by about 12%.
How many litres is a 40 gallon tank?
Exactly 40 US gallons is 151.4 litres. The common 40 gallon breeder measures 44.9 gallons from its dimensions, which is 169.9 litres. Check which number the seller is using.
Why does my 55 gallon calculate to 56.7 gallons?
Its dimensions, 48 × 13 × 21 inches, multiply to 13,104 cubic inches, and 13,104 ÷ 231 = 56.7. The maker rounded the label, and the dimensions include the outside of the glass.
How much substrate do I need for a 4 × 2 × 2 ft tank?
A 5 cm layer takes 36 litres and a 10 cm layer takes 72 litres. Buy 1.2 to 1.5 times that if you want a slope, because loose substrate does not settle to the bag volume.
Is a 40 gallon breeder big enough for a bearded dragon?
No. An adult bearded dragon needs about 120 × 60 × 60 cm (4 × 2 × 2 ft). A 40 breeder is 91 × 46 × 41 cm, short by 29 cm in length, 14 cm in width and 19 cm in height.
Should I measure the inside or the outside of the tank?
Measure the inside. If you only have outside dimensions, subtract twice the glass thickness from each side. With 10 mm glass that is 2 cm per dimension, which removes about 11% of the volume on a 40 breeder: 44.9 gallons outside, 39.9 inside.