If you’ve found little gray roly-polies curled up under your mulch, you’re not alone. Most of the time they’re harmless. But when their numbers climb, they can chew through seedlings overnight and hollow out your best strawberries.
The good news is that you can get rid of pill bugs in the garden without harsh sprays.
In this guide, I’ll explain what they are, when they actually cause trouble, and the simple moisture fixes, traps, barriers and baits that bring them back under control.
What Are Pill Bugs?
Pill bugs are small land crustaceans, not insects. They’re related to shrimp and crabs, and they need damp conditions to survive.
A Crustacean Living on Land
The common pill bug goes by the scientific name Armadillidium vulgare. Most people know it as a roly-poly. It belongs to a group called isopods.
Pill bugs breathe through gill-like structures on their undersides. Those structures have to stay moist to work. That’s why you rarely see pill bugs out in the hot afternoon sun.
Instead, they hide in cool, wet places during the day. They come out at night or on damp, cloudy mornings to feed.
How to Recognize Them
Adult pill bugs are about a third to a half inch long. They’re oval, gray to dark slate, and covered in overlapping armored plates. They have seven pairs of legs and two short antennae.
The easiest giveaway is their defense move. When you touch one, it rolls into a tight ball. That’s where the nicknames “roly-poly” and “pill bug” come from.
Here’s a quick look at their key traits:
| Trait | Pill Bug |
|---|---|
| Group | Crustacean (isopod), not an insect |
| Size | About 1/3 to 1/2 inch |
| Color | Gray to dark slate |
| Legs | 7 pairs |
| Defense | Rolls into a ball |
| Active | Mostly at night |
| Needs | Moisture and shelter |
Products Worth Having on Hand
Before we get into the details, I want to mention two things that make control much easier. Neither one is fancy.
- An iron phosphate bait labeled for sow bugs and pill bugs. These come as small pellets you scatter around plants. Some versions also contain spinosad. They’re a good backup when numbers are high.
- Straw mulch. A clean layer of straw is great for lifting strawberries, melons and squash off damp soil. It dries out faster than wood chips or leaf piles when used thinly.
I’ll explain exactly how to use both later in the article. For most gardens, though, moisture control does the heavy lifting.

Are Pill Bugs Good or Bad for Your Garden?
Pill bugs are mostly good for your garden. They only become a problem when their population gets large and tender plants or ripe fruit sit right where they feed.
Why a Few Pill Bugs Help
Pill bugs mainly eat decaying plant material. Think dead leaves, rotting mulch, old roots and soft plant scraps.

By chewing up that debris, they help break down organic matter. That returns nutrients to the soil. It’s the same job earthworms and many soil microbes do.
In a compost pile, pill bugs are welcome workers. My advice is to leave them alone there. They speed up the breakdown of coarse material.
When They Turn Into a Pest
Trouble starts when numbers get high. A big population runs out of rotting food and starts sampling soft, living tissue.
Seedlings are the first target. Their stems are thin and tender, and they sit right at soil level. Ripe fruit resting on damp ground is next.
Dry spells can also push them toward your plants. When decaying material dries out, juicy seedlings and fruit become more attractive.
Keeping the Balance
You don’t need to wipe out every pill bug. That’s not realistic, and it isn’t helpful. The goal is to keep them near the compost and away from your vulnerable crops.
Think of pill bugs like many common vegetable garden pests. A small number is just part of a living garden. You only step in when you see real damage.
| Situation | Good or Bad? | What to Do |
|---|---|---|
| A few in the compost pile | Good | Leave them alone |
| Some under mulch in established beds | Mostly fine | Monitor |
| Many around new seedlings | Bad | Reduce moisture, trap, protect |
| Feeding on fruit on the ground | Bad | Lift fruit, trap, consider bait |
Signs Pill Bugs Are Damaging Plants
The main signs are seedlings chewed off at soil level and shallow holes in fruit touching damp soil. Seeing many pill bugs right at the damaged spot, especially at night, confirms it.
Damage on Seedlings and Transplants
Pill bugs feed low. They chew the stems and lower leaves of young seedlings right at the soil line.
You may find tiny plants that look snipped off or wilted overnight. Leaves close to the ground can have ragged edges or small irregular holes.
Bean, cucumber, squash and lettuce seedlings are common targets. Tender transplants that were just set out can suffer too.

