Bugs are attracted to a surprisingly wide range of scents, from the chemicals your skin naturally produces to the fruity smell of overripe bananas on your counter. The specific compounds vary by insect, but most fall into a few categories: human body odors, floral fragrances, fermentation byproducts, and the musty smell of damp organic matter. Understanding which scents draw which bugs can help you reduce bites outdoors and infestations inside your home.
Your Body Is a Scent Beacon for Mosquitoes
Mosquitoes don’t just follow your body heat. They track a cocktail of chemicals that your skin releases with every breath and bead of sweat. The most well-studied attractant is lactic acid, a compound present in human perspiration. Lab tests show mosquitoes land on surfaces coated with lactic acid at rates above 84% even at very low concentrations. When lactic acid is combined with ammonia (another component of sweat) and carbon dioxide from your breath, mosquito attraction improves by 60% to 77% compared to carbon dioxide alone. In other words, it’s the blend that makes you irresistible, not any single chemical.
The bacteria living on your skin amplify the effect. Species of Staphylococcus break down substances on your skin’s surface into volatile compounds, including a chemical called 3-methyl-1-butanol, which one study found was produced almost entirely by a single type of skin bacterium. Other skin microbes generate compounds like nonanal and butyl acetate, both of which draw mosquitoes. This is partly why some people get bitten more than others: the unique mix of bacteria on your skin creates a personalized scent profile that can be more or less attractive to biting insects.
Alcohol Changes Your Scent Profile
Drinking beer makes you more attractive to mosquitoes. A study with 13 volunteers found that mosquito landing rates increased significantly after participants drank a single 350 ml beer. The surprising part: the researchers couldn’t link the effect to ethanol in sweat or changes in skin temperature. Something about alcohol consumption alters your body’s scent output in a way that mosquitoes detect, but scientists haven’t pinpointed exactly which compound shifts. The practical takeaway is straightforward: drinking outdoors in mosquito-heavy areas genuinely raises your risk of getting bitten.
Floral Fragrances and Perfumes
Many personal care products contain compounds that mimic the scent of flowers, and flowers exist to attract pollinators. Linalool, one of the most common fragrance ingredients in soaps, lotions, and perfumes, is also a key component of the scent profile of moth-pollinated flowers. Geraniol, benzyl alcohol, and nerol are other floral compounds used in fragrances that insects readily detect. When you apply scented products, you’re essentially broadcasting the same chemical signals that flowers use to summon insects from a distance.
This doesn’t mean every floral-scented product will cause a swarm, but heavily perfumed lotions, hair products, and fabric softeners can make you more noticeable to bees, wasps, and moths. If you’re spending time outdoors in areas with lots of flying insects, unscented products are a simple way to lower your profile.
Fermentation Smells and Fruit Flies
The common fruit fly is tuned to detect the chemical signatures of rotting fruit. As fruit overripens and yeast begins breaking it down, it releases ethanol (alcohol), acetic acid (vinegar), and a rose-scented compound called 2-phenylethanol. Fruit flies prefer relatively high concentrations of all three, which is why they cluster around fruit that’s well past its prime rather than freshly picked.
Acetic acid is particularly important because it spikes during the late stages of fermentation. This explains why apple cider vinegar traps are so effective: the vinegar is essentially a concentrated version of the “ripe and rotting” signal that fruit flies evolved to follow. Any fermenting organic material in your kitchen, from a forgotten banana to a damp sponge soaked with food residue, produces these same volatile compounds and will draw fruit flies.
Damp, Musty Smells and Fungus Gnats
If you’ve noticed tiny flies hovering around houseplants or damp areas, those are likely fungus gnats. These insects are attracted to the volatile chemicals released by fungi growing in moist soil or organic matter. Researchers have identified three key compounds that fungus gnats detect: 1-octen-3-ol (sometimes called “mushroom alcohol” because it gives mushrooms their earthy smell), 3-octanone, and 1-hepten-3-ol. All three are released when fungi colonize damp compost or soil.
Interestingly, the relationship between gnats and fungal scents is more nuanced than simple attraction. At certain concentrations and from certain fungal species, these same compounds can actually repel gnats, likely signaling that a food source is already too heavily colonized. But the presence of any damp, decomposing organic material producing that characteristic musty or earthy smell will generally draw them in. Overwatered houseplants are the most common culprit indoors.
Carbon Dioxide and Body Heat
Carbon dioxide is the most universal insect attractant. Mosquitoes, bed bugs, biting midges, and ticks all use it to locate warm-blooded hosts. You exhale about 500 liters of CO2 per day, creating a plume that insects can follow from several meters away. Bed bugs are drawn to traps baited with carbon dioxide combined with 1-octen-3-ol (that same mushroom-scented alcohol) and lactic acid, mimicking the chemical signature of a sleeping person.
This is why larger people and those who’ve been exercising tend to attract more biting insects. A bigger body or a higher metabolic rate means more CO2 output, a stronger scent plume, and a louder signal for any insect searching for a blood meal. Body heat works at close range as a secondary cue, but the chemical trail is what draws insects in from a distance.
Scents That Attract Common Household Bugs
Different household pests respond to different scent cues:
- Fruit flies: Overripe fruit, vinegar, wine, and any fermenting sugary liquid. Even a thin film of juice residue in a recycling bin is enough.
- Fungus gnats: Wet soil, decaying plant matter, and the musty smell of mold growth in potting mix.
- Mosquitoes: Your body’s natural odor blend of lactic acid, ammonia, and CO2. Floral perfumes and alcohol consumption increase the effect.
- Bed bugs: CO2, body heat, and the chemical compounds found in human sweat, particularly lactic acid.
- Bees and wasps: Sweet, floral fragrances from perfumes, lotions, and brightly scented foods or drinks.
Reducing Your Scent Attractiveness
You can’t eliminate CO2 from your breath or lactic acid from your sweat, but you can control the scents you add. Switching to unscented soaps, deodorants, and laundry detergents before outdoor activities removes the floral signals that attract pollinators and moths. Showering before spending time outside can temporarily reduce the buildup of bacterial metabolites on your skin, lowering the intensity of your scent profile.
Indoors, the strategy shifts to eliminating the source scents that pests follow. Storing ripe fruit in the refrigerator removes the fermentation volatiles that fruit flies track. Allowing houseplant soil to dry between waterings suppresses the fungal growth that produces gnat-attracting compounds. Keeping kitchen drains clean eliminates the film of organic residue that produces the same fermentation byproducts as rotting fruit. In each case, the goal is the same: cut off the chemical signal before it reaches the insect.

