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 control services
From average costs to expert advice, get all the answers you need to get your job done.
Close-up of termites on a wooden surface
Nov 25, 2024
Nov 25, 2024
Keep your home free of termites and the damage they do. Learn more about inspections, infestations, and the average cost of termite treatments.
Exterior detail of a victorian house roof with chimney
Aug 27, 2024
Aug 27, 2024
Bats may have their benefits, but you don't want them taking up residence in your home. This guide will help you understand bat removal costs.
An exterminator spraying pesticide with a sprayer
Nov 12, 2024
Nov 12, 2024
When calculating the cost of hiring a flea exterminator, consider your home size and the infestation extent. This guide will help you figure out what to budget.
Exterminator sprays a kitchen to prevent pests
Oct 28, 2024
Oct 28, 2024
Pest control scams can cost you a lot of money. Get our tips for avoiding these scams and making sure you work with reputable exterminators.
Cockroach crawling on white tile
May 10, 2024
May 10, 2024
Could your roach problem be worse than you thought? Learn the warning signs of a roach infestation and the best way to get rid of them for good.
Spider crawling in basement web
Oct 3, 2023
Oct 3, 2023
Cellar spiders are often confused with the much more dangerous brown recluse. Read on to learn what makes these two arachnids both similar and totally different.
Share project details to get started.