Earwigs are attracted to moisture, darkness, tight sheltering spaces, and a wide range of food sources including decaying organic matter, garden plants, and other insects. If you’re finding them in your home or garden, one or more of these conditions is drawing them in.
Moisture Is the Biggest Draw
More than anything else, earwigs seek out damp environments. They dry out easily, so they gravitate toward any area where moisture collects and persists. Outdoors, that means soil under stones, wet mulch, compost bins, and the base of leaky sprinkler heads. Indoors, the pattern is the same: areas under sinks, damp basements, and bathrooms are the most common spots where earwigs show up. If your home has a moisture problem in the foundation or crawl space, earwigs will find it.
Dark, Tight Hiding Spots
Earwigs are nocturnal. They come out to feed at night and spend the day wedged into the tightest, darkest crevice they can find. This is why you’ll often discover clusters of them under boards, rocks, flowerpots, stacked firewood, leaf piles, and garden debris. They don’t need much space. A small gap between a planter and a wall, the fold of a tarp, or the underside of a doormat all qualify as prime daytime shelter.
This sheltering behavior also explains why they end up indoors. They aren’t necessarily seeking out your house for food. They slip through cracks in foundations, gaps around doors, and openings near ground-level pipes looking for a dark, snug space to hide during the day.
Food Sources in the Garden
Earwigs are true omnivores, feeding on a surprisingly broad diet that includes plants, fungi, decaying organic matter, and other insects. In the garden, they’re attracted to leafy greens, brassicas like cabbage and broccoli, corn, cucurbits (squash, cucumber), and legumes. They prefer ripe, soft fruits over firm or unripe ones, which is why you’ll often find damage on strawberries or stone fruit close to harvest time.
They also feed on decomposing plant material, which means compost piles and thick layers of mulch serve double duty as both shelter and a food source. Leaf litter, dead perennial foliage, and weedy areas are equally attractive for the same reason.
On the beneficial side, earwigs are opportunistic predators that eat aphids, caterpillars, mites, scale insects, and maggots. A garden with a heavy aphid population can actually attract more earwigs. This predatory behavior makes them genuinely useful in some situations, though it doesn’t help much when they’re also chewing holes in your lettuce.
Pheromones That Attract More Earwigs
One reason earwigs cluster together rather than spreading out evenly is that they produce aggregation pheromones, chemical signals that attract other earwigs to the same hiding spot. Males, females, and juveniles all produce and respond to these signals, which they detect through smell. This means a small earwig presence can snowball. Once a few earwigs settle into a favorable spot under your deck or in your garden bed, the chemical cues they leave behind actively recruit more.
Research from the University of British Columbia found that the pheromone system is more complex than originally thought. Juveniles and adults may produce and respond to different pheromone components, and the exact source of the chemicals on the earwig’s body hasn’t been fully pinpointed. But the practical takeaway is simple: earwigs attract more earwigs, and removing an established group early prevents the colony from growing.
What Attracts Earwigs Indoors
Earwigs don’t typically thrive indoors in large numbers unless conditions are unusually favorable. A dry, well-ventilated house with sealed entry points won’t support them. But basements with high humidity, bathrooms with persistent dampness, and kitchens with food crumbs on the floor can sustain small populations. Potted houseplants with consistently moist soil also provide the combination of moisture and shelter they’re looking for.
Most indoor earwigs are accidental invaders that wandered in through a gap near the ground. They’re not breeding inside your walls in most cases. The exception is a chronically damp basement, which can mimic outdoor conditions well enough for earwigs to settle in more permanently.
Smelly Oils and Grain-Based Baits
Earwigs are strongly attracted to certain odors that most people wouldn’t expect. Research at Colorado State University found that wheat bran and wheat germ made traps significantly more effective as bait. Earwigs are also drawn to pungent oils like fish oil, clam oil, and bacon grease. These can be used in homemade traps (a shallow container with a small amount of oil will lure and drown them), but they also mean that outdoor grills, pet food bowls, and compost with food scraps can inadvertently attract earwigs to areas right next to your house.
Reducing What Attracts Them
Since earwigs are drawn to a combination of moisture, shelter, and food, the most effective approach targets all three. Outdoors, that means removing the debris they hide under: leaf piles, stacked boards, dense ground cover, and unnecessary garden clutter. Flowerpots, boxes, and anything sitting directly on damp soil should be moved or elevated. Thick mulch layers near the house should be thinned, and weedy, overgrown areas around garden beds should be cleared.
Moisture control matters just as much. Fix leaky outdoor faucets, adjust irrigation so soil near the foundation isn’t staying constantly wet, and improve drainage in areas where water pools. Indoors, a dehumidifier in a damp basement and proper ventilation in bathrooms eliminate the conditions that make your home hospitable. Sealing cracks in the foundation and gaps around ground-level doors and pipes cuts off their entry routes. These changes won’t eliminate every earwig from your yard, but they’ll keep populations low enough that they stay in the garden eating aphids rather than showing up in your bathroom.