Cordyceps fungi grow wild on every continent except Antarctica, spanning habitats from the frozen alpine meadows of the Tibetan Plateau above 3,000 meters to the humid understories of tropical rainforests in Southeast Asia, Africa, and the Americas. The genus and its close relatives (now split across several genera including Ophiocordyceps) are parasites of insects and other arthropods, so they show up wherever their hosts live, which turns out to be an extraordinary range of ecosystems. The specific answer depends on which cordyceps species you mean, because the group includes over 400 described species, each with its own preferred host, altitude, climate, and soil.
The Tibetan Plateau and Himalayan Highlands
The most famous wild cordyceps is Ophiocordyceps sinensis, commonly called caterpillar fungus or yartsa gunbu in Tibetan. This species grows only at high altitudes, between about 3,000 and 5,000 meters above sea level, in the alpine meadows of the Qinghai-Tibetan Plateau and surrounding Himalayan ranges. It is found in just four countries: China, Nepal, Bhutan, and India, though Chinese populations account for the vast majority of its distribution.1BioMed Central (BMC / Chinese Medicine). Genomic analyses reveal evolutionary and geologic context for the plateau fungus Ophiocordyceps sinensis Within China, over 82% of production comes from three provinces: Sichuan, Tibet, and Qinghai.2PubMed Central. Future Habitat Shifts and Economic Implications for Ophiocordyceps sinensis Under Climate Change
The suitable habitat sits most densely in a band between 3,500 and 4,500 meters elevation. At these altitudes, the ground is cold for most of the year, often near permafrost zones, and the landscape is dominated by alpine grasses, sedges, and low-growing shrubs. The fungus parasitizes the underground larvae of ghost moths in the genus Thitarodes, which spend years burrowing through root-rich soil before pupating. When collectors find caterpillar fungus in late spring and early summer, only the slender fruiting body pokes above the soil surface, looking like a dark brown stick a few centimeters tall, while the mummified caterpillar remains buried below.
How the Caterpillar Fungus Reaches Its Host
For a long time, the exact route by which O. sinensis spores reach the underground larvae was unclear. Recent research has revealed something unexpected: the fungus appears to live as an endophyte inside alpine plants, quietly residing in leaf and root tissue without causing visible harm. A study at Mt. Gongga in Sichuan found that O. sinensis was present as an endophyte in over half of all sampled plant genera and about two-thirds of plant families at the collection site. Thitarodes larvae, which feed on roots in the soil, consume these plants and pick up the fungal cells along the way.3Fungal Ecology. The entomophagous caterpillar fungus Ophiocordyceps sinensis is consumed by its lepidopteran host as a plant endophyte Complementary work on wild ghost moth populations from different locations found high abundances of O. sinensis in the larvae’s gut, consistent with the idea that the caterpillars ingest the fungus through their diet rather than encountering free-living spores in the soil.4PubMed Central. Gut Bacterial and Fungal Communities of the Wild and Laboratory-Reared Thitarodes Larvae, Host of the Chinese Medicinal Fungus Ophiocordyceps sinensis on Tibetan Plateau
This plant-endophyte strategy is a clever piece of ecological engineering. Rather than releasing spores into the open air and hoping they drift down into the soil to find a larva, the fungus parks itself inside the very food supply its host depends on. It is also one reason caterpillar fungus has been so difficult to cultivate commercially: replicating that multi-step lifecycle involving plants, soil, and larvae at the right altitude and temperature is far harder than growing a mushroom on grain.
Tropical Rainforests and the Zombie-Ant Fungi
At the opposite end of the altitude spectrum, a large group of Ophiocordyceps species thrive in tropical forests, where warmth and humidity stay high year-round. These are the so-called “zombie-ant fungi,” and they are widespread across tropical forests on multiple continents, with relatively few reports from temperate ecosystems.5PubMed Central. Zombie-ant fungi across continents: 15 new species and new combinations within Ophiocordyceps. I. Myrmecophilous hirsutelloid species A single major taxonomic survey described 15 new species in one study alone, drawn from specimens collected in tropical forests in Thailand, Brazil, Australia, Japan, Ghana, and elsewhere. The true diversity is almost certainly much higher, since tropical forest floors are chronically under-collected by mycologists.
The behavioral manipulation these fungi perform is specific to the species involved. Some force infected ants to climb understorey shrubs before dying. Others cause ants to bite down on leaves or twigs at a precise height above the forest floor, locking their jaws in a “death grip” that holds the cadaver in place while the fungus fruits from the ant’s head. Still others manipulate canopy-dwelling ants to descend to the base of trees. In every case, the goal is the same: position the dead ant’s body where temperature, humidity, and airflow favor spore dispersal to new hosts.
Studies in Florida have shown that even in subtropical settings, the establishment of infected ant cadavers is not random. New cadavers were preferentially found on epiphytic bromeliads, in spots with more canopy openness, and during summer weather conditions involving the right mix of temperature, humidity, and precipitation.6Functional Ecology. Natural history and ecological effects on the establishment and fate of Florida carpenter ant cadavers infected by the parasitic manipulator Ophiocordyceps camponoti‐floridani The fungus effectively selects its microhabitat through the ant it controls, “choosing” spots where incident light and moisture give the fruiting body the best chance of survival.
Temperate and Boreal Forest Floors
Cordyceps species in temperate regions do not make headlines the way their tropical and alpine relatives do, but they are common residents of forest soils and leaf litter. A survey across multiple forest types in Poland found Cordyceps among four entomopathogenic fungal genera isolated from both leaf litter and soil layers down to 20 centimeters deep. In general, entomopathogenic fungi were denser in the leaf litter layer than in the soil below it, and the uppermost soil layer (the top five centimeters) harbored more of these fungi than deeper horizons.7PubMed Central. Abundance of Entomopathogenic Fungi in Leaf Litter and Soil Layers in Forested Habitats in Poland
A separate study in the Changbai Mountain range found that broad-leaved forests supported the highest diversity of entomopathogenic fungi, with the family Cordycipitaceae (which includes Cordyceps sensu stricto) showing a strong preference for those habitats over conifer-dominated stands. Soil chemistry mattered: the abundance of Cordyceps was positively correlated with soil nitrogen and phosphorus levels but negatively correlated with sulfur content. Moisture and the diversity of shrub species in the understory were also key drivers.8PubMed Central. Vertical Zonal Distribution Patterns of Entomopathogenic Fungi in the Changbai Mountain
For anyone hoping to spot a wild Cordyceps militaris in a North American or European forest, the practical upshot is that deciduous woodlands with rich, moist, nitrogen-heavy soil and a thick leaf litter layer are the best places to look. The fruiting bodies are small, bright orange clubs that emerge from buried insect pupae, typically showing up in late summer through fall. They are easy to overlook unless you are scanning the ground closely.
An Enormous Range of Hosts
Part of the reason Cordyceps fungi occupy such varied habitats is that they parasitize an enormous range of arthropod hosts. The genus in its broad historical sense (Cordyceps sensu lato) has over 400 described species recorded on numerous orders of arthropods. Beetles and moths are the two biggest host groups: out of an estimated 200 Cordyceps species attacking beetle and moth hosts, researchers have documented 92 with confirmed host species identifications. Cordyceps militaris alone has been recorded on hosts spanning two insect orders, 13 families, and 32 species.9Journal of Mycology. Coleopteran and Lepidopteran Hosts of the Entomopathogenic Genus Cordyceps sensu lato
Beyond beetles and moths, various species parasitize ants, wasps, cicadas, spiders, and other soil-dwelling arthropods. Cicada nymphs are particularly important hosts in East Asian temperate forests, where several Cordyceps species fruit from the nymph’s body after it has spent years underground feeding on tree root sap. The host determines the habitat: a Cordyceps that attacks canopy ants will fruit in the canopy; one that attacks soil-dwelling beetle larvae will fruit at ground level; one that attacks ghost moth caterpillars at 4,000 meters will only be found on cold alpine meadows. The fungus follows the insect.
When Cordyceps Jumps Kingdoms
About 20 of the roughly 300 described Cordyceps species do something no one expected: they parasitize not insects, but underground truffles in the genus Elaphomyces (commonly called hart’s truffles or deer truffles).10PubMed. Interkingdom host jumping underground: phylogenetic analysis of entomoparasitic fungi of the genus cordyceps This is one fungus parasitizing another fungus, which is unusual enough. But the evolutionary story behind it is stranger still.
Phylogenetic analysis showed that truffle-parasitic Cordyceps species form a tight group with cicada-parasitic species. The most parsimonious explanation is that the ancestor of this whole clade parasitized cicadas. Since cicada nymphs and Elaphomyces truffles both live underground in forest soils, often in close proximity, the fungus apparently jumped from one underground host to another, crossing the boundary between the animal and fungal kingdoms entirely. This appears to be the first clearly demonstrated case of interkingdom host jumping in an endoparasitic fungus.11Molecular Biology and Evolution. Interkingdom Host Jumping Underground: Phylogenetic Analysis of Entomoparasitic Fungi of the Genus Cordyceps
For foragers, this means that some of the Cordyceps fruiting bodies you might encounter in temperate woodlands are not emerging from an insect at all, but from a buried truffle. These truffle-parasitic species tend to show up in forests with mature oak, beech, or pine trees where Elaphomyces is common, and their club-shaped fruiting structures break through the soil surface in a way that can easily be confused with insect-parasitic species unless you dig up the base.
Why Altitude, Temperature, and Permafrost Matter for O. sinensis
The distribution of caterpillar fungus is not just “high altitude” in a vague sense. Modeling work has identified four variables that together explain about 90% of the variation in where O. sinensis occurs: altitude, precipitation during the warmest quarter, mean temperature during the coldest quarter, and herbaceous vegetation cover.2PubMed Central. Future Habitat Shifts and Economic Implications for Ophiocordyceps sinensis Under Climate Change The fungus is more productive under colder conditions and grows in close proximity to areas likely to have permafrost.12PubMed Central. The demise of caterpillar fungus in the Himalayan region due to climate change and overharvesting
This cold-dependency creates a narrow ecological window. The fungus needs soil cold enough for its lifecycle but not so permanently frozen that the ghost moth larvae cannot survive. It also needs enough summer moisture for the larvae’s plant food to grow and for the fruiting body to emerge. Tibetan harvesters know these constraints intimately: they look on north-facing slopes with particular grass species, at elevations where snowmelt comes late enough that the ground is still damp in May and June. A meadow 500 meters lower, or on a warmer south-facing slope, will typically produce nothing.
Species distribution modeling suggests that the O. sinensis species complex could potentially extend its range from the southeastern Qinghai-Tibet Plateau to the Xuefeng Mountains, forming a kind of biodiversity corridor without an obvious isolating barrier.13PubMed Central. Molecular phylogenetics of the Ophiocordyceps sinensis-species complex lineage (Ascomycota, Hypocreales), with the discovery of new species and predictions of species distribution However, this theoretical range and the realized one are different things. The fungus depends not just on the right climate but on the presence of its specific host larvae and the right plant communities for the endophytic stage described earlier.
Climate Change and Overharvesting Are Shrinking the Range
Wild caterpillar fungus populations have been declining, and the cause is a combination of overharvesting and warming temperatures. Statistical models confirm that O. sinensis is more productive under colder conditions, and with significant warming already underway across much of its high-altitude range, wild populations have been negatively affected.12PubMed Central. The demise of caterpillar fungus in the Himalayan region due to climate change and overharvesting The economic stakes are enormous: a kilogram of top-grade caterpillar fungus can sell for tens of thousands of dollars, making it one of the most expensive biological commodities on Earth. That price drives intense collection pressure across the Tibetan Plateau and Himalayan highlands every spring.
Future climate projections paint a worrying picture. Under moderate to severe warming scenarios, range shifts are expected, with significant shrinkage of suitable habitat in the Tianshan and Kunlun mountain ranges and across the southwestern Qinghai-Tibet Plateau by mid-century.14PubMed Central. Chinese caterpillar fungus (Ophiocordyceps sinensis) in China: Current distribution, trading, and futures under climate change and overexploitation The suitable zone is expected to push to higher elevations, but mountains have tops: above a certain point, there is no more meadow to move into, just rock and ice. Under the most optimistic emissions scenario, the distribution pattern stays roughly stable. Under more pessimistic ones, the habitat contracts substantially.
The harvesting picture is more variable than media narratives suggest, though. A study in Nepal’s Barun Valley, inside Makalu-Barun National Park, found that the alpine harvesting sites were remarkably free of garbage and environmental damage. Harvesters packed fuelwood in from lower elevations, and no damage to shrub juniper or dwarf rhododendron was found within the alpine collecting zones, in contrast to degraded sites reported elsewhere in Nepal. The researchers attributed this to the valley’s remoteness, low human density, and high moisture levels, which gave the ecosystem resilience and healing capacity.15HIMALAYA. Impacts of Yartsa Gunbu Harvesting on Alpine Ecosystems in the Barun Valley, Makalu-Barun National Park, Nepal The takeaway is that harvesting impacts depend heavily on local conditions: access, population pressure, and how carefully collection is managed all matter.
Finding Wild Cordyceps Outside Asia
People who hear about cordyceps often assume the fungi are exclusively Asian, but that is far from accurate. Cordyceps militaris, the most commonly cultivated species, grows wild across much of the Northern Hemisphere, including North America and Europe. It fruits from buried moth and beetle pupae in forested soils, and experienced mushroom hunters in the eastern United States, Scandinavia, and the British Isles report finding it in deciduous and mixed woodlands from late summer into autumn. The bright orange clubs, typically a few centimeters tall, stand out against brown leaf litter once you train your eye.
The zombie-ant Ophiocordyceps species extend into subtropical parts of the Americas, as the Florida research demonstrates. Other Cordyceps relatives parasitize insects in Australian eucalyptus forests, African woodlands, and South American cloud forests. The global distribution of the broader group essentially mirrors the global distribution of insects, which is to say it covers almost every terrestrial ecosystem on Earth. What varies is species identity, host preference, and how conspicuous the fruiting bodies are.
For practical purposes, if you want to find wild Cordyceps in a temperate forest, focus on moist, well-shaded areas with thick leaf litter and rich soil. Look near fallen logs and in spots where the soil stays damp. Scan at ground level, since the fruiting bodies are small and easy to miss from standing height. Late summer through early fall, after warm rains, tends to be the most productive time. The truffle-parasitic species are harder to find because their fruiting bodies can be partially buried, and digging is the only way to confirm the host. In tropical forests, the ant-parasitic species are found by looking for dead ants fixed to the undersides of leaves, typically at about knee height on understorey vegetation, with slender stalks emerging from the ant’s body.
The sheer ecological range of Cordyceps, from permafrost-adjacent meadows at 5,000 meters to steamy lowland forests at sea level, from underground truffles to canopy-dwelling ants, makes them one of the most geographically and ecologically versatile groups in the fungal kingdom. Where there are insects, there are almost certainly cordyceps not far behind.