Key takeaways
A 10-gallon tank works well for baby and juvenile leopard geckos, but plan to upgrade as they grow
A 20-gallon long, terrestrial-style terrarium is a workable setup for adults, but a 40-gallon terrarium is better because it gives your gecko room to truly thrive
Leopard geckos are ground dwellers, so floor space matters much more than height. A longer, wider tank is a better choice for a leopard gecko than a taller, narrower one
Every leopard gecko setup should have at minimum three hides: one on both the hot and cool sides of the enclosure, as well as a humid hide for shedding. Enclosure size determines how well you can space these out
Large enclosures aren’t overwhelming for leopard geckos, but wide-open spaces are. With the right hides and enough coverage in place, they will typically settle into a larger enclosure just fine
The tank is just the starting point. Heating, hides, substrate, and a proper temperature gradient matter just as much as the size of the enclosure itself
If you’re setting up a home for your first leopard gecko, or upgrading from a starter tank, the size question is one of the first ones you’ll run into. In a nutshell: bigger is generally better, and a 40-gallon setup gives your gecko the best foundation for a healthy, active life. That said, you don’t need a 40-gallon on day one if you’re starting with a baby gecko. This guide walks you through what each tank size offers, when each one is the right fit, and what to put inside it, so you can make a confident choice wherever you are in the process.
Why enclosure size matters for leopard geckos
Leopard geckos are more active than they look. At night, when they come out to explore and hunt, they cover real ground. In the wild, a single gecko might patrol a territory of several square meters. In captivity, the size of their enclosure determines how much of that natural behavior they can express. There’s also a practical husbandry reason size matters: temperature gradients. Leopard geckos are ectotherms, meaning they regulate their body temperature by moving between warmer and cooler areas of their enclosure. A properly set up tank should have a warm end (around 85-90 degrees Fahrenheit, and then 90-92 degrees Fahrenheit directly under the basking light), a cool end (around 75 to 80 degrees Fahrenheit), and a comfortable middle ground in between. In a small enclosure, the temperature difference between one end and the other can be so compressed that your gecko doesn’t have a meaningful choice about where to warm up and cool down.
More space means a better gradient, more enrichment options, and more room for your gecko to simply be a gecko. For more on heat and lighting requirements,
how much heat and light do reptiles need? is a helpful companion to this guide.
Floor space vs. height: the most important distinction
Before comparing specific tank sizes, there’s one principle worth understanding early: leopard geckos are terrestrial. They live on the ground. Unlike some other geckos, have no sticky toe pads and can’t climb smooth glass. Every inch of height above about eight or ten inches is, for them, essentially unused. This matters when you’re shopping, because you’ll encounter tanks labeled by gallon volume that come in very different shapes. You may also see enclosures described as terrestrial (designed for animals that live on the ground) or arboreal (designed for animals that climb and live in trees). Leopard geckos are terrestrial, so look for a terrestrial-style enclosure with plenty of floor space rather than a tall, arboreal enclosure. A “20-gallon tall” and a “20-gallon long” hold the same amount of water but have completely different floor footprints. The 20-gallon long is what you want for a leopard gecko, because it gives more usable ground-level space. The same principle applies at every size. Always check the dimensions and prioritize length and width. A longer, lower-profile tank will serve your leopard gecko much better than a taller tank of the same gallon rating.
10-gallon tank (20” × 10” × 12”)
Best for: Temporary set-ups for hatchlings and juveniles
A 10-gallon tank is a solid starting point for baby and young leopard geckos, from hatching until they're about 5 to 6 inches long (typically around three to four months of age, though growth rates vary). At this stage, they're still small enough that a compact enclosure makes it easier to locate food, and it keeps the environment manageable while they're adjusting to their new surroundings. That said, a 10-gallon has limitations even for babies. The footprint is small enough that creating a meaningful temperature gradient is challenging, and fitting three proper hides with enough space between them takes some creative arrangement. It works, but it’s already a little cozy, so most leopard geckos will be ready to move into a larger enclosure before long.
What works in a 10-gallon
Two hides positioned at opposite ends (warm and cool)
A shallow water dish small enough not to dominate the floor space
Minimal decoration to leave room for movement
Once your leopard gecko reaches around four to six inches in length, typically around four to six months of age, they’ll be noticeably better served by moving to a larger enclosure. You don’t need to rush this, but it’s worth planning it from the start rather than treating the 10-gallon as a permanent home.
20-gallon long tank (30” × 12” × 12”)
Best for: sub-adults and is the minimum size for adults
The 20-gallon long has been the minimum recommendation for adult leopard geckos for years, and it’s a workable setup. The 30-inch length gives you enough room to create a proper temperature gradient and fit three hides with some breathing room between them. While a leopard gecko can live a healthy life in a 20-gallon terrestrial terrarium, a larger enclosure would give them even more room to be active, explore, and exhibit natural behavior. Think of the 20-gallon long as the minimum, not the maximum.
What works in a 20-gallon long
Three hides: one hide on the warm side of the enclosure (not on the basking site), one hide at the opposite end on the cool side, and a humidity hide toward the middle
A proper temperature gradient from warm end to cool end
Some enrichment items like cork bark, low-profile rock formations, or a small piece of slate
Enough floor space for your gecko to move between zones without everything feeling cramped
The 20-gallon long is widely available, affordable, easy to find accessories for, and adequate for an adult gecko. Its main limitation is that 12 inches of width leaves relatively little room once you’ve fitted three hides and a water dish. You’ll notice more of the floor space is taken up by necessities, leaving less for enrichment and natural movement.
40-gallon tank (36” × 18” × 18”)
Best for: adult leopard geckos, the recommended long-term home
A 40-gallon tank is an excellent option for adult leopard geckos, and once you see the difference in how a gecko uses this space versus a smaller enclosure, it’s easy to understand why. The key upgrade over the 20-gallon is the width: 18 inches compared to 12 gives you a measurably better temperature gradient and much more useful floor area. Where a 20-gallon long gives you 360 square inches of floor space, a 40-gallon breeder gives you about 648, nearly double.
What the extra space actually does
Better temperature gradient: a full 18 inches of width and 36 inches of length gives you room to have a clear warm zone, a transitional middle area, and a cooler end, which is what a gecko needs to properly self-regulate
Three hides with real spacing: in a 40-gallon tank, you can fit all three hides with enough space between them that your gecko gets genuinely different microenvironments rather than a compressed gradient
Room for enrichment: extra space means you can add climbing structures, more natural decorations, and additional hiding spots without the enclosure feeling crowded
More natural movement: leopard geckos in larger enclosures are visibly more active. They cover more ground, explore more deliberately, and show more natural foraging behavior
One thing to know about “overwhelming” a gecko
You might come across older guidance that cautions against putting a leopard gecko in a tank that’s “too large” because it could stress them out. The current thinking on this is that a larger enclosure is not the problem, an enclosure that doesn’t have enough hides and cover is. A gecko in a big, empty tank with nowhere to feel secure will be stressed. A gecko in a big tank with three well-placed hides and some cover will do exactly what geckos do: explore confidently and retreat when they want to feel sheltered. The hides are what provide security, not the overall footprint.
The three-hide rule: what goes inside at every size
Whatever size enclosure you choose, a minimum of three hides is best-practice for a leopard gecko’s wellbeing. Each one serves a specific purpose, and together they give your gecko everything they need to thermoregulate and shed comfortably.
Warm hide: Placed adjacent to the heat source on the warm end of the enclosure. This is where your gecko goes to digest meals and warm up. It should be snug enough to feel secure, just big enough for the gecko to turn around comfortably.
Cool hide: On the opposite end from the heat source. Provides a refuge when your gecko needs to cool down or simply wants a quiet place to rest.
Moist or humidity hide: Usually positioned in the middle or toward the warm side. Filled with damp substrate (coconut coir, sphagnum moss, or a mix) to maintain a moist microenvironment. This is where most leopard geckos choose to shed, and it’s one of the most important pieces of the setup for long-term skin health.
Hides should be low-profile and snug rather than tall and open. Leopard geckos feel most secure in hides where the walls are close around them. A gecko that ignores a hide is often telling you the hide is too large and doesn’t feel sheltered.
Scaling up: planning the upgrade path
If you’re starting with a young gecko, it’s worth planning ahead so the upgrade is smooth rather than a scramble.
Hatchling to ~4 months (under 5 inches): A 10-gallon works well and is easy to manage for a young gecko and a new keeper.
Juvenile to sub-adult (~4 to 12 months, 5 to 7 inches): Move up to a 20-gallon long. A gecko at this size is starting to show more movement and exploration, and the larger footprint gives them room for it.
Adult (12+ months, 7 to 10 inches or more): A 20-gallon enclosure is the recommended minimum size for an adult leopard gecko. If you have the available space, a 40-gallon breeder-style enclosure can provide additional room for exploring, thermoregulating, and furnishing the habitat with multiple hides and enrichment items. Because leopard geckos can live 15 years or more with proper care, many keepers choose to provide a larger enclosure as a long-term habitat.
Common enclosure size mistakes and how to avoid them
Keeping an adult in a 10-gallon: By the time a leopard gecko is fully grown, a 10-gallon is simply too small for a proper temperature gradient and three adequate hides. If you inherited or purchased an adult gecko and they’re in a 10-gallon, upgrading is one of the most impactful things you can do for their wellbeing.
Choosing a tall tank over a long one: Easy to do if you’re new to reptiles and comparing by gallon rating. Always check the actual dimensions and prioritize footprint. A 20-gallon tall and a 20-gallon long are very different enclosures for a gecko.
Not providing enough hides in a large tank: A larger tank without adequate hides can feel insecure for a gecko. The solution isn’t a smaller tank, it’s more cover. Three secure hides plus some additional decorative cover solves this.
Waiting too long to upgrade: Geckos grow faster than many people expect. If you have a young gecko, check their size regularly and have a plan for the next enclosure before they outgrow the current one.
Treating gallon rating as the only relevant measurement: Two tanks with the same gallon rating can have very different floor space depending on their shape. The floor dimensions matter far more than the volume for a ground-dwelling reptile.
Frequently asked questions (FAQs)
Can a baby leopard gecko go directly into a 40-gallon tank?
Yes, with a few considerations. Make sure the hides are sized for a small gecko, not an adult, so they feel snug and secure rather than open and exposed. You’ll also want to keep decorations simple enough that a small gecko can easily find their food during feeding time. Many keepers choose to start in a smaller tank for convenience, but a well-set-up 40-gallon with appropriately sized hides is a perfectly fine home for a young gecko.
Can I house two leopard geckos together?
Leopard geckos are generally better housed separately. They are solitary animals in the wild and can show territorial behavior, particularly among males. A male-female pair can coexist but comes with breeding considerations. Two females can sometimes be housed together in a large enough enclosure, but it requires careful monitoring for any signs of resource competition or stress. When in doubt, separate housing is simpler and typically better for both geckos.
Is a glass tank or a PVC enclosure better?
Both work well for leopard geckos. Glass tanks are widely available, easy to find in standard gallon sizes, and provide great visibility. Because glass loses heat more readily than PVC, you may need a slightly more powerful heat source or make closer adjustments to maintain proper temperatures in a cooler room. PVC and plastic enclosures are lighter, retain heat more efficiently, and are often available in larger footprint sizes, though they’re less common in standard retail settings. For most keepers, a glass tank in the right dimensions is a great choice.
What substrate should I use in my leopard gecko’s enclosure?
Solid substrates are the recommended choice for leopard geckos because they’re easy to clean and eliminate the risk of accidental ingestion. Good options include reptile carpet, paper towels, ceramic tile, and slate tile. Avoid all loose substrates, including sand, bark, coconut husk, gravel, soil, and loose substrate mixes, as they can pose ingestion and health risks. Paper towels are especially useful for hatchlings, juveniles, newly acquired geckos, or any gecko being monitored for health concerns because they make it easy to observe droppings and keep the enclosure clean.
How often should I clean the enclosure?
Spot-clean waste daily or every couple of days. A full substrate change and thorough cleaning of the enclosure and all decorations should happen every four to six weeks for a standard setup. If you’re using a bioactive setup with a cleanup crew, spot-cleaning is still recommended, but deep cleans are less frequent. Your gecko will likely use the same corner of the enclosure as their bathroom consistently, which makes spot-cleaning straightforward once you identify the spot.
Information in this article is not intended to diagnose, treat or cure your pet and is not a substitute for veterinary care provided by a licensed veterinarian. For any medical or health-related advice concerning the care and treatment of your pet, contact your veterinarian.