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
2

Let the soil dry out before watering again.

PDF download Download Article
  1. Most experts recommend waiting until the top 1 to 3 in (2.5 to 7.6 cm) of soil dries out before watering again. [2]
    • You can quickly test your soil by sticking a finger into it. If your finger comes out slightly wet with dirt on it, your soil is still moist, and you don’t need to water. If your finger comes out mostly clean and dry, then it’s time to water your plant.
3

Point a fan at your plants.

PDF download Download Article
  1. Fruit flies and fungus gnats are attracted to damp, moist soil. The more you can let your soil dry out, the better. After you water your plants, keep a fan turned on and pointed down at the soil to quickly remove any excess moisture. [3]
    • Be sure to empty out the drainage dish beneath your pot, too. Standing water can attract more flies and gnats.
  2. Advertisement
4

Cover the soil with sand or gravel.

PDF download Download Article
  1. Plus, sand and gravel aren’t great places to lay eggs, so flies may look elsewhere. Sprinkle about 1 2  in (1.3 cm) of sand or gravel on top of the potting soil, then spread it around evenly. [4]
    • Adding gravel and sand won’t affect how you water or care for your plant. When you water your plant, the water will run right through the top layer and into the soil.
5

Repot the plant in well-draining soil.

PDF download Download Article
  1. If you’ve noticed that water tends to pool on top of your soil, it may be time to repot your plant. Choose a potting soil mix that contains sand, silt, or loam to ensure that water runs out quickly, then repot your plant . [5]
    • Sensitive plants may go into a slight shock after being replanted. However, most bounce back after a couple of days and a good watering.
  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. [6]
    • 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
  1. Diatomaceous earth dries out the soil and may kill fungus gnats. While more research is needed to know if this method works well, experts note that it won’t harm your plants to try. Sprinkle 1 to 2 in (2.5 to 5.1 cm) of diatomaceous earth onto the soil, then work it into your potting soil with your hands. [7]
    • Diatomaceous earth is harmful for insects, but it won’t hurt your plants or any other animals in your home.
  2. Advertisement
8

Try a microbial insecticide.

PDF download Download Article
  1. Microbial insecticides contain Bacillus thuringiensis subsp. israelensis (Bti), a naturally occuring bacteria that is less toxic than typical insecticides or pesticides. Use an insecticide that contains Bti in your soil, and reapply it every 5 to 7 days until the flies and gnats are gone. [8]
    • Microbial insecticides only target the pests at the larvae stage, so they won’t kill any adult or pupae gnats and flies.
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. [9]
    • 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
50
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 a... Read More
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 pa... Read More
WikiWombatReader561
I never knew about putting fruit in the fridge to get rid of fruit flies, so I'm going to do that ASAP. I set out a vinegar trap and already have... Read More

Expert Q&A

Ask a Question
      Advertisement

      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

      The advice in this section is based on the lived experiences of wikiHow readers like you. If you have a helpful tip you’d like to share on wikiHow, please submit it in the field below.
      • 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

      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

      Thanks to all authors for creating a page that has been read 69,836 times.

      Reader Success Stories

      • 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