Life Hacks

How to Get Rid of Fruit Flies in 24 Hours

By Trik Published · Updated

How to Get Rid of Fruit Flies in 24 Hours

A single female fruit fly (Drosophila melanogaster) lays up to 500 eggs at a time on the surface of overripe fruit. Eggs hatch within 24 hours, and larvae mature to adult flies in 8 to 10 days. This exponential reproduction rate is why 2 fruit flies become 200 in less than 2 weeks. Here is how to eliminate them completely within 24 to 48 hours using traps and source removal.

Step 1: Remove Every Breeding Source (Critical)

Traps alone will not solve a fruit fly infestation because new adults emerge faster than traps can catch them. You must eliminate the breeding sites first.

Check and remove or refrigerate all fruit sitting on counters (the classic breeding ground). Empty and clean the kitchen trash can; fruit fly eggs survive in juice residue at the bottom. Clean the garbage disposal by running it with ice cubes and half a lemon to flush organic debris from the splash guard and grinding chamber. Pour boiling water down all kitchen drains to kill larvae feeding on biofilm inside the pipes. Clean up any spilled juice, wine, or beer. Wipe counters and stovetops to remove food residue.

Fruit flies can also breed in damp mops, old sponges, and recycling bins with residual juice in bottles and cans. Rinse all recyclables before putting them in the bin.

Step 2: The Apple Cider Vinegar Trap

Pour half an inch of apple cider vinegar into a glass or jar. Add 2 to 3 drops of liquid dish soap. The vinegar attracts fruit flies because it mimics the acetic acid signature of fermenting fruit. The dish soap breaks the surface tension of the liquid, so when flies land on the surface, they sink and drown instead of standing on the meniscus.

Place 2 to 3 traps around the kitchen, one near the fruit bowl area, one near the sink, and one near the trash can. Within 2 to 4 hours, you should see dead flies accumulating at the bottom of each glass. Replace the vinegar every 2 days.

Step 3: The Funnel Trap (For Heavy Infestations)

Place a piece of overripe banana or a splash of red wine in the bottom of a jar. Roll a piece of paper into a cone shape (funnel) with a small opening at the narrow end (about 1/4 inch diameter). Insert the funnel into the jar opening with the narrow end pointing down. Secure with tape.

Fruit flies follow the fermentation scent into the wide end of the funnel, travel down to the narrow opening, and enter the jar. They cannot find their way back out through the small opening because Drosophila navigate by following scent gradients, not visual memory, and the funnel disperses the scent trail.

This trap catches 20 to 50 flies per day in a moderate infestation. Between the vinegar traps and funnel traps, the visible adult population drops by 90% within 24 hours.

Step 4: The Drain Treatment

If fruit flies are emerging from drains (test by taping a piece of plastic wrap loosely over the drain overnight; if flies are stuck to the underside in the morning, the drain is a breeding site), pour a mixture of half a cup of baking soda followed by half a cup of vinegar down the drain. Wait 15 minutes, then flush with boiling water. This kills larvae and destroys the organic biofilm they feed on.

For persistent drain infestations, a biological drain cleaner like InVade Bio Drain (about $15, contains beneficial bacteria that consume the biofilm) provides longer-lasting results than the one-time baking soda treatment.

Prevention

Keep fruit in the refrigerator during summer months when fruit flies are most active (they thrive above 75 degrees Fahrenheit and become dormant below 60). Take kitchen trash out daily. Rinse all dishes immediately rather than letting them sit in the sink. Clean the garbage disposal weekly with the ice-and-lemon method.

Bottom Line

Remove all breeding sources first, then set apple cider vinegar traps with dish soap and funnel traps with fruit bait. The source removal stops new eggs from hatching while the traps catch existing adults. Complete elimination takes 24 to 48 hours with aggressive source removal and trap placement.