Name TagsWhat they’re called

Male Male
Female Female
Young Hatchling
Group Solitary

Overview

The carpet python is a widespread, medium-to-large constrictor of Australia and southern New Guinea, named for its intricate, carpet-like patterning. It is a variable species with numerous subspecies ranging in colour from olive and brown to nearly black with cream markings. Semi-arboreal and highly adaptable, it thrives from rainforest to arid scrub and is a familiar sight around farms and suburban gardens. Its beauty and tractable nature make it a popular pet in Australia and abroad. These snakes are masters of camouflage, using their complex, blotched patterns to blend seamlessly into the dappled light of forest floors or the branches of trees where they often rest. As constrictors, they rely on their powerful muscular bodies to subdue prey, which includes a variety of small mammals, birds, and occasionally reptiles. They are primarily nocturnal or crepuscular, though they are frequently seen basking in the sun during the day to raise their body temperature. Their semi-arboreal nature means they are equally comfortable hunting in the canopy as they are on the ground, a versatility that has allowed them to colonize a vast array of environments. Despite their size, they are generally considered non-aggressive toward humans, though they will defend themselves if they feel threatened. Their ability to thrive in human-modified landscapes, such as suburban gardens, has led to frequent interactions with people, where they are often valued for their role in controlling rodent populations. The sheer diversity in appearance across their range, from the vibrant yellows of some populations to the dark, muted tones of others, highlights their successful adaptation to different ecological niches across the continent.

By Abhilesh Kapdi · Last updated · How we check facts

Quick Answers about the Carpet Python

What does the Carpet Python eat?

Carpet pythons feed on a range of small vertebrates, including rats, mice, possums, birds, and lizards. They are valued around farms and homes for controlling rodents. Larger individuals may take small mammals up to the size of a possum or bird.

Where does the Carpet Python live?

It occupies an exceptionally broad range of habitats including rainforest, wet and dry sclerophyll forest, woodland, grassland, and arid scrub. It readily uses rock crevices, tree hollows, and building roofs as shelter. Its adaptability lets it persist in agricultural and suburban landscapes.

How big is the Carpet Python?

2 to 3 metres depending on subspecies

How long does the Carpet Python live?

The Carpet Python has a lifespan of 15 to 30 years.

Is the Carpet Python endangered?

Carpet Python is listed as Least Concern on the IUCN Red List. The threats recorded for the Carpet Python include deliberate hunting and collection of the species for the pet trade, which can impact local population densities.

What is the scientific name of the Carpet Python?

The scientific name of Carpet Python is Morelia spilota, in the family Pythonidae.

How does the Carpet Python interact with people?

It is harmless to humans and often tolerated or encouraged around properties for pest control. It is one of the most commonly kept pet pythons, and while generally secure, some subspecies face pressure from habitat loss and road mortality.

How does the Carpet Python reproduce?

The carpet python is oviparous, with females laying clutches typically of 10 to 25 eggs, occasionally more. The female coils around the clutch and incubates it by muscular shivering for around 50 to 60 days. She fasts during incubation and leaves the hatchlings to fend for themselves.

Etymology & Name

The genus Morelia honours the naturalist Morelet, while the epithet spilota derives from the Greek for 'spotted' or 'marked', referring to its complex patterning. This scientific name highlights the intricate, carpet-like coloration that gives the snake its common name. Found throughout mainland Australia, with the exception of the arid centre, this species occupies an exceptionally broad range of habitats including rainforest, wet and dry forests. The name effectively captures the visual essence of the snake, which is a member of the Pythonidae family known for its diverse and striking skin patterns.

Carpet Python
Wikimedia (CC BY-SA)

Did You Know?

A single carpet python living in a barn or roof space can keep a property almost entirely free of rats and mice, making it a natural form of pest control. Because of their nocturnal hunting habits and ambush tactics, rural and suburban residents frequently welcome these large constrictors around farms to naturally suppress rodent populations.

★ Iconic Moment

The 2013 Brisbane Backyard Rescue

