Pill Bug Spray: What Works and How to Apply It

Pill bugs rarely need a dedicated spray. These small, armored crustaceans (also called roly-polies or woodlice) are moisture-dependent creatures, and the most effective way to eliminate them is to remove the damp conditions they need to survive. When populations are large enough to warrant a spray, a few product types work well, but they’re best used as part of a broader moisture-control strategy rather than as a standalone fix.

Why Pill Bugs Show Up in the First Place

Pill bugs breathe through gill-like structures, which means they dry out and die quickly in low-humidity environments. If you’re finding them indoors, there’s almost certainly a moisture source nearby: a leaky pipe, poor drainage against the foundation, mulch piled against the house, or a damp basement or crawl space. Spraying without addressing the moisture is like mopping the floor while the faucet is still running. They’ll keep coming back.

Outdoors, pill bugs live under rocks, logs, leaf litter, and landscape fabric. They feed on decaying organic matter and are actually beneficial decomposers in garden soil. They only become a nuisance when populations explode near the foundation and individuals wander inside, typically through gaps under doors, cracks in the foundation, or around ground-level windows.

Sprays That Work on Pill Bugs

If you’ve addressed moisture and still have a persistent problem, a perimeter spray is the most common chemical approach. These products create a treated barrier around the outside of your home that pill bugs cross as they move toward the foundation.

Synthetic pyrethroids are the active ingredients in most store-bought perimeter sprays. Products containing bifenthrin, cyfluthrin, or lambda-cyhalothrin are widely available at hardware stores and are labeled for pill bugs (sometimes listed as “sowbugs” or “woodlice” on the label). You spray a band along the base of your exterior walls, typically 6 to 12 inches up the foundation and 6 to 12 inches out onto the ground. Most products also allow you to treat door thresholds, window frames, and cracks where pill bugs enter.

Ready-to-spray bottles that attach to a garden hose and pump sprayers with concentrated formulas are the two main formats. Concentrates are more economical for larger perimeters but require mixing. Ready-to-use trigger sprays work fine for spot treatments around a single door or window.

Natural and Low-Toxicity Options

Diatomaceous earth (the food-grade type) is a popular non-spray alternative. This fine powder damages the waxy coating on pill bugs’ exoskeletons, causing them to dehydrate. You dust it into cracks, along baseboards, and in dry areas where pill bugs travel. It stops working when wet, so it’s best suited for indoor use or protected outdoor spots.

Spinosad-based sprays, derived from a soil bacterium, are another lower-toxicity option that works on pill bugs. Some essential oil sprays (particularly those containing cedar oil or peppermint oil) can kill pill bugs on direct contact, but they have no residual effect. Once the spray dries, it offers no ongoing protection.

How to Apply a Perimeter Spray Effectively

Timing matters. Apply perimeter sprays during dry weather so rain doesn’t wash the product away before it bonds to surfaces. Late afternoon or evening is ideal because pill bugs are most active at night, and applying later in the day reduces exposure to pollinators that are active during peak daylight hours.

Before spraying, clear debris away from the foundation. Pull mulch back at least 6 inches from the house, move firewood stacks away from exterior walls, and rake up leaf litter. This step alone can dramatically reduce pill bug numbers by eliminating their harborage right next to entry points.

Indoors, spraying is rarely necessary. Pill bugs that wander inside typically die within a day or two as the indoor air dries them out. If you’re finding live pill bugs inside regularly, focus on sealing entry points: weatherstripping under doors, caulking foundation cracks, and ensuring window wells drain properly. A light application of diatomaceous earth along basement walls or in crawl spaces handles most indoor situations without spraying liquid pesticides in living areas.

Pet Safety With Perimeter Sprays

Pyrethroid-based sprays do carry some risk for pets, particularly cats. According to the National Pesticide Information Center, dogs and cats exposed to pyrethroids can show signs ranging from mild (single-episode vomiting, ear twitching, paw flicking, excessive drooling) to more serious (tremors, incoordination, dilated pupils). Most mild reactions are self-limiting, but more significant exposures can cause whole-body tremors and depression.

The practical precaution is straightforward: keep pets off treated surfaces until the spray has fully dried, which typically takes 30 minutes to two hours depending on temperature and humidity. Once dry, the residue bonds to the surface and presents far less risk than wet product. If you have cats that rub along the base of exterior walls, consider treating only the ground band and skipping the vertical foundation surface, or switch to granular bait formulations that pill bugs consume directly.

Granular Baits as an Alternative to Sprays

Granular insecticide baits scattered around the foundation perimeter are another effective approach. These products contain the same active ingredients as sprays but in a pellet form that pill bugs encounter as they crawl through treated zones. Granules work well in mulch beds and along foundation edges where sprays can be difficult to apply evenly. They also tend to last longer in areas where rain or irrigation would wash away a liquid treatment.

Some products combine a bait attractant with the insecticide, drawing pill bugs to the granules. These can be especially useful under potted plants, around garden borders, and in other pill bug hotspots. Scatter them according to the label rate and reapply after heavy rain.

Long-Term Prevention Without Spraying

The most durable solution to a pill bug problem is environmental. Fix leaking outdoor faucets and downspouts. Grade soil so water drains away from the foundation rather than pooling against it. Replace organic mulch near the house with gravel or rubber mulch, which doesn’t hold moisture the way wood chips do. Improve ventilation in crawl spaces, and use a dehumidifier in chronically damp basements.

Reducing outdoor lighting near entry doors also helps. Pill bugs are attracted to light at night, and bright porch lights draw them toward the exact spots where they’re most likely to find a way inside. Switching to yellow or amber bulbs, which attract fewer insects and arthropods overall, can make a noticeable difference. Combined with a single perimeter spray application in spring or early summer, these changes keep most homes pill bug-free without repeated chemical treatments.