What this calculator is for
Turning an enclosure's dimensions into honest volume figures: the gross volume, and the air volume that remains once the substrate layer's share is taken out. It is a measuring tool. It gives volume only — volume alone does not determine suitability for any animal, and nothing on this page is a keeping recommendation.
Formula and assumptions
Two assumptions, stated openly: dimensions are the outside measurements, as enclosures are sold and quoted, and wall thickness is not deducted — the true inside volume is slightly smaller. The substrate share uses the same solid-displacement model as this site's aquarium tools: the layer is treated as occupying its full footprint × depth. Decor, branches and water bowls are not deducted; their volumes are irregular and belong to the specific setup, not to a general formula.
Reading your result
The big figure is the gross volume from the outside dimensions. The air volume is the open space above the substrate — the figure to quote when comparing enclosures honestly, since two enclosures with the same gross volume and different substrate depths do not offer the same open volume. The diagram redraws both layers from your numbers. What any of these figures mean for a particular animal is outside this page's scope entirely.
Worked example
A 36 × 18 × 18 in enclosure: 36 × 18 × 18 = 11,664 in³ — 50.49 US gallons gross (191.1 L). A 2 in substrate layer takes 5.61 US gallons of that, leaving an air volume of 44.88 US gallons (169.9 L). Every figure is produced by the same tested function the calculator above runs.
Common mistakes
Quoting the gross volume as the living space — the substrate share and the walls both come out of it. Comparing enclosures by gallons alone: floor area and height distribution differ between two enclosures of equal volume, and volume alone does not determine suitability for any animal. Measuring one enclosure inside and another outside when comparing — keep the basis the same. Treating a volume figure as a housing verdict — that judgement needs species-specific guidance, not a calculator.
Quick reference: common enclosure sizes
Computed by the same function as the calculator (outside dimensions, substrate depth as shown):
| Enclosure | Gross | Litres | Air volume |
|---|---|---|---|
| 24 × 18 × 18 in | 33.66 US gal | 127.4 L | 29.92 US gal |
| 36 × 18 × 18 in | 50.49 US gal | 191.1 L | 44.88 US gal |
| 36 × 18 × 24 in | 67.32 US gal | 254.8 L | 61.71 US gal |
| 48 × 24 × 24 in | 119.69 US gal | 453.1 L | 104.73 US gal |
Volume figures only. Volume alone does not determine suitability for any animal.
Common questions
How is terrarium volume calculated?
Length × width × height in cubic inches, divided by 231 for US gallons (and multiplied out to litres at 3.785411784 L per US gallon). A 36 × 18 × 18 in enclosure is 11,664 in³ — 50.49 US gallons gross. The substrate's share is footprint × its depth, and the air volume is what remains above it.
Why does the page separate the air volume?
Because the substrate layer is not usable space above the floor: at 2 in deep across a 36 × 18 in footprint it takes 5.61 US gallons of the gross figure, leaving 44.88 gallons of air volume. Quoting the gross figure alone overstates the open volume by exactly that share.
Does this volume tell me what an enclosure can house?
No. This page gives a volume figure and nothing else: volume alone does not determine suitability for any animal. Suitability depends on the species, its size and behaviour, floor area, height use, ventilation, heating and much more that a volume number cannot express — consult species-specific keeping guidance from a qualified source for any housing decision.
Are the dimensions inside or outside?
Outside — what a tape measure reads on the enclosure as sold, which is how enclosure sizes are quoted. Wall thickness is not deducted, and the page says so: the true inside volume is slightly smaller, by the walls' share. If you have inside measurements and want the inside figure, enter those instead; the arithmetic is the same.