Carpet pythons frequently take up residence in the roofs and rafters of Australian homes, where they quietly hunt rats and possums, and snake catchers are regularly called to relocate large individuals from suburban ceilings. The diamond python form is especially prized for its jewel-like markings.

Size Compared to a Human

175 cm300 cm longsilhouette: Biospedia snake silhouette set / PhyloPic
Length 9.8 ft 300 cm
Weight 15 kg 33 lb

Up to 15 kilograms in the largest forms

A Carpet Python is roughly 9.8 ft long, shown next to an average adult human (5′9″ / 1.75 m) for scale.

Classification & Traits

Size

2 to 3 metres depending on subspecies

Weight

Up to 15 kilograms in the largest forms

Colors

Highly variable olive, brown, or black with cream to golden carpet-like markings

Phylum
Chordata
Class
Squamata
Order
Squamata
Family
Pythonidae
Genus
Morelia

Adult • Baby

Adult Carpet Python
Adult
Captured by: Lynne M
Hatchling Carpet Python
Baby Hatchling
Captured by: Alex Tomlinson

Females are generally larger than males, while males have proportionally larger pelvic spurs used in courtship and combat.

Anatomy & Field Signs

The body parts that define the Carpet Python, skull, skeleton, skin and the features that set it apart, plus the tracks and signs that let researchers identify it even when the animal is nowhere in sight.

Carpet Python Skull & Jaws

Skull & Jaws

A highly flexible skull with jaws that unhinge, letting a snake swallow prey far wider than its own head.

Captured by: University of California Museum of Paleontology
Carpet Python Fangs & Teeth

Fangs & Teeth

Backward-curving teeth grip struggling prey; venomous species add hollow or grooved fangs to inject venom.

Carpet Python Skeleton

Skeleton

A skeleton of little more than a skull, a long backbone and hundreds of ribs, no limbs at all.

Captured by: Adam Z. Andis
Carpet Python Scales & Skin

Scales & Skin

Overlapping dry scales, with broad belly scutes that grip the ground to drive the snake forward; the skin is shed whole.

Carpet Python Body & Coils

Body & Coils

The long, powerful, muscular body, used to constrict prey, to strike, or to swim.

Captured by: coanne
Carpet Python Egg

Egg

The eggs of this species, their shape, size, colour and clutch.

How to Tell It Apart

Its highly variable but intricate cream-on-dark carpet pattern distinguishes it from other Australian pythons. The diamond python subspecies is recognisable by its black scales each centred with a cream spot, forming rosettes.

Distinguishing features, broken down field by field:

Colour & Pattern

  • Carpet pattern Highly variable but intricate cream-on-dark carpet-like markings. vs Green Tree Python
  • Diamond form The diamond python subspecies has black scales each centred with a cream spot, forming rosettes.
  • Ground colour Ground colour varies from olive and brown to black.

Size & Build

  • Length Ranges 2-3 m depending on subspecies.

Habitat & Range

  • Distribution Widespread across Australia and New Guinea in varied habitats.

Behaviour

  • Habits A semi-arboreal nocturnal constrictor often found near human dwellings.

Commonly Mistaken For

Animals that genuinely look like the Carpet Python at a glance, and the detail that separates them.

