The most effective way to keep centipedes out of your home is to remove the two things they need: moisture and prey. Centipedes don’t invade homes looking for you or your food. They follow other bugs indoors, and they stay because the environment is damp enough to support them. Eliminate those conditions and you eliminate the centipedes.
Why Centipedes Are in Your Home
House centipedes are nocturnal hunters. They spend the day hiding in dark, damp spots and emerge at night to hunt silverfish, cockroaches, carpet beetle larvae, spiders, and other small arthropods. If you’re seeing centipedes regularly, that’s a signal: something else is living in your home in large enough numbers to sustain a centipede population. The centipedes are a symptom. The real problem is the pest population they’re feeding on.
Their preferred hiding spots tell you a lot about what they need. Centipedes gravitate toward crawl spaces, the gaps beneath concrete slabs, the hollow cores of cement block walls, floor drains without water traps, and cardboard boxes stored directly on basement floors. Every one of those locations shares two traits: darkness and moisture.
Cut the Moisture First
Moisture control is the single most impactful step you can take. Centipedes breathe through openings along their body that lose water easily, so they physically cannot survive in dry environments. A dehumidifier in the basement or crawl space makes the area inhospitable to them over time.
Beyond running a dehumidifier, look for active water sources. Fix leaking pipes, especially in basements, under sinks, and around water heaters. Run exhaust fans in bathrooms during and after showers. Make sure your attic has adequate ventilation. Check that floor drains have functioning water traps, because dry drains connected to sumps act as both moisture sources and entry points. Outside, direct downspouts away from the foundation and grade soil so water flows away from the house rather than pooling against it.
Seal Their Entry Points
Centipedes enter through surprisingly small gaps. A crack of 1/16 inch is enough for insects and arthropods to squeeze through. A thorough sealing job targets several key areas:
- Exterior doors: Install door sweeps or thresholds on every outside door. Lie on the floor and look for daylight under the door. If you see any, the gap is large enough. Apply caulk along the bottom outside edge and sides of thresholds. Garage doors should have rubber bottom seals (vinyl cracks in cold weather).
- Sliding glass doors: Line the bottom track with half-inch to three-quarter-inch foam weatherstripping.
- Utility openings: Seal gaps where pipes and wires enter the foundation and siding. This includes outdoor faucets, electrical receptacles, gas meters, dryer vents, and cable or phone lines. Use silicone caulk, cement, expandable foam, or copper mesh depending on the gap size.
- Windows: Caulk cracks around window frames and fascia boards with silicone or acrylic latex caulk. Repair any torn or damaged screens.
- Foundation cracks: Pay special attention to expansion cracks in concrete slabs, gaps around sump pump openings, and missing mortar between cement blocks. These are some of the most common centipede highways into a home.
- Vents: Cover attic, roof, and crawl space vents with quarter-inch wire mesh (hardware cloth) to block entry without restricting airflow.
Eliminate Their Food Supply
A house with no prey insects has nothing to offer a centipede. Tackling the bugs centipedes eat, like silverfish, cockroaches, and carpet beetles, removes their reason for staying. This often means addressing the same moisture issues already discussed, since most of those prey species also thrive in damp conditions.
Declutter storage areas, especially basements. Cardboard boxes sitting on concrete floors are ideal habitat for both centipedes and their prey. Switch to plastic bins with tight lids and elevate them off the floor on shelving. Vacuum regularly in dark corners, closets, and under furniture to remove both prey insects and their eggs. If you have a significant cockroach or silverfish problem, address that directly; once the food source disappears, centipedes will follow.
Diatomaceous Earth as a Barrier
Diatomaceous earth is a fine powder made from fossilized algae that works mechanically, not chemically. Its microscopic sharp edges scratch the waxy outer layer of an arthropod’s body, causing it to lose moisture and dry out. It’s not a poison, so insects don’t need to eat it. It just needs to contact them.
Apply a thin layer in cracks along baseboards, behind appliances, around floor drains, and in any gap where centipedes travel. It stays effective indefinitely as long as it remains dry and undisturbed, which makes it well suited for undisturbed spots like crawl spaces and the backs of closets. Once it gets wet, it stops working.
A few precautions: the dust can irritate your nose, lungs, eyes, and skin. Wear a dust mask and eye protection when applying it. Keep it out of areas where children or pets will kick it up into the air. Choose food-grade diatomaceous earth rather than the pool-grade version, which is processed differently and not intended for pest control use in living spaces.
Essential Oils and Natural Repellents
Centipedes rely heavily on their antennae to sense their environment, and strong scents can overwhelm those sensory organs enough to make them avoid treated areas. Peppermint oil is the most commonly recommended option. Mix 15 to 20 drops per cup of water in a spray bottle and apply it into cracks along floorboards, around window frames, and along baseboards. Tea tree oil, eucalyptus oil, and lavender oil can work similarly.
The limitation is durability. The scent fades within a few days, so you’ll need to reapply regularly. For best results, apply the oil directly into cracks rather than misting it across open surfaces. Concentrated peppermint oil in direct contact with a centipede can actually burn it, adding a physical deterrent beyond just the smell. Cayenne pepper sprinkled in a thin line around entry points can also create a barrier centipedes avoid, though it’s impractical for large areas and needs frequent replacement.
Essential oils and spices work as supplements to the core strategy of moisture control and sealing, not replacements. They won’t solve an infestation on their own.
The Case for Tolerating a Few
House centipedes are genuinely beneficial predators. A single centipede patrolling your basement at night is actively hunting cockroaches, silverfish, carpet beetle larvae, and spiders. In small numbers, they’re doing free pest control. They don’t damage structures, don’t contaminate food, and rarely bite (and when they do, it’s comparable to a mild bee sting for most people).
If you’re seeing one every few weeks, that’s a normal level of coexistence in most homes. If you’re seeing them daily or in multiple rooms, that points to a moisture problem and a thriving prey population that’s worth investigating for its own sake. Solving those underlying issues is what keeps centipedes away permanently, rather than chasing individual bugs with a shoe.