Millipedes are not isopods. Despite a superficial resemblance and a shared taste for rotting leaves, these two groups sit on completely different branches of the arthropod family tree. Millipedes belong to the subphylum Myriapoda, alongside centipedes, while isopods are crustaceans, more closely related to crabs and shrimp than to anything with the word “pede” in its name. The evolutionary split between these lineages runs so deep that their similarities say more about convergent lifestyles than about shared ancestry.
Why People Mix Them Up
The confusion is understandable. Flip over a log in a damp forest and you may find both pill millipedes and pill bugs (woodlice) curled into nearly identical defensive balls. Both are small, segmented, grayish, and clearly at home in dark, moist places. Both feed on decaying plant matter. If you are not already thinking about taxonomy, there is no obvious reason to suspect they come from fundamentally different animal groups. Add in the fact that both are commonly lumped under the casual heading of “garden bugs,” and the mix-up practically invites itself.
But looks are misleading. A pill millipede and a pill bug arrived at their similar body shapes through entirely independent evolutionary paths. It is a textbook case of convergent evolution: unrelated organisms facing similar environmental pressures, like the need to conserve moisture and avoid predators under logs, landing on similar solutions.
Where They Sit on the Arthropod Family Tree
The classification gap between millipedes and isopods is enormous. Millipedes are members of the class Diplopoda within the subphylum Myriapoda, a lineage of multi-legged land animals that also includes centipedes (Chilopoda), symphylans, and pauropods. Isopods, by contrast, belong to the order Isopoda within the class Crustacea (sometimes placed in the class Malacostraca). The crustacean lineage includes lobsters, crabs, barnacles, and copepods.
The divergence between myriapods and crustaceans is ancient. Molecular clock estimates place the split between millipedes and centipedes alone at roughly 442 million years ago, and the broader divergence of insects and crustaceans at around 666 million years ago, well before the Cambrian Explosion left its dramatic mark on the fossil record.1BMC Biology. The colonization of land by animals: molecular phylogeny and divergence times among arthropods The myriapod lineage, which contains millipedes, split off from other arthropod groups even earlier. In evolutionary terms, calling a millipede an isopod would be something like calling a cat a parrot because both are warm-blooded vertebrates found in people’s homes.
Within Isopoda itself, there is substantial diversity. The order contains over 10,000 described species spread across 132 families and 11 suborders.2PubMed Central. Phylogenomics supports a single origin of terrestriality in isopods The terrestrial isopods that most people encounter, the woodlice and pill bugs, form a monophyletic group called Oniscidea. But many isopod species are marine or freshwater, a detail we will come back to.
Legs and Body Plans Tell Them Apart Instantly
The quickest way to distinguish a millipede from an isopod is to count the legs per body segment. Millipedes have two pairs of legs on most body segments. This unusual arrangement is not the result of each segment growing extra limbs. Instead, during embryonic development, adjacent segments fuse along the top (dorsal) surface while remaining separate underneath, so each visible ring of the body actually covers two original segments, each contributing its own pair of legs.3PubMed. Diplosegmentation in the pill millipede Glomeris marginata is the result of dorsal fusion This “diplosegment” arrangement is the defining feature of the class Diplopoda and gives millipedes their name, which loosely translates to “thousand feet.”
Isopods, meanwhile, have one pair of legs per body segment, and they have far fewer segments overall. A typical woodlouse has seven pairs of walking legs (14 total) on its thorax, called pereopods. Its body is divided into three distinct regions: a head with prominent antennae, a thorax bearing those seven pairs of legs, and an abdomen (pleon) with modified appendages used for breathing and reproduction. Millipedes can have anywhere from about 36 legs to over 750, depending on the species. No isopod comes anywhere close to that count.
Antennae offer another quick visual cue. Millipedes have one pair of short, stubby antennae. Isopods also have antennae, but crustaceans ancestrally have two pairs, and in many isopod species you can still see both sets, with one pair more prominent than the other. If you are looking at a small, segmented creature under a rock and it has clearly visible, relatively long antennae, you are almost certainly looking at an isopod rather than a millipede.
A Marine Heritage Versus an Ancient Terrestrial One
One of the starkest differences between the two groups is their relationship with water. Millipedes are exclusively land animals. Their lineage colonized terrestrial habitats hundreds of millions of years ago, and some of the oldest known land-animal fossils are millipede-like myriapods. No living millipede species is aquatic. They breathe through small openings called spiracles that connect to tracheal tubes, a system designed for pulling oxygen from air, not water.
Isopods tell a very different story. The majority of isopod diversity is marine. One catalogue of marine isopods (excluding certain subgroups and parasitic taxa) documents over 3,100 described species in 379 genera, inhabiting marine environments from shallow coastal waters down to a depth of 7,280 meters.4PubMed Central. Global diversity of marine isopods (except Asellota and crustacean symbionts) Marine isopods range in size from less than a millimeter to the giant isopod Bathynomus giganteus, which can reach 365 millimeters long. The familiar pill bugs and sowbugs in your garden are the exception within their order, not the rule. Terrestrial woodlice (Oniscidea) evolved from marine ancestors and made the jump to land independently of myriapods. Phylogenomic evidence supports a single origin of terrestriality within Isopoda, meaning all land-dwelling isopods trace back to one marine-to-land transition.2PubMed Central. Phylogenomics supports a single origin of terrestriality in isopods
This difference in ancestry shows up in their physiology. Terrestrial isopods still breathe through modified gill-like structures (pleopodal lungs) on their abdominal appendages, a holdover from their aquatic past. That is why woodlice dry out and die so quickly in low-humidity conditions. They never fully severed the physiological ties to water the way myriapods did. Millipedes, while also preferring moist habitats, are somewhat more tolerant of drier conditions because their tracheal breathing system is a truly terrestrial adaptation.
Doing the Same Job in the Same Place
Despite their deep evolutionary separation, millipedes and terrestrial isopods occupy remarkably similar ecological niches. Both are macrodetritivores, meaning they consume large pieces of decaying plant material, particularly leaf litter on the forest floor. This shared role is one reason researchers often study them side by side.
A study comparing how isopods and millipedes consume, assimilate, and grow on different leaf litter types found that while consumption and growth rates varied considerably depending on the plant species and the specific detritivore involved, there were no overall differences between isopods and millipedes as groups.5Functional Ecology. Effects of leaf litter traits on terrestrial isopod and millipede consumption, assimilation and growth In other words, a given millipede species and a given isopod species might differ substantially in how fast they chew through a particular type of leaf, but one group does not systematically outperform the other. Both are performing the same essential ecological function: breaking down dead plant material and recycling nutrients back into the soil.
This functional overlap is part of what makes confusing the two groups so easy. In a garden or forest setting, you will find them in the same microhabitats, eating the same material, and contributing to the same decomposition processes. The differences only become obvious when you look at their bodies, their evolutionary histories, or their broader ecology beyond the backyard.
How They Protect Themselves
Defense strategies differ between millipedes and isopods in revealing ways. Many millipede species have chemical defenses, producing and secreting irritating or toxic compounds from glands along the sides of their bodies. The specific chemicals vary widely. Some millipede species secrete hydrogen cyanide. Others produce quinones, phenols, or alkaloids. Research on millipedes in the genus Brachycybe, for example, has identified multiple distinct alkaloids produced by different species within the same genus, with some species producing four alkaloid compounds and others producing just one.6SpringerOpen. The Chemistry of the Defensive Secretions of Three Species of Millipedes in the Genus Brachycybe These chemical cocktails can stain skin, irritate mucous membranes, and deter many predators.
Terrestrial isopods generally lack this kind of chemical weaponry. Their primary defenses are mechanical: rolling into a ball (in pill bugs), fleeing, or relying on their tough exoskeleton and cryptic coloring. Some isopod species can secrete mildly unpleasant fluids, but nothing approaching the chemical sophistication of millipede defenses. The ability of pill bugs and pill millipedes to both roll into tight balls is another instance of convergent evolution between the two groups. The behavior looks identical, but it evolved independently in each lineage.
Different Guts, Different Partners
Both millipedes and terrestrial isopods eat decaying leaves, but the internal machinery they use to digest that material differs. Leaf litter is nutritionally poor and structurally tough, full of complex plant polymers that are difficult to break down. Many detritivores rely heavily on gut microorganisms to help them extract nutrients.
Research on the millipede gut microbiome has found that even millipede species from very different environments and of very different sizes harbor gut bacteria that are taxonomically distinct from one another but functionally similar, meaning the bacterial communities look different species-by-species but carry out broadly the same metabolic tasks.7PubMed Central. Functional similarity, despite taxonomical divergence in the millipede gut microbiota, points to a common trophic strategy This suggests a common digestive strategy across Diplopoda, where the gut environment selects for certain microbial functions regardless of which specific bacterial species fill the roles. Some millipede species even host methane-producing archaea in their hindguts, making them among the few invertebrates that emit methane as a byproduct of digestion.
Isopod digestion follows a crustacean blueprint. Terrestrial isopods have a hepatopancreas, a digestive gland typical of crustaceans, that plays a central role in nutrient absorption and, interestingly, in storing heavy metals and other toxins from their food. Their gut microbial communities are structured differently from those of millipedes, reflecting the distinct evolutionary origins of the two digestive systems. Even when both animals eat the same decaying leaf, the biochemical pathways used to extract nutrition from it are not the same.
Isopod Ecological Diversity Beyond the Garden
One reason it helps to understand that millipedes and isopods are unrelated is that it opens the door to appreciating how different isopods really are as a group. The pill bugs under your flowerpot represent a narrow slice of isopod diversity. Marine isopods include predators, scavengers, filter feeders, and parasites. Some marine isopods are fish parasites that attach to their hosts and feed on blood or tissue. The deep-sea giant isopod, which can sit comfortably in a person’s hand, scavenges whale carcasses and other organic material that sinks to the ocean floor. Catalogued marine isopods occupy four broad feeding categories: detritus feeders and browsers, carnivores, parasites, and filter feeders.4PubMed Central. Global diversity of marine isopods (except Asellota and crustacean symbionts)
Millipedes, by contrast, are almost exclusively detritivores. A handful of species supplement their diet with seedlings, fungi, or animal matter, but the group as a whole is overwhelmingly plant-litter specialists. They never branched out into the predatory, parasitic, or filter-feeding niches that isopods occupy. This contrast in ecological breadth reflects their different evolutionary toolkits: crustaceans had the body plan and physiological flexibility to radiate into an enormous range of habitats and lifestyles, while myriapods settled into a more specialized terrestrial role.
Practical Identification at a Glance
If you find a small, multi-legged creature in your garden and want to know which group it belongs to, here are the features to check:
- Legs per segment: Two pairs on most segments means millipede. One pair per segment means isopod (or centipede, or something else entirely).
- Total leg count: Fourteen walking legs points to an isopod. Dozens to hundreds of legs points to a millipede.
- Antennae: Short and stubby favors millipede. Longer and more prominent, possibly two pairs visible, favors isopod.
- Body shape: Cylindrical and worm-like is typical of most millipedes. Dorso-ventrally flattened (wider than tall) is typical of most isopods. Pill millipedes and pill bugs are both rounded when rolled up, which is where confusion peaks.
- Reaction to handling: A strong chemical smell or staining on your fingers after handling suggests millipede. Woodlice generally do not produce noticeable secretions.
Pill bugs and pill millipedes remain the hardest pair to distinguish at a casual glance. If the animal is rolled into a ball and you are willing to wait for it to uncurl, counting legs is definitive. You can also look at the surface texture: pill millipedes tend to have a smoother, shinier dorsal surface, while pill bugs often appear slightly rougher or more segmented on top. The number of visible body plates also differs, though this takes practice to gauge.
When Both Show Up in the Same Terrarium
Hobbyists who keep bioactive terrariums or vivariums often introduce both isopods and millipedes as part of a “clean-up crew” to break down organic waste. In this context, understanding the distinction matters for practical reasons. Isopods, particularly species like Porcellio scaber or Armadillidium vulgare, reproduce readily in captivity and can serve as supplemental food for some reptiles and amphibians. Millipedes are not typically used as feeder animals because of their chemical secretions, which can be irritating or toxic to predators.
Housing them together is generally feasible because they fill the same niche without directly competing in harmful ways, and both benefit from high humidity and access to decaying leaf litter and rotting wood. But their care requirements diverge in specifics. Millipedes are more sensitive to substrate quality and calcium availability, since they need to build and maintain their hard exoskeletons through frequent molts. Isopods are often hardier in captivity and tolerate a wider range of conditions, partly because their crustacean physiology gives them somewhat different mineral requirements. Anyone setting up a terrarium with both should know they are managing two fundamentally different types of animal, not slight variations on the same creature.