Brown Tree Snake
Brown Tree Snake Boiga irregularis Carpet Python is the larger of the two (300 cm against 165 cm); ranges differ, Carpet Python in The species is found throughout mainland Australia, with the exception of the arid centre and the western regions., Brown Tree Snake in Australia,Papua New Guinea,Indonesia,Guam; colouring differs (Highly variable olive, brown, or black with cream to golden carpet-like markings against Variable background shades of light brown, reddish-tan, yellowish-grey, or olive, often accented by darker brown or black transverse crossbands. The belly is cream to pale yellow.).
Gopher Snake
Gopher Snake Pituophis catenifer Carpet Python is the larger of the two (300 cm against 150 cm); ranges differ, Carpet Python in The species is found throughout mainland Australia, with the exception of the arid centre and the western regions., Gopher Snake in United States,Canada,Mexico; colouring differs (Highly variable olive, brown, or black with cream to golden carpet-like markings against Tan, straw yellow, olive, brown, dark blotches, and dark eye-stripe facial bar.).
Central Ratsnake
Central Ratsnake Pantherophis alleghaniensis Carpet Python is the larger of the two (300 cm against 140 cm); ranges differ, Carpet Python in The species is found throughout mainland Australia, with the exception of the arid centre and the western regions., Eastern Rat Snake in United States,Canada; colouring differs (Highly variable olive, brown, or black with cream to golden carpet-like markings against Jet-black dorsum with keeled scales in northern range; gray with dark blotches or yellow with stripes in southern range.).
Carpet Python
Wikimedia (CC BY-SA)

Evolution

The carpet python belongs to the Australo-Papuan Morelia radiation and is a species complex with many geographically distinct subspecies, including the jungle, coastal, and diamond pythons. This diversity reflects adaptation to Australia's varied climates. Ongoing taxonomic study continues to revise the boundaries between its forms. Their evolutionary history is marked by the colonization of the Australian continent, where they diverged into various ecological niches ranging from tropical rainforests to temperate coastal regions. As members of the Pythonidae family, they retain ancestral features such as vestigial pelvic spurs, while their radiation across the continent has been driven by the isolation of populations in different climatic zones, leading to significant morphological and color variation.

Conservation Status

On the IUCN Red List, this species is classified as Least Concern.

LC ▲
NT
VU
EN
CR
EW
EX
Least concernExtinct

Habitat & Range

It occupies an exceptionally broad range of habitats including rainforest, wet and dry sclerophyll forest, woodland, grassland, and arid scrub. It readily uses rock crevices, tree hollows, and building roofs as shelter. Its adaptability lets it persist in agricultural and suburban landscapes. Found throughout mainland Australia, with the exception of the arid centre, this snake is a versatile climber and ground-dweller. It thrives in environments that offer a mix of cover and open space, allowing it to ambush prey effectively. Whether in dense coastal forests or rocky outcrops, it utilizes its environment to regulate body temperature and find protection from extreme weather conditions.

Where to Find Them

Where in the world the Carpet Python is found. Each coloured area shows a region where it lives, plotted on the whole world so you can see its range at a glance. Drag and zoom in to explore.

New Guinea Australia

Ranges are approximate, for education. Map data © OpenStreetMap contributors.

Where It’s Been Recorded

Every confirmed sighting of the Carpet Python logged by naturalists and field surveys: 28,563 of them, across 5 countries.

5Countries with records
28,563Wild sightings logged
AustraliaMost records · 100% of all
  • AU Australia 28,545100%
  • PG Papua New Guinea 80%
  • US United States 80%

Also recorded, in ones and twos, in Japan, Netherlands.

How to read this. These are sighting records, not population counts. A country near the top has been watched and catalogued the most, not necessarily the most Carpet Pythons living there, and a country with few naturalists will sit low on this list even where the animal is common. Museum specimens and captive animals are excluded, so these are wild sightings only. Compiled from GBIF occurrence data.

Biology & Behavior

Diet

Carpet pythons feed on a range of small vertebrates, including rats, mice, possums, birds, and lizards. They are valued around farms and homes for controlling rodents. Larger individuals may take small mammals up to the size of a possum or bird. This snake is a constrictor, meaning it strikes and coils around its prey to suffocate it before swallowing it whole. It is an ambush predator that often waits in trees or near ground-level burrows for unsuspecting animals to pass by. Its diet is highly varied, reflecting the diverse environments it inhabits, from dense rainforests to suburban backyards. By consuming a wide array of pests, the python provides significant ecological benefits, helping to manage populations of rodents and other small vertebrates.

Favourite food Rats, possums and birds

Koala Joey: Carpet pythons occasionally prey on young or small koalas, though adults are typically too large.

