Home & Garden Home Where Do Fruit Flies Come From? By Chanie Kirschner Writer Yeshiva University Chanie Kirschner is a writer, advice columnist, and educator who has covered topics ranging from parenting to fashion to sustainability. our editorial process Chanie Kirschner Updated October 27, 2020 Treehugger / Christian Yonkers Share Twitter Pinterest Email Home Pest Control Natural Cleaning DIY Family Green Living Thrift & Minimalism Sustainable Eating It often seems like fruit flies just appear out of nowhere. In fact, it appeared that way to so many people that they believed that fruit flies were a product of spontaneous generation — spawned supernaturally from rotting fruit or meat. This theory was disproved a few hundred years ago and we now know the truth about these tiny nuisances. What's the Truth? Treehugger / Christian Yonkers The truth is that fruit flies (or Drosophila melanogaster, as they are scientifically named) are stealthy little guys that seem to smell rotting fruit from miles away. They don't come from inside the fruit, but rather come from outside once the fruit on your kitchen counter starts to go just past ripe. "But all my doors and windows are closed," you say! "How could they possibly get in?" Fruit flies are so tiny they can enter through the tiniest of crevices around windows or doors and can even fly through a window screen. You see, when a fruit is overripe or starts to go bad it begins to ferment, producing alcohol, which attracts fruit flies. They continue to gobble up the fermenting fruit, and in the process, lay hundreds of eggs that hatch into larvae in mere hours. If you've ever gone out of town and left a bowl of ripe fruit on the counter, then you know this all too well — upon your return, your kitchen is a fruit fly fiesta. (By the way, you can even bring fruit flies home from the store with your groceries if the fruit has already started to rot there.) How Do You Get Rid of Fruit Flies? Treehugger / Christian Yonkers Well, first things first — you need to get rid of the offending fruit or vegetable. Even after the fruit is gone though, fruit flies can live on the bottom of mops, dirty drains and old sponges. A tried and true method I have used is to smack them silly — though often you'll miss them (even though they're floating right in front of your nose, somehow they seem to escape) and you'll end up with sore hands in the process. But this still doesn't get rid of every single last one of them — and that's crucial if you don't want to be killing fruit flies for the next month. So what to do? Treehugger / Christian Yonkers Many suggest putting beer in the bottom of a glass bottle with a paper funnel out the top. The fruit flies are attracted to the bait and can get in quite easily, but somehow never figure out how to get out. All you have to do is leave this out for a couple hours, cap the bottle when you're done and voila — fruit fly problem resolved.