If your cucumber plants not growing well is a mystery, check the base of the stems. Pill bug feeding on young vines can stunt them early in the season.
Damage on Fruit
On fruit, pill bugs usually go for the side touching the soil. They leave shallow, scooped-out cavities.
Ripe strawberries are a favorite. You’ll also see damage on cucumbers, melons and squash lying on damp ground.

Often, pill bugs move into fruit that’s already cracked, overripe or nibbled by something else. Even so, they can widen the damage quickly.
Ruling Out Other Culprits
Lots of pests chew holes in plants. So it’s worth confirming the cause before you treat.
Slugs and snails also feed at night and love moisture. But they leave shiny slime trails. Pill bugs don’t.
Caterpillars and beetles tend to feed higher on the plant and in daylight. If you’re seeing holes on brassicas, my guide on what is eating my cabbage leaves can help you sort it out.
The best test is simple. Go out with a flashlight an hour or two after dark. If pill bugs are crowding the damaged plants, you’ve found your answer.
| Pest | Slime Trail | Feeding Time | Typical Damage |
|---|---|---|---|
| Pill bugs | No | Night | Seedling stems, fruit on soil |
| Slugs and snails | Yes | Night | Large ragged holes, seedlings |
| Cutworms | No | Night | Stems cut cleanly at soil line |
| Caterpillars | No | Day and night | Holes in upper leaves, droppings |
Cut Back Moisture and Hiding Spots
The best long-term way to get rid of pill bugs in the garden is to make it drier and less sheltered near your plants. Without moisture and hiding places, they can’t thrive close to your crops.
Water in the Morning
Watering time matters more than most people think. When you water in the evening, the soil surface stays wet all night. That’s exactly when pill bugs are out feeding.
Water in the morning instead. That gives the top layer of soil time to dry before dark.
Drip irrigation or soaker hoses help too. They deliver water to the root zone and keep the surface between plants drier. Avoid overwatering, and check soil moisture with your finger before turning on the hose.
Manage Your Mulch
Mulch is great for plants. It holds moisture, cools roots and blocks weeds. But a thick, damp layer is also a perfect pill bug hotel.
You don’t need to remove it. Just pull mulch back a few inches from seedlings and plant stems. That leaves a dry gap right where pill bugs would feed.
Keep mulch thinner where pill bugs are a problem, especially early in the season. Once plants are bigger and tougher, you can add more. For more on doing this well, see my guide to mulching a vegetable garden.
Remove Boards, Rocks and Debris
Pill bugs spend the day under anything that holds moisture. Boards, flat rocks, bricks, pots and piles of leaves all count.
Clear these out from around your beds. Rake up fallen leaves, old plant stems and rotting fruit too.
Here are the most common hiding spots to check:
- Boards and lumber scraps on the soil
- Flat rocks, pavers and bricks
- Upside-down pots and trays
- Piles of pulled weeds or leaves
- Rotting fruit and vegetables
- Thick, wet mulch against stems
Regular tidying makes a big difference. My garden cleanup tips cover what to clear in each season.
Finally, keep your compost pile away from vegetable beds. Compost is full of pill bugs, and that’s fine. Just give it some distance so they don’t wander into your seedlings.
Traps and Barriers That Work
Simple homemade traps catch lots of pill bugs overnight, and basic barriers keep them away from young plants. Both are cheap, safe and easy.
Board and Newspaper Traps
This method uses the pill bug’s love of dark, damp shelter against it. It’s my favorite first step.
Here’s how to set it up:
- Lay a flat board on moist soil near damaged plants in the evening.
- Or roll up a sheet of damp newspaper and set it on the ground.
- Check underneath first thing in the morning.
- Collect the pill bugs and move them to the compost pile, or drop them in soapy water.
- Repeat for several nights.
The key is to check every morning. A trap left in place for days just becomes a new hiding spot. That would defeat the purpose.
Melon Rind and Potato Traps
Pill bugs love soft, decaying food. That makes fruit scraps perfect bait.

Turn an old melon or cantaloupe rind upside down on the soil. A potato cut in half, cut side down, works too. Leave it overnight.
In the morning, lift the rind and collect the pill bugs gathered underneath. Toss the used rind in the compost and set a fresh one if needed.
| Trap Type | Materials | Best Use |
|---|---|---|
| Board trap | Flat board | Large beds, repeated use |
| Newspa |