Agile Wallaby Joey: Carpet pythons take smaller or juvenile agile wallabies, as full-grown adults are too large.

Yellow-Footed Rock-Wallaby Joey: Carpet pythons typically take juvenile rock-wallabies due to the large size of adults.

Predators

Animals known to hunt or prey on the Carpet Python:

Intense Competitors

Rivals that chase the same food in the same habitat as the Carpet Python:

⏳ Lifespan

15 to 30 years

Behavior & Social Structure

It is a solitary, mostly nocturnal snake that is both terrestrial and arboreal, climbing well among trees and rafters. During cooler months it may bask by day and become dormant. Individuals interact chiefly during the breeding season. Outside of the mating period, these snakes maintain individual home ranges and show little interest in the presence of conspecifics. They are ambush predators that rely on stealth and patience, often remaining motionless for long periods to conserve energy. Their daily rhythm is flexible, allowing them to shift between nocturnal hunting and diurnal basking depending on the ambient temperature. They are not territorial in the sense of defending fixed boundaries, but they are highly protective of their chosen retreat sites.

Reproduction

The carpet python is oviparous, with females laying clutches typically of 10 to 25 eggs, occasionally more. The female coils around the clutch and incubates it by muscular shivering for around 50 to 60 days. She fasts during incubation and leaves the hatchlings to fend for themselves. Courtship begins in early spring, during which males actively track females and may engage in ritualistic combat with rival males, intertwining their bodies to assert dominance. Following successful mating, the female seeks out a protected nesting site such as a hollow tree, rock crevice, or abandoned mammal burrow. Throughout the incubation period, her rhythmic muscular contractions generate essential heat to keep the eggs warm, after which the independent neonates break through their leathery shells and disperse into the habitat.

Hunting Style

This snake utilizes a dual strategy of ambush and active foraging to secure its food. It often lies in wait for unsuspecting prey, but it is also known to patrol its territory to locate meals. Once it seizes prey with its sharp, recurved teeth, it quickly wraps its muscular body around the victim to constrict it until circulation ceases. To facilitate hunting in low-light conditions, it employs heat-sensitive pits located along the labial scales of its jaws. These specialized organs allow the snake to detect the infrared thermal signatures of warm-blooded mammals and birds, ensuring accurate strikes even in total darkness.

Carpet Python hunting
Captured by: Yu Chu Chin

Life in a Group

A group of Carpet Pythons is called a Solitary.

