Into the CanopyAnimal care sheets

Home / Reptiles / Snakes / Xenopeltidae / Sunbeam snake

No federal permit to keep

Sunbeam snake

Xenopeltis unicolor

Also known as Asian Sunbeam Snake

Reptiles › Snakes (Serpentes) › Xenopeltidae (Sunbeam snakes)

Xenopeltis unicolor, commonly known as the sunbeam snake, common sunbeam snake or iridescent snake, is a non-venomous sunbeam snake species found in Southeast Asia and some regions of Indonesia.

Pet trade
Experience: Advanced
Sunbeam snake
Photo: Marius Burger, CC0, via Wikimedia Commons
FamilySunbeam snakes
Record lifespan12.1 years
Adult weight26.6 oz
Kept byPet trade

Care at a glance

Species-specific values

Values researched for this exact species. Air, surface and water temperatures are listed separately, and each source is kept as published rather than averaged.

Minimum enclosureA 40-gallon vivarium provides sufficient space for a Sunbeam Snake.
Basking surface temperature85 °F
Warm side air temperature80 °F
Humidity80–100 %
Uvb lightingThe snake does not need special lighting such as UVB lights; cage lighting can provide a 12-hour day-night cycle.
Feeding frequencyFeed young snakes weekly and adults every two weeks.
Social housingThe article describes Sunbeam Snakes as solitary and secretive.
SubstrateUse damp dirt-like bedding about 4 to 8 inches deep; coconut coir with peat moss is one suggested choice.

Understanding the animal

About this animal

About this animal

This is a primitive snake known for both its highly iridescent scales and its ability to reproduce quickly, as it is oviparous and as such can lay up to 10 eggs at a time. No subspecies are currently recognized.

From Wikipedia: Xenopeltis unicolor, CC BY-SA 4.0 (excerpt)

In the wild

In the wild

Researched for this exact species, not its family. Wild conditions are context, not enclosure settings.123

Where it livesOccurs across Southeast Asia and parts of Indonesia, using forest and modified habitats such as parks and gardens. It is a semi-fossorial snake that spends much of its life beneath ground cover or in soil.
Ground it lives onburrowable soil beneath forest or garden cover
ActiveNocturnal and semi-fossorial; reliable species-specific dormancy information was not established.
Wild dietRodents, birds, lizards and other snakes.
Behavior to plan forA burrowing snake with a flattened head and streamlined body suited to moving through soil.
  1. Singapore NParks Flora & Fauna Web: Xenopeltis unicolor
  2. Bergman (1955): The anatomy of Xenopeltis unicolor
  3. Wikipedia: Xenopeltis unicolor (CC BY-SA 4.0)
Native climate (measured)

Native climate (measured)

Warm-season highsabout 91°F (up to 95°F in the hottest sampled areas)
Cool-season lowsabout 69°F (down to 55°F in the coldest sampled areas)
Average temperature74–83°F across sampled records
Relative humidity72–81% on average (driest month about 71%)
Rainfallabout 1921 mm a year, with strong wet and dry seasons

Measured at 109 wild occurrence records sampled against WorldClim 2.1 climate data (1970–2000 averages). Air conditions in the range are ecological context, not enclosure settings: microhabitats such as burrows, leaf litter or basking rocks can be cooler, warmer or more humid.

Data and studies

The numbers

The numbers

Each bar is what one source reports. Where several sources weigh in, the dashed gold band marks their average.

Maximum recorded lifespan

Highest reported12.1 years
AnAge AnAge12.1
Myhrvold et al. Myhrvold et al. 201512.1

Longest recorded lifespan reported by each database; typical lifespans are usually shorter. The AnAge record comes from an animal in human care.

Typical adult weight

Average of sources26.6 oz
AnAge AnAge26.6
Myhrvold et al. Myhrvold et al. 201526.6

Average adult body mass in each database (FishBase gives the maximum recorded weight).

Clutch size

Reported12 eggs
Myhrvold et al. Myhrvold et al. 201512

Average per litter or clutch.

Incubation

Reported76 days
Myhrvold et al. Myhrvold et al. 201576

Sources for this sheet

  1. AnAge: The Animal Ageing and Longevity Database (Human Ageing Genomic Resources) (CC BY 3.0) Peer-reviewed researchCurated, referenced longevity and life-history records for thousands of species; maximum lifespans are often from zoo animals.
  2. Myhrvold et al. (2015). An amniote life-history database. Ecology 96: 3109 Peer-reviewed researchPeer-reviewed compilation of life-history data for over 21,000 birds, mammals and reptiles.
  3. Clint's Reptiles (YouTube): Sunbeam Snake, The Best Pet Snake? Expert educator & keeperClint Laidlaw, PhD in Biology Education and MS in Evolutionary Ecology; owner of Clint's Reptile Room and a longtime keeper. His "Best Pet?" series reviews each species' care in depth.
  4. The Reptile Database Peer-reviewed researchScientist-curated catalog of every reptile species, with taxonomy and literature.
  5. GBIF Backbone Taxonomy (Global Biodiversity Information Facility) (CC BY 4.0) Peer-reviewed researchInternational scientific taxonomy used here for classification. GBIF Secretariat (2023). GBIF Backbone Taxonomy. Checklist dataset https://doi.org/10.15468/39omei, accessed via GBIF.org.
  6. Species+ (UNEP-WCMC and the CITES Secretariat) Zoo, university or veterinaryThe official database of species listed under CITES. UNEP (2026). The Species+ Website. Nairobi, Kenya. Compiled by UNEP-WCMC, Cambridge, UK. Available at: www.speciesplus.net. [Accessed 04/10/2026].
  7. Wikipedia (species article) (CC BY-SA 4.0) Community referenceFree encyclopedia; useful overviews with their own citations. Short excerpts are quoted under CC BY-SA 4.0, each credited with a link to its article.
  8. iNaturalist (captive observations) Community referenceCommunity observation platform run by the California Academy of Sciences and National Geographic; observations marked captive show animals living in homes, zoos and aquariums.