Crabs walk sideways because of how their legs are built, not because their bodies are too flat to go forwards. The joints bend mostly side to side, so stepping sideways lets each leg take a long, easy stride. The legs on the side the crab is heading toward pull, the legs on the trailing side push, and touch sensors in the feet keep all eight in step. The gait is no handicap: crabs travel about as cheaply as similar-sized animals that walk forwards.1Journal of Experimental Biology. Fiddler crab exercise: the energetic cost of running sideways And a few crabs with differently built legs do walk forwards, which shows that the body, rather than habit, shapes the gait.
Why Crab Legs Are Built to Step Sideways
A crab leg bends at several joints, much like a jointed drinking straw.2PubMed Central. Skeletal adaptations for forwards and sideways walking in three species of decapod crustaceans In crabs and their relatives, the joints that move in the animal’s usual walking direction have the widest swing. The leg segment just above each of those joints is also longer, which leaves more room for the muscle that drives it.3PubMed. Skeletal adaptations for forwards and sideways walking in three species of decapod crustaceans A sideways-walking crab therefore gets its longest, strongest strokes by moving sideways.
Our knees bend front to back, so we step forward. A crab’s legs fan out from the sides of the body, and each leg’s natural reach is outward, so stepping sideways uses that reach directly.
The crab’s hard shell is an external skeleton, and its leg joints work as hinges. A hinge swings in one plane, so the direction a leg moves is set by how each hinge is oriented, not by the crab choosing to bend differently. Muscle also matters here. Muscle inside a leg segment can only pull across the joint it moves, and a bigger segment holds more of it. More muscle at the sideways-swinging joints means more force per stroke in that direction, and a long stroke with strong muscle behind it covers more ground per push.
The shell is part of the story too: sideways walkers tend to have shells that are wider than they are long.4eLife. Evolution of sideways locomotion in crabs Many people assume a flat body forces the legs to bump into each other when stepping forward. But sideways and forward walkers have shells of similar depth,5eLife. Evolution of sideways locomotion in crabs so flatness isn’t the difference. Width relative to length matters more, along with how long the legs are and where they rest under the body, all of which match the direction a crab prefers to walk.2PubMed Central. Skeletal adaptations for forwards and sideways walking in three species of decapod crustaceans
That preference isn’t a rule. Most sideways walkers can still shuffle a little forwards or backwards when they need to, just less smoothly.
How the Eight Legs Push and Pull
Walking sideways, a crab has leading and trailing legs: the leading legs are on the side it is heading toward, and the trailing legs are on the side it is leaving. The front-side legs reach out and pull while the back-side legs straighten and push. In a running ghost crab, the back-side legs supplied all the forward-driving force. The front-side legs mostly acted as a light brake, with far less force.6The Journal of Experimental Biology. Locomotion energetics of the ghost crab. II. Mechanics of the centre of mass during walking and running
Straightening a bent leg is a strong, simple motion, while hauling the body toward a planted leg tip is harder to do forcefully. So the back side acts as the engine and the front side steadies.
In slow motion, one step goes like this. The front-side legs stretch out and plant their tips. The back-side legs press down and straighten, shoving the body across. The body slides over the planted legs and the cycle repeats.
Ghost crabs speed up by changing gait, much as people shift from walking to running. At speeds above about 0.9 meters per second, all eight legs leave the ground for a moment between steps.6The Journal of Experimental Biology. Locomotion energetics of the ghost crab. II. Mechanics of the centre of mass during walking and running The body bounces like a ball rather than vaulting over stiff legs, which is why a fleeing ghost crab looks like it skims the sand.
Their steps per second stay fixed at about 6, and they go faster only by taking longer strides.6The Journal of Experimental Biology. Locomotion energetics of the ghost crab. II. Mechanics of the centre of mass during walking and running Stride length grew from about 14 to 25 centimeters as running speed rose.6The Journal of Experimental Biology. Locomotion energetics of the ghost crab. II. Mechanics of the centre of mass during walking and running A faster leg rhythm would force each muscle to contract and relax more quickly, which has limits. Lengthening the stride instead gets more speed without asking muscles to cycle faster, and the airborne moment lets the crab cover the extra distance before touching down again.
How Crabs Keep Eight Legs in Step
Crabs, like us, sense where their limbs are and how hard their muscles are working. In crabs, keeping joints and legs in time depends largely on these signals from the legs rather than on a set pattern from the nervous system.7The Oxford Handbook of Invertebrate Neurobiology. Control of Locomotion in Crustaceans Sensors let the legs react to the actual surface instead of an assumed one, so a crab can cross sand, mud, or rock with the same basic machinery.
Two kinds of sensors share the job. Sensors at the tip signal when the leg touches the ground,8PubMed. Force-sensitive mechanoreceptors of the dactyl of the crab: single-unit responses during walking and evaluation of function answering “am I touching something yet?” and telling the leg when to stop reaching and begin pushing. Sensors near the base of the foot measure how much weight the leg bears,8PubMed. Force-sensitive mechanoreceptors of the dactyl of the crab: single-unit responses during walking and evaluation of function telling it whether to hold or ease off.
When one leg’s tip is pressed hard, that leg lifts and eases off. The neighboring legs push down harder to take up the slack.8PubMed. Force-sensitive mechanoreceptors of the dactyl of the crab: single-unit responses during walking and evaluation of function No central decision is needed, because each leg reacts to its own load and the combined result is a stable step.
Is Sideways Walking Fast and Efficient
Scientists judge walking efficiency by the energy needed to move a given weight a given distance. A sandy fiddler crab’s cost falls within the range expected for a vertebrate of similar weight.1Journal of Experimental Biology. Fiddler crab exercise: the energetic cost of running sideways
Speed matters too. Crabs flee birds and other predators across open sand, and quick sideways bursts get them to burrows or water fast.
A six-legged robot with three-joint legs walked about 75% faster sideways than forwards.9PubMed. Sideways crab-walking is faster and more efficient than forward walking for a hexapod robot It also used about 40% less energy per distance walking sideways.9PubMed. Sideways crab-walking is faster and more efficient than forward walking for a hexapod robot The robot is a machine, not a crab, so its numbers shouldn’t be applied directly to real crabs. What the test shows is that with the same joints, changing only the direction made a large difference in speed and energy.
Crabs That Walk Forwards
Unlike most true crabs, the common spider crab Libinia walks forwards about 80% of the time.3PubMed. Skeletal adaptations for forwards and sideways walking in three species of decapod crustaceans Even so, Libinia still takes sideways steps about a fifth of the time. Its leg joints that aid forward motion swing farther than those of sideways crabs, and the leg segments holding the muscles for those joints are larger.10OpenAlex API / Louisiana State University Graduate Theses and Dissertations. Comparative aspects of the control of posture and locomotion in the spider crab Libinia emarginata Its leg muscle also includes a bundle like those in forward-walking relatives such as lobsters and crayfish.11PubMed. Muscular anatomy of the legs of the forward walking crab, Libinia emarginata (Decapoda, Brachyura, Majoidea)
The body looks different too. Spider crabs have long, spindly legs and a shell longer than it is wide, while shore crabs and fiddler crabs have wide shells and scuttle sideways. The spider crab’s legs reach out ahead of and behind the body, which suits forward walking, whereas a shore crab’s legs spread out to the sides.
Walking Underwater Versus on Land
Water holds up much of a crab’s weight, so it needs less support from its legs. On land, a shore crab’s legs touch the ground more than half of each step, but under water less than 46%.12Journal of Experimental Biology. Walking of the Shore Crab Pachygrapsus Crassipes in its two Natural Environments Fewer legs touch at once and steps are much less regular,13PubMed. Underwater punting by an intertidal crab: a novel gait revealed by the kinematics of pedestrian locomotion in air versus water since there is less pressure to keep a steady pattern of support. Leg muscles fire in a similar pattern in water and on land, but work longer and harder on land,14Journal of Experimental Biology. Motor Pattern Analysis in the Shore Crab (<i>Carcinus Maenas</i>) Walking Freely in Water and on Land where they carry the full weight against gravity. Some intertidal crabs move underwater by pushing off the bottom and then gliding.13PubMed. Underwater punting by an intertidal crab: a novel gait revealed by the kinematics of pedestrian locomotion in air versus water
Their stance is about 19% wider in water, helping currents not tip them over.13PubMed. Underwater punting by an intertidal crab: a novel gait revealed by the kinematics of pedestrian locomotion in air versus water Waves and currents push sideways on the shell. Pushing against water’s drag also takes extra effort from the back-side legs, which stay planted longer underwater.12Journal of Experimental Biology. Walking of the Shore Crab Pachygrapsus Crassipes in its two Natural Environments On rocky land, crabs keep their legs narrowest, where a slip is most dangerous.12Journal of Experimental Biology. Walking of the Shore Crab Pachygrapsus Crassipes in its two Natural Environments
What Happens When a Crab Loses a Leg
Crabs can drop a leg on purpose to escape a predator’s grip. The leg typically regrows over the next molts.
Ghost crabs adjust their stride after losing a leg,15PubMed. Autotomy-induced effects on the locomotor performance of the ghost crab Ocypode quadrata changing the timing and reach of the remaining legs’ steps to cover the gap. Yet losing a leg from the second or third pair cut running speed by about 25%.15PubMed. Autotomy-induced effects on the locomotor performance of the ghost crab Ocypode quadrata Losing any other leg made no noticeable difference to speed.15PubMed. Autotomy-induced effects on the locomotor performance of the ghost crab Ocypode quadrata
Why Engineers Copy the Crab Walk
Engineers have built eight-legged robots with springy legs whose gaits are copied from crabs.16PubMed. Crab-inspired compliant leg design method for adaptive locomotion of a multi-legged robot These robots walked over varied terrain, up slopes, through low gaps, and while carrying loads.16PubMed. Crab-inspired compliant leg design method for adaptive locomotion of a multi-legged robot Other designers build crab-like robots to explore places where ordinary legged robots struggle.17Journal of Engineering Research (Kuwait). Design and implementation of multi-legged robot with dual drive: Gait and motion stability
Several features explain the appeal. With eight legs, several feet are on the ground at once, so the robot stays upright even when one foot slips or lands badly, and the load spreads across many contact points. Springy legs soften the shock of landing, much as a crab’s legs ease off a heavy load, so the robot copes with bumps without exact knowledge of the surface. A low body is harder to tip on slopes, and a wide stance gives a broad base. Sideways movement lets the machine slip under gaps that a forward-facing body would have to approach head-on.