Population Stable
CITES Appendix II (international trade regulated for listed taxa; trade controls apply to pythons where listed)
Australia: native wildlife protections and licensing frameworks apply across states/territories (e.g., Nature Conservation Act 1992 (Queensland); Biodiversity Conservation Act 2016 (New South Wales); Wildlife Act 1975 (Victoria); Conservation and Land Management Act 1984 / Biodiversity Conservation Act 2016 (Western Australia); National Parks and Wildlife Act 1972 (South Australia); Nature Conservation Act 2002 (Tasmania); Nature Conservation Act 2014 (Australian Capital Territory); Territory Parks and Wildlife Conservation Act 2000 (Northern Territory)), permits typically required for take/keep/transport
Mating System
Polygynandry
Social Structure
Solitary
Breeding Pattern
Seasonal
Fertilization
Internal Fertilization
Birth Type
Internal_fertilization
Social
No fixed group name
Group: 1
Activity
Cathemeral
Diet
Carnivore
Murid rodents (rats and mice)
Seasonal
Hibernates
+2 more
Show less
Primarily cryptic, ambush-oriented predator; spends long periods stationary in cover, then uses a rapid strike-and-constrict sequence when prey comes within range (general behavior described for M.

A Solitary of Carpet Pythons

Mating & Courtship

Breeding occurs in spring, when males seek out females and rival males may engage in wrestling combat. Multiple males can gather around a single female.

Carpet Python courtship
Captured by: Mon Fost

A Great History

While it may come as a surprise, the ancestors of pythons and other snakes actually had legs and were similar to lizards and other aquatic reptiles. At some point, it must have become advantageous to sleek on the ground and their legs became more and more unused and eventually useless, vestigial, or just gone.
Previously classified with boas, modern research shows that the pythons and boas are separate species. They are examples of convergent evolution in different parts of the world, much like monkeys evolved differently in Africa and South America while having shared ancestors. One major difference is that boas give birth to live young, while pythons lay eggs. Pythons also have their heat-sensing pits on their labial scales, and boas have them in between their labial scales.
Because pythons are such great swimmers and have been known to venture into the ocean, it is assumed that early ancestors ventured into far waters and found new homes. Here, the different types of pythons evolved on a different path than their sister pythons on other landmasses.

The India Connection

This python subspecies is native to the island of New Guinea, encompassing the Indonesian province of Western New Guinea and Papua New Guinea, far outside of India.

People & the Carpet Python

It is harmless to humans and often tolerated or encouraged around properties for pest control. It is one of the most commonly kept pet pythons, and while generally secure, some subspecies face pressure from habitat loss and road mortality. Because they frequently inhabit suburban gardens and rural roofs in search of rodents and possums, they serve as a beneficial, non-venomous natural control agent against mice and rats, leading many homeowners to coexist peacefully with them.

Cultural Significance & History

The carpet python features in Aboriginal Australian dreaming stories and rock art, and is widely welcomed by rural Australians as a natural rodent controller. Their presence in the landscape is often celebrated as a sign of a healthy environment, and they are frequently tolerated or even encouraged to live near farmhouses to manage pest populations. In Indigenous culture, they are respected as ancestral beings, often depicted in intricate patterns that mirror the snake's own skin, reflecting a deep, ancient connection to the land and the creatures that inhabit it.

Subspecies Comparison

The species is divided into several recognized subspecies including M. s. spilota in southeastern Australia, M. s. mcdowelli in coastal Queensland and New South Wales, M. s. variegata in northern and western Australia, M. s. imbricata in southwestern Australia, M. s. metcalfei in the Murray-Darling Basin, and M. s. cheynei in the Atherton Tableland region.

Some Great News

The carpet python is listed as Least Concern and is one of Australia's most adaptable snakes, living in roof spaces, sheds and suburban gardens across the east coast as readily as in bushland. It is bred in enormous numbers in captivity for the pet trade, is legally kept under licence throughout Australia, and its willingness to live alongside people means it persists through urban expansion.

The Rare Story

Carpet pythons frequently take up residence in the roofs and rafters of Australian homes, where they quietly hunt rats and possums, and snake catchers are regularly called to relocate large individuals from suburban ceilings. The diamond python form is especially prized for its jewel-like markings. These constrictors are exceptionally adaptable, thriving in environments that range from coastal rainforests to arid scrublands and urban backyards. Females demonstrate notable maternal care by coiling tightly around their clutch of eggs in a hollow tree or rocky crevice, shivering their muscles to generate heat and incubate the developing embryos.

Threats & the Fight to Save Them

The threats recorded for the Carpet Python include deliberate hunting and collection of the species for the pet trade, which can impact local population densities. Furthermore, the expansion of road and railway networks poses a significant danger, as these snakes are frequently killed by vehicles while crossing infrastructure or basking on warm surfaces. Habitat fragmentation resulting from land clearing for agriculture and urban development also limits their movement and access to prey. These factors, combined with the species' reliance on specific thermal environments, make them vulnerable to human-induced mortality and the ongoing degradation of their natural range.

Recent News

Recent herpetological surveys have highlighted the adaptability of this species in urban environments across its Australian range.

Serpent Field Chart

Types of Snakes

Fifteen snakes in four families, pythons, boas and colubrids, elapids and vipers, each badged by how venomous it is.
Fifteen snakes in four families, pythons, boas and colubrids, elapids and vipers, each badged by how venomous it is.

As a Pet vs. In the Wild

One of the more manageable exotic pets, with two hard limits: adult size and local law.

Is it legal?

Legal in most places for common captive-bred species, but several large constrictors are restricted: the US Lacey Act bars interstate transport of some Burmese and reticulated pythons and anacondas, and several US states, Australian states and Indian law regulate or prohibit private keeping. Always confirm before buying.

The care reality

  • Get the adult size right before the hatchling. A retic or Burmese reaching four to six metres needs a custom enclosure and, by common safety practice, a second adult present at feeding.
  • Heat must be thermostat-controlled, unregulated heat mats and rocks cause severe burns, which is the most common vet presentation in pet snakes.
  • Feed frozen-thawed rodents, not live: a live rat left in an enclosure will injure or kill the snake.
  • Humidity drives shedding. Chronic stuck sheds and retained eye caps mean the enclosure is too dry.
  • Salmonella is carried by healthy reptiles; hand-washing is not optional, and reptiles are not suitable in homes with infants or immunocompromised people.
  • Lifespans of 20–30 years are normal.

Escaped and introduced populations

Populations outside its native range are recorded in Pinellas County, US, FL.

Laws differ by country, state and city, and they change. Confirm the current rule where you live before acquiring any animal.

Further reading

Merck Veterinary Manual, exotic petsAnimalLaw.infoBorn Free USA, state exotic pet lawsAnimal Diversity Web

Extreme Adaptations & Anatomy

Swallowing something wider than your head

The lower jaw of the Carpet Python is not fused at the chin, the two halves are joined by an elastic ligament and each side walks forward independently, while the whole jaw hangs off a mobile quadrate bone that adds reach. Backward-pointing teeth ratchet the meal in, and the windpipe can be pushed out of the mouth like a snorkel so the snake keeps breathing through a swallow that may take an hour.

Heat pits along the lip

A row of shallow pits runs along the lip scales of the Carpet Python. Each is a heat detector, and together they give a rough infrared picture of anything warmer than the surroundings, evolved separately from the facial pits of vipers, for the same reason. A python coiled at a bat cave mouth in pitch darkness is not guessing.

Tasting the air

The flicking tongue of the Carpet Python is not feeling anything, it is collecting. Scent molecules picked up on the forks are delivered to the Jacobson's organ in the roof of the mouth, and because the two tips sample slightly different points, the animal reads a left-right difference in concentration. That is how a trail is followed: not by smelling it, but by steering up its gradient.

Measured facts

  • Maximum recorded lifespan in the AnAge database: 19.6 years (acceptable data quality).
  • Vision: Heat-sensing lip pits pick out a possum in a dark roof space
  • Body covering: Scales

Further reading

Animal Diversity WebAnimal Diversity WebAnAge DatabaseOneZoom tree of life

References & Further Reading

Where the Carpet Python page comes from. Everything is named rather than linked, search any source by name to read the original.

Compiled from

A-Z Animals great_history, social_group_details
IUCN Red List Conservation status, population trend, threats
GBIF Taxonomy, range and occurrence records for Morelia spilota
iNaturalist Observations and look-alike comparisons

Further reading on snakes and lizards

  • Wallach, V., Williams, K. L. & Boundy, J. Snakes of the World: A Catalogue of Living and Extinct Species. CRC Press, 2014.
  • Uetz, P., Freed, P., Aguilar, R. & Hošek, J. (eds) The Reptile Database. online taxonomic database.
  • Vitt, L. J. & Caldwell, J. P. Herpetology: An Introductory Biology of Amphibians and Reptiles, 4th ed. Academic Press, 2013.

Named, not linked. The works above are the standard literature on snakes and lizards, further reading, not sources this page was copied from. Photographs are used under their individual licences and carry their own credit beside each image. If a source is missing or wrongly credited, tell us below.

Spotted a mistake?

Biospedia is compiled from public sources and written by people, so errors are possible, and wildlife science moves. If anything on this Carpet Python page is wrong, out of date or misleading, please tell us. It will be checked against the sources and fixed.

Report an error on this page

Writes to [email protected]: or see how corrections work, including photo credits, missing species and broken links.