Terrarium Size Calculator

Animal

Minimum enclosure36 x 18 x 18 in (40 gal breeder)
Floor space648 sq in
OrientationLong, floor-focused
Sized forLeopard gecko, adult
How this was calculated
  1. A terrarium is sized by floor space first and gallons second: the animal needs room to thermoregulate, hunt and hide, and modern care standards set a minimum footprint per species rather than the old '10 gallons per inch' rule.
  2. For a adult leopard gecko, current care guidance sets the minimum enclosure at 36 x 18 x 18 in (40 gal breeder).
  3. That footprint gives 648 sq in of floor space in a long, floor-focused layout, which is what the animal actually uses day to day.
  4. So the terrarium to buy is 36 x 18 x 18 in (40 gal breeder); bigger is welcome - no species on this list suffers from extra room, as long as hides and clutter scale up with it.

The Terrarium Size Calculator turns your species and life stage into a concrete enclosure size, so you know what to shop for before you buy. Instead of guessing from tank labels, it gives you target dimensions in inches and the floor area they represent. For example, an adult leopard gecko's minimum is 36 x 18 x 18 in, the 40 gallon breeder footprint of 648 sq in. An adult bearded dragon needs 48 x 24 x 24 in (120 gallons) as the modern minimum. A juvenile corn snake can grow out in a 30 x 12 x 12 in (20 gallon long) enclosure, but adults need 48 x 24 x 24 in. Arboreal species trade floor for height: an adult crested gecko's minimum is 18 x 18 x 24 in, a tall 30 gallon. The calculator returns the footprint and dimensions that fit your animal rather than a single gallon number.

The method follows the accepted standard because floor space, not gallons, is the number that matters. Two tanks with equal gallons can have very different footprints, and it is the footprint that determines usable living area. That is why the calculator works from length x width (and height for arboreal species) instead of volume alone. This page shows the formula, step-by-step workings, worked examples and sources, so you can check every result and see exactly how each recommendation is derived.

Worked examples

Adult leopard gecko

(Leopard gecko · Adult)

Minimum enclosure36 x 18 x 18 in (40 gal breeder)
Floor space648 sq in
OrientationLong, floor-focused
Sized forLeopard gecko, adult

Adult bearded dragon

(Bearded dragon · Adult)

Minimum enclosure48 x 24 x 24 in (120 gal)
Floor space1,152 sq in
OrientationLong, floor-focused
Sized forBearded dragon, adult

Juvenile corn snake

(Corn snake · Juvenile)

Minimum enclosure30 x 12 x 12 in (20 gal long)
Floor space360 sq in
OrientationLong, floor-focused
Sized forCorn snake, juvenile

Floor space first

When you use a terrarium size calculator, the first number it should give you is floor space — the length times the width of the base — not the gallon rating on the box. Modern care standards have moved away from the old gallons-per-inch rule because gallons measure volume, and volume tells you almost nothing about the shape of the space an animal actually lives in. Two tanks with equal gallons can have very different footprints: one may be tall and narrow, the other long and shallow. A reptile that patrols a wide territory gets very different value from each. That is why current guidelines are written as footprints and heights, and why floor space, not gallons, is the number that matters.

The old gallons-per-inch rule tried to reduce enclosure sizing to a single ratio, but it ignores how the animal uses its space. A leopard gecko is a ground dweller that walks, turns, and chooses between warm and cool zones across a wide area. Its modern minimum is 36 x 18 x 18 in — the 40 gallon breeder footprint of 648 sq in. Notice that the standard is stated as a footprint first and a height second. The gallon figure is just a familiar label for a tank with those dimensions, not the goal itself.

Thermoregulation is the main reason the minimums are shaped this way. Reptiles cannot regulate their own body temperature internally, so they move between a warm side and a cool side to control it. That movement requires horizontal distance. If a tank is deep but narrow, or tall but short on floor, the animal cannot create a proper temperature gradient, and it ends up stuck in one zone or the other. A wide footprint lets you build a warm end and a cool end with a usable range in between. This is why an adult bearded dragon needs 48 x 24 x 24 in (120 gallons) as the modern minimum: the length and width are what make the gradient work.

Growing animals show the same logic over time. A juvenile corn snake can grow out in a 30 x 12 x 12 in (20 gallon long) enclosure, but adults need 48 x 24 x 24 in. The upgrade is not about adding gallons for their own sake — it is about giving a long, active snake the floor to stretch out and the spread to thermoregulate. Arboreal species trade floor for height instead: an adult crested gecko's minimum is 18 x 18 x 24 in, a tall 30 gallon, because it climbs rather than patrols. The principle holds either way — match the shape of the enclosure to how the species moves and manages its temperature.

