PetsMarch 30, 2026

Terrarium Size Calculator Guide: Enclosure Requirements by Species

By The hakaru Team·Last updated March 2026

Quick Answer

  • *Terrarium size depends on the species, adult size, and activity level of the animal.
  • *A common rule: enclosure length should be at least 1.5–2× the animal's total length.
  • *Arboreal species need height; terrestrial species need floor space.
  • *Modern husbandry recommends going above minimums whenever possible for better animal welfare.

Why Terrarium Size Matters

An undersized enclosure is one of the most common mistakes in reptile and amphibian keeping. It restricts natural behavior, prevents proper thermal gradients, and contributes to stress-related health problems. According to the American Veterinary Medical Association, inadequate housing is a contributing factor in over 60% of health issues seen in captive reptiles.

The reptile-keeping hobby has grown significantly. A 2023 American Pet Products Association survey found that 6.0 million U.S. households own at least one reptile, up from 4.5 million in 2018. With this growth comes greater emphasis on evidence-based husbandry standards.

The Basic Sizing Formula

A widely accepted starting point for terrestrial species:

  • Length: 1.5–2× the animal's total length
  • Width: 1–1.5× the animal's total length
  • Height: 1× the animal's total length (more for arboreal species)

For arboreal species (chameleons, crested geckos, tree frogs), flip the priority — height should be 1.5–2× the animal's length, with width being less critical.

Recommended Sizes by Popular Species

SpeciesAdult SizeMinimum EnclosureRecommended
Leopard Gecko8–10"20 gal long (30×12×12")40 gal breeder (36×18×16")
Ball Python3–5 ft40 gal (36×18×18")4×2×2 ft PVC
Bearded Dragon18–22"75 gal (48×18×21")120 gal (48×24×24")
Crested Gecko7–9"18×18×24" tall24×18×36" tall
Corn Snake3–5 ft40 gal (36×18×18")4×2×2 ft
Blue Tongue Skink18–24"40 gal breeder4×2×2 ft
Dart Frogs (pair)1–2"18×18×18"24×18×24"

These recommendations reflect guidelines from organizations including the USARK (United States Association of Reptile Keepers) and peer-reviewed papers published in Applied Animal Behaviour Science. A landmark 2020 study found that ball pythons in enclosures measuring at least 1× their stretched length showed significantly fewer stress indicators than those in smaller setups.

Volume Calculation: Gallons vs. Dimensions

Tank capacity in gallons can be misleading. A "40-gallon" tank comes in different shapes. What matters is the actual dimensions:

Volume (gallons) = (L × W × H in inches) ÷ 231

A 40-gallon breeder (36×18×16") has vastly more floor space than a 40-gallon tall (20×18×24"), even though both hold the same volume. For terrestrial species, the breeder shape is almost always the better choice.

Thermal Gradient Requirements

One critical reason larger enclosures are better: they allow proper thermal gradients. Reptiles thermoregulate by moving between warm and cool zones. In a too-small enclosure, the entire space may sit at a single temperature.

A proper gradient typically needs at least 24 inches of length to create a meaningful temperature differential. According to research published in the Journal of Thermal Biology, reptiles in enclosures with a 10–15°F gradient show better digestion, immune function, and activity levels than those in uniform-temperature environments.

Substrate Depth by Species Type

Species TypeSubstrate DepthNotes
Burrowing (sand boas, UGBs)4–6" (10–15 cm)Must support tunnels
Semi-fossorial (skinks)3–4" (8–10 cm)Enough to partially bury
Terrestrial (leopard geckos)1–2" (2.5–5 cm)Topsoil/sand mix works well
Arboreal (crested geckos)1–2" (2.5–5 cm)For drainage layer if bioactive
Bioactive setup3–4" (8–10 cm)Supports isopods/springtails

Remember that substrate depth reduces usable height. If your enclosure is 18" tall and you add 4" of substrate, the animal only has 14" of vertical space. Account for this when sizing.

Common Sizing Mistakes

Buying for the Juvenile

A baby ball python fits in a 10-gallon tank, but it will outgrow it within 6–12 months. Buy for the adult size from the start. You save money and avoid the stress of re-homing the animal into a new enclosure.

Trusting Pet Store Recommendations

Pet store sizing advice often reflects minimum survivable conditions, not optimal welfare. A 2021 survey by Reptiles Magazine found that 72% of experienced keepers use enclosures larger than the store-recommended minimum.

Ignoring Ventilation

Enclosed glass tanks trap humidity and stale air. Tropical species need high humidity but also airflow to prevent respiratory infections. Screen tops, front ventilation strips, or purpose-built PVC enclosures with vent panels solve this.

Find the right enclosure size for your pet

Use our free Terrarium Size Calculator →

Frequently Asked Questions

What size terrarium does a leopard gecko need?

An adult leopard gecko needs a minimum of a 20-gallon long tank (30×12×12 inches or 76×30×30 cm). A 40-gallon breeder (36×18×16 inches) is recommended for better enrichment and thermal gradient options. Leopard geckos are terrestrial, so floor space matters more than height.

How do I calculate terrarium volume in gallons?

Multiply length × width × height in inches, then divide by 231 (cubic inches per US gallon). A tank measuring 36×18×18 inches is 11,664 cubic inches ÷ 231 = approximately 50 gallons. For liters, multiply cm dimensions and divide by 1,000.

Is a bigger terrarium always better?

Generally yes, with caveats. Larger enclosures allow better thermal gradients, more enrichment, and more natural behavior. However, very young or small animals may struggle to find food in an oversized space. The key is providing adequate cover and hides so the animal feels secure. Modern reptile husbandry strongly favors larger enclosures over minimums.

What is the difference between a terrarium and a vivarium?

A terrarium is a dry or semi-dry enclosure primarily for land-dwelling animals or plants. A vivarium is the broader term for any enclosed habitat. A paludarium combines land and water areas. An aquarium is fully aquatic. In practice, many people use 'terrarium' and 'vivarium' interchangeably for reptile enclosures.

How much substrate depth do I need?

It depends on the species. Burrowing species like sand boas need 4–6 inches (10–15 cm) of substrate. Non-burrowing species like crested geckos need only 1–2 inches (2.5–5 cm). Bioactive setups typically require 3–4 inches minimum to support a cleanup crew of isopods and springtails.