What Repels Millipedes From Entering Your Home?

The most effective way to repel millipedes is to remove the moisture they depend on, seal the gaps they crawl through, and apply a barrier treatment around your home’s foundation. No single method works perfectly on its own, but combining habitat changes with physical exclusion and a chemical or natural barrier keeps millipedes from showing up indoors.

Why Millipedes Show Up in the First Place

Millipedes feed on decaying organic matter and need constant moisture to survive. They live in soil, leaf litter, mulch beds, and under logs or stones. When outdoor conditions shift, they move, sometimes in large numbers. Most species migrate when the weather becomes too hot or too cold, too wet or too dry. These mass movements happen most often in spring and fall, though heavy rains followed by flooding or a sudden dry spell can trigger them at any time of year.

The millipedes you find inside your house aren’t trying to live there. They wandered in during one of these migrations and followed moisture gradients toward your foundation. Once inside, they typically die within a day or two because indoor air is too dry for them. The goal of repelling millipedes is really about intercepting that migration before they reach your doors and walls.

Reduce Moisture Around Your Foundation

Because millipedes are drawn to damp environments, drying out the zone immediately around your home is the single most impactful thing you can do. Pull mulch, leaf litter, and ground cover back at least 6 to 12 inches from the foundation wall. If you have thick mulch beds against the house, reduce the depth to no more than 2 inches, or switch to gravel or rock, which drains faster and doesn’t hold moisture the way wood chips do.

Make sure your gutters drain well away from the foundation. Downspout extensions that deposit water 3 to 4 feet from the house prevent the soil near your walls from staying saturated. Fix any leaking outdoor faucets or air conditioning drip lines, and regrade any areas where water pools after rain. Irrigation systems that spray the foundation or soak mulch beds at night create exactly the conditions millipedes prefer.

Inside, a dehumidifier in a damp basement or crawl space makes the area far less hospitable. Improving ventilation in crawl spaces with properly sized vents also helps.

Seal Entry Points

Millipedes are surprisingly good at finding small gaps in a home’s exterior. The most common entry points are door thresholds (especially at the base of sliding glass doors and garage doors), expansion joints where patios or sidewalks meet the foundation, and the voids inside concrete block walls.

A few targeted fixes make a big difference:

  • Door sweeps on all exterior entry doors, including the garage. Apply caulk along the bottom outside edge and sides of each door threshold.
  • Foundation cracks sealed with exterior-grade caulk or foam, focusing on the lowest 2 feet of the wall where millipedes travel.
  • Expansion joints where outdoor patios, sunrooms, and sidewalks abut the foundation. These gaps widen with temperature changes and are a major highway for crawling pests.
  • Basement wall gaps sealed on the interior side as well, especially along the bottom edge where the wall meets the floor. This catches anything that made it through the block wall.
  • Basement windows and sill plates caulked where the wood framing sits on the foundation.

These changes also reduce moisture intrusion, which compounds the benefit.

Diatomaceous Earth as a Natural Barrier

Diatomaceous earth (DE) is a fine powder made from fossilized algae. It works mechanically rather than chemically: the microscopic particles absorb the oils and moisture from a millipede’s outer coating, causing it to dehydrate and die. It is not toxic to people or pets.

Apply food-grade DE in a thin, continuous line along potential entry points: door thresholds, foundation cracks, basement window frames, and garage edges. It stays effective as long as it remains dry and undisturbed, but rain or irrigation washes it away, so you’ll need to reapply after wet weather. For this reason, DE works best in sheltered spots like under door overhangs, inside garages, and along interior basement walls rather than fully exposed outdoor surfaces.

Chemical Perimeter Treatments

If habitat changes and sealing aren’t enough, a perimeter insecticide spray creates a chemical barrier that kills millipedes on contact. The most effective options for homeowners are pyrethroid-based products. Look for one of these active ingredients on the label: bifenthrin, cyfluthrin, cypermethrin, or lambda-cyhalothrin. These are fast-acting and widely available at hardware stores as ready-to-spray concentrates.

Apply the product in a band along the base of your exterior foundation walls, typically about 3 feet up the wall and 3 feet out onto the ground. Treat door frames, garage entries, and any cracks or expansion joints you haven’t been able to fully seal. Most pyrethroid sprays provide residual protection for several weeks, though rain and direct sunlight break them down faster. Reapply according to the label directions, and focus treatments in spring and fall when millipede migration is most active.

Granular formulations can also be spread in mulch beds and along sidewalks near the foundation. These dissolve slowly with watering and can extend the duration of protection in the soil layer where millipedes travel.

Outdoor Habitat Cleanup

Anything on the ground near your home that stays damp is a potential millipede staging area. Stacked firewood, compost piles, landscape timbers, dense ground cover plants like ivy, and piles of leaves or grass clippings all provide the cool, moist, decaying-material habitat millipedes thrive in. Moving these items at least 10 to 20 feet from the house, or eliminating them entirely, reduces the local population that could migrate toward your walls.

Stones, pavers, and decorative boulders sitting directly on soil near the foundation trap moisture underneath and attract millipedes. Lifting them periodically to let the soil dry, or setting them on a gravel base, helps. Even something as simple as raking back leaf debris from the foundation edge in fall removes the food source and shelter that draws millipedes close enough to find their way inside.

What Doesn’t Work Well

Essential oils like peppermint, tea tree, and cedarwood are sometimes recommended as millipede repellents. While some of these oils may cause millipedes to avoid a treated area briefly, they evaporate quickly and don’t provide a lasting barrier. You’d need to reapply them daily, and they won’t stop a mass migration event.

Sticky traps placed indoors can catch individual millipedes that have already entered, but they do nothing to prevent entry. They’re useful as a monitoring tool to see whether your other efforts are working, not as a primary defense. Ultrasonic pest devices have no demonstrated effect on millipedes.

Indoor insecticide sprays are also largely unnecessary. Millipedes that make it inside typically die on their own from dehydration within 24 to 48 hours. Vacuuming them up is faster and avoids unnecessary chemical use indoors. The real solution is always outside: dry the perimeter, block the gaps, and treat the foundation line before they ever reach your living space.