Are Pill Bugs Insects? Why They Are Actually Crustaceans

Pill bugs are not insects. Despite living on land, hiding under rocks, and scurrying around gardens in a way that looks thoroughly bug-like, they belong to the crustacean subphylum, making them far more closely related to shrimp, crabs, and lobsters than to any beetle or ant. Specifically, pill bugs are terrestrial isopods in the order Isopoda, and their body plan, respiratory system, blood chemistry, and reproductive biology all betray their aquatic ancestry. The confusion is understandable, since pill bugs are one of the very few crustacean lineages that have fully committed to life on land, but the differences run deep once you start looking.

Why Pill Bugs Fail Every Test for Being an Insect

The quickest way to tell an insect from a non-insect arthropod is body plan. Insects have three distinct body regions: head, thorax, and abdomen. They have six legs, one pair of antennae, and most adults have wings or at least vestiges of them. Pill bugs break every one of those rules. Their body is divided into a head and a segmented trunk with no clear thorax-abdomen division. They carry seven pairs of walking legs, not three. They have two pairs of antennae, though one pair is tiny and hard to spot. And they have never, in any species, developed wings.

The leg count alone is a giveaway. Seven pairs of legs is a hallmark of isopods. If you pick up a pill bug and count its legs, you will reach fourteen. No insect on Earth has fourteen legs. The number of body segments is also different: pill bugs have seven free segments in the main trunk region, each bearing one pair of legs, plus additional fused segments at the tail end that carry specialized appendages used for breathing and reproduction.

Then there is the exoskeleton itself. Insect exoskeletons are coated in a waxy layer that makes them relatively waterproof, which is why insects thrive in deserts and dry environments. Pill bug exoskeletons are more permeable, a legacy of their marine ancestry. This is one reason you almost always find pill bugs in damp, sheltered spots: under logs, in leaf litter, beneath flower pots. They lose moisture through their body surface much faster than insects do, and they depend on humid microhabitats to survive.

Where Pill Bugs Sit on the Tree of Life

Modern molecular studies have redrawn the old textbook division of arthropods. It used to be standard to separate arthropods into four tidy groups: chelicerates (spiders and their kin), myriapods (centipedes and millipedes), crustaceans, and insects. That four-way split is no longer considered valid. Genetic and genomic evidence now shows that insects evolved from within the crustacean lineage, meaning “Crustacea” as traditionally defined is not a natural group unless you include insects in it. The broader clade that contains both crustaceans and insects is called Pancrustacea.

Within Pancrustacea, insects are a spectacularly diverse subgroup, but they are still nested inside the crustacean family tree, not separate from it.1Current Biology. The evolutionary history of arthropods and their relatives Pill bugs, by contrast, sit on a different branch of that same crustacean tree. They are members of the order Isopoda, which includes thousands of species, most of them marine. The terrestrial isopods, grouped in the suborder Oniscidea, are the branch that made it onto dry land. So both pill bugs and insects are pancrustaceans, but they are on very different branches, separated by hundreds of millions of years of independent evolution.

This reshuffling of the family tree means that saying “crustaceans live in water, insects live on land” was never quite right. Pill bugs are crustaceans that live on land. Insects are, in a deep evolutionary sense, crustaceans that also live on land (and in the air, and occasionally back in fresh water). The real story is that the crustacean body plan turned out to be remarkably adaptable to terrestrial life, and it happened more than once.

When Isopods First Crawled Ashore

The transition from sea to land is one of the great challenges in animal evolution. It requires solving problems of gravity, desiccation, gas exchange, and reproduction all at once. Most crustacean lineages never managed it. Terrestrial isopods are the outstanding exception, and they appear to have done it just once.

