Tüylüm
Blog › Reptiles › Care
CARE Reptiles

Warm and cool ends in the vivarium: how to set up a temperature gradient and how to measure it

6 min read · Last checked: October 26, 2026 · Sources: RSPCA Australia, Merck Veterinary Manual, RSPCA
A bearded dragon basking on a log under a heat lamp in a vivarium.
A bearded dragon basking on a log under a heat lamp in a vivarium. Photo: Fiver, der Hellseher · CC BY-SA 3.0 · Wikimedia Commons

In the wild, a lizard climbs onto a rock in the morning sun, then retreats into the shade or a burrow when the midday heat sets in. It goes on like this all day: warm up a little, cool down a little. In a vivarium, you're the one who offers that choice. That's why the most important feature of a vivarium isn't a single temperature but temperatures that change from one end to the other. In this article, we explain why this gradient is essential, how to set it up and how to measure it. We have a separate article on lamps and UVB light: UVB and heat for reptiles.

IN SHORT
  • Not "cold-blooded" but ectothermic: According to RSPCA Australia, reptiles control their body temperature very precisely by moving between warm and cool spots.
  • Not one temperature but a range: According to the Merck Veterinary Manual, the temperature should vary from one end of the enclosure to the other.
  • A thermostat is a must: According to the RSPCA, every heater should be connected to a thermostat.
  • Two thermometers: According to Merck, use at least two thermometers, one at the warm end and one at the cool end. Measure where the animal actually sits.
  • Overheating is dangerous: According to Merck, going just 10 °F (about 5.5 °C) above the upper limit can be deadly for some species.
  • Don't cut back to save money: The RSPCA asks you not to turn down heat or lighting, even when bills go up.

Why do reptiles need warm and cool ends?

Reptiles are often called "cold-blooded." According to RSPCA Australia, that's a common misconception: reptiles are ectotherms, meaning their body heat comes from outside heat sources rather than from inside; but most of them can control it very precisely. Here's how they do it:

According to RSPCA Australia, a reptile's body temperature doesn't need to stay constant, and keeping it constant can even be harmful; body temperature varies with species, size, season, feeding and breeding. Since the exact temperature at which each animal works best can't be calculated outside a laboratory, the goal is to offer a temperature gradient that includes the range that species prefers. According to Merck, the gradient also supports digestion and immune health.

A fun fact

According to RSPCA Australia, a reptile's metabolic rate can be as low as one-seventh that of a mammal of similar size. Because they use so little energy, they need less food.

Every species has its own range

According to the RSPCA's species guides, here are the recommended temperatures for three common species:

SpeciesBasking spotCool endNight
Leopard gecko28–30 °C (82–86 °F)24–26 °C (75–79 °F)Heat off; extra heat if the room drops below 18 °C (64 °F)
Corn snake28–30 °C (82–86 °F)20–24 °C (68–75 °F)Heat off; can drop to 16–20 °C (61–68 °F)
Royal (ball) python30–32 °C (86–90 °F)24–26 °C (75–79 °F)A heater that gives off no light, on a thermostat

As you can see, the same vivarium setup doesn't suit every species. For your own pet's species, talk to a vet experienced with reptiles. Details by species: leopard gecko, corn snake, ball python, bearded dragon.

Put the heater at one end

Setting up a temperature gradient is simple: place the heat source at one end of the vivarium. The other end stays cool on its own. According to RSPCA Australia, which heater is suitable depends on the animal's lifestyle:

According to Merck, heat mats can be used for lizards and snakes; but they shouldn't cover more than 30% of the floor and should be made for reptile enclosures. For leopard geckos, the RSPCA recommends putting the heat mat on one side wall of a wooden vivarium, or under half of the base of a glass one. That way, the other half stays cool.

A leopard gecko warming up on top of a ceramic hide in a vivarium.
A leopard gecko warming up on top of a ceramic hide in a vivarium. Photo: Asklēpiós · CC BY-SA 4.0 · Wikimedia Commons

Heat alone isn't enough; the animal needs to feel safe at every temperature. For leopard geckos, the RSPCA recommends several hides at both ends of the vivarium, so the gecko can choose its temperature without having to give up feeling secure. The RSPCA recommends hides at both ends for royal pythons, too. RSPCA Australia also says that heat sources combined with shelters create the temperature gradient, and it recommends a daily temperature cycle with shade and basking spots.

Where the vivarium stands matters too. According to the RSPCA, keep it away from drafts, radiators and direct sunlight; these throw off the temperature inside.

The thermostat: your heater's brakes

