PDF download Download Article PDF download Download Article

Have you noticed small, annoying flies on or around your houseplants? While they could be fruit flies, it’s just as likely that they’re fungus gnats living in the soil. Fortunately, getting rid of the flies (no matter what they are) is simple with prevention methods and natural remedies. In this article, we’ll share everything you need to know about getting rid of flies and gnats to keep your houseplants fresh and fly-free.

Things You Should Know

  • Make a vinegar trap to quickly catch and kill fruit flies.
  • Let the topsoil dry out before watering your plants again. Point a fan at the soil or add a layer of sand or gravel to help with drainage.
  • Use microbial insecticides to kill flies and gnats with bacteria. Save chemical insecticides for severe infestations.
1

Make a vinegar trap.

PDF download Download Article
  1. If you are dealing with fruit flies and not gnats, a vinegar trap is an effective way to get rid of them quickly. Pour about 1 in (2.5 cm) of apple cider vinegar into a jar, then poke 3 to 4 small holes in the lid before screwing it on. Place the trap near your plant or on top of the soil, then wait a couple of days.[1]
    • The fruit flies will crawl into the holes in the lid, but they won’t be able to fly back out. Eventually, they’ll die inside the jar.
    • To make your trap even more effective, add a few drops of dish soap to the vinegar. Dish soap will make the vinegar stickier, so the flies will get stuck in the liquid and drown.
    • This trap isn’t as effective against fungus gnats, but it works really well against fruit flies.
  2. Advertisement
6

Use yellow sticky traps.

PDF download Download Article
  1. Sticky traps catch fruit flies and gnats without chemical intervention. Most sticky traps even come with a wooden stake so you can easily submerge them in your potting soil right next to the plant. Keep an eye on the sticky traps, and change them out whenever they get full of bugs.[7]
    • Sticky traps only catch adult fruit flies and gnats; they won’t be able to get the larvae or eggs inside of the soil. However, they’re very effective at stopping the spread of fruit flies in your home.
7

Mix diatomaceous earth into the soil.

PDF download Download Article
9

Use chemical insecticides on severe infestations.

PDF download Download Article
  1. Chemical insecticides are strong, but they’re also fairly toxic. If you’ve tried multiple methods and nothing has worked, pick up an insecticide that’s safe to use for indoor plants. Spray the soil and the roots of your plant to kill flies and gnats right away. Always follow the instructions on the bottle, and keep children and pets away from the area.[10]
    • Chemical treatments are most effective when paired with other prevention methods. If you choose to use chemical insecticides, make sure you’re still letting your soil dry out and using well-draining potting soil to avoid fruit flies and fungus gnats all together.
  2. Advertisement

How Do You Catch Fruit Flies?


Join the Discussion...

WikiWombatReader561
Over the past couple weeks my house has become infested with fruit flies and I don't know how to get rid of them! I've tried keeping my kitchen as clean as I can and put out a vinegar trap, but it's not working super well. These flies bother me so much and I feel like I can't live in peace with them around. Please help!
Kevin Carrillo
Kevin Carrillo
Pest Control Specialist, MMPC
The issue with fruit flies is that they proliferate very quickly and tend to be chronically reintroduced. What that means is that for the most part, in the fruit that you're bringing in, there's a good chance that it probably has fruit fly eggs on it already. If it sits in your home long enough, chances are some of those eggs are going to hatch. What we tend to recommend is that whenever produce is brought in, that it is scrubbed under running water with some sort of brush to help destroy and dislodge any of the eggs that are on there. Alternatively, keep it in airtight containers or in deep refrigeration, because in a lot of these cases when we're exterminating the fruit fly problem, a couple days later there are fruit flies again and it's usually coinciding with the delivery of produce. So all of that being said, the main thing is to identify whenever you're dealing with a flying insect and identify the method of introduction and the food source. And for fruit flies it tends to literally be the fruit. It's a matter of identifying what potential food sources you have that are most likely already affected.

