9 DIY Solutions To Get Rid Of Fruit Flies & Other Pests

Photo: Ant Cooper / Shutterstock
How To Get Rid Of Fruit Flies In Your Home

During the warmer months, fruit flies can be a real pest.

It starts out fairly innocent. You spot a great deal on a big sack of onions at the local grocery market. You stock up. A few days later, you start to see a tiny fly here and there around where the onions are stored.

Soon, they multiply. Suddenly, they are everywhere. What can you do?

While you can continue to swat them away, a better solution is learning how to get rid of fruit flies, once and for all.

RELATED: 12 Best Bug Zappers For Indoor & Outdoor Pest Control

First, it's important to confirm whether or not you're dealing with fruit flies, because treatment for getting rid of them differs from something like fungus gnats or drain flies.

Drain flies have fluffy dark wings that are round and held flat on top of the body. And their antennae are fluffy and feathery, like moth antennae.

“Drain flies look like tiny black moths and can often be confused with fruit flies because both lay eggs in drains,” advises Wesley Wheeler, owner of Bug Lord, a DIY pest control website. "In fact, another name for drain flies is moth flies.”

Fungus gnats, on the other hand, are roughly 1/8" in size, and have a similar resemblance to mosquitoes (just smaller). Adds Wheeler, “They have long legs and a lackluster flying ability, so you may see them stumbling around and spending more time scurrying along house plants and windows.”

And then, there are fruit flies, which Wheeler describes as, “very quick and elusive, and are usually found in kitchens where there is ripening fruit and garbage.” They can also quickly be identified by their characteristically large red eyes.

Here's how to get rid of fruit flies in your home.

The best part is that you can use household items for many of these methods. And then, you'll no longer have to worry about those pests flying around your food any longer.

Of course, the overall best way to keep fruit flies away is to keep the area clean. And while it doesn't hurt to set up some precautionary measures, sometimes, all you need is a simple fix to remove these bugs.

RELATED: The Incredibly Weird Way Caterpillars React When You Yell Around Them

1. Throw out any and all rotting food.

Promptly discard any rotting food, as this is where fruit flies lay eggs (which can be up to 500 at a time). Warns Wheeler, “Be sure to take the garbage outside and tie it up, too, instead of simply tossing it in your kitchen trash can.”

Since fruit flies hate clean areas, observe cleanliness and throw away any infested ripe fruit or vegetables that are sitting out in your kitchen.

2. Set up traps around the area.

If you've noticed far too many fruit flies, you can also opt for store-bought traps. These traps work by attracting the flies into a container, using a sweet liquid, in which they are then unable to escape.

Try: TERRO Fruit Fly Trap T2500

3. Clean the sink drain.

In addition to setting traps, you can also use a commercially available fruit fly drain cleaner.

“Just pour it right down the sink, following the directions on the packaging. Green Gobbler is one example of a gel-based drain cleaner for fruit flies. It’s created from natural citronella oil, so it won’t hurt you or your pipes, but it will kill the flies hiding there,” Wheeler suggests.

Try: Green Gobbler Fruit Fly Goodbye Gel Drain Treatment

4. Take precautions beforehand.

Ultimately, It’s easier to stop a fruit fly attack than fix it. To prevent fruit flies to begin with, get rid of overripe produce, take out the trash regularly, don’t leave food out during the day, and wash your produce as soon as you bring it home.

“You’re going to want to make sure there’s nothing lying around that’s attractive to fruit flies,” adds Beth McCallum of Oh So Spotless.

In addition to precautions, you can also set up DIY traps to get rid of fruit flies.

RELATED: Do Essential Oils For Bug Bites Actually Work? An Investigation

So, if fruit flies do start to move into your home, or even begin infesting your kitchen, there are a few things you can do.

5. Bust out an old beer.

Leave a bottle of old wine or beer out near where the fruit flies were spotted.

Advertisement You deserve to be happy! Get help today from the comfort of your home from BetterHelp, the largest therapy service, to change your life for the better.

“They’ll be lured in by the stale beverage, but the narrow neck of the bottle acts as a natural barrier to keep them trapped,” suggests Tal Shelef, co-founder of Condo Wizard.

6. Use dish soap.

Fill up a few jars or glasses with apple cider vinegar so they’re about halfway full. “Add in a drop of liquid dish soap to each jar and mix together,” says McCallum.

The flies will be attracted to the sweet scent of the vinegar, but the layer of sticky dish soap will prevent them from getting out of the liquid. As an extra measure, cover the glasses with plastic wrap and punch 10 holes into the top with a toothpick.

Adds McCallum, “Make sure the holes are big enough for the fruit flies to get through. They’ll either struggle to get back out, or they will drown in the liquid mix.”

7. Use vinegar to attract fruit flies.

While vinegar is a well-loved ingredient in recipes ranging from salad dressings to marinades and desserts, it's also a staple item for household chores.

“If you find fruit flies in your home, put one cup of vinegar in a glass and cover it with plastic wrap,” advises Ron Shimek, president of Mr. Appliance. Poke some holes, and voila — gnats and fruit flies will be attracted to the cup of vinegar and find themselves trapped in the glass.

8. Put orange slices in water.

If you don't have vinegar, you can place orange slices in water instead.

According to Stephanie Mantilla, founder of Plant Prosperous, “Instead of leaving the jar top open, place plastic wrap over the top with some holes cut into it.” Fruit flies will be able to crawl into the jar, but are unlikely to fly back out again.

9. If all else fails, use a fly swatter.

“I cured my severe fruit fly infestation, thanks to the cleverness of my 8-year-old granddaughter who asked if she could kill some with my electrified fly swatter racket!” says Christine Traxler, MD. It was a brilliant idea because fruit flies don't have the natural tendency to avoid this kind of device.

“Within minutes," continues Traxler, "dozens were killed with a loud snap when they struck the racket. It was good sport for about a week, and now I have no more (after having a kitchen with hundreds of them in it). It works and it's also very fun to do!”

RELATED: Why You Keep Seeing Flies & What A Fly Means Spiritually

Aly Walansky is a NY-based lifestyles writer who focuses on health, wellness, and relationships. Her work appears in dozens of digital and print publications regularly. Visit her on Twitter or email her.

Sign up for YourTango's free newsletter!

YourTango may earn an affiliate commission if you buy something through links featured in this article.