Gnats are tiny flies that hover around houseplants, drains, and fruit bowls. They don’t bite, but they multiply quickly and become a nuisance. This guide shows you how to get rid of them fast—often within a day—by targeting the adults you see and the larvae you don’t. You’ll need a few common household items and a little patience. The steps below work for fungus gnats (the ones around plants) and drain flies (the ones near sinks).
What You’ll Need
- Yellow sticky traps (or yellow index cards coated with a thin layer of petroleum jelly)
- Apple cider vinegar or red wine
- Dish soap
- Small bowls or jars
- Plastic wrap (optional)
- Hydrogen peroxide (3% solution) or mosquito dunks containing Bti (Bacillus thuringiensis israelensis)
- Watering can
- Pipe brush or drain snake
- Trash bags
Step-by-Step
- Locate the source. Check houseplants, especially those with moist soil. Look for tiny black flies crawling on the soil or flying around the pot. Also check drains, trash cans, and overripe fruit. Fungus gnats breed in wet soil; drain flies breed in organic buildup inside drains.
- Set adult traps immediately. Place yellow sticky traps near affected plants or drains. The yellow color attracts gnats, and they get stuck. For a DIY version, coat yellow index cards with a thin layer of petroleum jelly and stick them into the soil or hang them nearby.
- Make a vinegar trap. Fill a small bowl with apple cider vinegar or red wine. Add a few drops of dish soap and stir gently. The scent attracts gnats; the soap breaks surface tension so they sink and drown. Place bowls near infested areas. For drains, you can also use a jar with vinegar and soap, covered with plastic wrap punched with small holes.
- Treat the soil. For fungus gnats, mix one part hydrogen peroxide (3%) with four parts water. Water your plants with this solution, ensuring it soaks through the top inch of soil. The peroxide kills larvae on contact and breaks down into water and oxygen. Alternatively, use mosquito dunks: soak one dunk in a watering can of water for a few hours, then water plants with that water. Repeat every few days until gnats are gone.
- Clean drains. For drain flies, use a pipe brush to scrub the inside of the drain, removing slime and organic matter. You can also pour a pot of boiling water down the drain (if pipes are metal or PVC and in good condition) to flush out larvae. Avoid chemical drain cleaners if possible; they can be harsh and may not reach all areas.
- Remove standing water and organic waste. Empty plant saucers, fix leaky pipes, and take out trash regularly. Store fruits and vegetables in the refrigerator or sealed containers. Keep compost bins tightly closed.
- Dry out the soil. Fungus gnats need moist soil to breed. Let the top inch or two of soil dry out between waterings. This kills larvae and discourages egg-laying. For plants that need constant moisture, consider bottom watering or using a layer of sand on top of the soil to deter adults from laying eggs.
- Repeat and monitor. Replace sticky traps and vinegar bowls every few days. Continue soil treatments for at least a week after you stop seeing adults, as larvae may still be present. With consistent effort, you can break the life cycle and eliminate the infestation.
Common Mistakes
- Only targeting adults. Killing flying gnats won’t solve the problem if larvae are still in the soil or drain. Always treat the breeding site.
- Overwatering plants. Constantly wet soil is a breeding ground. Let it dry out between waterings.
- Using too much hydrogen peroxide. A 3% solution diluted with water is safe for most plants, but repeated heavy use can harm roots. Follow the dilution ratio.
- Ignoring multiple sources. Gnats may be breeding in several pots or drains. Check all potential areas.
- Giving up too soon. The life cycle can take a couple of weeks. Persistence is key.
Tips
- Place sticky traps horizontally on the soil surface to catch adults emerging from the soil.
- Use a fan to create airflow around plants; gnats are weak fliers and will struggle in moving air.
- Water plants from the bottom by setting pots in a tray of water for a short time, so the topsoil stays dry.
- Add a layer of decorative sand or gravel on top of the soil to prevent adults from laying eggs.
- Keep kitchen drains clean with regular flushing and avoid pouring grease or oil down the sink.
Troubleshooting
- Gnats keep coming back. You may have missed a breeding site. Check less obvious places: behind appliances, under sinks, in floor drains, or in recycling bins.
- Plants show distress after treatment. Hydrogen peroxide can burn roots if overused. Flush the soil with plain water and let it dry slightly. Mosquito dunks are gentler; switch to those if peroxide causes problems.
- Drain flies persist. The buildup may be deep in the pipe. Use a drain snake or call a plumber to clear it. Avoid harsh chemicals that can damage pipes.
- Traps aren’t catching many gnats. Make sure traps are fresh and placed close to the source. Yellow sticky traps lose effectiveness when dusty; replace them.
- You have pets or small children. Keep vinegar traps and hydrogen peroxide out of reach. Use physical traps like sticky cards and cover bowls with plastic wrap.
Related
Frequently Asked Questions
How long does it take to get rid of gnats?
With consistent effort, you can see a big reduction within a day or two, but complete elimination may take a week or more to break the life cycle.
Are gnats harmful?
Fungus gnats and drain flies don’t bite or transmit disease, but they are annoying and can indicate overwatering or poor hygiene.
Can I use vinegar traps around pets?
Apple cider vinegar is not toxic to pets in small amounts, but the trap itself can be messy. Place traps where pets can’t reach them, or cover them with plastic wrap.
Will hydrogen peroxide harm my plants?
When diluted properly (one part 3% hydrogen peroxide to four parts water), it is generally safe for most plants. However, some sensitive plants may react; test on a small area first.
Do I need to repot my plants?
Repotting is usually unnecessary unless the infestation is severe. Treating the soil and letting it dry out is often enough.
What if I have gnats in my drain and plants?
Treat both areas simultaneously. Use vinegar traps and sticky cards for adults, and clean drains and treat soil for larvae.