A proper reptile terrarium balances enclosure size, heating, lighting, and substrate to mimic the animal's natural habitat. Getting these four pillars right from the start prevents the majority of common health issues.
Enclosure size depends entirely on the species. A leopard gecko does well in a 20-gallon long, while an adult bearded dragon needs at least a 4-foot by 2-foot by 2-foot enclosure, and a ball python requires secure tub or tank dimensions that let it stretch to roughly half its body length on the longest side. Always research the adult size of your specific species before buying.
Heating must create a thermal gradient with a warm basking zone on one end and a cooler retreat on the other. Overhead basking bulbs, ceramic heat emitters, or deep heat projectors are common choices. Every heat source should be connected to a thermostat to prevent dangerous overheating. Never use unregulated heat rocks, which are notorious for causing ventral burns.
Lighting requirements vary. Diurnal species like bearded dragons and chameleons need strong UVB tube lamps (T5 high output is the current standard) mounted at the correct distance per manufacturer guidelines, with bulbs replaced on schedule because UVB output declines before visible light fades. Crepuscular and nocturnal species may benefit from lower-level UVB but have different requirements.
Substrate choices range from paper towels and ceramic tile for easy cleaning and zero impaction risk, to topsoil and leaf litter mixes for bioactive setups that support live cleanup crews. Avoid loose calcium sand for young or debilitated animals, as ingestion can cause intestinal blockages.
Finally, provide hides on both the warm and cool sides, a water source appropriate to the species, climbing enrichment for arboreal animals, and a way to monitor temperatures and humidity with digital instruments rather than adhesive strip thermometers, which are unreliable.