A 2024 phylogenomic study estimated that the oniscidean lineage, the group containing all terrestrial isopods including pill bugs, dates back to roughly the boundary between the Carboniferous and Permian periods, around 298 million years ago. That is considerably later than many other arthropod groups made the move to land. The earliest oniscidean fossils come from the mid-Cretaceous, about 105 million years ago, but the molecular clock suggests the lineage itself is much older than its fossil record indicates.2PubMed Central. Phylogenomics supports a single origin of terrestriality in isopods The gap between molecular and fossil dates is not unusual for small, soft-bodied animals that do not fossilize easily.

What makes this finding interesting is the “single origin” part. All terrestrial isopods, from the tiny, soil-dwelling species you never see to the large, conspicuous pill bugs rolling around your garden, appear to descend from one ancestral population that left the ocean. Every adaptation to land life in this group, including their unusual lungs and their modified reproductive strategy, evolved within that single lineage rather than being invented independently by multiple marine isopod groups.

How Pill Bugs Breathe on Land

Insects breathe through a system of tiny tubes called tracheae that pipe air directly to their tissues. Pill bugs do not have tracheae. Their ancestors breathed through gills, and the transition to air-breathing required a different solution. What pill bugs evolved are structures called pleopodal lungs, sometimes referred to as pseudotracheae, located in the flattened appendages (pleopods) on the underside of their abdomen.

These pleopodal lungs developed through infoldings of the tissue lining the pleopods, creating internal air-filled cavities where gas exchange can happen. Research on the common rough woodlouse, a close relative of the pill bug, has shown that these lungs arise during development through epithelial invaginations, essentially the outer tissue folding inward to create pockets that increase the surface area available for absorbing oxygen from the air.3PubMed. Pleopodal lung development in a terrestrial isopod, Porcellio scaber (Oniscidea) These structures are not present in marine isopods. They are a genuine evolutionary novelty that appeared as part of the terrestrialization process.

The pleopodal lungs still need to stay moist to function. This is another reason pill bugs cluster in humid environments. If the lung surfaces dry out, gas exchange becomes inefficient. Insects, with their internal tracheal tubes and waxy cuticle, can seal off moisture loss far more effectively. Pill bugs are stuck with a respiratory system that works well enough in damp conditions but makes them vulnerable to dry air in a way that no true insect is.

Copper in the Blood

Insects carry oxygen using hemolymph that is essentially colorless or faintly yellowish, since most do not rely on a dedicated oxygen-transport pigment the way vertebrates do. Their tracheal system delivers oxygen directly to tissues, bypassing the need for blood-borne carriers. Pill bugs, by contrast, inherited the crustacean oxygen-transport system: hemocyanin, a copper-based protein that turns blue when oxygenated.

Hemocyanin is the standard oxygen carrier in most crustaceans, as well as in many mollusks. It is dissolved directly in the hemolymph rather than being packaged inside cells the way hemoglobin is packaged inside red blood cells in vertebrates. The presence of hemocyanin in pill bugs is one more piece of evidence that they are crustaceans, not insects. Their circulatory system works on fundamentally different chemistry. Studies on the isopod Ligia exotica, a coastal relative of pill bugs, have examined the subunit structure and oxygen-binding properties of isopod hemocyanin, confirming that it follows the same general pattern seen in other crustaceans.4PubMed Central. Subunit structure and oxygen binding by hemocyanin of the isopod Ligia exotica

Rolling into a Ball Is About More Than Defense

The behavior that gives pill bugs their name, curling into a tight ball when disturbed, is called conglobation. It is an obvious defense against predators, since the hard outer plates of the exoskeleton form a nearly seamless sphere that is difficult for small predators to crack open. But conglobation serves a second, less obvious purpose: it reduces water loss.

Experiments on Armadillidium vulgare, the common pill bug, measured how fast individuals lost water when curled up versus when walking freely. Across a range of humidity levels, conglobated pill bugs lost water about 35% more slowly than uncurled ones. The effect was strongest in dry conditions and became negligible only at humidity levels above about 75%.5Journal of Insect Science. Conglobation in the pill bug, Armadillidium vulgare, as a water conservation mechanism By tucking their more permeable ventral surface and pleopodal lungs inside the ball, pill bugs expose only their harder, less permeable dorsal plates to the air. It is a simple geometric trick: reducing the exposed surface area cuts evaporation.

