Hermit Crabs — The Crabs That Live in Borrowed Houses
Hermit crabs are anomuran crustaceans with a soft, curled abdomen that they protect by living inside empty shells, usually sea snail shells. The superfamily Paguroidea contains roughly 1,100 to 1,200 species, from millimeter-scale reef hermits to land hermit crabs the size of a coconut, and most are nocturnal, omnivorous scavengers.
They are not true crabs. Like porcelain crabs and king crabs, they are false crabs, and their biggest problem in life is real estate: every time a hermit crab grows, it needs a bigger shell, and good shells are always in short supply.
Why do hermit crabs live in shells?
A hermit crab’s front half is armored like any crab, but its abdomen is long, soft and twisted to the right so that it fits the spiral of a snail shell. The last pairs of legs and the tail appendages are modified to grip the inside of the shell, so a hermit crab can brace itself and be almost impossible to pull out.
Most species use gastropod shells, but others live in tusk shells, bivalves, hollow wood, sponges or holes in coral. Some even let the shell be replaced by a growing sponge or anemone (see our hermit crab and sea sponge story). When natural shells are scarce, hermit crabs use bottle caps, cans and plastic debris, and a 2024 study found 10 of 16 land hermit crab species using artificial shells somewhere in their range.

How do hermit crabs swap shells?
Shell-swapping is one of the best-studied social behaviors in invertebrates. When a crab finds an empty shell that is too big for it, it may wait beside it, sometimes for up to about 8 hours. Other crabs arrive and line up in size order, a queue that can reach about 20 individuals. When a crab that fits the new shell arrives and moves in, everyone in line trades up in quick succession, each crab taking the shell just vacated by the one in front.
Researchers call this a vacancy chain. Randi Rotjan and colleagues documented it in the Caribbean land hermit crab Coenobita clypeatus in Belize, and it has also been seen in marine species. Not all trading is polite: hermit crabs also fight, rapping their shells against a rival’s until it gives up its home.
How many hermit crabs are there, and how are they classified?
Hermit crabs make up the superfamily Paguroidea within the infraorder Anomura, the same “false crab” branch that holds porcelain crabs, squat lobsters and king crabs. Species counts differ with the edition you read: the main reference checklist, the annotated catalogue of the world’s anomurans by P. A. McLaughlin and colleagues (2010), has been summarized both as about 1,100 species in 120 genera and as about 1,200 species in 148 genera, while popular accounts that count only shell-carrying forms say “over 800.” Whichever figure you use, new species are still described every year, especially from deep water and Indo-Pacific reefs.
The World Register of Marine Species now recognizes about nine families. The biggest are the Paguridae, with about 76 genera, and the Diogenidae, often called the “left-handed” hermits because the left claw is usually the larger one. The Coenobitidae contains the land hermit crabs and the coconut crab. The Calcinidae, named in 2017, includes the familiar reef genus Calcinus. Smaller families, among them the Parapaguridae and Pylochelidae, live mostly in deep water. Molecular studies have also shown that king crabs (Lithodidae) are hermit crabs that gave up the shell, so some classifications place them inside Paguroidea. Our false crabs page covers that story in more detail.
A body built around a borrowed shell
Seen out of its shell, a typical hermit crab looks lopsided. The head and thorax are hardened like any decapod’s, but the abdomen is soft, poorly calcified and coiled, usually to the right, so it fits the spiral of a right-handed snail shell. The small appendages on the abdomen are reduced on one side, and the hooked tail parts at the very tip clamp onto the central column of the shell, the columella.
The claws are often unequal. In many species the larger claw doubles as a door: when the crab pulls back inside, it folds that claw across the opening like a lid. The first two pairs of walking legs do the walking, while the shorter last pairs stay inside the shell and help hold it. Because the whole design depends on a good-fitting home, a crab in a cramped shell grows more slowly, and one that cannot pull fully inside is easier for predators to catch.
The family Pylochelidae shows what hermit crabs may have looked like before the coiled body evolved. These “symmetrical hermit crabs” have a straight abdomen with paired appendages on both sides and partly hardened plates. They usually do not use snail shells at all. Instead they back into rotting wood, stones, tusk shells, living sponges or pieces of bamboo, sealing the entrance with their claws. Most live between about 200 and 500 meters deep, and the family is so cryptic that only about 60 specimens had been collected before a 1987 monograph described about 400 more.
Land hermit crabs: a sea animal that moved ashore
Most hermit crabs are marine, but one family made the move to land. The genus Coenobita holds roughly 16 to 17 land hermit crab species, depending on the source; most live in the Indo-Pacific, with one in West Africa, one on the Atlantic coast of the Americas (the Caribbean hermit crab, C. clypeatus) and one on the Pacific coast of the Americas (the Ecuadorian hermit crab, C. compressus). Their closest relative is the coconut crab, which is covered on our false crabs page.
Living on land changed their equipment. Land hermit crabs breathe air through modified gills, and they keep the gills damp by carrying a small reserve of water inside the shell, which is why a land hermit crab without a good shell dries out quickly. They still need both fresh and salt water. The Caribbean hermit crab, also called the soldier crab or purple pincher after its large purple left claw, lives in coastal forest, can be found well inland under tree roots, and eats plant matter, overripe fruit, carrion and even the droppings of other animals.
Smell had to be rebuilt as well. Underwater, crustaceans detect dissolved chemicals; in air, they need to catch molecules floating on the wind. Research on C. clypeatus by K. C. Groh-Lunow and colleagues (2014) found that each olfactory hair on the crab’s antennule houses about 300 nerve endings and that the crabs rely on a family of receptors called ionotropic receptors, the same family insects use for some smells. Land hermit crabs evolved airborne smell independently, which is one reason they find fallen fruit and dead animals so quickly.
Breeding still ties them to the sea. A female carries her eggs under her abdomen inside the shell until they are ready to hatch, then walks to the shoreline and releases them into the water. In the Caribbean these mass spawning walks, known locally as “washing,” happen on certain nights, usually around August. The larvae drift in the plankton before the young crabs settle and come ashore in tiny shells.
Why a used shell is worth more than a new one
For a land hermit crab, a freshly emptied snail shell is not the best home. Over years of occupation, land hermits chemically and physically carve out the inside of their shells, thinning the inner walls and removing part of the central column. That remodeling makes the shell lighter and roomier, and a remodeled shell can be passed from crab to crab for generations. This is why some land hermit crabs can live where the snails that made their shells are now locally extinct. The catch is that a large land hermit cannot easily survive in an unremodeled shell, so its only source of a good home is another crab.
That dependency has shaped their behavior. In experiments by L. Valdes and M. E. Laidre (2019), terrestrial hermit crabs were overwhelmingly drawn to the scent of a dead member of their own species, forming large groups around the site, much larger than around the scent of other dead animals. Closely related marine hermit crabs did not show that preference, which fits the idea that on land, a dead neighbor is the main way a remodeled shell becomes available.
The same team has shown how much thought goes into shell choice. In a 2020 study, J. Krieger, M. K. Hörnig and M. E. Laidre used X-ray scanning and 3D printing to make copies of preferred shells for Ecuadorian hermit crabs, then altered their outer shape. When a crab was isolated in a chamber it could leave only with a shell of the right external shape, crabs chose an otherwise less preferred shell that let them escape. The authors say it is still unclear whether the crabs reasoned their way out or learned by trial and error.
Shell fights: rapping, pulling and ganging up
When no suitable empty shell exists, hermit crabs take one. A shell fight usually begins with a short contest of signals: the attacker and defender raise their walking legs, present their claws or push each other, and most encounters end there within seconds. If the defender pulls into its shell instead, the attacker grips the defender’s shell, turns it over, and inserts its claws into the opening. It then sways from side to side over the opening and begins “rapping,” jerking its own shell down onto the defender’s in quick bursts that can be loud enough to hear.
After enough raps, the defender may come out completely. The attacker inspects the empty shell and switches into it, usually keeping a grip on its old shell in case it wants to switch back. The loser takes whichever shell is left. Hermit crabs also gang up: several individuals may pry a well-housed crab out of a desirable shell, then compete among themselves for it, and a crab left without any shell is often eaten. Fights are mostly between members of the same species, but cross-species fights happen too, and they are rare when crabs differ a lot in size.
Do hermit crabs feel pain?
Hermit crabs have become a key test animal in the debate over pain in invertebrates, because their shells give researchers a valued resource to measure against. In a 2009 study at Queen’s University Belfast, R. W. Elwood and M. Appel delivered small electric shocks to the abdomens of hermit crabs inside their shells. Only shocked crabs left their shells, and they were more likely to abandon shells of a less preferred type. Crabs that received shocks below the level that made them leave were quicker to approach and move into a new shell when one was offered, which the authors read as memory of an unpleasant experience.
A follow-up by the same researchers found that crabs in preferred shells needed stronger shocks before they left, suggesting they trade off avoiding harm against keeping a good home. Elwood argues that such trade-offs are hard to explain as simple reflexes. Other scientists remain skeptical, and Elwood himself notes that the experiments are consistent with pain rather than proof of it. The work formed part of the evidence behind the United Kingdom’s recognition of decapod crustaceans as sentient beings in the Animal Welfare (Sentience) Act 2022.
Plastic shells and plastic traps
Human trash now shapes hermit crab housing. A 2024 study by Z. Jagiello, Ł. Dylewski and M. Szulkin searched social media photos and identified 386 hermit crabs using artificial shells, about 85 percent of them plastic bottle caps. They found the behavior in 10 of the world’s 16 land hermit crab species they recognized, on tropical coasts around the world. The authors suggested lightness, odor, camouflage on littered beaches or signaling might explain why crabs pick these shelters, but said more research is needed to know whether it helps or harms them.
Plastic can also kill. Containers lying on beaches act as pitfall traps: crabs climb in and cannot get back out up the slippery walls. A dead crab then gives off the same scent that attracts others looking for a shell, drawing more crabs into the trap. In a 2020 study, J. L. Lavers and colleagues estimated that about 61,000 strawberry hermit crabs (Coenobita perlatus) die this way each year on Henderson Island in the South Pacific and about 508,000 on the Cocos (Keeling) Islands in the Indian Ocean. Beach cleanups that remove open containers make a direct difference for these animals.
Lodgers, partners and passengers
A hermit crab’s shell is a small ecosystem. Inside, some shells host commensal ragworms (nereid polychaetes) and small porcelain crabs that share the crab’s food and may help keep the shell clean; both can sometimes be found in the same shell. The North Pacific hermit crab Pagurus hemphilli tolerates an amphipod of the genus Liljeborgia whose colors match the crab and the red crust algae growing on its shell, while other hermit crab species tried to eat the same amphipod.
Outside, barnacles, slipper snails and hydroid colonies settle on the shell. Some are a burden that adds weight or upsets balance, and some crabs remove them. Others help: sea anemones placed on the shell sting would-be predators, and some crabs move their anemones to each new shell or steal anemones from other crabs (our anemone crab page covers a porcelain crab that lives in anemones instead). In some places, encrusting bryozoans grow over hermit crab shells in a close partnership, forming rounded structures called bryoliths.
Some hermit crabs also gather in groups. The Caribbean reef species Clibanarius tricolor forms dense day-time clusters, often with the same individuals day after day, then breaks up in the late afternoon. Observers recorded the groups starting to move around 4 p.m. and dispersing by about 5 p.m., although this group behavior disappeared under laboratory conditions.
An ancient partnership with shells
Hermit crabs are old. The oldest known member of the superfamily, Schobertella hoelderi, comes from the earliest Jurassic of Germany, close to 200 million years ago. Fossils of hermit crabs found inside gastropod shells go back to the Late Cretaceous, but before that at least some hermits used other homes: a specimen of Palaeopagurus vandenengeli from the Lower Cretaceous Speeton Clay of Yorkshire, England, was found in an ammonite shell, and a hermit crab from the Upper Jurassic of Russia was also preserved in an ammonite.
What do hermit crabs eat?
Hermit crabs are omnivorous scavengers. Marine species pick algae, detritus, dead animals, leftover food and microorganisms off the bottom, and some filter feed with their mouthparts. Land hermit crabs eat fruit, plant matter and carrion. Most are active mainly at night, which is when divers see them streaming across sand and rubble.
Which hermit crabs carry anemones?
Some larger marine hermit crabs place sea anemones on their shells. The anemone’s stinging tentacles deter octopuses and fish, and the anemone gets scraps from the crab’s meals and a free ride. Some crabs actively move their anemones to a new shell when they upgrade, and some even steal anemones from other crabs. Read more in anemones and hermit crabs.
How long do hermit crabs live?
It depends on the species and conditions. Small marine reef hermits sold for aquariums typically live a few years. Pet land hermit crabs can live 15 years or more with proper care; the Caribbean hermit crab has a confirmed lifespan of at least 12 years, and owners have reported pets living about 32 to 45 years. Large land species such as Coenobita brevimanus have been reported living for decades. The old claim that all hermit crabs live 30–70 years is not accurate.
| Type | Example | Typical setting |
|---|---|---|
| Small reef hermits | Blue-leg, scarlet, dwarf zebra hermits | Reef tanks, shallow reefs |
| Large marine hermits | Dardanus, Pagurus species | Reefs, sand flats, cold seas |
| Land hermits | Coenobita clypeatus, C. compressus | Tropical shores, pet trade |
| Shell-less relative | Coconut crab (Birgus latro) | Indo-Pacific islands |
How do hermit crabs reproduce?
A female is ready to mate shortly before she molts. The male may hold onto her shell for hours or days; when she is ready, both crabs lean partly out of their shells to mate. The female carries the fertilized eggs on her pleopods inside the shell. Even land hermit crabs must return to the sea to release the larvae, which hatch as zoeae, develop in the plankton, and then settle as a megalopa that looks for its first tiny shell. See the crab life cycle for the general pattern.
Are hermit crabs good for reef tanks?
Small hermit crabs are a staple of reef cleanup crews because they graze algae and eat leftover food. They come with two caveats. First, hermits kill snails to take their shells, so always add a supply of empty shells a size larger than the crabs you have. Second, larger species such as Dardanus are predatory and can eat snails, small crabs and even sleeping fish. Choose small, reef-safe species, keep numbers modest, and do not rely on them alone for algae control; pair them with snails and an emerald crab if bubble algae is the problem. For wild habitats, see hermit crab habitat.
How many species of hermit crabs are there?
The superfamily Paguroidea contains roughly 1,100 to 1,200 species in 120 to 148 genera, depending on the checklist summary used; some popular sources give “over 800.”
Are hermit crabs real crabs?
No. They are anomurans, related to porcelain crabs and king crabs, not true crabs (Brachyura). See are hermit crabs crustaceans?
Why do hermit crabs change shells?
They outgrow them. A hermit crab must move to a larger shell as it grows, and it may also switch to a lighter or better-shaped shell.
What is a hermit crab vacancy chain?
A queue of crabs lined up from largest to smallest beside an empty shell. When the right crab moves in, each crab in line trades into the shell vacated ahead of it.
How long do hermit crabs live?
Small reef hermits usually live a few years. Pet land hermit crabs can live 15+ years with good care, and the oldest known pet reached about 45.
What do hermit crabs eat?
Algae, detritus, dead animals and leftover food in the sea; fruit, plants and carrion on land.
Do hermit crabs kill snails?
Some do, especially when shells are scarce. Providing empty shells reduces this in aquariums.
Can hermit crabs live without a shell?
Not safely. Without a shell the soft abdomen is exposed to predators and drying out.
- Wikipedia: Hermit crab (species counts, vacancy chains, lifespan, reproduction).
- Rotjan, R.D., Chabot, J.R. & Lewis, S.M. (2010). Social context of shell acquisition in Coenobita clypeatus hermit crabs. Behavioral Ecology.
- Jabr, F. (2012). The life-or-death shell game of hermit crabs. Scientific American.
- McLaughlin, P.A. et al. (2010). Annotated checklist of anomuran decapod crustaceans of the world. Raffles Bulletin of Zoology, Supplement 23 (species and genus counts).
- Wikipedia: Coenobita; Caribbean hermit crab; Pylochelidae (land hermit distribution, washing, symmetrical hermit crabs).
- Groh-Lunow, K.C. et al. (2014). Expression of ionotropic receptors in terrestrial hermit crab’s olfactory sensory neurons. Frontiers in Cellular Neuroscience. doi:10.3389/fncel.2014.00448
- Valdes, L. & Laidre, M.E. (2019). Scent of death: evolution from sea to land of an extreme collective attraction to conspecific death. Ecology and Evolution. doi:10.1002/ece3.4912
- Krieger, J., Hörnig, M.K. & Laidre, M.E. (2020). Shells as ‘extended architecture’. Animal Cognition. doi:10.1007/s10071-020-01419-7
- Elwood, R.W. & Appel, M. (2009). Pain experience in hermit crabs? Animal Behaviour. doi:10.1016/j.anbehav.2009.01.028; Appel & Elwood (2009), Applied Animal Behaviour Science. doi:10.1016/j.applanim.2009.03.013
- Jagiello, Z., Dylewski, Ł. & Szulkin, M. (2024). The plastic homes of hermit crabs in the Anthropocene. Science of the Total Environment. doi:10.1016/j.scitotenv.2023.168959
- Lavers, J.L. et al. (2020). Entrapment in plastic debris endangers hermit crabs. Journal of Hazardous Materials. doi:10.1016/j.jhazmat.2019.121703
Blane Perun has been exploring Earth’s oceans and marine life for over 25 years. Founder of TheSea.Org in 1999, underwater photographer, coral aquaculture pioneer, and explorer of 80+ countries.
About Blane Perun →