What Causes Pill Bugs and How to Get Rid of Them

Pill bugs, often found beneath garden debris, are common residents of yards and landscapes. These organisms are terrestrial crustaceans, more closely related to shrimp and lobsters than to insects. Understanding the environmental conditions that attract them is the first step in managing their populations. This guide details the biological needs and habitat factors that cause pill bugs to congregate, and provides strategies to mitigate their presence.

Basic Identification of Pill Bugs

The pill bug, also known as a roly-poly or woodlouse, is classified as an isopod crustacean. They possess a segmented, oval-shaped body protected by seven overlapping, hardened plates. Adults typically measure between one-third and three-quarters of an inch long and have seven pairs of legs. The defining characteristic is their ability to curl completely into a tight, defensive ball—a behavior called conglobation—which protects their softer underside from predators.

The Biological Need for Constant Moisture

Pill bugs are heavily reliant on ambient humidity due to a physiological limitation inherited from their aquatic ancestors. Unlike insects, they lack a waxy cuticle on their exoskeleton, causing them to lose body water rapidly through transpiration in dry air. They utilize gill-like structures called pleopodal lungs located on the underside of their abdomen for breathing. These respiratory surfaces must remain consistently damp to facilitate gas exchange, preventing survival in low-humidity environments. This biological imperative is the fundamental driver behind their nocturnal activity and their constant search for dark, humid shelter.

Essential Food Sources and Habitat

The presence of pill bugs is directly linked to the availability of both persistent moisture and a specific type of food source. These organisms are detritivores, meaning their diet consists primarily of dead and decaying organic matter, which they help recycle back into the soil. Their preferred food includes rotting wood, fallen leaves, mulch, and other forms of plant detritus found on the ground surface. These materials also act as sponges, providing the high humidity required for their survival. Consequently, they thrive in habitats that offer this moist, decomposing buffet, such as under stones, logs, dense ground cover, and thick layers of mulch.

Removing the Conditions of Attraction

Mitigating a pill bug presence relies entirely on modifying the environmental conditions that attract them, focusing on moisture and food. Begin by improving drainage around the home’s foundation and garden beds to eliminate standing water and damp soil. Avoid overwatering plants and ensure that outdoor spigots or air conditioning units are not creating persistently wet areas. Reducing the depth of organic mulch to less than two inches will allow the soil surface to dry out more quickly.

Regularly remove accumulations of fallen leaves, grass clippings, and other organic debris from garden paths and areas adjacent to the house. These materials serve as both a food source and a daytime hiding spot. For areas where moisture cannot be entirely eliminated, apply food-grade diatomaceous earth (DE) around the perimeter of garden beds or entry points. This finely powdered material works by physically absorbing moisture from the pill bugs’ exoskeleton, causing dehydration. Finally, seal small cracks, gaps, and entry points in the foundation or around ground-level windows and doors to prevent the crustaceans from wandering inside.