Pill bugs aren’t insects at all. They’re crustaceans, relatives of shrimp and crabs, whose ancestors moved onto land from the seashore.1Terrestrial Arthropod Reviews. Evolutionary adaptation of oniscidean isopods to terrestrial life: Structure, physiology and behavior They carry a sea creature’s body plan into dry places, and their love of damp spots comes from that unfinished move. Moisture isn’t a comfort for them but a matter of breathing and staying alive, so where you find damp, you find pill bugs.
They Breathe Through Gill-Like Plates That Must Stay Wet
A pill bug breathes through small flat plates under its tail.2PubMed Central. Conglobation in the Pill Bug, Armadillidium vulgare, as a Water Conservation Mechanism Oxygen from the air first dissolves into a thin layer of moisture on these plates, then passes into the body fluids.3A-Z Animals. Pill Bugs Breathe Through Gills. So How Do They Survive on Land? If that film dries, oxygen can no longer get in, even though the air around the animal is full of it. The plates are thin, so oxygen passes inward easily, but that thinness also makes them leaky: they lose water faster than any other part of the body.2PubMed Central. Conglobation in the Pill Bug, Armadillidium vulgare, as a Water Conservation Mechanism That’s why they hide under logs, rocks and leaf litter: their breathing structures need moisture to work on land.4Field of Mars EEC. Pill bug fact sheet
Insects breathe through tiny air tubes that don’t need a wet surface, and fish gills sit in water all the time. Pill bugs sit between the two, with gill-like plates that work in air but only while wet. This is why they can’t live in dry spots the way beetles do.
You can see the plates yourself. Gently flip a pill bug onto its back and look near the rear end, where the pale flat plates sit. Put it back quickly on a damp surface, since its underside is its most water-hungry part.
Their Shell Leaks Water Into Dry Air
A pill bug’s outer shell lacks the waxy waterproofing insects have, so it can’t be sealed shut. The shell slows water loss but is not sealed, so water keeps escaping, faster the drier the air is. That’s why the same pill bug does fine in a damp spot and struggles on bare dry ground.
How well a species resists drying out depends on its shell acting as a water barrier.5ZooKeys. Morphological traits – desiccation resistance – habitat characteristics: a possible key for distribution in woodlice (Isopoda, Oniscidea) Species with thicker shells and bigger bodies lose water more slowly for their size.6PubMed Central. Morphological traits – desiccation resistance – habitat characteristics: a possible key for distribution in woodlice (Isopoda, Oniscidea) Even closely related pill bug species differ a lot in how quickly they dry out,6PubMed Central. Morphological traits – desiccation resistance – habitat characteristics: a possible key for distribution in woodlice (Isopoda, Oniscidea) so some kinds tolerate drier spots than others.
Size matters within a species too. A small body has more surface for its volume, so water escapes faster. Babies and small adults need the dampest spots, which is why you often find young ones deepest under moist litter.
A species’ preference for humidity, meaning the amount of moisture in the air, reflects how well it can hold onto water.5ZooKeys. Morphological traits – desiccation resistance – habitat characteristics: a possible key for distribution in woodlice (Isopoda, Oniscidea) On forest edges, which are warmer and drier, drought-tolerant species thrive while drought-sensitive ones become scarce and less active.7European Journal of Soil Biology. Desiccation resistance determines distribution of woodlice along forest edge-to-interior gradients Even tolerant species still need damp refuges at some point, because tolerating dryness only buys them time.
A dehydrated pill bug moves frantically, then slows and becomes sluggish. It may fail to unroll or right itself. Left on a sunny sidewalk, one can die within hours, though a mildly dried one often revives when placed back on damp soil.
How Pill Bugs Find Damp Places
Pill bugs move more and wander randomly when the air is dry.8American Biology Teacher. Animal Behavior Experiments Using Arthropods They slow down and stay still once they reach the humidity they prefer.8American Biology Teacher. Animal Behavior Experiments Using Arthropods So they gradually collect in damp places without steering toward them.8American Biology Teacher. Animal Behavior Experiments Using Arthropods
In dry air a pill bug moves quickly and changes direction often, so its restless searching bumps into damp areas by chance. Dry spots keep releasing bugs and damp spots keep holding them, so numbers build up in the damp places. This also explains why you see them roaming on pavement after the soil dries.
You can watch this at home. Use a shallow tray with a damp paper towel on one side and a dry one on the other, and place several pill bugs in the middle so neither side has an advantage. Cover the tray or work in dim light so that light doesn’t push the bugs around and confuse the result.
Watch for several minutes and count how many are resting on each side. Most will stop on the damp side. Look at individual bugs: some cross onto the dry side and keep moving, while those on the damp side slow down. Return the bugs to a damp spot afterward, since the test leaves some of them on the dry side.
Rolling Up and Huddling Save Water
A pill bug loses water more slowly when rolled into a ball.2PubMed Central. Conglobation in the Pill Bug, Armadillidium vulgare, as a Water Conservation Mechanism Rolling covers the breathing plates, the leakiest part of the body, and the underside faces inward, so far less surface is exposed to air.2PubMed Central. Conglobation in the Pill Bug, Armadillidium vulgare, as a Water Conservation Mechanism So rolling up is a defense against dryness as well as against predators.9Saints Academic Review. From the Ocean to Land: The Evolutionary Journey of Armadillidium Vulgare
Huddling works differently. Piling together cuts each pill bug’s water loss whatever the group size, and in large groups each one loses water at less than half the solo rate, because each body has less surface touching the air.10Physiological Entomology. Effects of group size on aggregation against desiccation in woodlice (Isopoda: Oniscidea) Many species huddle more in drier and hotter conditions, but species better at holding water huddle less.11Behaviour. Predicting the effect of climate change on aggregation behaviour in four species of terrestrial isopods A pill bug can do both, rolled up inside a pile.
A clump under a board tells you something. A tight pile can be a sign that conditions are getting drier, while loose, spread-out bugs may suggest the spot is comfortably damp. Disturbing the clump exposes them to drying air, so cover them again.
Too Much Water Is Dangerous Too
Pill bugs can pull water from very humid air through their underside near the tail, but this only works when the air is nearly saturated with moisture.12Journal of Experimental Biology. Water Vapour Absorption in Terrestrial Isopods Liquid water is another matter. It soaks quickly through their shell, so standing water poses a serious drowning danger.12Journal of Experimental Biology. Water Vapour Absorption in Terrestrial Isopods A pill bug sitting in a puddle takes in water faster than it can handle, which is why damp is good and wet is bad.
Flooded soil pushes them out of their hiding spots, and they climb onto walls and paving to escape the soaking ground. Once the surface dries, they hurry back under cover.
In a garden or pot, soil that stays soggy in a saucer is a risky spot, since water can pool and trap them. A mulch layer that is damp but drains is ideal, while a waterlogged one pushes them out.
Eating follows the same pattern. Pill bugs eat the most leaf litter in moderately moist conditions, but they eat about 1.8 times less when it’s too dry and about 1.2 times less when overwatered.13Biosystems Diversity. INFLUENCE OF SAPROPHAGES (ISOPODA, DIPLOPODA) ON LEAF LITTER DECOMPOSITION UNDER DIFFERENT LEVELS OF HUMIDIFICATION AND CHEMICAL LOADING
Keeping Pill Bugs Alive in a Jar or Terrarium
Copy their natural shelter. Give them soil plus bark, a flat stone or leaf litter to hide under. Mist so the soil stays damp but never forms puddles, since liquid water can drown them. Provide moist dead leaves to eat.
Build a damp gradient: pour a little water onto one end of the soil and leave the other end only lightly moist, so the bugs can move to whichever suits them. The damp end should feel like a wrung-out sponge, not a puddle. Place the bark over the damper end, so the bugs shelter where their breathing works best.
Keep the container away from windows with direct sun, because sunlight heats and dries a small container fast. A few small air holes in the lid stop the air going stale, but keep the lid mostly closed to hold in moisture.
Replace dead leaves as they are eaten, and add moist ones if they dry out and crumble. Every few days, check for mold on old food and remove it, since mold can spread in damp, closed spaces.
The bugs themselves show when something is off. Crowding in one tight clump can suggest it’s too dry. Bugs climbing the walls can mean the soil is too wet. Many deaths overnight usually point to drying or heat.
Why Pill Bugs Show Up in Your House and Garden
Outdoors, pill bugs are mostly helpful. They feed on dead leaves and help return them to the soil. When conditions turn dry they eat less, which slows that recycling,13Biosystems Diversity. INFLUENCE OF SAPROPHAGES (ISOPODA, DIPLOPODA) ON LEAF LITTER DECOMPOSITION UNDER DIFFERENT LEVELS OF HUMIDIFICATION AND CHEMICAL LOADING and the most drought-resistant species survive dryness by becoming inactive.14European Journal of Soil Biology. Isopod physiological and behavioral responses to drier conditions: An experiment with four species in the context of global warming They mostly eat decaying material, not healthy plants, though seedlings and ripe strawberries touching wet soil can get nibbled. Raising fruit off damp ground with straw reduces this.
Pill bugs gather where soil stays damp against the house, such as under mulch, boards, or leaf piles by the foundation. Some wander in through gaps and under doors, usually after rain or when the outdoor surface dries, as they hunt for damper ground. Indoors they rarely survive long because household air is too dry, so a few inside don’t signal a breeding colony.
Fixing leaks and damp basements removes what attracts them: start with the source of moisture, such as a leaking tap, a downspout dumping water at the wall, or a damp crawl space. Then pull mulch, boards and leaf litter a little away from the foundation, which dries the strip they use to enter. Check back after a dry spell, because fewer bugs by the wall shows the change worked.
For the ones already inside, sweep or scoop them outside into shaded garden litter. Sprays are usually unnecessary since they die indoors on their own. Sealing gaps under doors blocks their way in, and watering the garden in the morning lets surfaces dry by night.

