Hermit crabs trace their origins back roughly 185 million years to the Early Jurassic period, when their ancestors first appeared in ancient seas. Today they occupy an extraordinary range of habitats across the globe, from deep ocean floors to tropical forest canopies, with species found on every continent’s coastlines except Antarctica. The split between “marine hermit crabs” and “land hermit crabs” masks a much richer story of repeated evolutionary reinvention, global dispersal driven by shifting sea levels, and ecological relationships that have shaped reef and shoreline communities for millions of years.
Ancient Marine Origins
The earliest hermit crab ancestors were fully marine animals. Fossil and morphological evidence shows that the superfamily Paguroidea appeared around 185 million years ago, during the Early Jurassic, and researchers have tracked a long sequence of changes in carapace shape from those earliest forms to the species alive today.1Geodiversitas. The evolution of hermit crabs (Crustacea, Decapoda, Anomura, Paguroidea) on the basis of carapace morphology: a state-of-the-art-report Those first hermit crabs were already doing what their descendants still do: occupying empty gastropod shells for protection, a strategy that proved so successful it persisted across geological eras while the animals themselves diversified into hundreds of species.
One of the most surprising findings in hermit crab evolution is that the lineage didn’t just produce hermit crabs. Molecular studies show that hermit crabs are actually the ancestral group from which king crabs, squat lobsters, and several other crab-like body forms evolved. King crabs, for instance, are nested within the hermit crab family tree and lost the shell-dwelling habit over an estimated 13 to 25 million years.2PubMed. Evolution of king crabs from hermit crab ancestors The crab-like body form evolved independently at least twice from separate symmetrical hermit crab ancestors, and the squat lobster form also arose multiple times.3PubMed. Hermit to king, or hermit to all: multiple transitions to crab-like forms from hermit crab ancestors So when you see a king crab at a seafood market, you’re looking at an animal whose ancestors were once tucked inside a snail shell on the seafloor.
Where Marine Hermit Crabs Live
Marine hermit crabs are found in every ocean, from shallow tide pools to abyssal plains thousands of meters deep. They’re especially diverse in tropical and subtropical waters, but temperate and even polar species exist. In the western Atlantic, common species like Pagurus pollicaris and Pagurus longicarpus inhabit bays and estuaries along the North American coast. In the Indo-Pacific, coral reef hermit crabs in the genus Calcinus are among the most abundant small invertebrates on shallow reefs. New Zealand alone hosts a distinctive hermit crab fauna with endemism reaching about 85 percent at 50 meters depth, meaning the vast majority of species found at that depth live nowhere else.4Journal of the Royal Society of New Zealand. The biogeography and bathymetric distribution of New Zealand hermit crabs (Crustacea: Anomura: Paguridea)
Depth matters a lot for determining which species you’ll find where. In New Zealand’s waters, shallow-water hermit crabs are highly endemic, while species living at greater depths tend to have wider geographic ranges. The deepest-dwelling families, like Pylochelidae, retain many ancestral body features and contribute very little to the endemic species list, suggesting they spread across ocean basins more easily than their shallow-water relatives. This pattern holds broadly: hermit crabs in the abyss often have cosmopolitan distributions, while intertidal and shallow subtidal species are more likely to be unique to a particular coastline.
Some marine species have remarkably specialized habitat requirements. The North Pacific hermit crab Discorsopagurus schmitti, for example, doesn’t use snail shells at all. It lives inside tubes built by polychaete worms on biogenic reefs. Its larvae stay near the bottom throughout development, apparently an adaptation to avoid being swept away from a rare and patchily distributed habitat.5Wiley Online Library. Hermit crab larval behavior: depth regulation in Discorsopagurus schmitti (Stevens)
The Move onto Land
Land hermit crabs belong to a single family, Coenobitidae, which includes the genus Coenobita (about 15 species) and the coconut crab (Birgus latro), the largest terrestrial arthropod on Earth. All of these animals evolved from marine ancestors, and they still carry a deep signature of that marine heritage: their larvae must develop in the sea. A female land hermit crab releases her eggs into the ocean, where the larvae go through several planktonic stages before settling and crawling ashore as tiny juveniles.6PubMed Central. Transition from sea to land: olfactory function and constraints in the terrestrial hermit crab Coenobita clypeatus
This obligatory marine larval phase means land hermit crabs can never stray too far from the coast. It also means that their geographic ranges are shaped by ocean currents, which carry larvae between islands and coastlines. Despite spending their adult lives on land, they are as dependent on the sea as salmon are on freshwater rivers.
The degree of terrestrial adaptation varies among Coenobita species. Some stay within a few meters of the waterline, while others wander hundreds of meters inland into coastal forests. When dehydrated, Coenobita species can tolerate losing up to about 28 percent of their body water, though this comes at a cost: oxygen transport in their blood becomes significantly impaired compared to more fully terrestrial crabs like Birgus.7Wiley Online Library. Hemolymph oxygen transport, acid‐base status, and hydromineral regulation during dehydration in three terrestrial crabs, Cardisoma, Birgus, and Coenobita They’re on land, but their physiology still shows they haven’t fully left the water behind.
Where Land Hermit Crabs Are Native
Land hermit crabs are native to two broad regions: the tropical Indo-Pacific and the tropical western Atlantic (including the Caribbean). The species commonly sold as pets in the United States, Coenobita clypeatus, is native to the Caribbean and its southern range extends only to the southern Caribbean and Trinidad and Tobago, not to the Brazilian coast as some older records once claimed.8Zootaxa. New taxonomic and distributional information on hermit crabs (Crustacea: Anomura: Paguroidea) from the Gulf of Mexico, Caribbean Sea, and Atlantic coast of South America In its native habitat, this species lives on sandy beaches and in littoral forest along the Caribbean coast, from Florida and Bermuda south through the island chain.
The Indo-Pacific is home to the majority of land hermit crab species. Three of the most widespread are Coenobita rugosus, C. brevimanus, and C. cavipes, which are abundant from East Africa through Southeast Asia to the Pacific islands. In places like Taiwan, all three species coexist on the same coastline but sort themselves by distance from the sea: C. rugosus stays closest to the shore, C. cavipes occupies middle ground, and C. brevimanus ventures farthest inland into the forest.9PLOS ONE. What are the sympatric mechanisms for three species of terrestrial hermit crab (Coenobita rugosus, C. brevimanus, and C. cavipes) in coastal forests? This spatial partitioning reduces competition among species sharing the same beach.
Other land species have more restricted ranges. Coenobita purpureus, a striking purple-clawed species, is believed to have originated in the Ryukyu Islands of southern Japan during the Pliocene epoch, later expanding to colonize the Ogasawara Islands during the late Pleistocene when lower sea levels may have created stepping-stone habitats.10Marine Ecology. Phylogeny and phylogeography of the land hermit crab Coenobita purpureus (Decapoda: Anomura: Coenobitidae) in the Northwestern Pacific Region Coenobita variabilis, used in Australian marine toxicity research, is native to tropical northern Australia.11PubMed Central. Assessing chronic toxicity of aluminium, gallium and molybdenum in tropical marine waters using a novel bioassay for larvae of the hermit crab Coenobita variabilis
How Sea Levels Shaped Their Ranges
One of the less obvious forces driving hermit crab distribution is sea-level change. During glacial periods over the last several hundred thousand years, falling sea levels dramatically altered the amount and configuration of shallow reef habitat available in the Pacific. Research on coral-associated hermit crabs in the genus Calcinus found that population expansions occurred at different times depending on where species lived on the reef. Subtidal species, which live below the low-tide line, expanded most recently (roughly 30,000 to 70,000 years ago), while intertidal species expanded much earlier, between 110,000 and 250,000 years ago.12Journal of Biogeography. Discordant population expansions in four species of coral‐associated Pacific hermit crabs (Anomura: Diogenidae) linked to habitat availability resulting from sea‐level change
The explanation is intuitive once you think about it: when sea levels drop, the total area of subtidal reef habitat shrinks drastically because the shallow reef platforms become exposed land. Intertidal habitat, which just shifts to the new shoreline, is less affected. When waters rose again, subtidal species boomed as vast areas of reef were re-submerged. This means the distribution patterns we see today in Pacific hermit crabs aren’t just about which larvae drifted where. They’re a record of how changing ocean levels created and destroyed habitat over hundreds of millennia.
The Shell Economy
Wherever hermit crabs live, their ecology is tied to the availability of empty gastropod shells. This is true on land and in the sea. Field surveys on the U.S. Atlantic coast found that hermit crabs occupied between 58 and 99 percent of all useable shells at study sites, and the remaining unoccupied shells were often already claimed by other animals like sipunculid worms. Larger hermit crab species tended to be in shells that were too small for them, while the smallest species had shells that fit well.13Journal of Experimental Marine Biology and Ecology. Gastropod shells: A potentially limiting resource for hermit crabs Shell shortage appears to limit the population size and maximum body size of larger species in many habitats.
This shell scarcity drives some remarkable behaviors. Hermit crabs form “vacancy chains,” where a group of crabs lines up by size around a newly available shell, and each one swaps into the next-largest shell in rapid succession. On land, Coenobita species sometimes use alternatives like broken coconut husks, bottle caps, or other human debris when gastropod shells are scarce. In the deep sea, at least one species has found a completely different solution to the housing problem.
Partnerships with Sea Anemones
Many marine hermit crabs form mutualistic partnerships with sea anemones, one of the most studied symbioses in the ocean. The anemone attaches to the hermit crab’s shell and uses its stinging cells to help defend against predators like octopuses and shell-crushing crabs. In return, the anemone gets a mobile substrate, better access to oxygenated water, and food scraps from its host’s meals.14Symbiosis. The partnerships between hermit crabs and sea anemones: an overview This partnership is widespread in both temperate and tropical waters, with multiple anemone lineages having independently evolved the ability to live on hermit crab shells.15PubMed. Origin and evolution of the symbiosis between sea anemones (Cnidaria, Anthozoa, Actiniaria) and hermit crabs, with additional notes on anemone-gastropod associations
In the deep sea, where empty gastropod shells are scarce, these partnerships can become even more intimate. A recently described species, Paracalliactis tsukisome, doesn’t just sit on a shell. It secretes and builds a shell-like structure called a carcinoecium, essentially constructing a custom-fit house for its hermit crab host. The anemone feeds partly on the crab’s feces and on organic particles drifting past, while the crab benefits by growing to larger body sizes than related species that lack the partnership. The host species, Oncopagurus monstrosus, reaches substantially larger sizes than other members of its genus, suggesting the expanded living space provided by the anemone is a genuine growth advantage.16PubMed Central. Mutualism on the deep-sea floor: a novel shell-forming sea anemone in symbiosis with a hermit crab This represents the most extreme end of the anemone-hermit crab partnership: the anemone has essentially replaced the gastropod shell entirely.
How Land Hermit Crabs Smell Their Way Around
One of the most dramatic adaptations land hermit crabs needed to make during their transition from sea to shore was reworking their sense of smell. In water, crabs detect dissolved chemical signals by flicking their antennules (small antenna-like structures) to draw water through an array of sensory hairs. On land, the physics change completely. Odor molecules diffuse much more rapidly through air than through water, so the “sniffing” strategy that works underwater actually hurts performance in air by pushing odor molecules away from the sensors rather than drawing them in.17PubMed Central. A tale of two antennules: the performance of crab odour-capture organs in air and water
Land hermit crabs in the genus Coenobita have solved this problem. Unlike many terrestrial crustacean lineages that have poor olfactory abilities, Coenobita species are effective air sniffers. They use modified antennules to capture airborne odors and can locate food and water sources from a distance.18PubMed Central. Scaling of olfactory antennae of the terrestrial hermit crabs Coenobita rugosus and Coenobita perlatus during ontogeny The antennule morphology in these species is distinctly different from their marine relatives, with structures adapted to passively capturing odor molecules from still air rather than actively pumping water. This is part of why Coenobita species are so successful on land compared to other crustacean groups that made the same transition: they can actually navigate their terrestrial environment using chemical cues, finding fruit, carrion, and fresh water on dark tropical beaches where vision is limited.
The Pet Trade and Wild Populations
Nearly every land hermit crab sold in pet shops worldwide was collected from the wild. There is no commercial-scale captive breeding of land hermit crabs, which means the pet trade is entirely extractive. A 2025 survey of 159 pet shops across Japan, Taiwan, and China found that Japan had the highest proportion of shops selling land hermit crabs at about 39 percent, followed by China and Taiwan at roughly 12 percent each.19ScienceDirect. Investigating the land hermit crab trade in physical pet shops across three Asian Countries: Implications for conservation management In the United States, millions of Coenobita clypeatus are sold annually at beach souvenir shops and pet stores, all of them wild-caught from Caribbean beaches.
The conservation concern is straightforward: without captive breeding to offset demand, every animal in the trade was removed from a wild population. We don’t have great data on what this does to wild populations over time, partly because land hermit crabs are difficult to census and partly because the countries doing the collecting often lack monitoring programs for these species. The researchers behind the Asian pet shop survey emphasized the need for cross-border collaboration to assess wild population health and strengthen trade regulations. In Japan, Coenobita purpureus is designated a natural monument in Okinawa, which gives it some legal protection, but enforcement is another matter. For the most widely traded species globally, no equivalent protections exist, and there’s a real gap between the scale of collection and our understanding of how much harvesting these populations can sustain.
If you keep land hermit crabs as pets, it’s worth knowing that your animal almost certainly came from a wild beach in the Caribbean or Indo-Pacific. The conditions in pet stores, particularly the small plastic containers and painted shells that are common in souvenir shops, bear essentially no resemblance to the humid, shell-rich, beach-adjacent forests where these animals evolved. Providing appropriate humidity, saltwater access, and unpainted natural shells goes a long way toward replicating the conditions their physiology is built for.