This dual function, protection plus water conservation, helps explain why conglobation is so tightly linked to the pill bug lineage specifically. Not all terrestrial isopods can roll into a ball. Woodlice in the genus Porcellio and Oniscus, for instance, flatten themselves against surfaces or run when disturbed but cannot conglobate. The pill bug’s ability to form a complete sphere is a derived trait within isopods, and the water-saving benefit may have been a significant advantage in colonizing drier habitats.

A Crustacean That Digests Dead Leaves

Pill bugs are detritivores, feeding primarily on decaying plant material, fallen leaves, and rotting wood. This diet puts them in an ecological role more commonly associated with earthworms, millipedes, and fungi than with crustaceans. Digesting dead plant matter is biochemically demanding because it requires breaking down cellulose and lignin, tough structural molecules that most animals cannot handle on their own.

Pill bugs solve this problem through a partnership with their gut microbes. Research on the gut bacteria of Armadillidium vulgare found that roughly 60 to 70% of the bacterial community belongs to the family Bacillaceae, a pattern that turned out to be similar to what is found in termite guts, another group famous for digesting plant fiber.6Scientific Reports. Diversity and functional significance of cellulolytic microbes living in termite, pill-bug and stem-borer guts These bacteria produce enzymes that can break down cellulose into simpler sugars that the pill bug can absorb.

The partnership goes further than just having helpful bacteria. Detailed metagenomic work has shown that pill bugs also produce their own enzymes for attacking cellulose and related molecules, and these host-produced enzymes complement the ones made by the gut microbiome. The pill bug and its microbial community together form what researchers call a holobiont, a composite organism whose digestive capabilities exceed what either partner could manage alone.7PubMed Central. Lignocellulose degradation at the holobiont level: teamwork in a keystone soil invertebrate Further analysis has identified a rich toolkit of enzymatic systems at work, including some, like cellulosomes and polysaccharide utilization loci, that are more often studied in industrial biotechnology contexts than in garden animals.8PubMed Central. Isopod holobionts as promising models for lignocellulose degradation

This enzymatic richness has attracted interest from researchers looking for new biological tools for breaking down plant biomass. The fact that a humble garden crustacean carries a sophisticated cellulose-digesting system, partly its own and partly microbial, is a reminder that evolutionary solutions to biochemical problems can show up in unexpected places.

Molting in Two Halves

Like all crustaceans, pill bugs grow by molting, shedding their rigid exoskeleton and replacing it with a larger one. But the way they molt is distinctive and often startles people who notice it for the first time. Instead of shedding the entire exoskeleton at once the way a crab or lobster does, pill bugs molt in two stages. First, the back half of the exoskeleton splits and is shed. The pill bug walks around for a day or two looking oddly two-toned: the front half still wearing the old, darker shell while the back half is pale and freshly molted. Then the front half is shed in a second event.

This biphasic molting pattern is unique to isopods and serves a practical purpose. By keeping half the exoskeleton intact at all times, the pill bug retains some structural rigidity and protection throughout the process. A crab that has just molted is soft all over and extremely vulnerable. A pill bug that has just molted its back half still has a functional front end. The calcium and other minerals from the shed portion of the shell are often consumed by the pill bug, recycling the resources back into building the new exoskeleton. If you find what looks like a translucent, papery half-shell under a log, you are looking at the discarded back or front section from a pill bug molt.

Insects also molt, but only as juveniles. Once an insect reaches adulthood, it stops molting entirely (with the exception of some primitive wingless insects). Pill bugs, like their crustacean relatives, continue to molt throughout their lives. An adult pill bug living for two or three years may molt dozens of times. This lifelong molting cycle is another trait that separates them cleanly from the insect world.

Carrying Eggs in a Pouch, Not Laying Them