Once you've found that you have a fruit fly infestation, generally you can try to start with the tried and true. You can do a wine trap or a beer trap or a vinegar trap, which is usually filling a glass or dish with a small amount of attractant, putting cellophane over the top, and poking a couple of holes in it. If you're seeing fruit flies in the hundreds, then you've probably already gotten to a point where you're going to need a pest control professional to help you mitigate the population at that point. But if it's low-level and you're just seeing a couple, then generally the tried and true vinegar trap will work well for you.
Wilson Christner
Wilson Christner
Pest Management Professional
I agree that to get rid of fruit flies, you can create a simple homemade fly trap by filling a shallow dish with a mixture of sugar and vinegar or fruit juice. Cover the dish with plastic wrap and poke small holes in it. Flies will be attracted to the sweet smell and get trapped in the liquid.

You can also hang fly ribbons near doors, windows, or any other entry points where flies may enter your home. This can help catch flies before they have a chance to spread throughout your living space. Also hang fly ribbons in or around your kitchen and dining areas, especially near food preparation areas, dining tables, or where fruits and vegetables are stored. Flies are commonly attracted to food sources, so targeting these areas can be effective.

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Reader Videos

Tips

  • You may have heard about using coffee grounds or cinnamon to get rid of fruit flies. These methods aren’t as effective, and you’re better off making a vinegar trap.
  • Use potting soil designed specifically for houseplants so it's less likely to attract bugs and gnats.

Tips from our Readers

  • Try bottom-watering your plants by placing the bottom of the pot in a container of water. It will absorb up through the soil instead of leaving the topsoil wet.
  • Try using a 50/50 mix of water and hydrogen peroxide. Spray it on the flies when you see them, and it will knock them down without killing your plants.
  • If you see a spider on your plants, leave it there to catch the flies naturally.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

Warnings

  • Insecticides may harm children and pets. Always read the warning labels, and follow the instructions on the bottle carefully.
Advertisement

You Might Also Like

Get Rid of Gnats in Houseplants Kill Gnats in Houseplants Fast
Get Rid of Gnats in the KitchenGet Rid of Gnats in the Kitchen
Get Rid of Flies in the KitchenGet Rid of Flies in the Kitchen
Get Rid of Fruit Flies Kill Fruit Flies in Your House, According to Experts
Get Rid of Flies in the House11 Effective Ways to Kill Flies inside Your Home
Get Rid of Flies in Compost ToiletQuick & Eco-Friendly Ways to Eliminate Flies in a Compost Toilet
Get Rid of GnatsGet Rid of Gnats
How Do I Get Rid Of These Annoying Fruit FliesHow do I get rid of these ANNOYING fruit flies?
Get Rid of FliesGet Rid of Flies
Use Home Remedies to Get Rid of Gnats Drive Away Gnats for Good: Easy DIY Methods
Make a Fly TrapGet Rid of Fruit Flies & Houseflies with These Homemade Traps
Get Rid of Drain FliesGet Rid of Drain Flies
Catch Flies4 Simple Ways to Capture Flies
How Do You Get Rid of Gnats in Your HouseHow do you get rid of gnats in your house?
Advertisement

Expert Interview

Thanks for reading our article! If you’d like to learn more about fruit flies, check out our in-depth interview with Joshua Bloom.

About This Article

Joshua Bloom
Co-authored by:
Pest Control Specialist
This article was co-authored by Joshua Bloom and by wikiHow staff writer, Hannah Madden. Joshua Bloom is a Pest Control Specialist and the Vice President of Operations of Standard Pest Management, a pest control company based in New York City. He has over 20 years of experience in the pest control industry and specializes in commercial and large facility pest control management. Standard Pest Control also specializes in ant, bed bug, cockroach, fly, and rodent control. Joshua is licensed by the NYSDEC (New York State Department of Environmental Conservation) for termite control. This article has been viewed 76,871 times.
15 votes - 100%
Co-authors: 6
Updated: February 4, 2025
Views: 76,871
Categories: Pest Control
Thanks to all authors for creating a page that has been read 76,871 times.

Reader Success Stories

  • Anonymous

    Anonymous

    Jun 22, 2023

    "It taught me several different methods. And which ones work best. So far they seem to be working great."
Share your story

Did this article help you?

Advertisement