How to get rid of gnats once and for all – 10 simple methods loved by experts
Tried and loved by pest control experts
There is nothing worse than insects inside your home, and while there are certainly bugs more damaging than gnats, they are far from fun to have around.
So, how do you get rid of gnats and keep them away? pest control experts suggest there are several methods you can try to banish these bugs before they breed.
Here, they share their top 10 home remedies for getting rid of gnats for good without the need for harsh chemicals.
How to get rid of gnats
One of the biggest mistakes to avoid when getting flies out of the house is relying too heavily on chemical killers. Not only can these be irritating for your skin and airways, but they can also damage your home.
Instead, experts recommend these eight tried and tested natural methods and cleaning tips to eliminate gnats.
1. Deep clean drains
Gnats love moisture, so they will often be found hovering around your drains, both in the kitchen and the bathroom. Cleaning kitchen sink drains and cleaning bathtub drains regularly is an easy fix.
To help get rid of gnats, Jim Mchale, CEO and president of JP McHale Pest Management suggests, ‘Using enzyme-based cleaners to break down organic matter in the drains that will attract future flies. Important Note: never pour bleach directly down your drain if you think you have drain flies,' he adds.
He also adds, ‘Repair any leaking pipes and make sure there is no standing water in food prep stations. Standing water creates an ideal breeding ground for drain flies. You can also install fine mesh screens over drains to prevent adult flies from entering and laying eggs.’
Try using a commercial drain cleaner, such as Liquid Plumr, at Walmart, to help dissolve grease and get rid of nasty odors drawing gnats in. Alternatively, for a quick green cleaning approach, try cleaning with white vinegar. Pour half a cup of baking soda into the drain and follow up with one cup of white vinegar. Place a damp cloth over the plughole to ensure the reaction travels down into the pipes rather than overflowing into the sink.
From cleaning to pest control to dealing with mold, white vinegar is one of the most important supplies to have in your cleaning cabinet.
2. Use sticky traps
If you have dealt with whatever is drawing gnats into your home, but there are still some remaining offenders buzzing around, sticky traps can be the perfect solution. Gnats are attracted to bright colors, meaning yellow sticky squares are perfect for drawing them in and trapping them.
Hang sticky traps, available at Walmart, around areas of high activity such as your houseplants and drains to help finish off lingering pests.
3. Make a vinegar trap
The simplest way to get rid of gnats is to make a DIY gnat trap to lure them in and drown them, begins Tom Dobrinska, a board-certified entomologist with Elrich Pest Control.
He says, 'Vinegar traps can be made by placing a small amount of apple cider vinegar [availible at Walmart] in a clear bowl or jar. Cover the top tightly with plastic wrap and poke several holes in the top, which will allow the adult gnats to enter but will not allow them out.
'There are also commercially available vinegar traps,' he adds. 'These will help eliminate the fruit flies one at a time.'
Skip the DIY and make catching gnats simple with this pre-made vinegar trap
4. Make a candle trap
As gnats are attracted to bright colors and lights, you can use a candle to draw them in and kill them.
To make a candle trap, place a tall candle (like a pillar candle, from Walmart) in a holder in a dish full of water. Light the candle and turn off all the other lights. Gnats will be attracted to the flame and be burned, or dazed enough to fall into the water below.
Remember to never leave lit candles unattended. Blow the flame out when leaving the room.
5. Keep food covered and counters clean
If gnats have set up shop in your home, there will usually be something drawing them in. If it is not your drains, then it is likely bad food or dirt.
Jim McHale, pest control expert, reminds us, ‘Fruit flies breed in fermenting organic debris. Clean up any spills or remnants of sucrose immediately and remember to change interior garbage bags frequently, especially during the summer months.'
It is also a good idea to wash dishes or put them in the dishwasher, close the door straight after use, and keep leftovers covered. Store fruit correctly and throw out or use any overripe pieces as soon as you spot them. Glass food storage containers with air-tight lids, from Walmart, will also stop flies from infiltrating your home.
Ace your food storage ideas and be more sustainable at home by using beeswax wraps to cover food and prevent pests
6. Try dissuading scents
Scott Williams, pest control expert and owner or Private Exterminator NYC says, ‘For indoor spaces, I've found that a combination of UV light traps and essential oil diffusers (think citronella, lemongrass, or eucalyptus) can be highly effective. These methods are eco-friendly and safe for use around children and pets.’
Peppermint oil is also a great natural pest control option, especially when made into a bug spray with water and a few drops of liquid dish soap. From getting rid of mice to getting rid of cockroaches, peppermint has the wonderful ability to deter pests from entering your home and bothering you in the first place.
To use peppermint oil (available at Amazon) to get rid of gnats, spray the essential oil around your garden, windows, and doors to deter pests from approaching your property. This method is best paired with other preventative measures or removal methods to make sure your gnat problem is taken care of in its entirety.
When using essential oils to deter pests, make sure you frequently reapply the spray to ensure longer-lasting effects – particularly in gardens after periods of rain.
If essential oils aren't for you, consider using scented cleaning products. Dr. Bronner's Peppermint Soap can be diluted to make everything from drain cleaner to window cleaner.
7. Avoid overwatering plants
You may have noticed that there are a lot of gnats around your indoor plants. This is often because plant soil is moist, which can be a breeding ground for gnats. If you want to get rid of gnats in plants, these are probably fungus gnats, and you'll want to allow your plants' soil to dry out between watering to create a less hospitable home for them.
John Stewart, from the technical team at eco-friendly pest control brand Green Protect says, 'Fungus gnats or sciarid flies love damp soil, so the more you water your plants the more they will be attracted.’ 'They normally feed on decaying organic material, but when found in our homes, they are a real nuisance. To prevent and control this species of fly, do not overwater your plants. You can easily monitor for the presence of these pests with yellow sticky traps. There are simple water level indicators or monitors that can be bought from garden centers to ensure that plants are not over or underwatered.
'However, if the flies are established, the larvae can be killed with biological control using nematode worms. The worms will seek and destroy the maggots, and they are safe to use around humans and pets.'
Using cinnamon in soil is also said to get rid of gnats in the house.
Watering globes allow your plants to take the exact amount of water they need and not a drop more, preventing overwatering and reducing your chore list
8. Reduce humidity
'Gnats are attracted to moist and dirty areas, so keeping your home clean and dry is important,' reminds Rick Sun, pest control expert at Green Leaf Air. Maintaining your home's humidity level is a must.
Be sure to also check for and fix leaks or dampness (getting rid of mold too, where needed), and consider investing in a dehumidifier for rooms that are regularly humid, such as a laundry room, bedroom, or bathroom.
Once you have dealt with the source of the moisture problem, use a dehumidifier to dry the air and prevent Gnats from coming back or lingering
9. Cover your trash
Hiding a trash can in a kitchen does more than boost your room's aesthetics. It also helps prevent pests such as gnats from infiltrating your trash bin and bothering your home.
Using a trashcan with a secure lid to help mask trash can smells will work, but keeping your trashcan inside a cabinet or drawer built into your kitchen is even more effective, not to mention making a kitchen look better.
10. Trap them with petroleum jelly
If you think gnats might be coming from your drains, consider setting up a trap to prevent them from entering your home (and to determine the source of the problem).
To get rid of drain flies and gnats, start by cleaning your drains thoroughly, then smother the inside of a small plastic cup with petroleum jelly, such as Vaseline, from Walmart, and put it over the drain, upside down so the drain is completely covered. Any gnats and flies that try to escape your cleaning solution will instantly be trapped and stuck in the jelly, preventing them from making a home anywhere else in your home.
One of the biggest pest control mistakes you can make when dealing with irritants such as gnats is leaving the problem to worsen. It is highly unlikely that gnats will ever go away on their own if they find somewhere to live. You should act to get rid of gnats as soon as you spot one or two lingering around your home to avoid them multiplying rapidly. Check for entry points and trap and kill any offenders in your home before it becomes an infestation.
Sign up to the Homes & Gardens newsletter
Design expertise in your inbox – from inspiring decorating ideas and beautiful celebrity homes to practical gardening advice and shopping round-ups.
Chiana has been at Homes & Gardens for two years. She spends most of her time producing content for the Solved section of the website, helping readers get the most out of their homes through clever decluttering, cleaning, and tidying tips. She was named one of Fixr's top home improvement journalists in 2024.
- Punteha van TerheydenHead of Solved
-
Can't figure out why your plant's leaves are turning red and brown? Experts warn it could be a phosphorus deficiency
There are a few tell-tale signs that your plant isn't receiving enough of this essential nutrient
By Tenielle Jordison Published
-
This popular window treatment actually made my bathroom dark and gloomy so here’s what I’m swapping it to in 2025
Sometimes the tried-and-tested method just doesn't work out...
By Charlotte Olby Published
-
Pest control pros reveal how to use cinnamon to keep rodents out of your kitchen this winter
Keep mice and rats at bay naturally with this pantry staple
By Ottilie Blackhall Published
-
7 common winter pest infestations – and how to keep them out of your home in the coming months
Banish bugs and get rid of rodents with these top tips from entomologists and pest control pros
By Ottilie Blackhall Published
-
I dealt with a whole house flea infestation using only one tool – and it worked perfectly the first time
I would never use another method should it happen again
By Chiana Dickson Published
-
Exterminators reveal what to always do after you've vacuumed a pest problem
These key actions will help you avoid further infestation
By Dan Fauzi Published
-
6 signs it’s time to call professional pest controls in – and how to pick a great one
Acting fast can save you from a full-blown infestation – experts reveal when it's time to make the call
By Tara King Published
-
5 methods to get rid of spiders in basements – tried and tested by pest control experts
Keep spooky spiders away with these expert-approved prevention methods
By Chiana Dickson Published
-
5 best methods to eradicate persistent bed bugs from pest control who specialize in infestation wipeouts
Learn how to eradicate bed bugs and stop these pesky critters from wreaking havoc in your home
By Gabriella Dyson Published
-
5 common pests to watch out for and protect your home from in fall – according to pest control pros
These five common fall pests can wreak havoc if left unchecked, pest experts warn
By Chiana Dickson Published