Insect reproduction typically involves laying eggs in the environment, sometimes with elaborate nest-building or host-selection behavior, but the eggs develop outside the mother’s body. Pill bugs do something very different. Female pill bugs carry their developing eggs in a fluid-filled brood pouch called a marsupium, located on the underside of the body between the legs. The eggs are bathed in a liquid that the mother secretes, and the young hatch inside the pouch before emerging as miniature versions of the adults.

The marsupium is a crustacean structure with no equivalent in insects. Many marine crustaceans brood their young in similar pouches. In pill bugs, the pouch is formed by overlapping plates called oostegites that grow from the bases of some of the leg pairs. The developing embryos depend on the fluid environment inside the marsupium, which is another echo of the aquatic past: even on land, pill bug reproduction requires a watery microenvironment.

Young pill bugs emerge from the marsupium looking like tiny adults, just paler and with one fewer pair of legs than the adults. They gain the final leg pair after their first molt. There is no larval stage, no caterpillar phase, no metamorphosis. This is in sharp contrast to the majority of insects, which undergo either complete metamorphosis (egg, larva, pupa, adult) or incomplete metamorphosis (egg, nymph, adult). The direct development of pill bugs, from egg to miniature adult, follows the pattern typical of many crustaceans.

Pill Bugs as Pollution Monitors

Because pill bugs live in soil, eat decaying organic matter, and absorb substances through their permeable exoskeleton, they accumulate environmental contaminants in ways that make them useful indicators of pollution. Their hepatopancreas, a digestive organ, can sequester heavy metals like cadmium, lead, and zinc inside specialized storage vesicles. This tolerance mechanism lets them survive in contaminated soils, but it also means that the metal concentrations in their bodies reflect the contamination levels in their environment.9Agriculture, Ecosystems & Environment. Woodlice (Isopoda: Oniscidea): their potential for assessing sustainability and use as bioindicators

Researchers have used terrestrial isopods as bioindicators of heavy metal pollution in agricultural and urban settings. Because pill bugs are abundant, easy to collect, and present in a wide range of habitats, they offer a practical way to monitor soil contamination without expensive sampling equipment. Measuring the metal load in pill bug tissues from different sites gives a biological readout of how much contamination has worked its way into the food web.

Pill Bugs in Cities and Gardens

The common pill bug, Armadillidium vulgare, is one of the most widespread terrestrial isopods in the world. Originally native to the Mediterranean region, it has been introduced to every continent except Antarctica, largely through human activity. It thrives in gardens, parks, greenhouses, and disturbed habitats, making it one of the most familiar invertebrates in the world despite being routinely misidentified as an insect.

A study of pill bug populations across different urban green spaces found that body size and weight varied substantially depending on habitat type. Pill bugs in wastelands were larger and heavier, averaging about 10 millimeters long and 87 milligrams in weight, compared to those in grasslands and bamboo groves, which averaged closer to 7.5 millimeters and about 37 milligrams.10PMC. Body Size and Weight of Pill Bugs (Armadillidium vulgare) Vary between Urban Green Space Habitats The differences likely reflect variation in food quality, moisture availability, and disturbance levels across habitat types. Urban ecology shapes these crustaceans just as it shapes insects, birds, and mammals.

For gardeners, pill bugs are generally beneficial. They accelerate the breakdown of dead plant material, cycling nutrients back into the soil. Occasionally they nibble on seedlings or strawberries, but the damage is usually minor compared to their contributions as decomposers. Understanding that they are crustaceans rather than insects is more than a taxonomic curiosity: it means that insecticides designed to target insect-specific biology, like those that disrupt insect molting hormones, may not work on pill bugs at all. If you do need to manage them, reducing moisture and removing hiding spots is far more effective than reaching for a spray can, precisely because their crustacean physiology makes them dependent on damp conditions in a way that insects are not.

Christopher Webb

Beetle taxonomy is Christopher Webb's specialty, and he has curated insect collections for 22 years. He completed his PhD in entomology at Cornell University and now oversees more than a million specimens at a natural history museum. He has described several new weevil species.