So when you enter dimensions into a terrarium size calculator, start with the footprint and ask whether it matches your species' minimum length and width. Check the height next, since climbing species need vertical room while ground dwellers need it mainly for substrate and lighting clearance. Treat the gallon number as a rough label, not a target.

Floor space, not gallons, is the number that matters — two tanks with equal gallons can have very different footprints.

Terrestrial species

For ground-dwelling reptiles, the terrarium size calculator starts with the footprint on the floor of the tank, not the gallon number on the box. A tank's volume tells you how much water it could hold, which says nothing about how much room an animal has to walk, turn around, and set up a temperature gradient. Two tanks with equal gallons can have very different footprints, so a gallon figure alone can mislead you into buying an enclosure that is too small in the dimension that counts.

Take the adult leopard gecko. Its minimum enclosure is 36 x 18 x 18 inches, which works out to a 648 sq in footprint — the same floor plan as a 40 gallon breeder. The 36-inch length gives the gecko room to move between a warm end and a cool end, and the 18-inch depth lets it turn without feeling boxed in. The 18-inch height is modest because leopard geckos are terrestrial and do not climb much; that vertical space is mostly for a hide and a little headroom, not for climbing.

The adult bearded dragon raises the bar considerably: 48 x 24 x 24 inches, or 120 gallons, is the modern minimum. The extra length and depth matter because bearded dragons are active, long-bodied lizards that need a wide basking zone and a distinct cooler area within the same enclosure. The 24-inch height gives room for a basking platform and for the animal to raise its head and move freely. Treating 120 gallons as the floor for an adult is the current standard, not an oversized luxury.

The corn snake shows why you should plan for the adult, not the juvenile. A juvenile can grow out in a 30 x 12 x 12 inch enclosure — a 20 gallon long — which is fine while the snake is small. But adults need 48 x 24 x 24 inches, the same footprint as an adult bearded dragon. A corn snake is slender but long and active, and it will outgrow the starter tank. Buying the juvenile size first and upgrading later is common, but the adult minimum is what your long-term plan should meet.

This is where a terrarium size calculator earns its keep. Enter the species and life stage, and it checks the footprint against the published minimum rather than the gallon label. For terrestrial species, measure length and depth first, confirm the height suits the animal's habits, and only then compare gallons. If a listing quotes gallons without dimensions, ask for the footprint before you buy — the floor space is the number that decides whether the enclosure actually fits the animal.

SpeciesLife stageMinimum enclosure (in)Notes
Leopard geckoAdult36 x 18 x 18648 sq in footprint; 40 gallon breeder
Bearded dragonAdult48 x 24 x 24120 gallons; modern minimum
Corn snakeJuvenile30 x 12 x 1220 gallon long; grow-out enclosure
Corn snakeAdult48 x 24 x 24Same footprint as adult bearded dragon
Floor space, not gallons, is the number that matters: two tanks with equal gallons can have very different footprints.

Arboreal species

Arboreal species live above the ground, and their enclosure minimums reflect that. Instead of measuring how much floor a tank offers, you measure how much vertical space it provides. A terrarium size calculator that only checks length and width will undersell these setups, so the height dimension carries the same weight as the footprint does for a ground-dwelling lizard.

The crested gecko is the clearest example. Its adult minimum is 18 x 18 x 24 in, a tall 30 gallon enclosure. Compare that with an adult leopard gecko, whose minimum is 36 x 18 x 18 in, the 40 gallon breeder footprint of 648 sq in. The crested gecko's floor is only 324 sq in, half the leopard gecko's, yet the tank stands 24 inches tall. The gecko gets its usable space by climbing, not by roaming, so the extra height is doing the work that extra floor does for a terrestrial species.

White's tree frogs follow the same logic. They are active climbers that need branches, leaves and vertical surfaces to move across, and a tall enclosure gives them that range. When you run these species through a terrarium size calculator, treat height as a first-class measurement rather than an afterthought. A tank that looks generous on a shelf because it is wide and shallow may actually fall short for a climbing animal, while a narrower tank with real height can meet the minimum.

This is also where gallons can mislead. Floor space, not gallons, is the number that matters, because two tanks with equal gallons can have very different footprints. That warning cuts both ways. A tall 30 gallon and a long 20 gallon long may not be far apart in volume, but they suit completely different animals. For arboreal species, the tall shape wins; for a juvenile corn snake growing out in a 30 x 12 x 12 in (20 gallon long) enclosure, the long, low shape is the right call until the snake reaches adult size and needs 48 x 24 x 24 in.

