A common octopus can pull its arms, head and bulb-shaped mantle through an opening smaller than its body—but it does not use the same move every time. In tests at the National University of Singapore, young common octopuses changed their escape strategy when the gap narrowed, revealing a step-by-step skill that could one day inspire robots built for tight, dangerous places.

Octopuses are known for moving in many ways, from walking on the seabed to swimming by jetting water. Their soft bodies can also fit through remarkably small spaces. Yet researchers had not documented how they passed through an opening far smaller than the mantle, the rounded part of the body that holds many of the animal’s organs. Learning how they manage matters to engineers who want robots that can navigate collapsed buildings or explore the ocean without being limited to thin, snake-like shapes.

The research team included Wenci Xin of the National University of Singapore, Michael Kuba of the University of Naples Federico II in Italy, and Tamar Gunit and Daniel Abed-Navandi of Haus des Meeres-Aqua Terra Zoo in Austria. They tested young common octopuses, or Octopus vulgaris, and Mayan octopuses, or Octopus maya, in clear boxes fitted with small openings.

Kuba measured the distance between each octopus’s eyes, which ranged from 15 to 35 millimeters. That distance gives a useful estimate of the stiff cartilage around the animal’s central nervous system, which may set a limit on the smallest gap it can pass through. Xin made boxes with openings just wider than that eye-to-eye distance, as well as openings 5 millimeters narrower.

At the wider opening, common octopuses felt around with their arms, then pushed one arm through—usually one of the two front left arms. They followed with as many as five other arms. Next, they reached back with two arms already through the hole, stuck their suckers to the far side, and used those arms to push and pull the rest of the body through. The full passage took about 20 seconds.

The narrower opening called for another tactic. Once the octopus could not fit more limbs through at once, it pulled its remaining arms through first. Then it slightly compressed its mantle and dragged it through the hole. The team had expected the animals to use one method for both sizes, Xin said, so the switch came as a surprise.

The Mayan octopuses responded differently. They did not try the narrow opening, instead staying in a corner of the box. When given a choice of a small and a large opening, they first explored the smaller one, then left it and escaped through the larger gap. The results show that the two species did not handle the challenge in the same way.

Xin and Cecilia Laschi, also of the National University of Singapore, hope to apply the findings to soft-bodied robots. Today’s search-and-rescue and exploration robots often have slender bodies to slip through gaps, leaving less room for sensors and tools. An octopus-inspired design could carry more equipment while still moving through cramped spaces. The study, “Overcoming environmental constraints: octopus uses 3-step or 4-step strategies to squeeze through small holes,” appeared in the Journal of Experimental Biology in 2026.