A heater doesn't know when to stop on its own. A thermostat switches it on and off automatically when the temperature moves out of the range you want. According to the RSPCA, every heat source should be connected to a thermostat.

  1. For a heat lamp: For leopard geckos, the RSPCA recommends a dimming thermostat. According to its corn snake guide, the thermostat probe should sit just above the substrate, at the level where the animal sits.
  2. For a heat mat: The RSPCA recommends an on/off thermostat, with the probe directly over the mat or at the warm end, set to 30 °C (86 °F).
  3. Programmable models: According to Merck, heat sources should be connected to programmable thermostats that switch the heat on and off automatically when the temperature moves out of range.

Thermometers: measure both ends every day

Having a thermostat doesn't mean the temperature is right. According to the RSPCA, thermostats aren't always accurate, so you should also measure the temperature every day.

A bearded dragon resting on a branch next to a thermometer on the vivarium wall.
A bearded dragon resting on a branch next to a thermometer on the vivarium wall. Photo: André Karwath aka Aka · CC BY-SA 2.5 · Wikimedia Commons

What happens at night?

Nights are cooler in the wild, too. According to the RSPCA, the heat can be turned off at night for many species; but how cool it can get depends on the species (see the table above). If the room gets very cold:

Guarding against overheating and burns

Too much heat is as dangerous as too little. According to Merck, temperatures just 10 °F (about 5.5 °C) above a species' upper limit can be deadly for some species, and overheating is common with heat lamps.

Protect against burns and overheating
  • Guard: According to Merck, heat sources should be protected so the reptile can't touch them directly. The RSPCA recommends a guard for heat lamps.
  • No "hot rocks": According to Merck, heated rocks give off uneven heat and can cause burns.
  • A cool escape route: The whole point of a gradient is that the animal can cool down. Make sure the cool end really stays cool.
  • Don't cut back on bills: The RSPCA asks you not to turn down heat or lighting for exotic pets, even during a cost-of-living squeeze; doing so can cause serious health problems.
Keep track with Tüylüm

On Tüylüm's Today tab, you can add Temperature check and Humidity check tasks for reptiles; if you've added a heat lamp, Heat & UV lamp check appears as a ready-made task. With My home (family sharing), whoever checks the thermometer ticks it off, and everyone in your Home sees the same list.

All of them: Reptiles.

Frequently asked questions

Can't I just keep the whole vivarium at the same temperature?

No. According to RSPCA Australia, a reptile's body temperature doesn't need to stay constant, and keeping it constant can even be harmful. Merck also recommends that the temperature vary from one end of the enclosure to the other; the animal chooses its own temperature within that range.

I have a thermostat. Do I still need a thermometer?

Yes. According to the RSPCA, thermostats aren't always accurate. Measure the warm and cool ends every day with a thermometer, at the level where the animal sits.

Should I turn the heat off at night?

It depends on the species. According to the RSPCA, the heat can be turned off at night for leopard geckos and corn snakes; if the room gets very cold, an extra heater that gives off no light is needed. For royal pythons, the RSPCA recommends a heater that gives off no light, on a thermostat, at night.

Keep track of your pet's care in TüylümLog vet visits, vaccine and medication dates, and we'll remind you when it's time. Share it all with your family in Home.

This article is for general information and is not a substitute for diagnosis or treatment. Ask your vet about any decision for your pet.

Sources

By Tüylüm · Published and last checked: October 26, 2026. Spotted a mistake? Write to [email protected] and we'll fix it right away. Photos are from Wikimedia Commons, used under the license shown below each photo.

You might also like

CAREReptiles
Shedding in reptiles: why it happens, how to tell it's coming, and when to talk to your vetSnakes usually shed their skin in one piece; lizards shed in patches. The signs that a shed is on the way, the role of humidity and a humid hide, why you shouldn't handle your reptile during this time, and what to do if the skin gets stuck.6 min read · Last checked: October 26, 2026Read →
BEHAVIORReptiles
Handling a reptile the right way: getting it used to you, holding it correctly and washing your handsMost reptiles don't like being lifted; but done the right way, many can get used to handling. Waiting the first week, supporting from underneath, leaving the tail alone, keeping it short, recognizing signs of stress, and washing your hands before and after.6 min read · Last checked: October 26, 2026Read →
SPECIES GUIDEReptiles
Before you get a reptile: a long life, special needs, costs and the right sourceReptiles may look like quiet, low-maintenance pets; but they can live for decades and need a home with controlled heat and light, a specialist vet and a steady budget. The questions to ask before you decide, and how to choose the right source.7 min read · Last checked: October 26, 2026Read →

All articles about reptiles →