Use the dimensions, not the gallon label, when you size a vertical setup. Check the height against the species minimum first, then confirm the footprint is large enough for the animal to turn and rest. For a crested gecko, that means 24 inches of height and an 18 x 18 in base. For a White's tree frog, apply the same vertical-first thinking. The result is an enclosure that matches how the animal actually uses its space.

Arboreal minimums trade floor for height: an adult crested gecko needs 18 x 18 x 24 in (a tall 30 gallon), while an adult leopard gecko needs 36 x 18 x 18 in (648 sq in of floor). Same hobby, different shape.

Terrestrial tarantulas and juveniles

Terrestrial tarantulas need a different shape of enclosure than most reptiles. Because a fall can injure or kill a heavy-bodied tarantula, the priority is a low, long footprint with little climbing height above the substrate. A terrarium size calculator is most useful here when it asks for leg span and lifestyle rather than just gallons, since floor area is the measurement that actually governs how much room the animal has to move.

The same principle that applies to reptiles applies to spiders: floor space, not gallons, is the number that matters, and two tanks with equal gallons can have very different footprints. For a terrestrial tarantula, a wide, shallow container gives a stable surface to walk on and keeps the distance from the top of the enclosure to the substrate short. Long, low boxes are easier to arrange with a hide and a water dish than a tall tank of the same volume, and they reduce the fall risk that comes with vertical space.

Juveniles need a different approach. A small spider in a large enclosure can have trouble finding food and may spend more time stressed and hidden than growing. Rather than jumping straight to an adult-sized setup, plan a series of grow-out enclosures, sizing each one to the spider as it grows and moving up as the leg span increases. This keeps the animal's world appropriately scaled without repeated rehousing stress.

For comparison, reptile minimums show how much the footprint can vary for the same rough volume. An adult leopard gecko's minimum enclosure is 36 x 18 x 18 in, the 40 gallon breeder footprint of 648 sq in. An adult bearded dragon needs 48 x 24 x 24 in (120 gallons) as the modern minimum. A juvenile corn snake can grow out in a 30 x 12 x 12 in (20 gallon long) enclosure, but adults need 48 x 24 x 24 in. Arboreal species trade floor for height: an adult crested gecko's minimum is 18 x 18 x 24 in, a tall 30 gallon. Tarantulas follow the same logic in reverse: terrestrial species want the long, low end of that range, while juveniles want something smaller still.

Measure the footprint first. For a terrestrial tarantula, a low, long enclosure with shallow substrate depth below the lid matters more than the gallon rating on the box.

FAQs

What size terrarium does a leopard gecko need?

An adult leopard gecko needs at least 36 x 18 x 18 inches, which is a 40 gallon breeder. Juveniles can start in a 30 x 12 x 12 inch enclosure, a 20 gallon long. Plan to upgrade as the gecko grows, since the adult minimum is the size it will need for the long term.

How big a tank does a bearded dragon need?

An adult bearded dragon needs a minimum enclosure of 48 x 24 x 24 inches, which is 120 gallons. That is the current minimum for an adult. A smaller tank may work only while the dragon is young, so plan for the full adult size when you shop.

Is a 20 gallon tank enough for a corn snake?

Only as a juvenile grow-out. A 30 x 12 x 12 inch tank can house a young corn snake temporarily. Adults need a 48 x 24 x 24 inch enclosure. If you start with the smaller tank, expect to upgrade to the adult size as the snake grows.

Why do crested geckos need tall tanks?

Crested geckos are arboreal, meaning they live up in vegetation rather than on the ground. An adult's minimum is 18 x 18 x 24 inches tall rather than long. Height gives them the climbing space they use, so choose a tall enclosure over a wide, low one.

Can a terrarium be too big?

Not for these species, provided hides and clutter scale with the enclosure. Bare space stresses prey animals, while furnished space enriches them. A large tank with plenty of cover works well; the risk is an empty tank, not a big one. Match the furnishings to the size of the space.

Gallons or floor space - which should I shop by?

Shop by floor space. The footprint is what the animal lives on, and the leopard gecko minimum works out to 648 square inches. Gallons alone mislead, because a tall tank can hold the same volume with less usable floor. Check the length and width first, then confirm the volume.

Sources

Related calculators

Aquarium CO2 Calculator
Estimate dissolved CO2 in a planted aquarium from pH and carbonate hardness, or find the target pH your CO2 goal needs at your KH.
Storage Unit Size Calculator
The smallest standard storage unit for a home's worth of stuff: base size by bedrooms, bumped for extra boxes and bulky items, with floor area and volume.
Tent Capacity Calculator
Tent sleeping capacity from the floor dimensions: floor area per person, a comfort rating from roomy to very snug, and how many people fit at a roomy 30 sq ft each.