What Attracts Gnats? 8 Ways to Avoid This Bug Problem in Your Home

Get those gnats to swarm elsewhere

A woman brings groceries home
Photo: Thomas Barwick / DigitalVision / Getty Images
A woman brings groceries home
Photo: Thomas Barwick / DigitalVision / Getty Images
Get quotes from up to 3 pros!
Enter a zip below and get matched to top-rated pros near you.
Geo Icon

Gnats are the epitome of annoying, and the way they travel in armies makes them all the more unbearable. Luckily, these pests are highly predictable, and knowing what attracts them is key to keeping them at bay. Here are the major things that attract gnats to your home and how you can keep them out.

10 items that attract gnats, including honey, houseplants, and trash cans/food waste

1. Avoid Wearing Sweet or Floral Fragrances

Nothing is more irritating than swarms of relentless gnats attacking your face. So, what do gnats like, and what makes them go after humans? If you are wearing a sweet fruity or floral perfume, lotion, or laundry detergent, that could be the culprit. Gnats tend to go after sweet smells, so try to keep them at a minimum if you’re going outside.

2. Don’t Leave Fruits and Vegetables out in the Open

While that decorative fruit bowl is certainly visually appealing, it can also be a “come hither” to gnats. They can’t get enough of the sweet, fresh smell of open produce, and they’ll happily buzz around any they can find. 

Avoid leaving out a tempting feast—keep your produce in the fridge or in sealed containers. Consider curating a bowl of fake fruit or even hanging a painting of fruit if you miss the fresh pop of color.

3. Avoid Moisture

A hand wipes a spill on a countertop
Photo: Sasin Paraksa / iStock / Getty Images

Gnats breed in areas of moisture, so it’s important to keep your home as dry as possible. Clean up spills ASAP and dry off your sink after you’re done using it. If you have standing water caused by leaking pipes, contact a local plumber right away for repairs. 

4. Keep Food Waste Minimal in the Trash

Banana peels, apple cores, and other food waste will marinate the trash in your trashcan as they break down, giving off a smell that gnats and fruit flies can’t resist. If you can, avoid throwing organic waste in the trash—or, better yet, start a compost pile outdoors (far from your home, of course). If you do throw food waste in the trash, be sure to take it out frequently.

5. Pour Diluted Bleach Down the Drain

If you’re seeing small gnat-like flies congregating near your drain, dilute a capful of bleach in a pitcher of hot water, then pour it down the drain. This trick will help clear out whatever smell is attracting the flies, which are likely drain flies or fruit flies rather than gnats. Plus, it will kill off any larvae in the drain as well. 

If you’re still swatting away these pests after this homemade remedy, a call to a local pest control service may be in order. 

6. Trap Gnats and Fruit Flies With an Open Bottle of Wine or Vinegar

A view of an open bottle of vinegar
Photo: EVGENIY / Adobe Stock

An easy way to get rid of gnats and fruit flies is by trapping them in an open bottle of wine or vinegar. They love the smell and will naturally flock to it, but they won’t be able to find their way out of the narrow bottleneck. Note that this can attract more flies, so be sure not to leave any doors or windows open while your traps are out. 

7. Keep Your Home Bar Covered

Gnats, drain flies, and fruit flies are the bane of a bartender’s existence—and home bars are a major attractant for the insects. If you have a home bar, follow the bartender’s closing ritual: Tightly wrap and refrigerate cut fruit, pour diluted bleach down the drain, then use small disposable cups to cover up any drains. If you use speed pourers, wrap them, cover them with cups, or purchase plastic caps to fit over them.

8. Don’t Overwater Your Houseplants

Fungus gnats are a special type of gnat that specifically targets your houseplants. And what do fungus gnats eat? Mold, fungus, and decaying leaves, which is why they are so attracted to plants in the first place.

To keep fungus gnats away from your plants, the most important thing to avoid is overwatering. Not only will this create excess moisture, which the gnats love, but it might lead to mold and rot—both of which will feed them. To keep them at bay, care for your indoor plants by only watering them as needed and removing dead, decaying, or moldy portions. 

Need professional help with your project?
Get quotes from top-rated pros.
The homeowners guide to pest exterminators
From average costs to expert advice, get all the answers you need to get your job done.
Man removing termite damaged wood
Nov 8, 2024
Nov 8, 2024
Termite damage repair costs can vary greatly based on the damage severity and location. Learn more about the associated costs of this project with our guide.
A bright white kitchen with a pastel fridge
Jan 8, 2024
Jan 8, 2024
If you need to get rid of bugs and pests making your home unsafe, it's time to decide if fumigation is necessary. Learn more about average fumigation costs.
Two storks nesting on a house roof
Jan 10, 2024
Jan 10, 2024
Sometimes birds nest in unwelcome places. Find out how much bird nest removal will cost based on factors like location, bird species, and preventative measures.
worker in white protective suit spraying pest repellant on window sill
Nov 12, 2024
Nov 12, 2024
Whether you have bugs, bats, or rodents invading your home, you’ll want to contact an exterminator quickly. Find out how much pest control costs.
Close-up of a wasp nest
May 15, 2024
May 15, 2024
Wasps are a pain to share space with, but you have options for removal. While it’s best to call a pro, here’s how to get rid of wasp nests the DIY way.
close up of roach on cupboard
Apr 30, 2024
Apr 30, 2024
Cockroaches are irritating pests with a strong sense of smell. Use that knowledge to your advantage by deterring them with smells roaches hate.
Share project details to get started.