Amazon holiday deals See deals →ad

How to Eliminate Small Flying Insects

Small flying insects in your home are more than a nuisance—they can contaminate food, bite, and signal an underlying sanitation issue. This guide walks you through identifying the type of pest, removing their food and breeding sources, and using targeted traps and prevention to get rid of them for good. Before you start, gather a few basic supplies and set aside an hour to inspect and clean likely problem areas.

What You’ll Need

  • White vinegar or apple cider vinegar
  • Dish soap
  • Small bowls or jars
  • Plastic wrap and rubber bands
  • Fly swatter or electric racket (optional)
  • Sticky fly tape or yellow sticky traps
  • Spray bottle with water
  • Bleach or enzyme cleaner (for drains)
  • Trash bags and a vacuum
  • Screwdriver or pipe cleaner (for cleaning drains)

Step-by-Step

  1. Identify the insect. Look closely at size, color, and behavior. Fruit flies are tiny, tan or brown, and hover near ripe produce. Fungus gnats are black with long legs and fly near soil. Drain flies are moth-like, fuzzy, and stay near sinks. Knowing which one you have determines your approach.
  2. Remove all attractants. Take out the trash, wipe down counters, and store ripe fruit in the refrigerator. Clean up spills, crumbs, and pet food. If you have houseplants, let the top inch of soil dry out between waterings—overwatering is a prime cause of fungus gnats.
  3. Clean drains thoroughly. For drain flies and some fruit flies, the breeding site is the organic gunk in pipes. Pour boiling water down the drain, then scrub the sides with a stiff brush or pipe cleaner. Follow with a mixture of baking soda and vinegar, let it sit, then flush with hot water. Repeat for a few days.
  4. Set vinegar traps. Fill a small bowl with apple cider vinegar and add a few drops of dish soap. The soap breaks the surface tension so flies sink. Cover with plastic wrap and poke small holes, or leave open. Place traps near the source—kitchen counter, sink, or plant pots.
  5. Use sticky traps. For fungus gnats, insert yellow sticky traps into the soil of infested plants. For flying insects near windows, hang sticky fly tape. These catch adults and help monitor the population.
  6. Treat plant soil. If fungus gnats are the issue, allow the soil to dry out more between waterings. For severe infestations, replace the top layer of soil with fresh, dry potting mix. You can also water with a diluted hydrogen peroxide solution (one part peroxide to several parts water) to kill larvae—test on a small area first.
  7. Vacuum regularly. Use a vacuum with a hose attachment to suck up visible flies, especially around windows and lights. Empty the vacuum bag or canister outside immediately to prevent them from escaping.
  8. Seal entry points. Check window screens for tears, seal gaps around doors and pipes, and ensure vents are covered with fine mesh. This prevents new insects from entering.
  9. Maintain cleanliness. Once the infestation is gone, keep counters dry, take out trash regularly, and store food in airtight containers. Clean drains weekly with hot water to prevent buildup.
  10. Consider a fan. Small flying insects are weak fliers. A ceiling fan or desk fan on low can keep them from landing on your food or face.

Common Mistakes

  • Only killing adults. If you don’t remove the breeding source—like damp soil or drain gunk—new flies will keep appearing. Always address the larval habitat.
  • Using bleach alone on drains. Bleach may not penetrate the organic film where larvae live. Physical scrubbing and hot water are more effective.
  • Overwatering plants. This is the top cause of fungus gnats. Letting soil dry out is essential.
  • Leaving fruit on the counter. Even a single overripe banana can attract fruit flies. Keep produce refrigerated or in sealed containers.
  • Ignoring trash and recycling. Empty cans and bottles can harbor tiny food residues. Rinse recyclables and take out trash often.

Tips

  • Make a simple fruit fly trap by placing a funnel made from paper into a jar with vinegar. The funnel makes it easy for flies to enter but hard to escape.
  • For drain flies, use a gel drain cleaner or enzyme cleaner specifically designed to break down organic matter—follow the product instructions.
  • Place sticky traps near windows and in corners where flies tend to gather.
  • Keep compost bins sealed and empty them regularly.
  • If you have many houseplants, quarantine new plants for a couple of weeks to check for pests before bringing them inside.

Troubleshooting

  • Flies keep coming back after a few days. You likely missed a breeding site. Check under appliances, in garbage disposals, and in the soil of all plants. Repeat the drain cleaning and soil drying process.
  • Traps aren’t catching anything. You may be using the wrong bait. Fruit flies love apple cider vinegar; fungus gnats are more attracted to potato or yellow sticky traps. Try a different bait or trap type.
  • Infestation is in a specific room. Look for a moisture source—a leaky pipe, a damp mop, or a humidifier. Fix the moisture issue and clean thoroughly.
  • You see flies near windows but not near food. They may be coming from outside. Check screens and seal gaps. Also, they might be cluster flies or other outdoor species seeking warmth—vacuum them and seal entry points.
  • Drain flies persist despite cleaning. The biofilm may be deep in the pipe. Use a drain brush or a plumber’s snake to physically remove it. If the problem continues for weeks, consider calling a professional plumber.

Frequently Asked Questions

Q: How long does it take to get rid of small flying insects?
A: With consistent cleaning and traps, you should see a noticeable reduction within a few days, and complete elimination usually takes one to two weeks. The key is removing all breeding sources.

Q: Are these insects harmful?
A: Most small flying insects in homes—like fruit flies, fungus gnats, and drain flies—are not harmful to humans. They don’t bite and don’t spread disease, but they can contaminate food with bacteria they carry. Some, like certain gnats, can bite, but that’s rare in homes.

Q: Can I use chemical sprays?
A: Yes, but they are often unnecessary and can be toxic to pets and children. Try non-toxic traps first. If you use sprays, choose ones labeled for indoor use and follow the safety instructions. Always ventilate the area.

Q: Why do they appear in winter?
A: They can breed year-round indoors because homes are warm. Fruit flies can survive on a single piece of produce, and fungus gnats thrive in overwatered houseplants. Winter infestations are common because we keep windows closed and bring in potted plants.

Q: Do I need to throw away my plants?
A: Not usually. Let the soil dry out, use sticky traps, and consider repotting with fresh soil if the infestation is severe. Most plants can survive with less water. If a plant is heavily infested and wilting, it may be best to discard it.

Q: What if the problem is in my office or dorm room?
A: The same steps apply. Clean up food waste, take out trash, and avoid overwatering any plants. If the issue is in a shared space, coordinate with roommates or building maintenance to ensure drains and trash areas are cleaned.