Viral Hack Shows How to Get Rid of Fruit Flies With Items in Your Cupboard

Fruit flies continue to be an annoyance in many homes right until the final days of summer, but one handy online trick could change all that.

TikTok user @amandamilne_88 has taken to TikTok to share a successful trap using items most already have in their cupboards, removing the expenses of buying a trap from the store or paying to have the pests removed.

In the clip with over 800,000 views, she explained that it's "the best TikTok hack I have ever, ever come across," and added that the flies, "have been the bane of my life for days, and days, and days."

The trick involves setting up a jar with fruit, in this case pineapple, before placing a cone made from paper secured with tape in the top of the jar.

Fruit flies, as their name suggests, are attracted to foods with lots of fructose and fermented foods, including fruits, beers and more. The cone makes the fruit accessible to the flies to enter the jar, but near-impossible for them to exit, thanks to the size difference in holes.

The TikTok video has proved a hit but there's one flaw to it— the use of fruit. As some pointed out in comments, the flies will likely breed inside of the jar with just fruit and instead need an ingredient that will kill them, like apple cider vinegar and dish soap mixed together. The fermented fruit will attract the flies, but they will ultimately get trapped inside the soap bubbles. The trap can be done with an added cone, to double the trapping, or without.

Alternatively, you can use cling film with holes poked in on the top of the jar instead of a cone.

Normally, under the right conditions, a fruit fly will last 40-50 days, but the jar is far from an ideal living condition, and they will die off much quicker inside. Once the flies have reached the end of their life cycle in the jar, you can then remove the bugs from the jar before setting out the trap again.

Although the trick is blowing up on TikTok, it has been used by others as a little-known trick for years, with a few small blogs reporting it as far back as 2018.

The TikTok video however has opened up the trap to a far wider audience, with many thanking the TikTok user for sharing it.

"I wish I saw this at the beginning of the summer," commented one user.

"You've saved my life," added another.

Fruit flies on a banana
Stock image of fruit flies on a banana. Getty Images