Why Hermit Crabs Burrow and What to Do About It

Hermit crabs burrow for several reasons, but the most important one is molting. When a hermit crab sheds its exoskeleton to grow, it digs beneath the substrate to protect its soft, vulnerable body during a process that can take weeks or even months. Burrowing also serves everyday purposes like regulating temperature, maintaining moisture, relieving stress, and simply sleeping.

Molting Is the Primary Reason

Hermit crabs grow by shedding their hard outer skeleton and forming a new, larger one underneath. This process, called molting, leaves them extremely vulnerable. Their soft abdomen, which is normally their most exposed body part even with a shell, becomes even more defenseless during this time. Burrowing underground gives them a dark, humid, enclosed space where they’re hidden from other crabs and potential threats while their new exoskeleton slowly hardens.

A molting hermit crab may stay buried for anywhere from a few weeks to three months depending on its size. Larger crabs take longer. During this time, the crab will shed its old exoskeleton, eat it to reclaim the calcium and minerals, and gradually harden its new skeleton. The crab is essentially immobile and helpless for much of this period, which is why being underground is a survival strategy rather than a preference.

This is also why disturbing a buried hermit crab is genuinely dangerous. Research on hermit crabs that lose their protective shell (their closest analog to being exposed mid-molt) shows that naked crabs are extremely vulnerable to damage and exhibit stress responses similar to surviving a life-threatening predator attack. Crabs that experienced sudden shell loss spent significantly more time hiding afterward, with behavioral effects lasting more than 48 hours. Digging up a molting crab can interrupt the process, cause fatal stress, or leave the crab unable to complete the molt successfully.

Stress, Sleep, and Temperature Control

Not every buried crab is molting. Hermit crabs are nocturnal, and many will partially or fully burrow during the day to sleep in a cool, dark, humid microenvironment. The substrate acts as insulation, keeping conditions more stable than the surface of the enclosure where temperatures and humidity can fluctuate.

Stress is another common trigger. A hermit crab that has recently been brought home, moved to a new enclosure, or experienced a disturbance (loud noises, handling, conflict with tankmates) may burrow to feel safe. In the wild, burrowing into sand is one of their few defensive options beyond retreating into their shell. Crabs exposed to threatening experiences show increased hiding behavior that can persist for days, so a stressed crab may stay buried longer than you’d expect.

Humidity plays a big role too. Hermit crabs breathe through modified gills that need to stay moist. Burying themselves in damp substrate keeps those gills from drying out, especially if the enclosure’s surface humidity drops. If you notice your crabs burrowing frequently outside of molting, it can be a sign that surface conditions in the tank are too dry, too warm, or too exposed.

How to Tell Molting From Normal Burrowing

The difference usually comes down to duration and behavior beforehand. A crab that’s about to molt often shows signs in the days leading up: spending more time near the water dishes, eating and drinking more than usual, becoming less active, and sometimes developing a slightly glazed or ashy appearance on its exoskeleton. When it finally burrows, it goes deep and stays there.

A crab that’s just sleeping or de-stressing typically burrows shallowly, sometimes with part of its shell still visible, and resurfaces within a day or two. If a crab has been underground for more than a week or two with no sign of activity at the surface, it’s almost certainly molting and should be left completely alone.

Substrate That Supports Safe Burrowing

Because burrowing is essential to hermit crab survival, the substrate in their enclosure needs to be deep enough and the right consistency for them to dig tunnels that won’t collapse. The general rule is that substrate should be at least three times deeper than the height of the largest crab in the tank. For most adult hermit crabs, that means 6 inches or more of substrate.

The best mix for structural integrity is roughly 5 parts play sand to 1 part coconut fiber. This ratio holds its shape when the crab digs, similar to the consistency of wet sandcastle sand. Pure sand tends to collapse, and pure coconut fiber doesn’t hold tunnels well either. The substrate should be moist enough to hold its shape when you squeeze a handful but not so wet that water drips out. This creates the humid underground environment the crab needs for both molting and gill health.

If your substrate is too shallow, too dry, or too loosely packed, crabs may attempt to molt on the surface, which dramatically reduces their chances of surviving the process. They may also burrow and have their tunnel collapse on them. Getting the substrate right is one of the single most important things you can do for a pet hermit crab’s long-term health.

What to Do When Your Crab Is Buried

The short answer: nothing. Leave it alone. Don’t dig it up to check on it, don’t rearrange the tank, and don’t let other crabs or tank activity disturb the area where it burrowed. If you have multiple crabs and one is molting, some keepers use a gentle barrier (like a cut plastic bottle placed over the spot) to prevent tankmates from digging down to the molting crab. Other crabs can sometimes detect a freshly molted crab and will attack or eat it for the minerals in its shed exoskeleton.

Keep the enclosure’s temperature and humidity stable during this time. Avoid misting directly over the burial spot or making sudden changes to the habitat. A crab that surfaces after molting will be noticeably larger, often with brighter coloring, and may immediately start looking for a bigger shell. Having a selection of slightly larger shells available when it emerges helps it transition smoothly.