Roly polys spend most of their lives doing what amounts to janitorial work for the soil: chewing through dead leaves, rotting wood, and other decaying plant material, then excreting nutrient-rich waste that feeds the microorganisms and plants around them. Officially called pill bugs (most commonly Armadillidium vulgare), they are among the few crustaceans that live entirely on land, and that odd evolutionary heritage shapes everything from the way they breathe to their famous ability to curl into a tight ball. Their daily routines are less visible than those of earthworms or ants, but their contribution to healthy soil is substantial and, as recent research shows, extends into surprisingly modern problems like heavy-metal pollution and even microplastic waste.
How They Earn Their Keep in the Soil
If you flip over a log or a pile of damp leaves and find a cluster of roly polys, you are looking at a decomposition crew at work. Their primary ecological job is breaking down dead plant material. They shred fallen leaves, decaying bark, and other organic debris into smaller fragments, dramatically increasing the surface area available to bacteria and fungi. This mechanical processing accelerates the recycling of nutrients like nitrogen, phosphorus, and calcium back into the soil, where plant roots can absorb them. Earthworms get most of the credit for this kind of work, but isopods (the broader group roly polys belong to) fill a similar niche, and researchers studying ecological restoration have recognized earthworms, millipedes, and isopods together as key players in rebuilding degraded soils.
1Restoration Ecology. Current and Potential Roles of Soil Macroinvertebrates (Earthworms, Millipedes, and Isopods) in Ecological RestorationRoly polys are not picky eaters. They consume leaf litter, fruit, fungi, their own shed exoskeletons, and occasionally animal droppings. Their gut harbors microorganisms that help them break down cellulose, the tough structural compound in plant cell walls. This microbial partnership is thought to have been essential to isopods’ colonization of land in the first place: without gut symbionts capable of digesting vascular plant material, transitioning from an aquatic diet to a terrestrial one would have been far more difficult.
2Journal of Chemical Ecology. Microorganisms and Cellulose Digestion in the Gut of the Woodlouse Porcellio scaberRolling Into a Ball Is More Than a Party Trick
The behavior that gives roly polys their name, curling into a seamless armored sphere, is technically called conglobation or volvation. It looks simple, but it is remarkably effective. In experiments pitting pill bugs against Carolina wolf spiders, individuals that rolled into a ball were three times more likely to survive an attack than those prevented from doing so. The spiders were also less likely to even attempt an attack on a curled-up pill bug, possibly because handling a hard, round object with no exposed soft parts is not worth the effort.
3Animal Behaviour. Rolling into a ball (volvation) provides an antipredatory benefitNot all woodlice can do this. The term “pill bug” specifically refers to species in the family Armadillidiidae (and a few others) whose body plates overlap tightly enough to form a complete seal. Many common garden woodlice, like the rough woodlouse (Porcellio scaber), can only partially curl and rely more on speed, chemical secretions, or simply hiding in crevices. The ability to form a perfect ball is a specialized adaptation, not a universal woodlouse trait.
A Built-In Strategy for Staying Hydrated
Because roly polys breathe through gill-like structures on their undersides, they lose water much faster than insects do. Staying moist is a constant challenge, which is why you almost always find them in damp, shaded spots. Their ball-rolling behavior turns out to serve double duty here. When pill bugs curl up under dry conditions, their rate of water loss drops by about 35 percent compared to when they are uncurled. Carbon dioxide release drops by a similar amount, suggesting the sealed posture reduces gas exchange across the body surface.
4PubMed Central. Conglobation in the pill bug, Armadillidium vulgare, as a water conservation mechanismThis water-saving effect is most pronounced at low and moderate humidity levels. At relative humidity above roughly 50 percent, curling up no longer made a measurable difference in water loss in lab tests, which makes sense: when the air is already fairly moist, evaporation slows regardless of posture. But in drier conditions, the ability to seal up and wait could mean the difference between surviving a dry spell and desiccating. It is a neat example of a single behavior solving two problems at once: predator defense and water conservation.
4PubMed Central. Conglobation in the pill bug, Armadillidium vulgare, as a water conservation mechanismChemical Armor and Noxious Secretions
Curling into a ball is the most visible defense, but many woodlice species also produce chemical secretions from glands scattered across their body surface. These secretions contain compounds called quinoline derivatives, and they function as a chemical deterrent against predators. Generalist predators that bite into a woodlouse and encounter these secretions tend to drop the prey or avoid similar-looking targets in the future. The combination of a hard, calcified exoskeleton and foul-tasting secretions makes woodlice unappealing to a wide range of would-be attackers.
5PubMed Central. Glandular quinoline-derivates protect crustacean woodlice from spider predationThese chemical defenses are not equally distributed across species. Some produce stronger or more varied secretions than others. The overall defense strategy for any given woodlouse species is a package deal: some species lean heavily on the ball posture, others on chemical output, and many combine both to varying degrees.
The Predators That Evolved to Crack Them Open
Despite all that armor and chemistry, some predators have evolved specifically to hunt woodlice. The most studied are spiders in the genus Dysdera, commonly called woodlouse spiders. These spiders have unusually long, forward-pointing fangs (chelicerae) that can pierce through the hard plates of a woodlouse’s exoskeleton. The elongated mouthparts also help the spider minimize contact with the noxious gland secretions on the woodlouse’s surface.
5PubMed Central. Glandular quinoline-derivates protect crustacean woodlice from spider predationFeeding experiments show that Dysdera crocata, the most widespread woodlouse spider, thrives on a diet of Porcellio species and performs well on Armadillidium (pill bugs) too. More generalist spiders, by contrast, struggle with woodlice or avoid them entirely. The cellar spider (Pholcus phalangioides), which occasionally catches woodlice in its webs, can manage them but does not do as well as the specialist. The common house spider (Tegenaria domestica) does not feed on woodlice at all.
6Ecological Entomology. Suitability of woodlice prey for generalist and specialist spider predators: a comparative studyThis dynamic is a textbook case of an evolutionary arms race. Woodlice developed armor and chemical defenses. In response, Dysdera spiders evolved specialized mouthparts and behavior to overcome those defenses. The pill bug’s ball posture adds another layer of difficulty even for the specialist, which is likely one reason the behavior persists so strongly across the group.
7Journal of Zoology. How oniscophagous spiders overcome woodlouse armourThey Molt in Halves
One of the stranger things roly polys do is molt in two stages rather than all at once. Unlike insects, which shed their entire exoskeleton in a single event, terrestrial isopods shed the back half first and the front half a day or two later. If you have ever seen a pill bug that looks pale or bluish on one end and normal on the other, you were witnessing this process mid-swing.
The reason for this split has to do with calcium management. During the lead-up to a molt, calcium from the soon-to-be-shed posterior cuticle is reabsorbed and stored in chalky deposits in the front half of the body. After the back half molts, that stored calcium is mobilized to harden the new posterior exoskeleton, and only then does the front half shed. The anterior and posterior halves of the body respond to molting hormones on different schedules, which is what makes the staggered timing possible.
8Canadian Journal of Zoology. Stages of the intermoult cycle in the terrestrial isopod Oniscus asellus and their relation to biphasic cuticle secretionThis system is an efficient way to recycle a scarce resource. Calcium is metabolically expensive to acquire from food, and terrestrial isopods need a lot of it to maintain their heavily calcified exoskeletons. By shuttling calcium between body halves during each molt rather than losing it all at once and starting from scratch, they waste far less. You can sometimes find the shed half-skins in garden soil; they look like translucent, slightly crumpled versions of the back or front end of the animal.
Living Pollution Monitors
Roly polys have an unusual relationship with heavy metals in their environment. They readily accumulate metals like lead, cadmium, copper, and zinc from contaminated soil, storing them in specialized structures within their digestive glands. This accumulation does not kill them quickly the way it might kill other small invertebrates; they tolerate surprisingly high body burdens of toxic metals.
This tolerance has made terrestrial isopods valuable as bioindicators of soil pollution, particularly in urban environments. Because they live in direct contact with soil, eat detritus that concentrates contaminants, and accumulate metals in their tissues in proportion to what is available in their habitat, researchers can measure metal levels in pill bugs as a proxy for how polluted the soil is. A body of research spanning decades has used isopods this way, tracking pollution in cities and near industrial sites.
9PubMed Central. Terrestrial isopods in urban environments: an overviewFor the average gardener, this trait is mostly good news. Roly polys in your yard are helping to immobilize trace metals that might otherwise move more freely through the soil food web. Their bodies act as a kind of temporary sink, locking up contaminants in tissue rather than leaving them available in the soil solution where plant roots would take them up. Whether this measurably affects garden produce is hard to say, but the principle is well established in contaminated-land research.
Can They Actually Break Down Plastic?
One of the more surprising findings in recent years is that Armadillidium vulgare can contribute to the breakdown of microplastics. In a study focused on polyethylene (PE), one of the most common types of plastic pollution, researchers found that combining pill bugs with soil microbes reduced PE content by roughly 28 percent over the course of the experiment. The microbes alone achieved a smaller reduction, around 16 to 20 percent, meaning the pill bugs added a meaningful boost to the degradation process.
10Nature Publishing Group. Biodegradation of microplastics by Armadillidium vulgare and microbial isolates from an aged landfillThis does not mean you can toss a plastic bag into your garden and wait for roly polys to eat it. The study used microplastic particles in a controlled laboratory setting, not intact household waste. And a 28 percent reduction over a study period, while interesting, is a long way from a practical waste-management solution. Still, the finding highlights how the gut microbiome of detritivores can interact with synthetic materials in ways nobody anticipated. It also adds another dimension to the question of what roly polys “do”: beyond recycling natural organic matter, they may play a small role in the fate of synthetic pollutants in soil.
Where You Will and Won’t Find Them
Roly polys are found on every continent except Antarctica. Armadillidium vulgare, the most common species in North American and European gardens, is originally from the Mediterranean region and spread globally by hitching rides in soil, potted plants, and ship ballast. They are cosmopolitan enough to thrive in city parks, suburban gardens, forests, and agricultural fields.
Their distribution within any given landscape, though, is tightly constrained by moisture. Because they lack the waxy cuticle that prevents water loss in insects, they are almost exclusively nocturnal and stick to microhabitats where humidity stays high: under rocks, logs, leaf litter, mulch, flower pots, and the edges of compost piles. During the day, they aggregate in groups, which itself reduces individual water loss by limiting the amount of surface area each animal exposes to the air. If you turn over a stone and find a dozen of them clustered together, they are not being social in the way ants are. They are managing a shared physiological problem.
In gardens, roly polys occasionally nibble on seedlings, strawberries, or other soft plant tissue, which leads some gardeners to view them as pests. They can cause real damage in greenhouses or cold frames where populations build up and tender transplants are the only food available. But in most outdoor settings, their consumption of living plant material is minor compared to the volume of dead organic matter they process. The net effect on garden health is usually positive: better decomposition, improved soil structure, and faster nutrient cycling. If their numbers become a problem around seedlings, reducing mulch depth and improving drainage near vulnerable plants is usually enough to push them elsewhere.
Reproduction and the Marsupium
Female roly polys carry their developing eggs and young in a fluid-filled pouch on their underside called a marsupium, a feature they share with their aquatic crustacean relatives. After mating, eggs are deposited into this brood pouch, where they incubate for several weeks. The young emerge as miniature versions of the adults, pale and soft, and remain in or near the marsupium briefly before dispersing. There is no larval stage, no metamorphosis. What hatches looks like a tiny roly poly and behaves like one almost immediately.
A single brood can contain anywhere from a couple dozen to over a hundred offspring, depending on the species and the size of the female. Females in good conditions may produce two broods per year. The young grow through a series of molts, each one following the biphasic front-back pattern, and reach reproductive maturity within a year or so. Lifespan in the wild is typically two to three years, though some individuals in stable environments can live longer. By the standards of small soil invertebrates, that is a fairly long life, and it means a single roly poly processes a meaningful amount of dead plant material over its lifetime.